xref: /vim-8.2.3635/src/auto/configure (revision 00a927d6)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (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# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="vim.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_subst_vars='LTLIBOBJS
639LIBOBJS
640DEPEND_CFLAGS_FILTER
641MAKEMO
642MSGFMT
643INSTALL_TOOL_LANGS
644INSTALL_LANGS
645TAGPRG
646HANGULIN_OBJ
647HANGULIN_SRC
648GUI_X_LIBS
649GUITYPE
650GUI_LIB_LOC
651GUI_INC_LOC
652NARROW_PROTO
653MOTIF_LIBNAME
654GNOME_CONFIG
655GNOME_INCLUDEDIR
656GNOME_LIBDIR
657GNOME_LIBS
658GTK_LIBNAME
659GTK_LIBS
660GTK_CFLAGS
661PKG_CONFIG
662GTK12_CONFIG
663GTK_CONFIG
664X_LIB
665X_EXTRA_LIBS
666X_LIBS
667X_PRE_LIBS
668X_CFLAGS
669XMKMF
670xmkmfpath
671SNIFF_OBJ
672SNIFF_SRC
673NETBEANS_OBJ
674NETBEANS_SRC
675WORKSHOP_OBJ
676WORKSHOP_SRC
677RUBY_LIBS
678RUBY_CFLAGS
679RUBY_PRO
680RUBY_OBJ
681RUBY_SRC
682vi_cv_path_ruby
683TCL_LIBS
684TCL_CFLAGS
685TCL_PRO
686TCL_OBJ
687TCL_SRC
688vi_cv_path_tcl
689PYTHON_OBJ
690PYTHON_SRC
691PYTHON_CFLAGS
692PYTHON_GETPATH_CFLAGS
693PYTHON_LIBS
694PYTHON_CONFDIR
695vi_cv_path_python
696PERL_LIBS
697PERL_CFLAGS
698PERL_PRO
699PERL_OBJ
700PERL_SRC
701shrpenv
702vi_cv_perllib
703vi_cv_path_perl
704MZSCHEME_MZC
705MZSCHEME_EXTRA
706MZSCHEME_CFLAGS
707MZSCHEME_LIBS
708MZSCHEME_PRO
709MZSCHEME_OBJ
710MZSCHEME_SRC
711vi_cv_path_mzscheme
712compiledby
713dogvimdiff
714dovimdiff
715line_break
716VIEWNAME
717EXNAME
718VIMNAME
719OS_EXTRA_OBJ
720OS_EXTRA_SRC
721XCODE_SELECT
722CPP_MM
723STRIP
724AWK
725EGREP
726GREP
727CPP
728OBJEXT
729EXEEXT
730ac_ct_CC
731CPPFLAGS
732LDFLAGS
733CFLAGS
734CC
735SET_MAKE
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_darwin
777with_mac_arch
778with_developer_dir
779with_local_dir
780with_vim_name
781with_ex_name
782with_view_name
783with_global_runtime
784with_modified_by
785enable_selinux
786with_features
787with_compiledby
788enable_xsmp
789enable_xsmp_interact
790enable_mzschemeinterp
791with_plthome
792enable_perlinterp
793enable_pythoninterp
794with_python_config_dir
795enable_tclinterp
796with_tclsh
797enable_rubyinterp
798with_ruby_command
799enable_cscope
800enable_workshop
801enable_netbeans
802enable_sniff
803enable_multibyte
804enable_hangulinput
805enable_xim
806enable_fontset
807with_x
808enable_gui
809enable_gtk_check
810enable_gtk2_check
811enable_gnome_check
812enable_motif_check
813enable_athena_check
814enable_nextaw_check
815enable_carbon_check
816with_gtk_prefix
817with_gtk_exec_prefix
818enable_gtktest
819with_gnome_includes
820with_gnome_libs
821with_gnome
822with_motif_lib
823with_tlib
824enable_largefile
825enable_acl
826enable_gpm
827enable_sysmouse
828enable_nls
829'
830      ac_precious_vars='build_alias
831host_alias
832target_alias
833CC
834CFLAGS
835LDFLAGS
836LIBS
837CPPFLAGS
838CPP
839XMKMF'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *)	ac_optarg=yes ;;
904  esac
905
906  # Accept the important Cygnus configure options, so we can diagnose typos.
907
908  case $ac_dashdash$ac_option in
909  --)
910    ac_dashdash=yes ;;
911
912  -bindir | --bindir | --bindi | --bind | --bin | --bi)
913    ac_prev=bindir ;;
914  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915    bindir=$ac_optarg ;;
916
917  -build | --build | --buil | --bui | --bu)
918    ac_prev=build_alias ;;
919  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920    build_alias=$ac_optarg ;;
921
922  -cache-file | --cache-file | --cache-fil | --cache-fi \
923  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924    ac_prev=cache_file ;;
925  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927    cache_file=$ac_optarg ;;
928
929  --config-cache | -C)
930    cache_file=config.cache ;;
931
932  -datadir | --datadir | --datadi | --datad)
933    ac_prev=datadir ;;
934  -datadir=* | --datadir=* | --datadi=* | --datad=*)
935    datadir=$ac_optarg ;;
936
937  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938  | --dataroo | --dataro | --datar)
939    ac_prev=datarootdir ;;
940  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942    datarootdir=$ac_optarg ;;
943
944  -disable-* | --disable-*)
945    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946    # Reject names that are not valid shell variable names.
947    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949   { (exit 1); exit 1; }; }
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=no ;;
960
961  -docdir | --docdir | --docdi | --doc | --do)
962    ac_prev=docdir ;;
963  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964    docdir=$ac_optarg ;;
965
966  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967    ac_prev=dvidir ;;
968  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969    dvidir=$ac_optarg ;;
970
971  -enable-* | --enable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976   { (exit 1); exit 1; }; }
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132    ac_prev=sbindir ;;
1133  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134  | --sbi=* | --sb=*)
1135    sbindir=$ac_optarg ;;
1136
1137  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139  | --sharedst | --shareds | --shared | --share | --shar \
1140  | --sha | --sh)
1141    ac_prev=sharedstatedir ;;
1142  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145  | --sha=* | --sh=*)
1146    sharedstatedir=$ac_optarg ;;
1147
1148  -site | --site | --sit)
1149    ac_prev=site ;;
1150  -site=* | --site=* | --sit=*)
1151    site=$ac_optarg ;;
1152
1153  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154    ac_prev=srcdir ;;
1155  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156    srcdir=$ac_optarg ;;
1157
1158  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159  | --syscon | --sysco | --sysc | --sys | --sy)
1160    ac_prev=sysconfdir ;;
1161  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163    sysconfdir=$ac_optarg ;;
1164
1165  -target | --target | --targe | --targ | --tar | --ta | --t)
1166    ac_prev=target_alias ;;
1167  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168    target_alias=$ac_optarg ;;
1169
1170  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171    verbose=yes ;;
1172
1173  -version | --version | --versio | --versi | --vers | -V)
1174    ac_init_version=: ;;
1175
1176  -with-* | --with-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181   { (exit 1); exit 1; }; }
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198   { (exit 1); exit 1; }; }
1199    ac_useropt_orig=$ac_useropt
1200    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201    case $ac_user_opts in
1202      *"
1203"with_$ac_useropt"
1204"*) ;;
1205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206	 ac_unrecognized_sep=', ';;
1207    esac
1208    eval with_$ac_useropt=no ;;
1209
1210  --x)
1211    # Obsolete; use --with-x.
1212    with_x=yes ;;
1213
1214  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215  | --x-incl | --x-inc | --x-in | --x-i)
1216    ac_prev=x_includes ;;
1217  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219    x_includes=$ac_optarg ;;
1220
1221  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223    ac_prev=x_libraries ;;
1224  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226    x_libraries=$ac_optarg ;;
1227
1228  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229Try \`$0 --help' for more information." >&2
1230   { (exit 1); exit 1; }; }
1231    ;;
1232
1233  *=*)
1234    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1237      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238   { (exit 1); exit 1; }; }
1239    eval $ac_envvar=\$ac_optarg
1240    export $ac_envvar ;;
1241
1242  *)
1243    # FIXME: should be removed in autoconf 3.0.
1244    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248    ;;
1249
1250  esac
1251done
1252
1253if test -n "$ac_prev"; then
1254  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256   { (exit 1); exit 1; }; }
1257fi
1258
1259if test -n "$ac_unrecognized_opts"; then
1260  case $enable_option_checking in
1261    no) ;;
1262    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1263   { (exit 1); exit 1; }; } ;;
1264    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265  esac
1266fi
1267
1268# Check all directory arguments for consistency.
1269for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270		datadir sysconfdir sharedstatedir localstatedir includedir \
1271		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272		libdir localedir mandir
1273do
1274  eval ac_val=\$$ac_var
1275  # Remove trailing slashes.
1276  case $ac_val in
1277    */ )
1278      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279      eval $ac_var=\$ac_val;;
1280  esac
1281  # Be sure to have absolute directory names.
1282  case $ac_val in
1283    [\\/$]* | ?:[\\/]* )  continue;;
1284    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285  esac
1286  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287   { (exit 1); exit 1; }; }
1288done
1289
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
1296
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299  if test "x$build_alias" = x; then
1300    cross_compiling=maybe
1301    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302    If a cross compiler is detected then cross compile mode will be used." >&2
1303  elif test "x$build_alias" != "x$host_alias"; then
1304    cross_compiling=yes
1305  fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
1312
1313
1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1318   { (exit 1); exit 1; }; }
1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321   { (exit 1); exit 1; }; }
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361   { (exit 1); exit 1; }; }
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366   { (exit 1); exit 1; }; }
1367	pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370  srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures this package to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449X features:
1450  --x-includes=DIR    X include files are in DIR
1451  --x-libraries=DIR   X library files are in DIR
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456
1457  cat <<\_ACEOF
1458
1459Optional Features:
1460  --disable-option-checking  ignore unrecognized --enable/--with options
1461  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463  --disable-darwin        Disable Darwin (Mac OS X) support.
1464  --disable-selinux	  Don't check for SELinux support.
1465  --disable-xsmp          Disable XSMP session management
1466  --disable-xsmp-interact Disable XSMP interaction
1467  --enable-mzschemeinterp   Include MzScheme interpreter.
1468  --enable-perlinterp     Include Perl interpreter.
1469  --enable-pythoninterp   Include Python interpreter.
1470  --enable-tclinterp      Include Tcl interpreter.
1471  --enable-rubyinterp     Include Ruby interpreter.
1472  --enable-cscope         Include cscope interface.
1473  --enable-workshop       Include Sun Visual Workshop support.
1474  --disable-netbeans      Disable NetBeans integration support.
1475  --enable-sniff          Include Sniff interface.
1476  --enable-multibyte      Include multibyte editing support.
1477  --enable-hangulinput    Include Hangul input support.
1478  --enable-xim            Include XIM input support.
1479  --enable-fontset        Include X fontset output support.
1480  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1481  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
1482  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
1483  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1484  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1485  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1486  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1487  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1488  --disable-gtktest       Do not try to compile and run a test GTK program
1489  --disable-largefile     omit support for large files
1490  --disable-acl           Don't check for ACL support.
1491  --disable-gpm           Don't use gpm (Linux mouse daemon).
1492  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1493  --disable-nls           Don't support NLS (gettext()).
1494
1495Optional Packages:
1496  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498  --with-mac-arch=ARCH    current, intel, ppc or both
1499  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1500  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1501  --without-local-dir     do not search /usr/local for local libraries.
1502  --with-vim-name=NAME    what to call the Vim executable
1503  --with-ex-name=NAME     what to call the Ex executable
1504  --with-view-name=NAME   what to call the View executable
1505  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1506  --with-modified-by=NAME       name of who modified a release version
1507  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1508  --with-compiledby=NAME  name to show in :version message
1509  --with-plthome=PLTHOME   Use PLTHOME.
1510  --with-python-config-dir=PATH  Python's config directory
1511  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1512  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1513  --with-x                use the X Window System
1514  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1515  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1516  --with-gnome-includes=DIR Specify location of GNOME headers
1517  --with-gnome-libs=DIR   Specify location of GNOME libs
1518  --with-gnome            Specify prefix for GNOME files
1519  --with-motif-lib=STRING   Library for Motif
1520  --with-tlib=library     terminal library to be used
1521
1522Some influential environment variables:
1523  CC          C compiler command
1524  CFLAGS      C compiler flags
1525  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526              nonstandard directory <lib dir>
1527  LIBS        libraries to pass to the linker, e.g. -l<library>
1528  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  XMKMF       Path to xmkmf, Makefile generator for X Window System
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541  # If there are subdirs, report their specific --help.
1542  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543    test -d "$ac_dir" ||
1544      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545      continue
1546    ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552  # A ".." for each directory in $ac_dir_suffix.
1553  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554  case $ac_top_builddir_sub in
1555  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557  esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565  .)  # We are building in place.
1566    ac_srcdir=.
1567    ac_top_srcdir=$ac_top_builddir_sub
1568    ac_abs_top_srcdir=$ac_pwd ;;
1569  [\\/]* | ?:[\\/]* )  # Absolute name.
1570    ac_srcdir=$srcdir$ac_dir_suffix;
1571    ac_top_srcdir=$srcdir
1572    ac_abs_top_srcdir=$srcdir ;;
1573  *) # Relative name.
1574    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575    ac_top_srcdir=$ac_top_build_prefix$srcdir
1576    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580    cd "$ac_dir" || { ac_status=$?; continue; }
1581    # Check for guested configure.
1582    if test -f "$ac_srcdir/configure.gnu"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585    elif test -f "$ac_srcdir/configure"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure" --help=recursive
1588    else
1589      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590    fi || ac_status=$?
1591    cd "$ac_pwd" || { ac_status=$?; break; }
1592  done
1593fi
1594
1595test -n "$ac_init_help" && exit $ac_status
1596if $ac_init_version; then
1597  cat <<\_ACEOF
1598configure
1599generated by GNU Autoconf 2.63
1600
1601Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16022002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608cat >auto/config.log <<_ACEOF
1609This file contains any messages produced by compilers while
1610running configure, to aid debugging if configure makes a mistake.
1611
1612It was created by $as_me, which was
1613generated by GNU Autoconf 2.63.  Invocation command line was
1614
1615  $ $0 $@
1616
1617_ACEOF
1618exec 5>>auto/config.log
1619{
1620cat <<_ASUNAME
1621## --------- ##
1622## Platform. ##
1623## --------- ##
1624
1625hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630
1631/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1633
1634/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1635/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1636/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1638/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1639/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1640/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1641
1642_ASUNAME
1643
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647  IFS=$as_save_IFS
1648  test -z "$as_dir" && as_dir=.
1649  $as_echo "PATH: $as_dir"
1650done
1651IFS=$as_save_IFS
1652
1653} >&5
1654
1655cat >&5 <<_ACEOF
1656
1657
1658## ----------- ##
1659## Core tests. ##
1660## ----------- ##
1661
1662_ACEOF
1663
1664
1665# Keep a trace of the command line.
1666# Strip out --no-create and --no-recursion so they do not pile up.
1667# Strip out --silent because we don't want to record it for future runs.
1668# Also quote any args containing shell meta-characters.
1669# Make two passes to allow for proper duplicate-argument suppression.
1670ac_configure_args=
1671ac_configure_args0=
1672ac_configure_args1=
1673ac_must_keep_next=false
1674for ac_pass in 1 2
1675do
1676  for ac_arg
1677  do
1678    case $ac_arg in
1679    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681    | -silent | --silent | --silen | --sile | --sil)
1682      continue ;;
1683    *\'*)
1684      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685    esac
1686    case $ac_pass in
1687    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688    2)
1689      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690      if test $ac_must_keep_next = true; then
1691	ac_must_keep_next=false # Got value, back to normal.
1692      else
1693	case $ac_arg in
1694	  *=* | --config-cache | -C | -disable-* | --disable-* \
1695	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697	  | -with-* | --with-* | -without-* | --without-* | --x)
1698	    case "$ac_configure_args0 " in
1699	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700	    esac
1701	    ;;
1702	  -* ) ac_must_keep_next=true ;;
1703	esac
1704      fi
1705      ac_configure_args="$ac_configure_args '$ac_arg'"
1706      ;;
1707    esac
1708  done
1709done
1710$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712
1713# When interrupted or exit'd, cleanup temporary files, and complete
1714# config.log.  We remove comments because anyway the quotes in there
1715# would cause problems or look ugly.
1716# WARNING: Use '\'' to represent an apostrophe within the trap.
1717# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718trap 'exit_status=$?
1719  # Save into config.log some information that might help in debugging.
1720  {
1721    echo
1722
1723    cat <<\_ASBOX
1724## ---------------- ##
1725## Cache variables. ##
1726## ---------------- ##
1727_ASBOX
1728    echo
1729    # The following way of writing the cache mishandles newlines in values,
1730(
1731  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732    eval ac_val=\$$ac_var
1733    case $ac_val in #(
1734    *${as_nl}*)
1735      case $ac_var in #(
1736      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1737$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738      esac
1739      case $ac_var in #(
1740      _ | IFS | as_nl) ;; #(
1741      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742      *) $as_unset $ac_var ;;
1743      esac ;;
1744    esac
1745  done
1746  (set) 2>&1 |
1747    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748    *${as_nl}ac_space=\ *)
1749      sed -n \
1750	"s/'\''/'\''\\\\'\'''\''/g;
1751	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752      ;; #(
1753    *)
1754      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755      ;;
1756    esac |
1757    sort
1758)
1759    echo
1760
1761    cat <<\_ASBOX
1762## ----------------- ##
1763## Output variables. ##
1764## ----------------- ##
1765_ASBOX
1766    echo
1767    for ac_var in $ac_subst_vars
1768    do
1769      eval ac_val=\$$ac_var
1770      case $ac_val in
1771      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772      esac
1773      $as_echo "$ac_var='\''$ac_val'\''"
1774    done | sort
1775    echo
1776
1777    if test -n "$ac_subst_files"; then
1778      cat <<\_ASBOX
1779## ------------------- ##
1780## File substitutions. ##
1781## ------------------- ##
1782_ASBOX
1783      echo
1784      for ac_var in $ac_subst_files
1785      do
1786	eval ac_val=\$$ac_var
1787	case $ac_val in
1788	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789	esac
1790	$as_echo "$ac_var='\''$ac_val'\''"
1791      done | sort
1792      echo
1793    fi
1794
1795    if test -s confdefs.h; then
1796      cat <<\_ASBOX
1797## ----------- ##
1798## confdefs.h. ##
1799## ----------- ##
1800_ASBOX
1801      echo
1802      cat confdefs.h
1803      echo
1804    fi
1805    test "$ac_signal" != 0 &&
1806      $as_echo "$as_me: caught signal $ac_signal"
1807    $as_echo "$as_me: exit $exit_status"
1808  } >&5
1809  rm -f core *.core core.conftest.* &&
1810    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811    exit $exit_status
1812' 0
1813for ac_signal in 1 2 13 15; do
1814  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815done
1816ac_signal=0
1817
1818# confdefs.h avoids OS command line length limits that DEFS can exceed.
1819rm -f -r conftest* confdefs.h
1820
1821# Predefined preprocessor variables.
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_NAME "$PACKAGE_NAME"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_VERSION "$PACKAGE_VERSION"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_STRING "$PACKAGE_STRING"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845_ACEOF
1846
1847
1848# Let the site file select an alternate cache file if it wants to.
1849# Prefer an explicitly selected file to automatically selected ones.
1850ac_site_file1=NONE
1851ac_site_file2=NONE
1852if test -n "$CONFIG_SITE"; then
1853  ac_site_file1=$CONFIG_SITE
1854elif test "x$prefix" != xNONE; then
1855  ac_site_file1=$prefix/share/config.site
1856  ac_site_file2=$prefix/etc/config.site
1857else
1858  ac_site_file1=$ac_default_prefix/share/config.site
1859  ac_site_file2=$ac_default_prefix/etc/config.site
1860fi
1861for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862do
1863  test "x$ac_site_file" = xNONE && continue
1864  if test -r "$ac_site_file"; then
1865    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867    sed 's/^/| /' "$ac_site_file" >&5
1868    . "$ac_site_file"
1869  fi
1870done
1871
1872if test -r "$cache_file"; then
1873  # Some versions of bash will fail to source /dev/null (special
1874  # files actually), so we avoid doing that.
1875  if test -f "$cache_file"; then
1876    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877$as_echo "$as_me: loading cache $cache_file" >&6;}
1878    case $cache_file in
1879      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880      *)                      . "./$cache_file";;
1881    esac
1882  fi
1883else
1884  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885$as_echo "$as_me: creating cache $cache_file" >&6;}
1886  >$cache_file
1887fi
1888
1889# Check that the precious variables saved in the cache have kept the same
1890# value.
1891ac_cache_corrupted=false
1892for ac_var in $ac_precious_vars; do
1893  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894  eval ac_new_set=\$ac_env_${ac_var}_set
1895  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896  eval ac_new_val=\$ac_env_${ac_var}_value
1897  case $ac_old_set,$ac_new_set in
1898    set,)
1899      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901      ac_cache_corrupted=: ;;
1902    ,set)
1903      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905      ac_cache_corrupted=: ;;
1906    ,);;
1907    *)
1908      if test "x$ac_old_val" != "x$ac_new_val"; then
1909	# differences in whitespace do not lead to failure.
1910	ac_old_val_w=`echo x $ac_old_val`
1911	ac_new_val_w=`echo x $ac_new_val`
1912	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915	  ac_cache_corrupted=:
1916	else
1917	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1918$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919	  eval $ac_var=\$ac_old_val
1920	fi
1921	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1922$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1923	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1924$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1925      fi;;
1926  esac
1927  # Pass precious variables to config.status.
1928  if test "$ac_new_set" = set; then
1929    case $ac_new_val in
1930    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931    *) ac_arg=$ac_var=$ac_new_val ;;
1932    esac
1933    case " $ac_configure_args " in
1934      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936    esac
1937  fi
1938done
1939if $ac_cache_corrupted; then
1940  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946   { (exit 1); exit 1; }; }
1947fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965ac_ext=c
1966ac_cpp='$CPP $CPPFLAGS'
1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970
1971
1972ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1973
1974
1975cat >>confdefs.h <<\_ACEOF
1976#define UNIX 1
1977_ACEOF
1978
1979{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1981set x ${MAKE-make}
1982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1983if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1984  $as_echo_n "(cached) " >&6
1985else
1986  cat >conftest.make <<\_ACEOF
1987SHELL = /bin/sh
1988all:
1989	@echo '@@@%%%=$(MAKE)=@@@%%%'
1990_ACEOF
1991# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1992case `${MAKE-make} -f conftest.make 2>/dev/null` in
1993  *@@@%%%=?*=@@@%%%*)
1994    eval ac_cv_prog_make_${ac_make}_set=yes;;
1995  *)
1996    eval ac_cv_prog_make_${ac_make}_set=no;;
1997esac
1998rm -f conftest.make
1999fi
2000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2001  { $as_echo "$as_me:$LINENO: result: yes" >&5
2002$as_echo "yes" >&6; }
2003  SET_MAKE=
2004else
2005  { $as_echo "$as_me:$LINENO: result: no" >&5
2006$as_echo "no" >&6; }
2007  SET_MAKE="MAKE=${MAKE-make}"
2008fi
2009
2010
2011ac_ext=c
2012ac_cpp='$CPP $CPPFLAGS'
2013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016if test -n "$ac_tool_prefix"; then
2017  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2020$as_echo_n "checking for $ac_word... " >&6; }
2021if test "${ac_cv_prog_CC+set}" = set; then
2022  $as_echo_n "(cached) " >&6
2023else
2024  if test -n "$CC"; then
2025  ac_cv_prog_CC="$CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032  for ac_exec_ext in '' $ac_executable_extensions; do
2033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036    break 2
2037  fi
2038done
2039done
2040IFS=$as_save_IFS
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2047$as_echo "$CC" >&6; }
2048else
2049  { $as_echo "$as_me:$LINENO: result: no" >&5
2050$as_echo "no" >&6; }
2051fi
2052
2053
2054fi
2055if test -z "$ac_cv_prog_CC"; then
2056  ac_ct_CC=$CC
2057  # Extract the first word of "gcc", so it can be a program name with args.
2058set dummy gcc; ac_word=$2
2059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2060$as_echo_n "checking for $ac_word... " >&6; }
2061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062  $as_echo_n "(cached) " >&6
2063else
2064  if test -n "$ac_ct_CC"; then
2065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072  for ac_exec_ext in '' $ac_executable_extensions; do
2073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074    ac_cv_prog_ac_ct_CC="gcc"
2075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080IFS=$as_save_IFS
2081
2082fi
2083fi
2084ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085if test -n "$ac_ct_CC"; then
2086  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087$as_echo "$ac_ct_CC" >&6; }
2088else
2089  { $as_echo "$as_me:$LINENO: result: no" >&5
2090$as_echo "no" >&6; }
2091fi
2092
2093  if test "x$ac_ct_CC" = x; then
2094    CC=""
2095  else
2096    case $cross_compiling:$ac_tool_warned in
2097yes:)
2098{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2100ac_tool_warned=yes ;;
2101esac
2102    CC=$ac_ct_CC
2103  fi
2104else
2105  CC="$ac_cv_prog_CC"
2106fi
2107
2108if test -z "$CC"; then
2109          if test -n "$ac_tool_prefix"; then
2110    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111set dummy ${ac_tool_prefix}cc; ac_word=$2
2112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113$as_echo_n "checking for $ac_word... " >&6; }
2114if test "${ac_cv_prog_CC+set}" = set; then
2115  $as_echo_n "(cached) " >&6
2116else
2117  if test -n "$CC"; then
2118  ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_exec_ext in '' $ac_executable_extensions; do
2126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127    ac_cv_prog_CC="${ac_tool_prefix}cc"
2128    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129    break 2
2130  fi
2131done
2132done
2133IFS=$as_save_IFS
2134
2135fi
2136fi
2137CC=$ac_cv_prog_CC
2138if test -n "$CC"; then
2139  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2140$as_echo "$CC" >&6; }
2141else
2142  { $as_echo "$as_me:$LINENO: result: no" >&5
2143$as_echo "no" >&6; }
2144fi
2145
2146
2147  fi
2148fi
2149if test -z "$CC"; then
2150  # Extract the first word of "cc", so it can be a program name with args.
2151set dummy cc; ac_word=$2
2152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153$as_echo_n "checking for $ac_word... " >&6; }
2154if test "${ac_cv_prog_CC+set}" = set; then
2155  $as_echo_n "(cached) " >&6
2156else
2157  if test -n "$CC"; then
2158  ac_cv_prog_CC="$CC" # Let the user override the test.
2159else
2160  ac_prog_rejected=no
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164  IFS=$as_save_IFS
2165  test -z "$as_dir" && as_dir=.
2166  for ac_exec_ext in '' $ac_executable_extensions; do
2167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169       ac_prog_rejected=yes
2170       continue
2171     fi
2172    ac_cv_prog_CC="cc"
2173    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174    break 2
2175  fi
2176done
2177done
2178IFS=$as_save_IFS
2179
2180if test $ac_prog_rejected = yes; then
2181  # We found a bogon in the path, so make sure we never use it.
2182  set dummy $ac_cv_prog_CC
2183  shift
2184  if test $# != 0; then
2185    # We chose a different compiler from the bogus one.
2186    # However, it has the same basename, so the bogon will be chosen
2187    # first if we set CC to just the basename; use the full file name.
2188    shift
2189    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2190  fi
2191fi
2192fi
2193fi
2194CC=$ac_cv_prog_CC
2195if test -n "$CC"; then
2196  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2197$as_echo "$CC" >&6; }
2198else
2199  { $as_echo "$as_me:$LINENO: result: no" >&5
2200$as_echo "no" >&6; }
2201fi
2202
2203
2204fi
2205if test -z "$CC"; then
2206  if test -n "$ac_tool_prefix"; then
2207  for ac_prog in cl.exe
2208  do
2209    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2212$as_echo_n "checking for $ac_word... " >&6; }
2213if test "${ac_cv_prog_CC+set}" = set; then
2214  $as_echo_n "(cached) " >&6
2215else
2216  if test -n "$CC"; then
2217  ac_cv_prog_CC="$CC" # Let the user override the test.
2218else
2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220for as_dir in $PATH
2221do
2222  IFS=$as_save_IFS
2223  test -z "$as_dir" && as_dir=.
2224  for ac_exec_ext in '' $ac_executable_extensions; do
2225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228    break 2
2229  fi
2230done
2231done
2232IFS=$as_save_IFS
2233
2234fi
2235fi
2236CC=$ac_cv_prog_CC
2237if test -n "$CC"; then
2238  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2239$as_echo "$CC" >&6; }
2240else
2241  { $as_echo "$as_me:$LINENO: result: no" >&5
2242$as_echo "no" >&6; }
2243fi
2244
2245
2246    test -n "$CC" && break
2247  done
2248fi
2249if test -z "$CC"; then
2250  ac_ct_CC=$CC
2251  for ac_prog in cl.exe
2252do
2253  # Extract the first word of "$ac_prog", so it can be a program name with args.
2254set dummy $ac_prog; ac_word=$2
2255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256$as_echo_n "checking for $ac_word... " >&6; }
2257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258  $as_echo_n "(cached) " >&6
2259else
2260  if test -n "$ac_ct_CC"; then
2261  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262else
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_exec_ext in '' $ac_executable_extensions; do
2269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270    ac_cv_prog_ac_ct_CC="$ac_prog"
2271    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272    break 2
2273  fi
2274done
2275done
2276IFS=$as_save_IFS
2277
2278fi
2279fi
2280ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281if test -n "$ac_ct_CC"; then
2282  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283$as_echo "$ac_ct_CC" >&6; }
2284else
2285  { $as_echo "$as_me:$LINENO: result: no" >&5
2286$as_echo "no" >&6; }
2287fi
2288
2289
2290  test -n "$ac_ct_CC" && break
2291done
2292
2293  if test "x$ac_ct_CC" = x; then
2294    CC=""
2295  else
2296    case $cross_compiling:$ac_tool_warned in
2297yes:)
2298{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2300ac_tool_warned=yes ;;
2301esac
2302    CC=$ac_ct_CC
2303  fi
2304fi
2305
2306fi
2307
2308
2309test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312See \`config.log' for more details." >&5
2313$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2314See \`config.log' for more details." >&2;}
2315   { (exit 1); exit 1; }; }; }
2316
2317# Provide some information about the compiler.
2318$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2319set X $ac_compile
2320ac_compiler=$2
2321{ (ac_try="$ac_compiler --version >&5"
2322case "(($ac_try" in
2323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324  *) ac_try_echo=$ac_try;;
2325esac
2326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2327$as_echo "$ac_try_echo") >&5
2328  (eval "$ac_compiler --version >&5") 2>&5
2329  ac_status=$?
2330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }
2332{ (ac_try="$ac_compiler -v >&5"
2333case "(($ac_try" in
2334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335  *) ac_try_echo=$ac_try;;
2336esac
2337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2338$as_echo "$ac_try_echo") >&5
2339  (eval "$ac_compiler -v >&5") 2>&5
2340  ac_status=$?
2341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }
2343{ (ac_try="$ac_compiler -V >&5"
2344case "(($ac_try" in
2345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346  *) ac_try_echo=$ac_try;;
2347esac
2348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2349$as_echo "$ac_try_echo") >&5
2350  (eval "$ac_compiler -V >&5") 2>&5
2351  ac_status=$?
2352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); }
2354
2355cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370ac_clean_files_save=$ac_clean_files
2371ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2372# Try to create an executable without -o first, disregard a.out.
2373# It will help us diagnose broken compilers, and finding out an intuition
2374# of exeext.
2375{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2376$as_echo_n "checking for C compiler default output file name... " >&6; }
2377ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378
2379# The possible output files:
2380ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2381
2382ac_rmfiles=
2383for ac_file in $ac_files
2384do
2385  case $ac_file in
2386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2387    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2388  esac
2389done
2390rm -f $ac_rmfiles
2391
2392if { (ac_try="$ac_link_default"
2393case "(($ac_try" in
2394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395  *) ac_try_echo=$ac_try;;
2396esac
2397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2398$as_echo "$ac_try_echo") >&5
2399  (eval "$ac_link_default") 2>&5
2400  ac_status=$?
2401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; then
2403  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2406# so that the user can short-circuit this test for compilers unknown to
2407# Autoconf.
2408for ac_file in $ac_files ''
2409do
2410  test -f "$ac_file" || continue
2411  case $ac_file in
2412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2413	;;
2414    [ab].out )
2415	# We found the default executable, but exeext='' is most
2416	# certainly right.
2417	break;;
2418    *.* )
2419        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420	then :; else
2421	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422	fi
2423	# We set ac_cv_exeext here because the later test for it is not
2424	# safe: cross compilers may not add the suffix if given an `-o'
2425	# argument, so we may need to know it at that point already.
2426	# Even if this section looks crufty: it has the advantage of
2427	# actually working.
2428	break;;
2429    * )
2430	break;;
2431  esac
2432done
2433test "$ac_cv_exeext" = no && ac_cv_exeext=
2434
2435else
2436  ac_file=''
2437fi
2438
2439{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2440$as_echo "$ac_file" >&6; }
2441if test -z "$ac_file"; then
2442  $as_echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2448See \`config.log' for more details." >&5
2449$as_echo "$as_me: error: C compiler cannot create executables
2450See \`config.log' for more details." >&2;}
2451   { (exit 77); exit 77; }; }; }
2452fi
2453
2454ac_exeext=$ac_cv_exeext
2455
2456# Check that the compiler produces executables we can run.  If not, either
2457# the compiler is broken, or we cross compile.
2458{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2459$as_echo_n "checking whether the C compiler works... " >&6; }
2460# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461# If not cross compiling, check that we can run a simple program.
2462if test "$cross_compiling" != yes; then
2463  if { ac_try='./$ac_file'
2464  { (case "(($ac_try" in
2465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466  *) ac_try_echo=$ac_try;;
2467esac
2468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469$as_echo "$ac_try_echo") >&5
2470  (eval "$ac_try") 2>&5
2471  ac_status=$?
2472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474    cross_compiling=no
2475  else
2476    if test "$cross_compiling" = maybe; then
2477	cross_compiling=yes
2478    else
2479	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482If you meant to cross compile, use \`--host'.
2483See \`config.log' for more details." >&5
2484$as_echo "$as_me: error: cannot run C compiled programs.
2485If you meant to cross compile, use \`--host'.
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }; }
2488    fi
2489  fi
2490fi
2491{ $as_echo "$as_me:$LINENO: result: yes" >&5
2492$as_echo "yes" >&6; }
2493
2494rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2495ac_clean_files=$ac_clean_files_save
2496# Check that the compiler produces executables we can run.  If not, either
2497# the compiler is broken, or we cross compile.
2498{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499$as_echo_n "checking whether we are cross compiling... " >&6; }
2500{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501$as_echo "$cross_compiling" >&6; }
2502
2503{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504$as_echo_n "checking for suffix of executables... " >&6; }
2505if { (ac_try="$ac_link"
2506case "(($ac_try" in
2507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508  *) ac_try_echo=$ac_try;;
2509esac
2510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511$as_echo "$ac_try_echo") >&5
2512  (eval "$ac_link") 2>&5
2513  ac_status=$?
2514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2518# work properly (i.e., refer to `conftest.exe'), while it won't with
2519# `rm'.
2520for ac_file in conftest.exe conftest conftest.*; do
2521  test -f "$ac_file" || continue
2522  case $ac_file in
2523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525	  break;;
2526    * ) break;;
2527  esac
2528done
2529else
2530  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2533See \`config.log' for more details." >&5
2534$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2535See \`config.log' for more details." >&2;}
2536   { (exit 1); exit 1; }; }; }
2537fi
2538
2539rm -f conftest$ac_cv_exeext
2540{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2541$as_echo "$ac_cv_exeext" >&6; }
2542
2543rm -f conftest.$ac_ext
2544EXEEXT=$ac_cv_exeext
2545ac_exeext=$EXEEXT
2546{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2547$as_echo_n "checking for suffix of object files... " >&6; }
2548if test "${ac_cv_objext+set}" = set; then
2549  $as_echo_n "(cached) " >&6
2550else
2551  cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h.  */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h.  */
2557
2558int
2559main ()
2560{
2561
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.o conftest.obj
2567if { (ac_try="$ac_compile"
2568case "(($ac_try" in
2569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570  *) ac_try_echo=$ac_try;;
2571esac
2572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2573$as_echo "$ac_try_echo") >&5
2574  (eval "$ac_compile") 2>&5
2575  ac_status=$?
2576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; then
2578  for ac_file in conftest.o conftest.obj conftest.*; do
2579  test -f "$ac_file" || continue;
2580  case $ac_file in
2581    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2582    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2583       break;;
2584  esac
2585done
2586else
2587  $as_echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2593See \`config.log' for more details." >&5
2594$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2595See \`config.log' for more details." >&2;}
2596   { (exit 1); exit 1; }; }; }
2597fi
2598
2599rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600fi
2601{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2602$as_echo "$ac_cv_objext" >&6; }
2603OBJEXT=$ac_cv_objext
2604ac_objext=$OBJEXT
2605{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2607if test "${ac_cv_c_compiler_gnu+set}" = set; then
2608  $as_echo_n "(cached) " >&6
2609else
2610  cat >conftest.$ac_ext <<_ACEOF
2611/* confdefs.h.  */
2612_ACEOF
2613cat confdefs.h >>conftest.$ac_ext
2614cat >>conftest.$ac_ext <<_ACEOF
2615/* end confdefs.h.  */
2616
2617int
2618main ()
2619{
2620#ifndef __GNUC__
2621       choke me
2622#endif
2623
2624  ;
2625  return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (ac_try="$ac_compile"
2630case "(($ac_try" in
2631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632  *) ac_try_echo=$ac_try;;
2633esac
2634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635$as_echo "$ac_try_echo") >&5
2636  (eval "$ac_compile") 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } && {
2643	 test -z "$ac_c_werror_flag" ||
2644	 test ! -s conftest.err
2645       } && test -s conftest.$ac_objext; then
2646  ac_compiler_gnu=yes
2647else
2648  $as_echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651	ac_compiler_gnu=no
2652fi
2653
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656
2657fi
2658{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660if test $ac_compiler_gnu = yes; then
2661  GCC=yes
2662else
2663  GCC=
2664fi
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
2667{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668$as_echo_n "checking whether $CC accepts -g... " >&6; }
2669if test "${ac_cv_prog_cc_g+set}" = set; then
2670  $as_echo_n "(cached) " >&6
2671else
2672  ac_save_c_werror_flag=$ac_c_werror_flag
2673   ac_c_werror_flag=yes
2674   ac_cv_prog_cc_g=no
2675   CFLAGS="-g"
2676   cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682
2683int
2684main ()
2685{
2686
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (ac_try="$ac_compile"
2693case "(($ac_try" in
2694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695  *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698$as_echo "$ac_try_echo") >&5
2699  (eval "$ac_compile") 2>conftest.er1
2700  ac_status=$?
2701  grep -v '^ *+' conftest.er1 >conftest.err
2702  rm -f conftest.er1
2703  cat conftest.err >&5
2704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); } && {
2706	 test -z "$ac_c_werror_flag" ||
2707	 test ! -s conftest.err
2708       } && test -s conftest.$ac_objext; then
2709  ac_cv_prog_cc_g=yes
2710else
2711  $as_echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714	CFLAGS=""
2715      cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721
2722int
2723main ()
2724{
2725
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (ac_try="$ac_compile"
2732case "(($ac_try" in
2733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734  *) ac_try_echo=$ac_try;;
2735esac
2736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737$as_echo "$ac_try_echo") >&5
2738  (eval "$ac_compile") 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } && {
2745	 test -z "$ac_c_werror_flag" ||
2746	 test ! -s conftest.err
2747       } && test -s conftest.$ac_objext; then
2748  :
2749else
2750  $as_echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753	ac_c_werror_flag=$ac_save_c_werror_flag
2754	 CFLAGS="-g"
2755	 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h.  */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h.  */
2761
2762int
2763main ()
2764{
2765
2766  ;
2767  return 0;
2768}
2769_ACEOF
2770rm -f conftest.$ac_objext
2771if { (ac_try="$ac_compile"
2772case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777$as_echo "$ac_try_echo") >&5
2778  (eval "$ac_compile") 2>conftest.er1
2779  ac_status=$?
2780  grep -v '^ *+' conftest.er1 >conftest.err
2781  rm -f conftest.er1
2782  cat conftest.err >&5
2783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); } && {
2785	 test -z "$ac_c_werror_flag" ||
2786	 test ! -s conftest.err
2787       } && test -s conftest.$ac_objext; then
2788  ac_cv_prog_cc_g=yes
2789else
2790  $as_echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793
2794fi
2795
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797fi
2798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800fi
2801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803   ac_c_werror_flag=$ac_save_c_werror_flag
2804fi
2805{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806$as_echo "$ac_cv_prog_cc_g" >&6; }
2807if test "$ac_test_CFLAGS" = set; then
2808  CFLAGS=$ac_save_CFLAGS
2809elif test $ac_cv_prog_cc_g = yes; then
2810  if test "$GCC" = yes; then
2811    CFLAGS="-g -O2"
2812  else
2813    CFLAGS="-g"
2814  fi
2815else
2816  if test "$GCC" = yes; then
2817    CFLAGS="-O2"
2818  else
2819    CFLAGS=
2820  fi
2821fi
2822{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2824if test "${ac_cv_prog_cc_c89+set}" = set; then
2825  $as_echo_n "(cached) " >&6
2826else
2827  ac_cv_prog_cc_c89=no
2828ac_save_CC=$CC
2829cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835#include <stdarg.h>
2836#include <stdio.h>
2837#include <sys/types.h>
2838#include <sys/stat.h>
2839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2840struct buf { int x; };
2841FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842static char *e (p, i)
2843     char **p;
2844     int i;
2845{
2846  return p[i];
2847}
2848static char *f (char * (*g) (char **, int), char **p, ...)
2849{
2850  char *s;
2851  va_list v;
2852  va_start (v,p);
2853  s = g (p, va_arg (v,int));
2854  va_end (v);
2855  return s;
2856}
2857
2858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2859   function prototypes and stuff, but not '\xHH' hex character constants.
2860   These don't provoke an error unfortunately, instead are silently treated
2861   as 'x'.  The following induces an error, until -std is added to get
2862   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2863   array size at least.  It's necessary to write '\x00'==0 to get something
2864   that's true only with -std.  */
2865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866
2867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868   inside strings and character constants.  */
2869#define FOO(x) 'x'
2870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871
2872int test (int i, double x);
2873struct s1 {int (*f) (int a);};
2874struct s2 {int (*f) (double a);};
2875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876int argc;
2877char **argv;
2878int
2879main ()
2880{
2881return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888do
2889  CC="$ac_save_CC $ac_arg"
2890  rm -f conftest.$ac_objext
2891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894  *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897$as_echo "$ac_try_echo") >&5
2898  (eval "$ac_compile") 2>conftest.er1
2899  ac_status=$?
2900  grep -v '^ *+' conftest.er1 >conftest.err
2901  rm -f conftest.er1
2902  cat conftest.err >&5
2903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); } && {
2905	 test -z "$ac_c_werror_flag" ||
2906	 test ! -s conftest.err
2907       } && test -s conftest.$ac_objext; then
2908  ac_cv_prog_cc_c89=$ac_arg
2909else
2910  $as_echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913
2914fi
2915
2916rm -f core conftest.err conftest.$ac_objext
2917  test "x$ac_cv_prog_cc_c89" != "xno" && break
2918done
2919rm -f conftest.$ac_ext
2920CC=$ac_save_CC
2921
2922fi
2923# AC_CACHE_VAL
2924case "x$ac_cv_prog_cc_c89" in
2925  x)
2926    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2927$as_echo "none needed" >&6; } ;;
2928  xno)
2929    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2930$as_echo "unsupported" >&6; } ;;
2931  *)
2932    CC="$CC $ac_cv_prog_cc_c89"
2933    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2934$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2935esac
2936
2937
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943	ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949$as_echo_n "checking how to run the C preprocessor... " >&6; }
2950# On Suns, sometimes $CPP names a directory.
2951if test -n "$CPP" && test -d "$CPP"; then
2952  CPP=
2953fi
2954if test -z "$CPP"; then
2955  if test "${ac_cv_prog_CPP+set}" = set; then
2956  $as_echo_n "(cached) " >&6
2957else
2958      # Double quotes because CPP needs to be expanded
2959    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960    do
2961      ac_preproc_ok=false
2962for ac_c_preproc_warn_flag in '' yes
2963do
2964  # Use a header file that comes with gcc, so configuring glibc
2965  # with a fresh cross-compiler works.
2966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967  # <limits.h> exists even on freestanding compilers.
2968  # On the NeXT, cc -E runs the code through the compiler's parser,
2969  # not just through cpp. "Syntax error" is here to catch this case.
2970  cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976#ifdef __STDC__
2977# include <limits.h>
2978#else
2979# include <assert.h>
2980#endif
2981		     Syntax error
2982_ACEOF
2983if { (ac_try="$ac_cpp conftest.$ac_ext"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989$as_echo "$ac_try_echo") >&5
2990  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2991  ac_status=$?
2992  grep -v '^ *+' conftest.er1 >conftest.err
2993  rm -f conftest.er1
2994  cat conftest.err >&5
2995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); } >/dev/null && {
2997	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998	 test ! -s conftest.err
2999       }; then
3000  :
3001else
3002  $as_echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005  # Broken: fails on valid input.
3006continue
3007fi
3008
3009rm -f conftest.err conftest.$ac_ext
3010
3011  # OK, works on sane cases.  Now check whether nonexistent headers
3012  # can be detected and how.
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019#include <ac_nonexistent.h>
3020_ACEOF
3021if { (ac_try="$ac_cpp conftest.$ac_ext"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027$as_echo "$ac_try_echo") >&5
3028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } >/dev/null && {
3035	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036	 test ! -s conftest.err
3037       }; then
3038  # Broken: success on invalid input.
3039continue
3040else
3041  $as_echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044  # Passes both tests.
3045ac_preproc_ok=:
3046break
3047fi
3048
3049rm -f conftest.err conftest.$ac_ext
3050
3051done
3052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053rm -f conftest.err conftest.$ac_ext
3054if $ac_preproc_ok; then
3055  break
3056fi
3057
3058    done
3059    ac_cv_prog_CPP=$CPP
3060
3061fi
3062  CPP=$ac_cv_prog_CPP
3063else
3064  ac_cv_prog_CPP=$CPP
3065fi
3066{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3067$as_echo "$CPP" >&6; }
3068ac_preproc_ok=false
3069for ac_c_preproc_warn_flag in '' yes
3070do
3071  # Use a header file that comes with gcc, so configuring glibc
3072  # with a fresh cross-compiler works.
3073  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074  # <limits.h> exists even on freestanding compilers.
3075  # On the NeXT, cc -E runs the code through the compiler's parser,
3076  # not just through cpp. "Syntax error" is here to catch this case.
3077  cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083#ifdef __STDC__
3084# include <limits.h>
3085#else
3086# include <assert.h>
3087#endif
3088		     Syntax error
3089_ACEOF
3090if { (ac_try="$ac_cpp conftest.$ac_ext"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098  ac_status=$?
3099  grep -v '^ *+' conftest.er1 >conftest.err
3100  rm -f conftest.er1
3101  cat conftest.err >&5
3102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); } >/dev/null && {
3104	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105	 test ! -s conftest.err
3106       }; then
3107  :
3108else
3109  $as_echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112  # Broken: fails on valid input.
3113continue
3114fi
3115
3116rm -f conftest.err conftest.$ac_ext
3117
3118  # OK, works on sane cases.  Now check whether nonexistent headers
3119  # can be detected and how.
3120  cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126#include <ac_nonexistent.h>
3127_ACEOF
3128if { (ac_try="$ac_cpp conftest.$ac_ext"
3129case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
3135  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136  ac_status=$?
3137  grep -v '^ *+' conftest.er1 >conftest.err
3138  rm -f conftest.er1
3139  cat conftest.err >&5
3140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); } >/dev/null && {
3142	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143	 test ! -s conftest.err
3144       }; then
3145  # Broken: success on invalid input.
3146continue
3147else
3148  $as_echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151  # Passes both tests.
3152ac_preproc_ok=:
3153break
3154fi
3155
3156rm -f conftest.err conftest.$ac_ext
3157
3158done
3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160rm -f conftest.err conftest.$ac_ext
3161if $ac_preproc_ok; then
3162  :
3163else
3164  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." >&5
3168$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169See \`config.log' for more details." >&2;}
3170   { (exit 1); exit 1; }; }; }
3171fi
3172
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3181$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3182if test "${ac_cv_path_GREP+set}" = set; then
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -z "$GREP"; then
3186  ac_path_GREP_found=false
3187  # Loop through the user's path and test for each of PROGNAME-LIST
3188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193  for ac_prog in grep ggrep; do
3194    for ac_exec_ext in '' $ac_executable_extensions; do
3195      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3196      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3197# Check for GNU ac_path_GREP and select it if it is found.
3198  # Check for GNU $ac_path_GREP
3199case `"$ac_path_GREP" --version 2>&1` in
3200*GNU*)
3201  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3202*)
3203  ac_count=0
3204  $as_echo_n 0123456789 >"conftest.in"
3205  while :
3206  do
3207    cat "conftest.in" "conftest.in" >"conftest.tmp"
3208    mv "conftest.tmp" "conftest.in"
3209    cp "conftest.in" "conftest.nl"
3210    $as_echo 'GREP' >> "conftest.nl"
3211    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3212    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3213    ac_count=`expr $ac_count + 1`
3214    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3215      # Best one so far, save it but keep looking for a better one
3216      ac_cv_path_GREP="$ac_path_GREP"
3217      ac_path_GREP_max=$ac_count
3218    fi
3219    # 10*(2^10) chars as input seems more than enough
3220    test $ac_count -gt 10 && break
3221  done
3222  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3223esac
3224
3225      $ac_path_GREP_found && break 3
3226    done
3227  done
3228done
3229IFS=$as_save_IFS
3230  if test -z "$ac_cv_path_GREP"; then
3231    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3232$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3233   { (exit 1); exit 1; }; }
3234  fi
3235else
3236  ac_cv_path_GREP=$GREP
3237fi
3238
3239fi
3240{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3241$as_echo "$ac_cv_path_GREP" >&6; }
3242 GREP="$ac_cv_path_GREP"
3243
3244
3245{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3246$as_echo_n "checking for egrep... " >&6; }
3247if test "${ac_cv_path_EGREP+set}" = set; then
3248  $as_echo_n "(cached) " >&6
3249else
3250  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3251   then ac_cv_path_EGREP="$GREP -E"
3252   else
3253     if test -z "$EGREP"; then
3254  ac_path_EGREP_found=false
3255  # Loop through the user's path and test for each of PROGNAME-LIST
3256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261  for ac_prog in egrep; do
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3264      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3265# Check for GNU ac_path_EGREP and select it if it is found.
3266  # Check for GNU $ac_path_EGREP
3267case `"$ac_path_EGREP" --version 2>&1` in
3268*GNU*)
3269  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3270*)
3271  ac_count=0
3272  $as_echo_n 0123456789 >"conftest.in"
3273  while :
3274  do
3275    cat "conftest.in" "conftest.in" >"conftest.tmp"
3276    mv "conftest.tmp" "conftest.in"
3277    cp "conftest.in" "conftest.nl"
3278    $as_echo 'EGREP' >> "conftest.nl"
3279    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281    ac_count=`expr $ac_count + 1`
3282    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3283      # Best one so far, save it but keep looking for a better one
3284      ac_cv_path_EGREP="$ac_path_EGREP"
3285      ac_path_EGREP_max=$ac_count
3286    fi
3287    # 10*(2^10) chars as input seems more than enough
3288    test $ac_count -gt 10 && break
3289  done
3290  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3291esac
3292
3293      $ac_path_EGREP_found && break 3
3294    done
3295  done
3296done
3297IFS=$as_save_IFS
3298  if test -z "$ac_cv_path_EGREP"; then
3299    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3300$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3301   { (exit 1); exit 1; }; }
3302  fi
3303else
3304  ac_cv_path_EGREP=$EGREP
3305fi
3306
3307   fi
3308fi
3309{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3310$as_echo "$ac_cv_path_EGREP" >&6; }
3311 EGREP="$ac_cv_path_EGREP"
3312
3313
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h.  */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h.  */
3320
3321_ACEOF
3322rm -f conftest*
3323 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3324$as_echo_n "checking for library containing strerror... " >&6; }
3325if test "${ac_cv_search_strerror+set}" = set; then
3326  $as_echo_n "(cached) " >&6
3327else
3328  ac_func_search_save_LIBS=$LIBS
3329cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335
3336/* Override any GCC internal prototype to avoid an error.
3337   Use char because int might match the return type of a GCC
3338   builtin and then its argument prototype would still apply.  */
3339#ifdef __cplusplus
3340extern "C"
3341#endif
3342char strerror ();
3343int
3344main ()
3345{
3346return strerror ();
3347  ;
3348  return 0;
3349}
3350_ACEOF
3351for ac_lib in '' cposix; do
3352  if test -z "$ac_lib"; then
3353    ac_res="none required"
3354  else
3355    ac_res=-l$ac_lib
3356    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3357  fi
3358  rm -f conftest.$ac_objext conftest$ac_exeext
3359if { (ac_try="$ac_link"
3360case "(($ac_try" in
3361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362  *) ac_try_echo=$ac_try;;
3363esac
3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365$as_echo "$ac_try_echo") >&5
3366  (eval "$ac_link") 2>conftest.er1
3367  ac_status=$?
3368  grep -v '^ *+' conftest.er1 >conftest.err
3369  rm -f conftest.er1
3370  cat conftest.err >&5
3371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } && {
3373	 test -z "$ac_c_werror_flag" ||
3374	 test ! -s conftest.err
3375       } && test -s conftest$ac_exeext && {
3376	 test "$cross_compiling" = yes ||
3377	 $as_test_x conftest$ac_exeext
3378       }; then
3379  ac_cv_search_strerror=$ac_res
3380else
3381  $as_echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384
3385fi
3386
3387rm -rf conftest.dSYM
3388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3389      conftest$ac_exeext
3390  if test "${ac_cv_search_strerror+set}" = set; then
3391  break
3392fi
3393done
3394if test "${ac_cv_search_strerror+set}" = set; then
3395  :
3396else
3397  ac_cv_search_strerror=no
3398fi
3399rm conftest.$ac_ext
3400LIBS=$ac_func_search_save_LIBS
3401fi
3402{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3403$as_echo "$ac_cv_search_strerror" >&6; }
3404ac_res=$ac_cv_search_strerror
3405if test "$ac_res" != no; then
3406  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3407
3408fi
3409	for ac_prog in gawk mawk nawk awk
3410do
3411  # Extract the first word of "$ac_prog", so it can be a program name with args.
3412set dummy $ac_prog; ac_word=$2
3413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if test "${ac_cv_prog_AWK+set}" = set; then
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test -n "$AWK"; then
3419  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426  for ac_exec_ext in '' $ac_executable_extensions; do
3427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428    ac_cv_prog_AWK="$ac_prog"
3429    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438AWK=$ac_cv_prog_AWK
3439if test -n "$AWK"; then
3440  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3441$as_echo "$AWK" >&6; }
3442else
3443  { $as_echo "$as_me:$LINENO: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448  test -n "$AWK" && break
3449done
3450
3451# Extract the first word of "strip", so it can be a program name with args.
3452set dummy strip; ac_word=$2
3453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if test "${ac_cv_prog_STRIP+set}" = set; then
3456  $as_echo_n "(cached) " >&6
3457else
3458  if test -n "$STRIP"; then
3459  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466  for ac_exec_ext in '' $ac_executable_extensions; do
3467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468    ac_cv_prog_STRIP="strip"
3469    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473done
3474IFS=$as_save_IFS
3475
3476  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3477fi
3478fi
3479STRIP=$ac_cv_prog_STRIP
3480if test -n "$STRIP"; then
3481  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3482$as_echo "$STRIP" >&6; }
3483else
3484  { $as_echo "$as_me:$LINENO: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488
3489
3490
3491
3492{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3493$as_echo_n "checking for ANSI C header files... " >&6; }
3494if test "${ac_cv_header_stdc+set}" = set; then
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503#include <stdlib.h>
3504#include <stdarg.h>
3505#include <string.h>
3506#include <float.h>
3507
3508int
3509main ()
3510{
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516rm -f conftest.$ac_objext
3517if { (ac_try="$ac_compile"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523$as_echo "$ac_try_echo") >&5
3524  (eval "$ac_compile") 2>conftest.er1
3525  ac_status=$?
3526  grep -v '^ *+' conftest.er1 >conftest.err
3527  rm -f conftest.er1
3528  cat conftest.err >&5
3529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); } && {
3531	 test -z "$ac_c_werror_flag" ||
3532	 test ! -s conftest.err
3533       } && test -s conftest.$ac_objext; then
3534  ac_cv_header_stdc=yes
3535else
3536  $as_echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539	ac_cv_header_stdc=no
3540fi
3541
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543
3544if test $ac_cv_header_stdc = yes; then
3545  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552#include <string.h>
3553
3554_ACEOF
3555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556  $EGREP "memchr" >/dev/null 2>&1; then
3557  :
3558else
3559  ac_cv_header_stdc=no
3560fi
3561rm -f conftest*
3562
3563fi
3564
3565if test $ac_cv_header_stdc = yes; then
3566  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567  cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h.  */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h.  */
3573#include <stdlib.h>
3574
3575_ACEOF
3576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577  $EGREP "free" >/dev/null 2>&1; then
3578  :
3579else
3580  ac_cv_header_stdc=no
3581fi
3582rm -f conftest*
3583
3584fi
3585
3586if test $ac_cv_header_stdc = yes; then
3587  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588  if test "$cross_compiling" = yes; then
3589  :
3590else
3591  cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597#include <ctype.h>
3598#include <stdlib.h>
3599#if ((' ' & 0x0FF) == 0x020)
3600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3602#else
3603# define ISLOWER(c) \
3604		   (('a' <= (c) && (c) <= 'i') \
3605		     || ('j' <= (c) && (c) <= 'r') \
3606		     || ('s' <= (c) && (c) <= 'z'))
3607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3608#endif
3609
3610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3611int
3612main ()
3613{
3614  int i;
3615  for (i = 0; i < 256; i++)
3616    if (XOR (islower (i), ISLOWER (i))
3617	|| toupper (i) != TOUPPER (i))
3618      return 2;
3619  return 0;
3620}
3621_ACEOF
3622rm -f conftest$ac_exeext
3623if { (ac_try="$ac_link"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629$as_echo "$ac_try_echo") >&5
3630  (eval "$ac_link") 2>&5
3631  ac_status=$?
3632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3634  { (case "(($ac_try" in
3635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636  *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639$as_echo "$ac_try_echo") >&5
3640  (eval "$ac_try") 2>&5
3641  ac_status=$?
3642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; }; then
3644  :
3645else
3646  $as_echo "$as_me: program exited with status $ac_status" >&5
3647$as_echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650( exit $ac_status )
3651ac_cv_header_stdc=no
3652fi
3653rm -rf conftest.dSYM
3654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3655fi
3656
3657
3658fi
3659fi
3660{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3661$as_echo "$ac_cv_header_stdc" >&6; }
3662if test $ac_cv_header_stdc = yes; then
3663
3664cat >>confdefs.h <<\_ACEOF
3665#define STDC_HEADERS 1
3666_ACEOF
3667
3668fi
3669
3670{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3671$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3672if test "${ac_cv_header_sys_wait_h+set}" = set; then
3673  $as_echo_n "(cached) " >&6
3674else
3675  cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h.  */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h.  */
3681#include <sys/types.h>
3682#include <sys/wait.h>
3683#ifndef WEXITSTATUS
3684# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3685#endif
3686#ifndef WIFEXITED
3687# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3688#endif
3689
3690int
3691main ()
3692{
3693  int s;
3694  wait (&s);
3695  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext
3701if { (ac_try="$ac_compile"
3702case "(($ac_try" in
3703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704  *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707$as_echo "$ac_try_echo") >&5
3708  (eval "$ac_compile") 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } && {
3715	 test -z "$ac_c_werror_flag" ||
3716	 test ! -s conftest.err
3717       } && test -s conftest.$ac_objext; then
3718  ac_cv_header_sys_wait_h=yes
3719else
3720  $as_echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723	ac_cv_header_sys_wait_h=no
3724fi
3725
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3729$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3730if test $ac_cv_header_sys_wait_h = yes; then
3731
3732cat >>confdefs.h <<\_ACEOF
3733#define HAVE_SYS_WAIT_H 1
3734_ACEOF
3735
3736fi
3737
3738
3739if test -z "$CFLAGS"; then
3740  CFLAGS="-O"
3741  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3742fi
3743if test "$GCC" = yes; then
3744    gccversion=`"$CC" -dumpversion`
3745  if test "x$gccversion" = "x"; then
3746        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3747  fi
3748    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3749    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3750    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3751  else
3752    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3753      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3754      CFLAGS="$CFLAGS -fno-strength-reduce"
3755    fi
3756  fi
3757fi
3758
3759if test "$cross_compiling" = yes; then
3760  { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3761$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3762fi
3763
3764test "$GCC" = yes && CPP_MM=M;
3765
3766if test -f ./toolcheck; then
3767  { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3768$as_echo "$as_me: checking for buggy tools..." >&6;}
3769  sh ./toolcheck 1>&6
3770fi
3771
3772OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3773
3774{ $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3775$as_echo_n "checking for BeOS... " >&6; }
3776case `uname` in
3777    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3778		BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3779$as_echo "yes" >&6; };;
3780    *)		BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3781$as_echo "no" >&6; };;
3782esac
3783
3784{ $as_echo "$as_me:$LINENO: checking for QNX" >&5
3785$as_echo_n "checking for QNX... " >&6; }
3786case `uname` in
3787    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3788		test -z "$with_x" && with_x=no
3789		QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3790$as_echo "yes" >&6; };;
3791    *)		QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3792$as_echo "no" >&6; };;
3793esac
3794
3795{ $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3796$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3797if test "`(uname) 2>/dev/null`" = Darwin; then
3798  { $as_echo "$as_me:$LINENO: result: yes" >&5
3799$as_echo "yes" >&6; }
3800
3801  { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3802$as_echo_n "checking --disable-darwin argument... " >&6; }
3803  # Check whether --enable-darwin was given.
3804if test "${enable_darwin+set}" = set; then
3805  enableval=$enable_darwin;
3806else
3807  enable_darwin="yes"
3808fi
3809
3810  if test "$enable_darwin" = "yes"; then
3811    { $as_echo "$as_me:$LINENO: result: no" >&5
3812$as_echo "no" >&6; }
3813    { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3814$as_echo_n "checking if Darwin files are there... " >&6; }
3815    if test -f os_macosx.c; then
3816      { $as_echo "$as_me:$LINENO: result: yes" >&5
3817$as_echo "yes" >&6; }
3818    else
3819      { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3820$as_echo "no, Darwin support disabled" >&6; }
3821      enable_darwin=no
3822    fi
3823  else
3824    { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3825$as_echo "yes, Darwin support excluded" >&6; }
3826  fi
3827
3828  { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3829$as_echo_n "checking --with-mac-arch argument... " >&6; }
3830
3831# Check whether --with-mac-arch was given.
3832if test "${with_mac_arch+set}" = set; then
3833  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3834$as_echo "$MACARCH" >&6; }
3835else
3836  MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3837$as_echo "defaulting to $MACARCH" >&6; }
3838fi
3839
3840
3841  { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3842$as_echo_n "checking --with-developer-dir argument... " >&6; }
3843
3844# Check whether --with-developer-dir was given.
3845if test "${with_developer_dir+set}" = set; then
3846  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3847$as_echo "$DEVELOPER_DIR" >&6; }
3848else
3849  DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3850$as_echo "not present" >&6; }
3851fi
3852
3853
3854  if test "x$DEVELOPER_DIR" = "x"; then
3855    # Extract the first word of "xcode-select", so it can be a program name with args.
3856set dummy xcode-select; ac_word=$2
3857{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3860  $as_echo_n "(cached) " >&6
3861else
3862  case $XCODE_SELECT in
3863  [\\/]* | ?:[\\/]*)
3864  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3865  ;;
3866  *)
3867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  test -z "$as_dir" && as_dir=.
3872  for ac_exec_ext in '' $ac_executable_extensions; do
3873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3875    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879done
3880IFS=$as_save_IFS
3881
3882  ;;
3883esac
3884fi
3885XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3886if test -n "$XCODE_SELECT"; then
3887  { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3888$as_echo "$XCODE_SELECT" >&6; }
3889else
3890  { $as_echo "$as_me:$LINENO: result: no" >&5
3891$as_echo "no" >&6; }
3892fi
3893
3894
3895    if test "x$XCODE_SELECT" != "x"; then
3896      { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3897$as_echo_n "checking for developer dir using xcode-select... " >&6; }
3898      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3899      { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3900$as_echo "$DEVELOPER_DIR" >&6; }
3901    else
3902      DEVELOPER_DIR=/Developer
3903    fi
3904  fi
3905
3906  if test "x$MACARCH" = "xboth"; then
3907    { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3908$as_echo_n "checking for 10.4 universal SDK... " >&6; }
3909                            save_cppflags="$CPPFLAGS"
3910    save_cflags="$CFLAGS"
3911    save_ldflags="$LDFLAGS"
3912    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3913    cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext conftest$ac_exeext
3929if { (ac_try="$ac_link"
3930case "(($ac_try" in
3931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932  *) ac_try_echo=$ac_try;;
3933esac
3934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3935$as_echo "$ac_try_echo") >&5
3936  (eval "$ac_link") 2>conftest.er1
3937  ac_status=$?
3938  grep -v '^ *+' conftest.er1 >conftest.err
3939  rm -f conftest.er1
3940  cat conftest.err >&5
3941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); } && {
3943	 test -z "$ac_c_werror_flag" ||
3944	 test ! -s conftest.err
3945       } && test -s conftest$ac_exeext && {
3946	 test "$cross_compiling" = yes ||
3947	 $as_test_x conftest$ac_exeext
3948       }; then
3949  { $as_echo "$as_me:$LINENO: result: found" >&5
3950$as_echo "found" >&6; }
3951else
3952  $as_echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955	{ $as_echo "$as_me:$LINENO: result: not found" >&5
3956$as_echo "not found" >&6; }
3957	CFLAGS="$save_cflags"
3958	{ $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3959$as_echo_n "checking if Intel architecture is supported... " >&6; }
3960	CPPFLAGS="$CPPFLAGS -arch i386"
3961	LDFLAGS="$save_ldflags -arch i386"
3962	cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h.  */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h.  */
3968
3969int
3970main ()
3971{
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977rm -f conftest.$ac_objext conftest$ac_exeext
3978if { (ac_try="$ac_link"
3979case "(($ac_try" in
3980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981  *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984$as_echo "$ac_try_echo") >&5
3985  (eval "$ac_link") 2>conftest.er1
3986  ac_status=$?
3987  grep -v '^ *+' conftest.er1 >conftest.err
3988  rm -f conftest.er1
3989  cat conftest.err >&5
3990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); } && {
3992	 test -z "$ac_c_werror_flag" ||
3993	 test ! -s conftest.err
3994       } && test -s conftest$ac_exeext && {
3995	 test "$cross_compiling" = yes ||
3996	 $as_test_x conftest$ac_exeext
3997       }; then
3998  { $as_echo "$as_me:$LINENO: result: yes" >&5
3999$as_echo "yes" >&6; }; MACARCH="intel"
4000else
4001  $as_echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004	{ $as_echo "$as_me:$LINENO: result: no" >&5
4005$as_echo "no" >&6; }
4006		MACARCH="ppc"
4007		CPPFLAGS="$save_cppflags -arch ppc"
4008		LDFLAGS="$save_ldflags -arch ppc"
4009fi
4010
4011rm -rf conftest.dSYM
4012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4013      conftest$ac_exeext conftest.$ac_ext
4014fi
4015
4016rm -rf conftest.dSYM
4017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018      conftest$ac_exeext conftest.$ac_ext
4019  elif test "x$MACARCH" = "xintel"; then
4020    CPPFLAGS="$CPPFLAGS -arch intel"
4021    LDFLAGS="$LDFLAGS -arch intel"
4022  elif test "x$MACARCH" = "xppc"; then
4023    CPPFLAGS="$CPPFLAGS -arch ppc"
4024    LDFLAGS="$LDFLAGS -arch ppc"
4025  fi
4026
4027  if test "$enable_darwin" = "yes"; then
4028    MACOSX=yes
4029    OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4030    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4031        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4032    if test "x$MACARCH" = "xboth"; then
4033      CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4034    else
4035      CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4036    fi
4037
4038                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049		  inttypes.h stdint.h unistd.h
4050do
4051as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4053$as_echo_n "checking for $ac_header... " >&6; }
4054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055  $as_echo_n "(cached) " >&6
4056else
4057  cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h.  */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h.  */
4063$ac_includes_default
4064
4065#include <$ac_header>
4066_ACEOF
4067rm -f conftest.$ac_objext
4068if { (ac_try="$ac_compile"
4069case "(($ac_try" in
4070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071  *) ac_try_echo=$ac_try;;
4072esac
4073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074$as_echo "$ac_try_echo") >&5
4075  (eval "$ac_compile") 2>conftest.er1
4076  ac_status=$?
4077  grep -v '^ *+' conftest.er1 >conftest.err
4078  rm -f conftest.er1
4079  cat conftest.err >&5
4080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); } && {
4082	 test -z "$ac_c_werror_flag" ||
4083	 test ! -s conftest.err
4084       } && test -s conftest.$ac_objext; then
4085  eval "$as_ac_Header=yes"
4086else
4087  $as_echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090	eval "$as_ac_Header=no"
4091fi
4092
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094fi
4095ac_res=`eval 'as_val=${'$as_ac_Header'}
4096		 $as_echo "$as_val"'`
4097	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4098$as_echo "$ac_res" >&6; }
4099as_val=`eval 'as_val=${'$as_ac_Header'}
4100		 $as_echo "$as_val"'`
4101   if test "x$as_val" = x""yes; then
4102  cat >>confdefs.h <<_ACEOF
4103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104_ACEOF
4105
4106fi
4107
4108done
4109
4110
4111if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4112  { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4113$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4114if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4115  $as_echo_n "(cached) " >&6
4116fi
4117{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4118$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4119else
4120  # Is the header compilable?
4121{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4122$as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4123cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h.  */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h.  */
4129$ac_includes_default
4130#include <Carbon/Carbon.h>
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136  *) ac_try_echo=$ac_try;;
4137esac
4138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139$as_echo "$ac_try_echo") >&5
4140  (eval "$ac_compile") 2>conftest.er1
4141  ac_status=$?
4142  grep -v '^ *+' conftest.er1 >conftest.err
4143  rm -f conftest.er1
4144  cat conftest.err >&5
4145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); } && {
4147	 test -z "$ac_c_werror_flag" ||
4148	 test ! -s conftest.err
4149       } && test -s conftest.$ac_objext; then
4150  ac_header_compiler=yes
4151else
4152  $as_echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155	ac_header_compiler=no
4156fi
4157
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4160$as_echo "$ac_header_compiler" >&6; }
4161
4162# Is the header present?
4163{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4164$as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4165cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171#include <Carbon/Carbon.h>
4172_ACEOF
4173if { (ac_try="$ac_cpp conftest.$ac_ext"
4174case "(($ac_try" in
4175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176  *) ac_try_echo=$ac_try;;
4177esac
4178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179$as_echo "$ac_try_echo") >&5
4180  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4181  ac_status=$?
4182  grep -v '^ *+' conftest.er1 >conftest.err
4183  rm -f conftest.er1
4184  cat conftest.err >&5
4185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); } >/dev/null && {
4187	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188	 test ! -s conftest.err
4189       }; then
4190  ac_header_preproc=yes
4191else
4192  $as_echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195  ac_header_preproc=no
4196fi
4197
4198rm -f conftest.err conftest.$ac_ext
4199{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200$as_echo "$ac_header_preproc" >&6; }
4201
4202# So?  What about this header?
4203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4204  yes:no: )
4205    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4206$as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4208$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4209    ac_header_preproc=yes
4210    ;;
4211  no:yes:* )
4212    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4213$as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4214    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
4215$as_echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
4216    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4217$as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4218    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
4219$as_echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4220    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4221$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4222    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4223$as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4224
4225    ;;
4226esac
4227{ $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4228$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4229if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4230  $as_echo_n "(cached) " >&6
4231else
4232  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4233fi
4234{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4235$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4236
4237fi
4238if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4239  CARBON=yes
4240fi
4241
4242
4243    if test "x$CARBON" = "xyes"; then
4244      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
4245	with_x=no
4246      fi
4247    fi
4248  fi
4249
4250        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4251    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4252  fi
4253
4254else
4255  { $as_echo "$as_me:$LINENO: result: no" >&5
4256$as_echo "no" >&6; }
4257fi
4258
4259
4260
4261
4262if test "$cross_compiling" = no; then
4263  { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4264$as_echo_n "checking --with-local-dir argument... " >&6; }
4265  have_local_include=''
4266  have_local_lib=''
4267
4268# Check whether --with-local-dir was given.
4269if test "${with_local_dir+set}" = set; then
4270  withval=$with_local_dir;
4271    local_dir="$withval"
4272    case "$withval" in
4273    */*) ;;
4274    no)
4275      # avoid adding local dir to LDFLAGS and CPPFLAGS
4276      have_local_dir=yes
4277      have_local_lib=yes
4278      ;;
4279    *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4280$as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4281   { (exit 1); exit 1; }; } ;;
4282    esac
4283	{ $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4284$as_echo "$local_dir" >&6; }
4285
4286else
4287
4288    local_dir=/usr/local
4289    { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4290$as_echo "Defaulting to $local_dir" >&6; }
4291
4292fi
4293
4294  if test "$GCC" = yes -a "$local_dir" != no; then
4295    echo 'void f(){}' > conftest.c
4296        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4297    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4298    rm -f conftest.c conftest.o
4299  fi
4300  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4301    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4302    if test "$tt" = "$LDFLAGS"; then
4303      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4304    fi
4305  fi
4306  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4307    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4308    if test "$tt" = "$CPPFLAGS"; then
4309      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4310    fi
4311  fi
4312fi
4313
4314{ $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4315$as_echo_n "checking --with-vim-name argument... " >&6; }
4316
4317# Check whether --with-vim-name was given.
4318if test "${with_vim_name+set}" = set; then
4319  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4320$as_echo "$VIMNAME" >&6; }
4321else
4322  VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4323$as_echo "Defaulting to $VIMNAME" >&6; }
4324fi
4325
4326
4327{ $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4328$as_echo_n "checking --with-ex-name argument... " >&6; }
4329
4330# Check whether --with-ex-name was given.
4331if test "${with_ex_name+set}" = set; then
4332  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4333$as_echo "$EXNAME" >&6; }
4334else
4335  EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4336$as_echo "Defaulting to ex" >&6; }
4337fi
4338
4339
4340{ $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4341$as_echo_n "checking --with-view-name argument... " >&6; }
4342
4343# Check whether --with-view-name was given.
4344if test "${with_view_name+set}" = set; then
4345  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4346$as_echo "$VIEWNAME" >&6; }
4347else
4348  VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4349$as_echo "Defaulting to view" >&6; }
4350fi
4351
4352
4353
4354{ $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4355$as_echo_n "checking --with-global-runtime argument... " >&6; }
4356
4357# Check whether --with-global-runtime was given.
4358if test "${with_global_runtime+set}" = set; then
4359  withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4360$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4361#define RUNTIME_GLOBAL "$withval"
4362_ACEOF
4363
4364else
4365  { $as_echo "$as_me:$LINENO: result: no" >&5
4366$as_echo "no" >&6; }
4367fi
4368
4369
4370{ $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4371$as_echo_n "checking --with-modified-by argument... " >&6; }
4372
4373# Check whether --with-modified-by was given.
4374if test "${with_modified_by+set}" = set; then
4375  withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4376$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4377#define MODIFIED_BY "$withval"
4378_ACEOF
4379
4380else
4381  { $as_echo "$as_me:$LINENO: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
4384
4385
4386{ $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4387$as_echo_n "checking if character set is EBCDIC... " >&6; }
4388cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h.  */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h.  */
4394
4395int
4396main ()
4397{
4398 /* TryCompile function for CharSet.
4399   Treat any failure as ASCII for compatibility with existing art.
4400   Use compile-time rather than run-time tests for cross-compiler
4401   tolerance.  */
4402#if '0'!=240
4403make an error "Character set is not EBCDIC"
4404#endif
4405  ;
4406  return 0;
4407}
4408_ACEOF
4409rm -f conftest.$ac_objext
4410if { (ac_try="$ac_compile"
4411case "(($ac_try" in
4412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413  *) ac_try_echo=$ac_try;;
4414esac
4415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416$as_echo "$ac_try_echo") >&5
4417  (eval "$ac_compile") 2>conftest.er1
4418  ac_status=$?
4419  grep -v '^ *+' conftest.er1 >conftest.err
4420  rm -f conftest.er1
4421  cat conftest.err >&5
4422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); } && {
4424	 test -z "$ac_c_werror_flag" ||
4425	 test ! -s conftest.err
4426       } && test -s conftest.$ac_objext; then
4427   # TryCompile action if true
4428cf_cv_ebcdic=yes
4429else
4430  $as_echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433	 # TryCompile action if false
4434cf_cv_ebcdic=no
4435fi
4436
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438# end of TryCompile ])
4439# end of CacheVal CvEbcdic
4440{ $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4441$as_echo "$cf_cv_ebcdic" >&6; }
4442case "$cf_cv_ebcdic" in  #(vi
4443    yes)	cat >>confdefs.h <<\_ACEOF
4444#define EBCDIC 1
4445_ACEOF
4446
4447		line_break='"\\n"'
4448		;;
4449    *)		line_break='"\\012"';;
4450esac
4451
4452
4453if test "$cf_cv_ebcdic" = "yes"; then
4454{ $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4455$as_echo_n "checking for OS/390 Unix... " >&6; }
4456case `uname` in
4457    OS/390)	OS390Unix="yes";
4458										if test "$CC" = "cc"; then
4459		  ccm="$_CC_CCMODE"
4460		  ccn="CC"
4461		else
4462		  if test "$CC" = "c89"; then
4463		    ccm="$_CC_C89MODE"
4464		    ccn="C89"
4465		  else
4466		    ccm=1
4467		  fi
4468		fi
4469		if test "$ccm" != "1"; then
4470		  echo ""
4471		  echo "------------------------------------------"
4472		  echo " On OS/390 Unix, the environment variable"
4473		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4474		  echo " Do:"
4475		  echo "    export _CC_${ccn}MODE=1"
4476		  echo " and then call configure again."
4477		  echo "------------------------------------------"
4478		  exit 1
4479		fi
4480		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4481		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4482$as_echo "yes" >&6; }
4483		;;
4484    *)		OS390Unix="no";
4485		{ $as_echo "$as_me:$LINENO: result: no" >&5
4486$as_echo "no" >&6; }
4487		;;
4488esac
4489fi
4490
4491{ $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4492$as_echo_n "checking --disable-selinux argument... " >&6; }
4493# Check whether --enable-selinux was given.
4494if test "${enable_selinux+set}" = set; then
4495  enableval=$enable_selinux;
4496else
4497  enable_selinux="yes"
4498fi
4499
4500if test "$enable_selinux" = "yes"; then
4501  { $as_echo "$as_me:$LINENO: result: no" >&5
4502$as_echo "no" >&6; }
4503  { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4504$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4505if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4506  $as_echo_n "(cached) " >&6
4507else
4508  ac_check_lib_save_LIBS=$LIBS
4509LIBS="-lselinux  $LIBS"
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516
4517/* Override any GCC internal prototype to avoid an error.
4518   Use char because int might match the return type of a GCC
4519   builtin and then its argument prototype would still apply.  */
4520#ifdef __cplusplus
4521extern "C"
4522#endif
4523char is_selinux_enabled ();
4524int
4525main ()
4526{
4527return is_selinux_enabled ();
4528  ;
4529  return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext conftest$ac_exeext
4533if { (ac_try="$ac_link"
4534case "(($ac_try" in
4535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536  *) ac_try_echo=$ac_try;;
4537esac
4538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539$as_echo "$ac_try_echo") >&5
4540  (eval "$ac_link") 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } && {
4547	 test -z "$ac_c_werror_flag" ||
4548	 test ! -s conftest.err
4549       } && test -s conftest$ac_exeext && {
4550	 test "$cross_compiling" = yes ||
4551	 $as_test_x conftest$ac_exeext
4552       }; then
4553  ac_cv_lib_selinux_is_selinux_enabled=yes
4554else
4555  $as_echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558	ac_cv_lib_selinux_is_selinux_enabled=no
4559fi
4560
4561rm -rf conftest.dSYM
4562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4563      conftest$ac_exeext conftest.$ac_ext
4564LIBS=$ac_check_lib_save_LIBS
4565fi
4566{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4567$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4568if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4569  LIBS="$LIBS -lselinux"
4570	   cat >>confdefs.h <<\_ACEOF
4571#define HAVE_SELINUX 1
4572_ACEOF
4573
4574fi
4575
4576else
4577   { $as_echo "$as_me:$LINENO: result: yes" >&5
4578$as_echo "yes" >&6; }
4579fi
4580
4581
4582{ $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4583$as_echo_n "checking --with-features argument... " >&6; }
4584
4585# Check whether --with-features was given.
4586if test "${with_features+set}" = set; then
4587  withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4588$as_echo "$features" >&6; }
4589else
4590  features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4591$as_echo "Defaulting to normal" >&6; }
4592fi
4593
4594
4595dovimdiff=""
4596dogvimdiff=""
4597case "$features" in
4598  tiny)		cat >>confdefs.h <<\_ACEOF
4599#define FEAT_TINY 1
4600_ACEOF
4601 ;;
4602  small)	cat >>confdefs.h <<\_ACEOF
4603#define FEAT_SMALL 1
4604_ACEOF
4605 ;;
4606  normal)	cat >>confdefs.h <<\_ACEOF
4607#define FEAT_NORMAL 1
4608_ACEOF
4609 dovimdiff="installvimdiff";
4610			dogvimdiff="installgvimdiff" ;;
4611  big)		cat >>confdefs.h <<\_ACEOF
4612#define FEAT_BIG 1
4613_ACEOF
4614 dovimdiff="installvimdiff";
4615			dogvimdiff="installgvimdiff" ;;
4616  huge)		cat >>confdefs.h <<\_ACEOF
4617#define FEAT_HUGE 1
4618_ACEOF
4619 dovimdiff="installvimdiff";
4620			dogvimdiff="installgvimdiff" ;;
4621  *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4622$as_echo "Sorry, $features is not supported" >&6; } ;;
4623esac
4624
4625
4626
4627
4628{ $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4629$as_echo_n "checking --with-compiledby argument... " >&6; }
4630
4631# Check whether --with-compiledby was given.
4632if test "${with_compiledby+set}" = set; then
4633  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4634$as_echo "$withval" >&6; }
4635else
4636  compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641
4642{ $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4643$as_echo_n "checking --disable-xsmp argument... " >&6; }
4644# Check whether --enable-xsmp was given.
4645if test "${enable_xsmp+set}" = set; then
4646  enableval=$enable_xsmp;
4647else
4648  enable_xsmp="yes"
4649fi
4650
4651
4652if test "$enable_xsmp" = "yes"; then
4653  { $as_echo "$as_me:$LINENO: result: no" >&5
4654$as_echo "no" >&6; }
4655  { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4656$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4657  # Check whether --enable-xsmp-interact was given.
4658if test "${enable_xsmp_interact+set}" = set; then
4659  enableval=$enable_xsmp_interact;
4660else
4661  enable_xsmp_interact="yes"
4662fi
4663
4664  if test "$enable_xsmp_interact" = "yes"; then
4665    { $as_echo "$as_me:$LINENO: result: no" >&5
4666$as_echo "no" >&6; }
4667    cat >>confdefs.h <<\_ACEOF
4668#define USE_XSMP_INTERACT 1
4669_ACEOF
4670
4671  else
4672    { $as_echo "$as_me:$LINENO: result: yes" >&5
4673$as_echo "yes" >&6; }
4674  fi
4675else
4676  { $as_echo "$as_me:$LINENO: result: yes" >&5
4677$as_echo "yes" >&6; }
4678fi
4679
4680{ $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4681$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4682# Check whether --enable-mzschemeinterp was given.
4683if test "${enable_mzschemeinterp+set}" = set; then
4684  enableval=$enable_mzschemeinterp;
4685else
4686  enable_mzschemeinterp="no"
4687fi
4688
4689{ $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4690$as_echo "$enable_mzschemeinterp" >&6; }
4691
4692if test "$enable_mzschemeinterp" = "yes"; then
4693
4694
4695  { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4696$as_echo_n "checking --with-plthome argument... " >&6; }
4697
4698# Check whether --with-plthome was given.
4699if test "${with_plthome+set}" = set; then
4700  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4701$as_echo "$with_plthome" >&6; }
4702else
4703  with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4704$as_echo "\"no\"" >&6; }
4705fi
4706
4707
4708  if test "X$with_plthome" != "X"; then
4709       vi_cv_path_mzscheme_pfx="$with_plthome"
4710  else
4711    { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4712$as_echo_n "checking PLTHOME environment var... " >&6; }
4713    if test "X$PLTHOME" != "X"; then
4714	{ $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4715$as_echo "\"$PLTHOME\"" >&6; }
4716	vi_cv_path_mzscheme_pfx="$PLTHOME"
4717    else
4718	{ $as_echo "$as_me:$LINENO: result: not set" >&5
4719$as_echo "not set" >&6; }
4720		# Extract the first word of "mzscheme", so it can be a program name with args.
4721set dummy mzscheme; ac_word=$2
4722{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4725  $as_echo_n "(cached) " >&6
4726else
4727  case $vi_cv_path_mzscheme in
4728  [\\/]* | ?:[\\/]*)
4729  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4730  ;;
4731  *)
4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737  for ac_exec_ext in '' $ac_executable_extensions; do
4738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4740    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741    break 2
4742  fi
4743done
4744done
4745IFS=$as_save_IFS
4746
4747  ;;
4748esac
4749fi
4750vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4751if test -n "$vi_cv_path_mzscheme"; then
4752  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4753$as_echo "$vi_cv_path_mzscheme" >&6; }
4754else
4755  { $as_echo "$as_me:$LINENO: result: no" >&5
4756$as_echo "no" >&6; }
4757fi
4758
4759
4760
4761			if test "X$vi_cv_path_mzscheme" != "X"; then
4762	  lsout=`ls -l $vi_cv_path_mzscheme`
4763	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4764	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4765	  fi
4766	fi
4767
4768	if test "X$vi_cv_path_mzscheme" != "X"; then
4769	    	    { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4770$as_echo_n "checking MzScheme install prefix... " >&6; }
4771if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4772  $as_echo_n "(cached) " >&6
4773else
4774  	    	    echo "(display (simplify-path		\
4775	       (build-path (call-with-values	\
4776		(lambda () (split-path (find-system-path (quote exec-file)))) \
4777		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4778	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4779		sed -e 's+/$++'`
4780fi
4781{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4782$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4783	    rm -f mzdirs.scm
4784	fi
4785    fi
4786  fi
4787
4788  SCHEME_INC=
4789  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4790    { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4791$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4792    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4793      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4794      { $as_echo "$as_me:$LINENO: result: yes" >&5
4795$as_echo "yes" >&6; }
4796    else
4797      { $as_echo "$as_me:$LINENO: result: no" >&5
4798$as_echo "no" >&6; }
4799      { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4800$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4801      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4802	{ $as_echo "$as_me:$LINENO: result: yes" >&5
4803$as_echo "yes" >&6; }
4804	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4805      else
4806	{ $as_echo "$as_me:$LINENO: result: no" >&5
4807$as_echo "no" >&6; }
4808	{ $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4809$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4810	if test -f /usr/include/plt/scheme.h; then
4811	  { $as_echo "$as_me:$LINENO: result: yes" >&5
4812$as_echo "yes" >&6; }
4813	  SCHEME_INC=/usr/include/plt
4814	else
4815	  { $as_echo "$as_me:$LINENO: result: no" >&5
4816$as_echo "no" >&6; }
4817	  vi_cv_path_mzscheme_pfx=
4818	fi
4819      fi
4820    fi
4821  fi
4822
4823  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4824    if test "x$MACOSX" = "xyes"; then
4825      MZSCHEME_LIBS="-framework PLT_MzScheme"
4826    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4827      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4828      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4829    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4830      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4831    else
4832            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4833        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4834	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4835      else
4836        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4837      fi
4838      if test "$GCC" = yes; then
4839			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4840      elif test "`(uname) 2>/dev/null`" = SunOS &&
4841			       uname -r | grep '^5' >/dev/null; then
4842	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4843      fi
4844    fi
4845    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4846      SCHEME_COLLECTS=lib/plt/
4847    fi
4848    if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4849            MZSCHEME_EXTRA="mzscheme_base.c"
4850      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4851      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4852    fi
4853    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4854      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4855    MZSCHEME_SRC="if_mzsch.c"
4856    MZSCHEME_OBJ="objects/if_mzsch.o"
4857    MZSCHEME_PRO="if_mzsch.pro"
4858    cat >>confdefs.h <<\_ACEOF
4859#define FEAT_MZSCHEME 1
4860_ACEOF
4861
4862  fi
4863
4864
4865
4866
4867
4868
4869
4870fi
4871
4872
4873{ $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4874$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4875# Check whether --enable-perlinterp was given.
4876if test "${enable_perlinterp+set}" = set; then
4877  enableval=$enable_perlinterp;
4878else
4879  enable_perlinterp="no"
4880fi
4881
4882{ $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4883$as_echo "$enable_perlinterp" >&6; }
4884if test "$enable_perlinterp" = "yes"; then
4885
4886  # Extract the first word of "perl", so it can be a program name with args.
4887set dummy perl; ac_word=$2
4888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4889$as_echo_n "checking for $ac_word... " >&6; }
4890if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4891  $as_echo_n "(cached) " >&6
4892else
4893  case $vi_cv_path_perl in
4894  [\\/]* | ?:[\\/]*)
4895  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4896  ;;
4897  *)
4898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903  for ac_exec_ext in '' $ac_executable_extensions; do
4904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4906    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910done
4911IFS=$as_save_IFS
4912
4913  ;;
4914esac
4915fi
4916vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4917if test -n "$vi_cv_path_perl"; then
4918  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4919$as_echo "$vi_cv_path_perl" >&6; }
4920else
4921  { $as_echo "$as_me:$LINENO: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925
4926  if test "X$vi_cv_path_perl" != "X"; then
4927    { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4928$as_echo_n "checking Perl version... " >&6; }
4929    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4930     eval `$vi_cv_path_perl -V:usethreads`
4931     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4932       badthreads=no
4933     else
4934       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4935	 eval `$vi_cv_path_perl -V:use5005threads`
4936	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4937	   badthreads=no
4938	 else
4939	   badthreads=yes
4940	   { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4941$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4942	 fi
4943       else
4944	 badthreads=yes
4945	 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4946$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4947       fi
4948     fi
4949     if test $badthreads = no; then
4950      { $as_echo "$as_me:$LINENO: result: OK" >&5
4951$as_echo "OK" >&6; }
4952      eval `$vi_cv_path_perl -V:shrpenv`
4953      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4954	shrpenv=""
4955      fi
4956      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4957
4958            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4959	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4960            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4961		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4962			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4963                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4964		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4965
4966                  { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4967$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4968      cflags_save=$CFLAGS
4969      libs_save=$LIBS
4970      ldflags_save=$LDFLAGS
4971      CFLAGS="$CFLAGS $perlcppflags"
4972      LIBS="$LIBS $perllibs"
4973      LDFLAGS="$perlldflags $LDFLAGS"
4974      cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980
4981int
4982main ()
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (ac_try="$ac_link"
4991case "(($ac_try" in
4992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993  *) ac_try_echo=$ac_try;;
4994esac
4995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996$as_echo "$ac_try_echo") >&5
4997  (eval "$ac_link") 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } && {
5004	 test -z "$ac_c_werror_flag" ||
5005	 test ! -s conftest.err
5006       } && test -s conftest$ac_exeext && {
5007	 test "$cross_compiling" = yes ||
5008	 $as_test_x conftest$ac_exeext
5009       }; then
5010  { $as_echo "$as_me:$LINENO: result: yes" >&5
5011$as_echo "yes" >&6; }; perl_ok=yes
5012else
5013  $as_echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016	{ $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5017$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5018fi
5019
5020rm -rf conftest.dSYM
5021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022      conftest$ac_exeext conftest.$ac_ext
5023      CFLAGS=$cflags_save
5024      LIBS=$libs_save
5025      LDFLAGS=$ldflags_save
5026      if test $perl_ok = yes; then
5027	if test "X$perlcppflags" != "X"; then
5028	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5029	fi
5030	if test "X$perlldflags" != "X"; then
5031	  LDFLAGS="$perlldflags $LDFLAGS"
5032	fi
5033	PERL_LIBS=$perllibs
5034	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5035	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5036	PERL_PRO="if_perl.pro if_perlsfio.pro"
5037	cat >>confdefs.h <<\_ACEOF
5038#define FEAT_PERL 1
5039_ACEOF
5040
5041      fi
5042     fi
5043    else
5044      { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5045$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5046    fi
5047  fi
5048
5049  if test "x$MACOSX" = "xyes"; then
5050        dir=/System/Library/Perl
5051    darwindir=$dir/darwin
5052    if test -d $darwindir; then
5053      PERL=/usr/bin/perl
5054    else
5055            dir=/System/Library/Perl/5.8.1
5056      darwindir=$dir/darwin-thread-multi-2level
5057      if test -d $darwindir; then
5058	PERL=/usr/bin/perl
5059      fi
5060    fi
5061    if test -n "$PERL"; then
5062      PERL_DIR="$dir"
5063      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5064      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5065      PERL_LIBS="-L$darwindir/CORE -lperl"
5066    fi
5067  fi
5068fi
5069
5070
5071
5072
5073
5074
5075
5076{ $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5077$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5078# Check whether --enable-pythoninterp was given.
5079if test "${enable_pythoninterp+set}" = set; then
5080  enableval=$enable_pythoninterp;
5081else
5082  enable_pythoninterp="no"
5083fi
5084
5085{ $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5086$as_echo "$enable_pythoninterp" >&6; }
5087if test "$enable_pythoninterp" = "yes"; then
5088    # Extract the first word of "python", so it can be a program name with args.
5089set dummy python; ac_word=$2
5090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5091$as_echo_n "checking for $ac_word... " >&6; }
5092if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5093  $as_echo_n "(cached) " >&6
5094else
5095  case $vi_cv_path_python in
5096  [\\/]* | ?:[\\/]*)
5097  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5098  ;;
5099  *)
5100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105  for ac_exec_ext in '' $ac_executable_extensions; do
5106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5108    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112done
5113IFS=$as_save_IFS
5114
5115  ;;
5116esac
5117fi
5118vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5119if test -n "$vi_cv_path_python"; then
5120  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5121$as_echo "$vi_cv_path_python" >&6; }
5122else
5123  { $as_echo "$as_me:$LINENO: result: no" >&5
5124$as_echo "no" >&6; }
5125fi
5126
5127
5128  if test "X$vi_cv_path_python" != "X"; then
5129
5130        { $as_echo "$as_me:$LINENO: checking Python version" >&5
5131$as_echo_n "checking Python version... " >&6; }
5132if test "${vi_cv_var_python_version+set}" = set; then
5133  $as_echo_n "(cached) " >&6
5134else
5135  vi_cv_var_python_version=`
5136	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5137
5138fi
5139{ $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5140$as_echo "$vi_cv_var_python_version" >&6; }
5141
5142        { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5143$as_echo_n "checking Python is 1.4 or better... " >&6; }
5144    if ${vi_cv_path_python} -c \
5145	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5146    then
5147      { $as_echo "$as_me:$LINENO: result: yep" >&5
5148$as_echo "yep" >&6; }
5149
5150            { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5151$as_echo_n "checking Python's install prefix... " >&6; }
5152if test "${vi_cv_path_python_pfx+set}" = set; then
5153  $as_echo_n "(cached) " >&6
5154else
5155   vi_cv_path_python_pfx=`
5156	    ${vi_cv_path_python} -c \
5157		"import sys; print sys.prefix"`
5158fi
5159{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5160$as_echo "$vi_cv_path_python_pfx" >&6; }
5161
5162            { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5163$as_echo_n "checking Python's execution prefix... " >&6; }
5164if test "${vi_cv_path_python_epfx+set}" = set; then
5165  $as_echo_n "(cached) " >&6
5166else
5167   vi_cv_path_python_epfx=`
5168	    ${vi_cv_path_python} -c \
5169		"import sys; print sys.exec_prefix"`
5170fi
5171{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5172$as_echo "$vi_cv_path_python_epfx" >&6; }
5173
5174
5175      if test "${vi_cv_path_pythonpath+set}" = set; then
5176  $as_echo_n "(cached) " >&6
5177else
5178   vi_cv_path_pythonpath=`
5179	    unset PYTHONPATH;
5180	    ${vi_cv_path_python} -c \
5181		"import sys, string; print string.join(sys.path,':')"`
5182fi
5183
5184
5185
5186
5187# Check whether --with-python-config-dir was given.
5188if test "${with_python_config_dir+set}" = set; then
5189  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5190fi
5191
5192
5193      { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5194$as_echo_n "checking Python's configuration directory... " >&6; }
5195if test "${vi_cv_path_python_conf+set}" = set; then
5196  $as_echo_n "(cached) " >&6
5197else
5198
5199	vi_cv_path_python_conf=
5200	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5201	  for subdir in lib64 lib share; do
5202	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5203	    if test -d "$d" && test -f "$d/config.c"; then
5204	      vi_cv_path_python_conf="$d"
5205	    fi
5206	  done
5207	done
5208
5209fi
5210{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5211$as_echo "$vi_cv_path_python_conf" >&6; }
5212
5213      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5214
5215      if test "X$PYTHON_CONFDIR" = "X"; then
5216	{ $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5217$as_echo "can't find it!" >&6; }
5218      else
5219
5220			if test "${vi_cv_path_python_plibs+set}" = set; then
5221  $as_echo_n "(cached) " >&6
5222else
5223
5224	    pwd=`pwd`
5225	    tmp_mkf="$pwd/config-PyMake$$"
5226	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5227__:
5228	@echo "python_MODLIBS='$(MODLIBS)'"
5229	@echo "python_LIBS='$(LIBS)'"
5230	@echo "python_SYSLIBS='$(SYSLIBS)'"
5231	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5232eof
5233	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5234	    rm -f -- "${tmp_mkf}"
5235	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5236		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5237	      vi_cv_path_python_plibs="-framework Python"
5238	    else
5239	      if test "${vi_cv_var_python_version}" = "1.4"; then
5240		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5241	      else
5242		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5243	      fi
5244	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5245	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5246	    fi
5247
5248fi
5249
5250
5251	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5252	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5253	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5254	else
5255	  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}"
5256	fi
5257	PYTHON_SRC="if_python.c"
5258		if test "x$MACOSX" = "xyes"; then
5259	  PYTHON_OBJ="objects/if_python.o"
5260	else
5261	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5262	fi
5263	if test "${vi_cv_var_python_version}" = "1.4"; then
5264	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5265	fi
5266	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5267
5268								{ $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5269$as_echo_n "checking if -pthread should be used... " >&6; }
5270	threadsafe_flag=
5271	thread_lib=
5272	        if test "`(uname) 2>/dev/null`" != Darwin; then
5273	  test "$GCC" = yes && threadsafe_flag="-pthread"
5274	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5275	    threadsafe_flag="-D_THREAD_SAFE"
5276	    thread_lib="-pthread"
5277	  fi
5278	fi
5279	libs_save_old=$LIBS
5280	if test -n "$threadsafe_flag"; then
5281	  cflags_save=$CFLAGS
5282	  CFLAGS="$CFLAGS $threadsafe_flag"
5283	  LIBS="$LIBS $thread_lib"
5284	  cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h.  */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h.  */
5290
5291int
5292main ()
5293{
5294
5295  ;
5296  return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext conftest$ac_exeext
5300if { (ac_try="$ac_link"
5301case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306$as_echo "$ac_try_echo") >&5
5307  (eval "$ac_link") 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } && {
5314	 test -z "$ac_c_werror_flag" ||
5315	 test ! -s conftest.err
5316       } && test -s conftest$ac_exeext && {
5317	 test "$cross_compiling" = yes ||
5318	 $as_test_x conftest$ac_exeext
5319       }; then
5320  { $as_echo "$as_me:$LINENO: result: yes" >&5
5321$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5322else
5323  $as_echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326	{ $as_echo "$as_me:$LINENO: result: no" >&5
5327$as_echo "no" >&6; }; LIBS=$libs_save_old
5328
5329fi
5330
5331rm -rf conftest.dSYM
5332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5333      conftest$ac_exeext conftest.$ac_ext
5334	  CFLAGS=$cflags_save
5335	else
5336	  { $as_echo "$as_me:$LINENO: result: no" >&5
5337$as_echo "no" >&6; }
5338	fi
5339
5340			{ $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5341$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5342	cflags_save=$CFLAGS
5343	libs_save=$LIBS
5344	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5345	LIBS="$LIBS $PYTHON_LIBS"
5346	cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h.  */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h.  */
5352
5353int
5354main ()
5355{
5356
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361rm -f conftest.$ac_objext conftest$ac_exeext
5362if { (ac_try="$ac_link"
5363case "(($ac_try" in
5364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365  *) ac_try_echo=$ac_try;;
5366esac
5367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368$as_echo "$ac_try_echo") >&5
5369  (eval "$ac_link") 2>conftest.er1
5370  ac_status=$?
5371  grep -v '^ *+' conftest.er1 >conftest.err
5372  rm -f conftest.er1
5373  cat conftest.err >&5
5374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); } && {
5376	 test -z "$ac_c_werror_flag" ||
5377	 test ! -s conftest.err
5378       } && test -s conftest$ac_exeext && {
5379	 test "$cross_compiling" = yes ||
5380	 $as_test_x conftest$ac_exeext
5381       }; then
5382  { $as_echo "$as_me:$LINENO: result: yes" >&5
5383$as_echo "yes" >&6; }; python_ok=yes
5384else
5385  $as_echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388	{ $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5389$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5390fi
5391
5392rm -rf conftest.dSYM
5393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394      conftest$ac_exeext conftest.$ac_ext
5395	CFLAGS=$cflags_save
5396	LIBS=$libs_save
5397	if test $python_ok = yes; then
5398	  cat >>confdefs.h <<\_ACEOF
5399#define FEAT_PYTHON 1
5400_ACEOF
5401
5402	else
5403	  LIBS=$libs_save_old
5404	  PYTHON_SRC=
5405	  PYTHON_OBJ=
5406	  PYTHON_LIBS=
5407	  PYTHON_CFLAGS=
5408	fi
5409
5410      fi
5411    else
5412      { $as_echo "$as_me:$LINENO: result: too old" >&5
5413$as_echo "too old" >&6; }
5414    fi
5415  fi
5416fi
5417
5418
5419
5420
5421
5422
5423
5424{ $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5425$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5426# Check whether --enable-tclinterp was given.
5427if test "${enable_tclinterp+set}" = set; then
5428  enableval=$enable_tclinterp;
5429else
5430  enable_tclinterp="no"
5431fi
5432
5433{ $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5434$as_echo "$enable_tclinterp" >&6; }
5435
5436if test "$enable_tclinterp" = "yes"; then
5437
5438    { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5439$as_echo_n "checking --with-tclsh argument... " >&6; }
5440
5441# Check whether --with-tclsh was given.
5442if test "${with_tclsh+set}" = set; then
5443  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5444$as_echo "$tclsh_name" >&6; }
5445else
5446  tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5451set dummy $tclsh_name; ac_word=$2
5452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
5454if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5455  $as_echo_n "(cached) " >&6
5456else
5457  case $vi_cv_path_tcl in
5458  [\\/]* | ?:[\\/]*)
5459  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5460  ;;
5461  *)
5462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467  for ac_exec_ext in '' $ac_executable_extensions; do
5468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5470    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471    break 2
5472  fi
5473done
5474done
5475IFS=$as_save_IFS
5476
5477  ;;
5478esac
5479fi
5480vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5481if test -n "$vi_cv_path_tcl"; then
5482  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5483$as_echo "$vi_cv_path_tcl" >&6; }
5484else
5485  { $as_echo "$as_me:$LINENO: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490
5491
5492    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5493    tclsh_name="tclsh8.4"
5494    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5495set dummy $tclsh_name; ac_word=$2
5496{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5499  $as_echo_n "(cached) " >&6
5500else
5501  case $vi_cv_path_tcl in
5502  [\\/]* | ?:[\\/]*)
5503  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5504  ;;
5505  *)
5506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511  for ac_exec_ext in '' $ac_executable_extensions; do
5512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5514    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515    break 2
5516  fi
5517done
5518done
5519IFS=$as_save_IFS
5520
5521  ;;
5522esac
5523fi
5524vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5525if test -n "$vi_cv_path_tcl"; then
5526  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5527$as_echo "$vi_cv_path_tcl" >&6; }
5528else
5529  { $as_echo "$as_me:$LINENO: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534  fi
5535  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5536    tclsh_name="tclsh8.2"
5537    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5538set dummy $tclsh_name; ac_word=$2
5539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5542  $as_echo_n "(cached) " >&6
5543else
5544  case $vi_cv_path_tcl in
5545  [\\/]* | ?:[\\/]*)
5546  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5547  ;;
5548  *)
5549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  test -z "$as_dir" && as_dir=.
5554  for ac_exec_ext in '' $ac_executable_extensions; do
5555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5557    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558    break 2
5559  fi
5560done
5561done
5562IFS=$as_save_IFS
5563
5564  ;;
5565esac
5566fi
5567vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5568if test -n "$vi_cv_path_tcl"; then
5569  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5570$as_echo "$vi_cv_path_tcl" >&6; }
5571else
5572  { $as_echo "$as_me:$LINENO: result: no" >&5
5573$as_echo "no" >&6; }
5574fi
5575
5576
5577  fi
5578  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5579    tclsh_name="tclsh8.0"
5580    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5581set dummy $tclsh_name; ac_word=$2
5582{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5585  $as_echo_n "(cached) " >&6
5586else
5587  case $vi_cv_path_tcl in
5588  [\\/]* | ?:[\\/]*)
5589  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5590  ;;
5591  *)
5592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595  IFS=$as_save_IFS
5596  test -z "$as_dir" && as_dir=.
5597  for ac_exec_ext in '' $ac_executable_extensions; do
5598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5600    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601    break 2
5602  fi
5603done
5604done
5605IFS=$as_save_IFS
5606
5607  ;;
5608esac
5609fi
5610vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5611if test -n "$vi_cv_path_tcl"; then
5612  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5613$as_echo "$vi_cv_path_tcl" >&6; }
5614else
5615  { $as_echo "$as_me:$LINENO: result: no" >&5
5616$as_echo "no" >&6; }
5617fi
5618
5619
5620  fi
5621    if test "X$vi_cv_path_tcl" = "X"; then
5622    tclsh_name="tclsh"
5623    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5624set dummy $tclsh_name; ac_word=$2
5625{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5628  $as_echo_n "(cached) " >&6
5629else
5630  case $vi_cv_path_tcl in
5631  [\\/]* | ?:[\\/]*)
5632  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5633  ;;
5634  *)
5635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640  for ac_exec_ext in '' $ac_executable_extensions; do
5641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5643    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644    break 2
5645  fi
5646done
5647done
5648IFS=$as_save_IFS
5649
5650  ;;
5651esac
5652fi
5653vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5654if test -n "$vi_cv_path_tcl"; then
5655  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5656$as_echo "$vi_cv_path_tcl" >&6; }
5657else
5658  { $as_echo "$as_me:$LINENO: result: no" >&5
5659$as_echo "no" >&6; }
5660fi
5661
5662
5663  fi
5664  if test "X$vi_cv_path_tcl" != "X"; then
5665    { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5666$as_echo_n "checking Tcl version... " >&6; }
5667    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5668      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5669      { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5670$as_echo "$tclver - OK" >&6; };
5671      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 -`
5672
5673      { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5674$as_echo_n "checking for location of Tcl include... " >&6; }
5675      if test "x$MACOSX" != "xyes"; then
5676	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5677      else
5678		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5679      fi
5680      TCL_INC=
5681      for try in $tclinc; do
5682	if test -f "$try/tcl.h"; then
5683	  { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5684$as_echo "$try/tcl.h" >&6; }
5685	  TCL_INC=$try
5686	  break
5687	fi
5688      done
5689      if test -z "$TCL_INC"; then
5690	{ $as_echo "$as_me:$LINENO: result: <not found>" >&5
5691$as_echo "<not found>" >&6; }
5692	SKIP_TCL=YES
5693      fi
5694      if test -z "$SKIP_TCL"; then
5695	{ $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5696$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5697	if test "x$MACOSX" != "xyes"; then
5698	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5699	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5700	else
5701	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5702	fi
5703	for try in $tclcnf; do
5704	  if test -f $try/tclConfig.sh; then
5705	    { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5706$as_echo "$try/tclConfig.sh" >&6; }
5707	    . $try/tclConfig.sh
5708	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5709	    	    	    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'`
5710	    break
5711	  fi
5712	done
5713	if test -z "$TCL_LIBS"; then
5714	  { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5715$as_echo "<not found>" >&6; }
5716	  { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5717$as_echo_n "checking for Tcl library by myself... " >&6; }
5718	  tcllib=`echo $tclinc | sed s/include/lib/g`
5719	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5720	  for ext in .so .a ; do
5721	    for ver in "" $tclver ; do
5722	      for try in $tcllib ; do
5723		trylib=tcl$ver$ext
5724		if test -f $try/lib$trylib ; then
5725		  { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5726$as_echo "$try/lib$trylib" >&6; }
5727		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5728		  if test "`(uname) 2>/dev/null`" = SunOS &&
5729					 uname -r | grep '^5' >/dev/null; then
5730		    TCL_LIBS="$TCL_LIBS -R $try"
5731		  fi
5732		  break 3
5733		fi
5734	      done
5735	    done
5736	  done
5737	  if test -z "$TCL_LIBS"; then
5738	    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5739$as_echo "<not found>" >&6; }
5740	    SKIP_TCL=YES
5741	  fi
5742	fi
5743	if test -z "$SKIP_TCL"; then
5744	  cat >>confdefs.h <<\_ACEOF
5745#define FEAT_TCL 1
5746_ACEOF
5747
5748	  TCL_SRC=if_tcl.c
5749	  TCL_OBJ=objects/if_tcl.o
5750	  TCL_PRO=if_tcl.pro
5751	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5752	fi
5753      fi
5754    else
5755      { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5756$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5757    fi
5758  fi
5759fi
5760
5761
5762
5763
5764
5765
5766{ $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5767$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5768# Check whether --enable-rubyinterp was given.
5769if test "${enable_rubyinterp+set}" = set; then
5770  enableval=$enable_rubyinterp;
5771else
5772  enable_rubyinterp="no"
5773fi
5774
5775{ $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5776$as_echo "$enable_rubyinterp" >&6; }
5777if test "$enable_rubyinterp" = "yes"; then
5778  { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5779$as_echo_n "checking --with-ruby-command argument... " >&6; }
5780
5781# Check whether --with-ruby-command was given.
5782if test "${with_ruby_command+set}" = set; then
5783  withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5784$as_echo "$RUBY_CMD" >&6; }
5785else
5786  RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5787$as_echo "defaulting to $RUBY_CMD" >&6; }
5788fi
5789
5790
5791  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5792set dummy $RUBY_CMD; ac_word=$2
5793{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
5795if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5796  $as_echo_n "(cached) " >&6
5797else
5798  case $vi_cv_path_ruby in
5799  [\\/]* | ?:[\\/]*)
5800  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5801  ;;
5802  *)
5803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806  IFS=$as_save_IFS
5807  test -z "$as_dir" && as_dir=.
5808  for ac_exec_ext in '' $ac_executable_extensions; do
5809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5811    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812    break 2
5813  fi
5814done
5815done
5816IFS=$as_save_IFS
5817
5818  ;;
5819esac
5820fi
5821vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5822if test -n "$vi_cv_path_ruby"; then
5823  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5824$as_echo "$vi_cv_path_ruby" >&6; }
5825else
5826  { $as_echo "$as_me:$LINENO: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831  if test "X$vi_cv_path_ruby" != "X"; then
5832    { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5833$as_echo_n "checking Ruby version... " >&6; }
5834    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5835      { $as_echo "$as_me:$LINENO: result: OK" >&5
5836$as_echo "OK" >&6; }
5837      { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5838$as_echo_n "checking Ruby header files... " >&6; }
5839      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5840      if test "X$rubyhdrdir" != "X"; then
5841	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5842$as_echo "$rubyhdrdir" >&6; }
5843	RUBY_CFLAGS="-I$rubyhdrdir"
5844        rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5845        if test -d "$rubyhdrdir/$rubyarch"; then
5846          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5847        fi
5848        rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5849        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5850	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5851	if test "X$rubylibs" != "X"; then
5852	  RUBY_LIBS="$rubylibs"
5853	fi
5854	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5855	if test -f "$rubyhdrdir/$librubyarg"; then
5856	  librubyarg="$rubyhdrdir/$librubyarg"
5857	else
5858	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5859	  if test -f "$rubylibdir/$librubyarg"; then
5860	    librubyarg="$rubylibdir/$librubyarg"
5861	  elif test "$librubyarg" = "libruby.a"; then
5862	    	    librubyarg="-lruby"
5863	  else
5864	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5865	  fi
5866	fi
5867
5868	if test "X$librubyarg" != "X"; then
5869	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
5870	fi
5871	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5872	if test "X$rubyldflags" != "X"; then
5873	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5874	  if test "X$rubyldflags" != "X"; then
5875	    LDFLAGS="$rubyldflags $LDFLAGS"
5876	  fi
5877	fi
5878	RUBY_SRC="if_ruby.c"
5879	RUBY_OBJ="objects/if_ruby.o"
5880	RUBY_PRO="if_ruby.pro"
5881	cat >>confdefs.h <<\_ACEOF
5882#define FEAT_RUBY 1
5883_ACEOF
5884
5885      else
5886	{ $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5887$as_echo "not found; disabling Ruby" >&6; }
5888      fi
5889    else
5890      { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5891$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5892    fi
5893  fi
5894fi
5895
5896
5897
5898
5899
5900
5901{ $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5902$as_echo_n "checking --enable-cscope argument... " >&6; }
5903# Check whether --enable-cscope was given.
5904if test "${enable_cscope+set}" = set; then
5905  enableval=$enable_cscope;
5906else
5907  enable_cscope="no"
5908fi
5909
5910{ $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5911$as_echo "$enable_cscope" >&6; }
5912if test "$enable_cscope" = "yes"; then
5913  cat >>confdefs.h <<\_ACEOF
5914#define FEAT_CSCOPE 1
5915_ACEOF
5916
5917fi
5918
5919{ $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5920$as_echo_n "checking --enable-workshop argument... " >&6; }
5921# Check whether --enable-workshop was given.
5922if test "${enable_workshop+set}" = set; then
5923  enableval=$enable_workshop;
5924else
5925  enable_workshop="no"
5926fi
5927
5928{ $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5929$as_echo "$enable_workshop" >&6; }
5930if test "$enable_workshop" = "yes"; then
5931  cat >>confdefs.h <<\_ACEOF
5932#define FEAT_SUN_WORKSHOP 1
5933_ACEOF
5934
5935  WORKSHOP_SRC="workshop.c integration.c"
5936
5937  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5938
5939  if test "${enable_gui-xxx}" = xxx; then
5940    enable_gui=motif
5941  fi
5942fi
5943
5944{ $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5945$as_echo_n "checking --disable-netbeans argument... " >&6; }
5946# Check whether --enable-netbeans was given.
5947if test "${enable_netbeans+set}" = set; then
5948  enableval=$enable_netbeans;
5949else
5950  enable_netbeans="yes"
5951fi
5952
5953if test "$enable_netbeans" = "yes"; then
5954  { $as_echo "$as_me:$LINENO: result: no" >&5
5955$as_echo "no" >&6; }
5956
5957{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5958$as_echo_n "checking for socket in -lsocket... " >&6; }
5959if test "${ac_cv_lib_socket_socket+set}" = set; then
5960  $as_echo_n "(cached) " >&6
5961else
5962  ac_check_lib_save_LIBS=$LIBS
5963LIBS="-lsocket  $LIBS"
5964cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970
5971/* Override any GCC internal prototype to avoid an error.
5972   Use char because int might match the return type of a GCC
5973   builtin and then its argument prototype would still apply.  */
5974#ifdef __cplusplus
5975extern "C"
5976#endif
5977char socket ();
5978int
5979main ()
5980{
5981return socket ();
5982  ;
5983  return 0;
5984}
5985_ACEOF
5986rm -f conftest.$ac_objext conftest$ac_exeext
5987if { (ac_try="$ac_link"
5988case "(($ac_try" in
5989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990  *) ac_try_echo=$ac_try;;
5991esac
5992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5993$as_echo "$ac_try_echo") >&5
5994  (eval "$ac_link") 2>conftest.er1
5995  ac_status=$?
5996  grep -v '^ *+' conftest.er1 >conftest.err
5997  rm -f conftest.er1
5998  cat conftest.err >&5
5999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); } && {
6001	 test -z "$ac_c_werror_flag" ||
6002	 test ! -s conftest.err
6003       } && test -s conftest$ac_exeext && {
6004	 test "$cross_compiling" = yes ||
6005	 $as_test_x conftest$ac_exeext
6006       }; then
6007  ac_cv_lib_socket_socket=yes
6008else
6009  $as_echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012	ac_cv_lib_socket_socket=no
6013fi
6014
6015rm -rf conftest.dSYM
6016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6017      conftest$ac_exeext conftest.$ac_ext
6018LIBS=$ac_check_lib_save_LIBS
6019fi
6020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6021$as_echo "$ac_cv_lib_socket_socket" >&6; }
6022if test "x$ac_cv_lib_socket_socket" = x""yes; then
6023  cat >>confdefs.h <<_ACEOF
6024#define HAVE_LIBSOCKET 1
6025_ACEOF
6026
6027  LIBS="-lsocket $LIBS"
6028
6029fi
6030
6031
6032{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6033$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6034if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6035  $as_echo_n "(cached) " >&6
6036else
6037  ac_check_lib_save_LIBS=$LIBS
6038LIBS="-lnsl  $LIBS"
6039cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h.  */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h.  */
6045
6046/* Override any GCC internal prototype to avoid an error.
6047   Use char because int might match the return type of a GCC
6048   builtin and then its argument prototype would still apply.  */
6049#ifdef __cplusplus
6050extern "C"
6051#endif
6052char gethostbyname ();
6053int
6054main ()
6055{
6056return gethostbyname ();
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext conftest$ac_exeext
6062if { (ac_try="$ac_link"
6063case "(($ac_try" in
6064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065  *) ac_try_echo=$ac_try;;
6066esac
6067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068$as_echo "$ac_try_echo") >&5
6069  (eval "$ac_link") 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } && {
6076	 test -z "$ac_c_werror_flag" ||
6077	 test ! -s conftest.err
6078       } && test -s conftest$ac_exeext && {
6079	 test "$cross_compiling" = yes ||
6080	 $as_test_x conftest$ac_exeext
6081       }; then
6082  ac_cv_lib_nsl_gethostbyname=yes
6083else
6084  $as_echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087	ac_cv_lib_nsl_gethostbyname=no
6088fi
6089
6090rm -rf conftest.dSYM
6091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092      conftest$ac_exeext conftest.$ac_ext
6093LIBS=$ac_check_lib_save_LIBS
6094fi
6095{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6096$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6097if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6098  cat >>confdefs.h <<_ACEOF
6099#define HAVE_LIBNSL 1
6100_ACEOF
6101
6102  LIBS="-lnsl $LIBS"
6103
6104fi
6105
6106  { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6107$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6108  cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h.  */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h.  */
6114
6115#include <stdio.h>
6116#include <stdlib.h>
6117#include <stdarg.h>
6118#include <fcntl.h>
6119#include <netdb.h>
6120#include <netinet/in.h>
6121#include <errno.h>
6122#include <sys/types.h>
6123#include <sys/socket.h>
6124	/* Check bitfields */
6125	struct nbbuf {
6126	unsigned int  initDone:1;
6127	ushort signmaplen;
6128	};
6129
6130int
6131main ()
6132{
6133
6134		/* Check creating a socket. */
6135		struct sockaddr_in server;
6136		(void)socket(AF_INET, SOCK_STREAM, 0);
6137		(void)htons(100);
6138		(void)gethostbyname("microsoft.com");
6139		if (errno == ECONNREFUSED)
6140		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6141
6142  ;
6143  return 0;
6144}
6145_ACEOF
6146rm -f conftest.$ac_objext conftest$ac_exeext
6147if { (ac_try="$ac_link"
6148case "(($ac_try" in
6149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150  *) ac_try_echo=$ac_try;;
6151esac
6152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153$as_echo "$ac_try_echo") >&5
6154  (eval "$ac_link") 2>conftest.er1
6155  ac_status=$?
6156  grep -v '^ *+' conftest.er1 >conftest.err
6157  rm -f conftest.er1
6158  cat conftest.err >&5
6159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); } && {
6161	 test -z "$ac_c_werror_flag" ||
6162	 test ! -s conftest.err
6163       } && test -s conftest$ac_exeext && {
6164	 test "$cross_compiling" = yes ||
6165	 $as_test_x conftest$ac_exeext
6166       }; then
6167  { $as_echo "$as_me:$LINENO: result: yes" >&5
6168$as_echo "yes" >&6; }
6169else
6170  $as_echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173	{ $as_echo "$as_me:$LINENO: result: no" >&5
6174$as_echo "no" >&6; }; enable_netbeans="no"
6175fi
6176
6177rm -rf conftest.dSYM
6178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6179      conftest$ac_exeext conftest.$ac_ext
6180else
6181  { $as_echo "$as_me:$LINENO: result: yes" >&5
6182$as_echo "yes" >&6; }
6183fi
6184if test "$enable_netbeans" = "yes"; then
6185  cat >>confdefs.h <<\_ACEOF
6186#define FEAT_NETBEANS_INTG 1
6187_ACEOF
6188
6189  NETBEANS_SRC="netbeans.c"
6190
6191  NETBEANS_OBJ="objects/netbeans.o"
6192
6193fi
6194
6195{ $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6196$as_echo_n "checking --enable-sniff argument... " >&6; }
6197# Check whether --enable-sniff was given.
6198if test "${enable_sniff+set}" = set; then
6199  enableval=$enable_sniff;
6200else
6201  enable_sniff="no"
6202fi
6203
6204{ $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6205$as_echo "$enable_sniff" >&6; }
6206if test "$enable_sniff" = "yes"; then
6207  cat >>confdefs.h <<\_ACEOF
6208#define FEAT_SNIFF 1
6209_ACEOF
6210
6211  SNIFF_SRC="if_sniff.c"
6212
6213  SNIFF_OBJ="objects/if_sniff.o"
6214
6215fi
6216
6217{ $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6218$as_echo_n "checking --enable-multibyte argument... " >&6; }
6219# Check whether --enable-multibyte was given.
6220if test "${enable_multibyte+set}" = set; then
6221  enableval=$enable_multibyte;
6222else
6223  enable_multibyte="no"
6224fi
6225
6226{ $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6227$as_echo "$enable_multibyte" >&6; }
6228if test "$enable_multibyte" = "yes"; then
6229  cat >>confdefs.h <<\_ACEOF
6230#define FEAT_MBYTE 1
6231_ACEOF
6232
6233fi
6234
6235{ $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6236$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6237# Check whether --enable-hangulinput was given.
6238if test "${enable_hangulinput+set}" = set; then
6239  enableval=$enable_hangulinput;
6240else
6241  enable_hangulinput="no"
6242fi
6243
6244{ $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6245$as_echo "$enable_hangulinput" >&6; }
6246
6247{ $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6248$as_echo_n "checking --enable-xim argument... " >&6; }
6249# Check whether --enable-xim was given.
6250if test "${enable_xim+set}" = set; then
6251  enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6252$as_echo "$enable_xim" >&6; }
6253else
6254  enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6255$as_echo "defaulting to auto" >&6; }
6256fi
6257
6258
6259{ $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6260$as_echo_n "checking --enable-fontset argument... " >&6; }
6261# Check whether --enable-fontset was given.
6262if test "${enable_fontset+set}" = set; then
6263  enableval=$enable_fontset;
6264else
6265  enable_fontset="no"
6266fi
6267
6268{ $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6269$as_echo "$enable_fontset" >&6; }
6270
6271test -z "$with_x" && with_x=yes
6272test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6273if test "$with_x" = no; then
6274  { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6275$as_echo "defaulting to: don't HAVE_X11" >&6; }
6276else
6277
6278  # Extract the first word of "xmkmf", so it can be a program name with args.
6279set dummy xmkmf; ac_word=$2
6280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_path_xmkmfpath+set}" = set; then
6283  $as_echo_n "(cached) " >&6
6284else
6285  case $xmkmfpath in
6286  [\\/]* | ?:[\\/]*)
6287  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6288  ;;
6289  *)
6290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295  for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6298    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302done
6303IFS=$as_save_IFS
6304
6305  ;;
6306esac
6307fi
6308xmkmfpath=$ac_cv_path_xmkmfpath
6309if test -n "$xmkmfpath"; then
6310  { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6311$as_echo "$xmkmfpath" >&6; }
6312else
6313  { $as_echo "$as_me:$LINENO: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318
6319  { $as_echo "$as_me:$LINENO: checking for X" >&5
6320$as_echo_n "checking for X... " >&6; }
6321
6322
6323# Check whether --with-x was given.
6324if test "${with_x+set}" = set; then
6325  withval=$with_x;
6326fi
6327
6328# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6329if test "x$with_x" = xno; then
6330  # The user explicitly disabled X.
6331  have_x=disabled
6332else
6333  case $x_includes,$x_libraries in #(
6334    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6335$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6336   { (exit 1); exit 1; }; };; #(
6337    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6338  $as_echo_n "(cached) " >&6
6339else
6340  # One or both of the vars are not set, and there is no cached value.
6341ac_x_includes=no ac_x_libraries=no
6342rm -f -r conftest.dir
6343if mkdir conftest.dir; then
6344  cd conftest.dir
6345  cat >Imakefile <<'_ACEOF'
6346incroot:
6347	@echo incroot='${INCROOT}'
6348usrlibdir:
6349	@echo usrlibdir='${USRLIBDIR}'
6350libdir:
6351	@echo libdir='${LIBDIR}'
6352_ACEOF
6353  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6354    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6355    for ac_var in incroot usrlibdir libdir; do
6356      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6357    done
6358    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6359    for ac_extension in a so sl dylib la dll; do
6360      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6361	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6362	ac_im_usrlibdir=$ac_im_libdir; break
6363      fi
6364    done
6365    # Screen out bogus values from the imake configuration.  They are
6366    # bogus both because they are the default anyway, and because
6367    # using them would break gcc on systems where it needs fixed includes.
6368    case $ac_im_incroot in
6369	/usr/include) ac_x_includes= ;;
6370	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6371    esac
6372    case $ac_im_usrlibdir in
6373	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6374	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6375    esac
6376  fi
6377  cd ..
6378  rm -f -r conftest.dir
6379fi
6380
6381# Standard set of common directories for X headers.
6382# Check X11 before X11Rn because it is often a symlink to the current release.
6383ac_x_header_dirs='
6384/usr/X11/include
6385/usr/X11R6/include
6386/usr/X11R5/include
6387/usr/X11R4/include
6388
6389/usr/include/X11
6390/usr/include/X11R6
6391/usr/include/X11R5
6392/usr/include/X11R4
6393
6394/usr/local/X11/include
6395/usr/local/X11R6/include
6396/usr/local/X11R5/include
6397/usr/local/X11R4/include
6398
6399/usr/local/include/X11
6400/usr/local/include/X11R6
6401/usr/local/include/X11R5
6402/usr/local/include/X11R4
6403
6404/usr/X386/include
6405/usr/x386/include
6406/usr/XFree86/include/X11
6407
6408/usr/include
6409/usr/local/include
6410/usr/unsupported/include
6411/usr/athena/include
6412/usr/local/x11r5/include
6413/usr/lpp/Xamples/include
6414
6415/usr/openwin/include
6416/usr/openwin/share/include'
6417
6418if test "$ac_x_includes" = no; then
6419  # Guess where to find include files, by looking for Xlib.h.
6420  # First, try using that file with no special directory specified.
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <X11/Xlib.h>
6428_ACEOF
6429if { (ac_try="$ac_cpp conftest.$ac_ext"
6430case "(($ac_try" in
6431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432  *) ac_try_echo=$ac_try;;
6433esac
6434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435$as_echo "$ac_try_echo") >&5
6436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } >/dev/null && {
6443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444	 test ! -s conftest.err
6445       }; then
6446  # We can compile using X headers with no special include directory.
6447ac_x_includes=
6448else
6449  $as_echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452  for ac_dir in $ac_x_header_dirs; do
6453  if test -r "$ac_dir/X11/Xlib.h"; then
6454    ac_x_includes=$ac_dir
6455    break
6456  fi
6457done
6458fi
6459
6460rm -f conftest.err conftest.$ac_ext
6461fi # $ac_x_includes = no
6462
6463if test "$ac_x_libraries" = no; then
6464  # Check for the libraries.
6465  # See if we find them without any special options.
6466  # Don't add to $LIBS permanently.
6467  ac_save_LIBS=$LIBS
6468  LIBS="-lX11 $LIBS"
6469  cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h.  */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h.  */
6475#include <X11/Xlib.h>
6476int
6477main ()
6478{
6479XrmInitialize ()
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext conftest$ac_exeext
6485if { (ac_try="$ac_link"
6486case "(($ac_try" in
6487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488  *) ac_try_echo=$ac_try;;
6489esac
6490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491$as_echo "$ac_try_echo") >&5
6492  (eval "$ac_link") 2>conftest.er1
6493  ac_status=$?
6494  grep -v '^ *+' conftest.er1 >conftest.err
6495  rm -f conftest.er1
6496  cat conftest.err >&5
6497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); } && {
6499	 test -z "$ac_c_werror_flag" ||
6500	 test ! -s conftest.err
6501       } && test -s conftest$ac_exeext && {
6502	 test "$cross_compiling" = yes ||
6503	 $as_test_x conftest$ac_exeext
6504       }; then
6505  LIBS=$ac_save_LIBS
6506# We can link X programs with no special library path.
6507ac_x_libraries=
6508else
6509  $as_echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512	LIBS=$ac_save_LIBS
6513for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6514do
6515  # Don't even attempt the hair of trying to link an X program!
6516  for ac_extension in a so sl dylib la dll; do
6517    if test -r "$ac_dir/libX11.$ac_extension"; then
6518      ac_x_libraries=$ac_dir
6519      break 2
6520    fi
6521  done
6522done
6523fi
6524
6525rm -rf conftest.dSYM
6526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527      conftest$ac_exeext conftest.$ac_ext
6528fi # $ac_x_libraries = no
6529
6530case $ac_x_includes,$ac_x_libraries in #(
6531  no,* | *,no | *\'*)
6532    # Didn't find X, or a directory has "'" in its name.
6533    ac_cv_have_x="have_x=no";; #(
6534  *)
6535    # Record where we found X for the cache.
6536    ac_cv_have_x="have_x=yes\
6537	ac_x_includes='$ac_x_includes'\
6538	ac_x_libraries='$ac_x_libraries'"
6539esac
6540fi
6541;; #(
6542    *) have_x=yes;;
6543  esac
6544  eval "$ac_cv_have_x"
6545fi # $with_x != no
6546
6547if test "$have_x" != yes; then
6548  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6549$as_echo "$have_x" >&6; }
6550  no_x=yes
6551else
6552  # If each of the values was on the command line, it overrides each guess.
6553  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6554  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6555  # Update the cache value to reflect the command line values.
6556  ac_cv_have_x="have_x=yes\
6557	ac_x_includes='$x_includes'\
6558	ac_x_libraries='$x_libraries'"
6559  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6560$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6561fi
6562
6563if test "$no_x" = yes; then
6564  # Not all programs may use this symbol, but it does not hurt to define it.
6565
6566cat >>confdefs.h <<\_ACEOF
6567#define X_DISPLAY_MISSING 1
6568_ACEOF
6569
6570  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6571else
6572  if test -n "$x_includes"; then
6573    X_CFLAGS="$X_CFLAGS -I$x_includes"
6574  fi
6575
6576  # It would also be nice to do this for all -L options, not just this one.
6577  if test -n "$x_libraries"; then
6578    X_LIBS="$X_LIBS -L$x_libraries"
6579    # For Solaris; some versions of Sun CC require a space after -R and
6580    # others require no space.  Words are not sufficient . . . .
6581    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6582$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6583    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6584    ac_xsave_c_werror_flag=$ac_c_werror_flag
6585    ac_c_werror_flag=yes
6586    cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h.  */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h.  */
6592
6593int
6594main ()
6595{
6596
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601rm -f conftest.$ac_objext conftest$ac_exeext
6602if { (ac_try="$ac_link"
6603case "(($ac_try" in
6604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605  *) ac_try_echo=$ac_try;;
6606esac
6607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6608$as_echo "$ac_try_echo") >&5
6609  (eval "$ac_link") 2>conftest.er1
6610  ac_status=$?
6611  grep -v '^ *+' conftest.er1 >conftest.err
6612  rm -f conftest.er1
6613  cat conftest.err >&5
6614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); } && {
6616	 test -z "$ac_c_werror_flag" ||
6617	 test ! -s conftest.err
6618       } && test -s conftest$ac_exeext && {
6619	 test "$cross_compiling" = yes ||
6620	 $as_test_x conftest$ac_exeext
6621       }; then
6622  { $as_echo "$as_me:$LINENO: result: no" >&5
6623$as_echo "no" >&6; }
6624       X_LIBS="$X_LIBS -R$x_libraries"
6625else
6626  $as_echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629	LIBS="$ac_xsave_LIBS -R $x_libraries"
6630       cat >conftest.$ac_ext <<_ACEOF
6631/* confdefs.h.  */
6632_ACEOF
6633cat confdefs.h >>conftest.$ac_ext
6634cat >>conftest.$ac_ext <<_ACEOF
6635/* end confdefs.h.  */
6636
6637int
6638main ()
6639{
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645rm -f conftest.$ac_objext conftest$ac_exeext
6646if { (ac_try="$ac_link"
6647case "(($ac_try" in
6648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649  *) ac_try_echo=$ac_try;;
6650esac
6651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652$as_echo "$ac_try_echo") >&5
6653  (eval "$ac_link") 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } && {
6660	 test -z "$ac_c_werror_flag" ||
6661	 test ! -s conftest.err
6662       } && test -s conftest$ac_exeext && {
6663	 test "$cross_compiling" = yes ||
6664	 $as_test_x conftest$ac_exeext
6665       }; then
6666  { $as_echo "$as_me:$LINENO: result: yes" >&5
6667$as_echo "yes" >&6; }
6668	  X_LIBS="$X_LIBS -R $x_libraries"
6669else
6670  $as_echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
6674$as_echo "neither works" >&6; }
6675fi
6676
6677rm -rf conftest.dSYM
6678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679      conftest$ac_exeext conftest.$ac_ext
6680fi
6681
6682rm -rf conftest.dSYM
6683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684      conftest$ac_exeext conftest.$ac_ext
6685    ac_c_werror_flag=$ac_xsave_c_werror_flag
6686    LIBS=$ac_xsave_LIBS
6687  fi
6688
6689  # Check for system-dependent libraries X programs must link with.
6690  # Do this before checking for the system-independent R6 libraries
6691  # (-lICE), since we may need -lsocket or whatever for X linking.
6692
6693  if test "$ISC" = yes; then
6694    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6695  else
6696    # Martyn Johnson says this is needed for Ultrix, if the X
6697    # libraries were built with DECnet support.  And Karl Berry says
6698    # the Alpha needs dnet_stub (dnet does not exist).
6699    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6700    cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h.  */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h.  */
6706
6707/* Override any GCC internal prototype to avoid an error.
6708   Use char because int might match the return type of a GCC
6709   builtin and then its argument prototype would still apply.  */
6710#ifdef __cplusplus
6711extern "C"
6712#endif
6713char XOpenDisplay ();
6714int
6715main ()
6716{
6717return XOpenDisplay ();
6718  ;
6719  return 0;
6720}
6721_ACEOF
6722rm -f conftest.$ac_objext conftest$ac_exeext
6723if { (ac_try="$ac_link"
6724case "(($ac_try" in
6725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726  *) ac_try_echo=$ac_try;;
6727esac
6728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729$as_echo "$ac_try_echo") >&5
6730  (eval "$ac_link") 2>conftest.er1
6731  ac_status=$?
6732  grep -v '^ *+' conftest.er1 >conftest.err
6733  rm -f conftest.er1
6734  cat conftest.err >&5
6735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); } && {
6737	 test -z "$ac_c_werror_flag" ||
6738	 test ! -s conftest.err
6739       } && test -s conftest$ac_exeext && {
6740	 test "$cross_compiling" = yes ||
6741	 $as_test_x conftest$ac_exeext
6742       }; then
6743  :
6744else
6745  $as_echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6749$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6750if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6751  $as_echo_n "(cached) " >&6
6752else
6753  ac_check_lib_save_LIBS=$LIBS
6754LIBS="-ldnet  $LIBS"
6755cat >conftest.$ac_ext <<_ACEOF
6756/* confdefs.h.  */
6757_ACEOF
6758cat confdefs.h >>conftest.$ac_ext
6759cat >>conftest.$ac_ext <<_ACEOF
6760/* end confdefs.h.  */
6761
6762/* Override any GCC internal prototype to avoid an error.
6763   Use char because int might match the return type of a GCC
6764   builtin and then its argument prototype would still apply.  */
6765#ifdef __cplusplus
6766extern "C"
6767#endif
6768char dnet_ntoa ();
6769int
6770main ()
6771{
6772return dnet_ntoa ();
6773  ;
6774  return 0;
6775}
6776_ACEOF
6777rm -f conftest.$ac_objext conftest$ac_exeext
6778if { (ac_try="$ac_link"
6779case "(($ac_try" in
6780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781  *) ac_try_echo=$ac_try;;
6782esac
6783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784$as_echo "$ac_try_echo") >&5
6785  (eval "$ac_link") 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } && {
6792	 test -z "$ac_c_werror_flag" ||
6793	 test ! -s conftest.err
6794       } && test -s conftest$ac_exeext && {
6795	 test "$cross_compiling" = yes ||
6796	 $as_test_x conftest$ac_exeext
6797       }; then
6798  ac_cv_lib_dnet_dnet_ntoa=yes
6799else
6800  $as_echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803	ac_cv_lib_dnet_dnet_ntoa=no
6804fi
6805
6806rm -rf conftest.dSYM
6807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808      conftest$ac_exeext conftest.$ac_ext
6809LIBS=$ac_check_lib_save_LIBS
6810fi
6811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6812$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6813if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6814  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6815fi
6816
6817    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6818      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6819$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6820if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6821  $as_echo_n "(cached) " >&6
6822else
6823  ac_check_lib_save_LIBS=$LIBS
6824LIBS="-ldnet_stub  $LIBS"
6825cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h.  */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h.  */
6831
6832/* Override any GCC internal prototype to avoid an error.
6833   Use char because int might match the return type of a GCC
6834   builtin and then its argument prototype would still apply.  */
6835#ifdef __cplusplus
6836extern "C"
6837#endif
6838char dnet_ntoa ();
6839int
6840main ()
6841{
6842return dnet_ntoa ();
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847rm -f conftest.$ac_objext conftest$ac_exeext
6848if { (ac_try="$ac_link"
6849case "(($ac_try" in
6850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851  *) ac_try_echo=$ac_try;;
6852esac
6853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854$as_echo "$ac_try_echo") >&5
6855  (eval "$ac_link") 2>conftest.er1
6856  ac_status=$?
6857  grep -v '^ *+' conftest.er1 >conftest.err
6858  rm -f conftest.er1
6859  cat conftest.err >&5
6860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); } && {
6862	 test -z "$ac_c_werror_flag" ||
6863	 test ! -s conftest.err
6864       } && test -s conftest$ac_exeext && {
6865	 test "$cross_compiling" = yes ||
6866	 $as_test_x conftest$ac_exeext
6867       }; then
6868  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6869else
6870  $as_echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873	ac_cv_lib_dnet_stub_dnet_ntoa=no
6874fi
6875
6876rm -rf conftest.dSYM
6877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6878      conftest$ac_exeext conftest.$ac_ext
6879LIBS=$ac_check_lib_save_LIBS
6880fi
6881{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6882$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6883if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6884  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6885fi
6886
6887    fi
6888fi
6889
6890rm -rf conftest.dSYM
6891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6892      conftest$ac_exeext conftest.$ac_ext
6893    LIBS="$ac_xsave_LIBS"
6894
6895    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6896    # to get the SysV transport functions.
6897    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6898    # needs -lnsl.
6899    # The nsl library prevents programs from opening the X display
6900    # on Irix 5.2, according to T.E. Dickey.
6901    # The functions gethostbyname, getservbyname, and inet_addr are
6902    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6903    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6904$as_echo_n "checking for gethostbyname... " >&6; }
6905if test "${ac_cv_func_gethostbyname+set}" = set; then
6906  $as_echo_n "(cached) " >&6
6907else
6908  cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h.  */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h.  */
6914/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6916#define gethostbyname innocuous_gethostbyname
6917
6918/* System header to define __stub macros and hopefully few prototypes,
6919    which can conflict with char gethostbyname (); below.
6920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921    <limits.h> exists even on freestanding compilers.  */
6922
6923#ifdef __STDC__
6924# include <limits.h>
6925#else
6926# include <assert.h>
6927#endif
6928
6929#undef gethostbyname
6930
6931/* Override any GCC internal prototype to avoid an error.
6932   Use char because int might match the return type of a GCC
6933   builtin and then its argument prototype would still apply.  */
6934#ifdef __cplusplus
6935extern "C"
6936#endif
6937char gethostbyname ();
6938/* The GNU C library defines this for functions which it implements
6939    to always fail with ENOSYS.  Some functions are actually named
6940    something starting with __ and the normal name is an alias.  */
6941#if defined __stub_gethostbyname || defined __stub___gethostbyname
6942choke me
6943#endif
6944
6945int
6946main ()
6947{
6948return gethostbyname ();
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953rm -f conftest.$ac_objext conftest$ac_exeext
6954if { (ac_try="$ac_link"
6955case "(($ac_try" in
6956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957  *) ac_try_echo=$ac_try;;
6958esac
6959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960$as_echo "$ac_try_echo") >&5
6961  (eval "$ac_link") 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } && {
6968	 test -z "$ac_c_werror_flag" ||
6969	 test ! -s conftest.err
6970       } && test -s conftest$ac_exeext && {
6971	 test "$cross_compiling" = yes ||
6972	 $as_test_x conftest$ac_exeext
6973       }; then
6974  ac_cv_func_gethostbyname=yes
6975else
6976  $as_echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979	ac_cv_func_gethostbyname=no
6980fi
6981
6982rm -rf conftest.dSYM
6983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984      conftest$ac_exeext conftest.$ac_ext
6985fi
6986{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6987$as_echo "$ac_cv_func_gethostbyname" >&6; }
6988
6989    if test $ac_cv_func_gethostbyname = no; then
6990      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6991$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6992if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6993  $as_echo_n "(cached) " >&6
6994else
6995  ac_check_lib_save_LIBS=$LIBS
6996LIBS="-lnsl  $LIBS"
6997cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003
7004/* Override any GCC internal prototype to avoid an error.
7005   Use char because int might match the return type of a GCC
7006   builtin and then its argument prototype would still apply.  */
7007#ifdef __cplusplus
7008extern "C"
7009#endif
7010char gethostbyname ();
7011int
7012main ()
7013{
7014return gethostbyname ();
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019rm -f conftest.$ac_objext conftest$ac_exeext
7020if { (ac_try="$ac_link"
7021case "(($ac_try" in
7022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023  *) ac_try_echo=$ac_try;;
7024esac
7025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026$as_echo "$ac_try_echo") >&5
7027  (eval "$ac_link") 2>conftest.er1
7028  ac_status=$?
7029  grep -v '^ *+' conftest.er1 >conftest.err
7030  rm -f conftest.er1
7031  cat conftest.err >&5
7032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033  (exit $ac_status); } && {
7034	 test -z "$ac_c_werror_flag" ||
7035	 test ! -s conftest.err
7036       } && test -s conftest$ac_exeext && {
7037	 test "$cross_compiling" = yes ||
7038	 $as_test_x conftest$ac_exeext
7039       }; then
7040  ac_cv_lib_nsl_gethostbyname=yes
7041else
7042  $as_echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045	ac_cv_lib_nsl_gethostbyname=no
7046fi
7047
7048rm -rf conftest.dSYM
7049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7050      conftest$ac_exeext conftest.$ac_ext
7051LIBS=$ac_check_lib_save_LIBS
7052fi
7053{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7054$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7055if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7056  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7057fi
7058
7059      if test $ac_cv_lib_nsl_gethostbyname = no; then
7060	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7061$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7062if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7063  $as_echo_n "(cached) " >&6
7064else
7065  ac_check_lib_save_LIBS=$LIBS
7066LIBS="-lbsd  $LIBS"
7067cat >conftest.$ac_ext <<_ACEOF
7068/* confdefs.h.  */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h.  */
7073
7074/* Override any GCC internal prototype to avoid an error.
7075   Use char because int might match the return type of a GCC
7076   builtin and then its argument prototype would still apply.  */
7077#ifdef __cplusplus
7078extern "C"
7079#endif
7080char gethostbyname ();
7081int
7082main ()
7083{
7084return gethostbyname ();
7085  ;
7086  return 0;
7087}
7088_ACEOF
7089rm -f conftest.$ac_objext conftest$ac_exeext
7090if { (ac_try="$ac_link"
7091case "(($ac_try" in
7092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093  *) ac_try_echo=$ac_try;;
7094esac
7095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7096$as_echo "$ac_try_echo") >&5
7097  (eval "$ac_link") 2>conftest.er1
7098  ac_status=$?
7099  grep -v '^ *+' conftest.er1 >conftest.err
7100  rm -f conftest.er1
7101  cat conftest.err >&5
7102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); } && {
7104	 test -z "$ac_c_werror_flag" ||
7105	 test ! -s conftest.err
7106       } && test -s conftest$ac_exeext && {
7107	 test "$cross_compiling" = yes ||
7108	 $as_test_x conftest$ac_exeext
7109       }; then
7110  ac_cv_lib_bsd_gethostbyname=yes
7111else
7112  $as_echo "$as_me: failed program was:" >&5
7113sed 's/^/| /' conftest.$ac_ext >&5
7114
7115	ac_cv_lib_bsd_gethostbyname=no
7116fi
7117
7118rm -rf conftest.dSYM
7119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7120      conftest$ac_exeext conftest.$ac_ext
7121LIBS=$ac_check_lib_save_LIBS
7122fi
7123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7124$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7125if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7126  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7127fi
7128
7129      fi
7130    fi
7131
7132    # [email protected] says without -lsocket,
7133    # socket/setsockopt and other routines are undefined under SCO ODT
7134    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7135    # on later versions), says Simon Leinen: it contains gethostby*
7136    # variants that don't use the name server (or something).  -lsocket
7137    # must be given before -lnsl if both are needed.  We assume that
7138    # if connect needs -lnsl, so does gethostbyname.
7139    { $as_echo "$as_me:$LINENO: checking for connect" >&5
7140$as_echo_n "checking for connect... " >&6; }
7141if test "${ac_cv_func_connect+set}" = set; then
7142  $as_echo_n "(cached) " >&6
7143else
7144  cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h.  */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h.  */
7150/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7151   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7152#define connect innocuous_connect
7153
7154/* System header to define __stub macros and hopefully few prototypes,
7155    which can conflict with char connect (); below.
7156    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157    <limits.h> exists even on freestanding compilers.  */
7158
7159#ifdef __STDC__
7160# include <limits.h>
7161#else
7162# include <assert.h>
7163#endif
7164
7165#undef connect
7166
7167/* Override any GCC internal prototype to avoid an error.
7168   Use char because int might match the return type of a GCC
7169   builtin and then its argument prototype would still apply.  */
7170#ifdef __cplusplus
7171extern "C"
7172#endif
7173char connect ();
7174/* The GNU C library defines this for functions which it implements
7175    to always fail with ENOSYS.  Some functions are actually named
7176    something starting with __ and the normal name is an alias.  */
7177#if defined __stub_connect || defined __stub___connect
7178choke me
7179#endif
7180
7181int
7182main ()
7183{
7184return connect ();
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext conftest$ac_exeext
7190if { (ac_try="$ac_link"
7191case "(($ac_try" in
7192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193  *) ac_try_echo=$ac_try;;
7194esac
7195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196$as_echo "$ac_try_echo") >&5
7197  (eval "$ac_link") 2>conftest.er1
7198  ac_status=$?
7199  grep -v '^ *+' conftest.er1 >conftest.err
7200  rm -f conftest.er1
7201  cat conftest.err >&5
7202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); } && {
7204	 test -z "$ac_c_werror_flag" ||
7205	 test ! -s conftest.err
7206       } && test -s conftest$ac_exeext && {
7207	 test "$cross_compiling" = yes ||
7208	 $as_test_x conftest$ac_exeext
7209       }; then
7210  ac_cv_func_connect=yes
7211else
7212  $as_echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215	ac_cv_func_connect=no
7216fi
7217
7218rm -rf conftest.dSYM
7219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7220      conftest$ac_exeext conftest.$ac_ext
7221fi
7222{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7223$as_echo "$ac_cv_func_connect" >&6; }
7224
7225    if test $ac_cv_func_connect = no; then
7226      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7227$as_echo_n "checking for connect in -lsocket... " >&6; }
7228if test "${ac_cv_lib_socket_connect+set}" = set; then
7229  $as_echo_n "(cached) " >&6
7230else
7231  ac_check_lib_save_LIBS=$LIBS
7232LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7233cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h.  */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h.  */
7239
7240/* Override any GCC internal prototype to avoid an error.
7241   Use char because int might match the return type of a GCC
7242   builtin and then its argument prototype would still apply.  */
7243#ifdef __cplusplus
7244extern "C"
7245#endif
7246char connect ();
7247int
7248main ()
7249{
7250return connect ();
7251  ;
7252  return 0;
7253}
7254_ACEOF
7255rm -f conftest.$ac_objext conftest$ac_exeext
7256if { (ac_try="$ac_link"
7257case "(($ac_try" in
7258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259  *) ac_try_echo=$ac_try;;
7260esac
7261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7262$as_echo "$ac_try_echo") >&5
7263  (eval "$ac_link") 2>conftest.er1
7264  ac_status=$?
7265  grep -v '^ *+' conftest.er1 >conftest.err
7266  rm -f conftest.er1
7267  cat conftest.err >&5
7268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269  (exit $ac_status); } && {
7270	 test -z "$ac_c_werror_flag" ||
7271	 test ! -s conftest.err
7272       } && test -s conftest$ac_exeext && {
7273	 test "$cross_compiling" = yes ||
7274	 $as_test_x conftest$ac_exeext
7275       }; then
7276  ac_cv_lib_socket_connect=yes
7277else
7278  $as_echo "$as_me: failed program was:" >&5
7279sed 's/^/| /' conftest.$ac_ext >&5
7280
7281	ac_cv_lib_socket_connect=no
7282fi
7283
7284rm -rf conftest.dSYM
7285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7286      conftest$ac_exeext conftest.$ac_ext
7287LIBS=$ac_check_lib_save_LIBS
7288fi
7289{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7290$as_echo "$ac_cv_lib_socket_connect" >&6; }
7291if test "x$ac_cv_lib_socket_connect" = x""yes; then
7292  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7293fi
7294
7295    fi
7296
7297    # Guillermo Gomez says -lposix is necessary on A/UX.
7298    { $as_echo "$as_me:$LINENO: checking for remove" >&5
7299$as_echo_n "checking for remove... " >&6; }
7300if test "${ac_cv_func_remove+set}" = set; then
7301  $as_echo_n "(cached) " >&6
7302else
7303  cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h.  */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h.  */
7309/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7310   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7311#define remove innocuous_remove
7312
7313/* System header to define __stub macros and hopefully few prototypes,
7314    which can conflict with char remove (); below.
7315    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7316    <limits.h> exists even on freestanding compilers.  */
7317
7318#ifdef __STDC__
7319# include <limits.h>
7320#else
7321# include <assert.h>
7322#endif
7323
7324#undef remove
7325
7326/* Override any GCC internal prototype to avoid an error.
7327   Use char because int might match the return type of a GCC
7328   builtin and then its argument prototype would still apply.  */
7329#ifdef __cplusplus
7330extern "C"
7331#endif
7332char remove ();
7333/* The GNU C library defines this for functions which it implements
7334    to always fail with ENOSYS.  Some functions are actually named
7335    something starting with __ and the normal name is an alias.  */
7336#if defined __stub_remove || defined __stub___remove
7337choke me
7338#endif
7339
7340int
7341main ()
7342{
7343return remove ();
7344  ;
7345  return 0;
7346}
7347_ACEOF
7348rm -f conftest.$ac_objext conftest$ac_exeext
7349if { (ac_try="$ac_link"
7350case "(($ac_try" in
7351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352  *) ac_try_echo=$ac_try;;
7353esac
7354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355$as_echo "$ac_try_echo") >&5
7356  (eval "$ac_link") 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } && {
7363	 test -z "$ac_c_werror_flag" ||
7364	 test ! -s conftest.err
7365       } && test -s conftest$ac_exeext && {
7366	 test "$cross_compiling" = yes ||
7367	 $as_test_x conftest$ac_exeext
7368       }; then
7369  ac_cv_func_remove=yes
7370else
7371  $as_echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374	ac_cv_func_remove=no
7375fi
7376
7377rm -rf conftest.dSYM
7378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379      conftest$ac_exeext conftest.$ac_ext
7380fi
7381{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7382$as_echo "$ac_cv_func_remove" >&6; }
7383
7384    if test $ac_cv_func_remove = no; then
7385      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7386$as_echo_n "checking for remove in -lposix... " >&6; }
7387if test "${ac_cv_lib_posix_remove+set}" = set; then
7388  $as_echo_n "(cached) " >&6
7389else
7390  ac_check_lib_save_LIBS=$LIBS
7391LIBS="-lposix  $LIBS"
7392cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h.  */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h.  */
7398
7399/* Override any GCC internal prototype to avoid an error.
7400   Use char because int might match the return type of a GCC
7401   builtin and then its argument prototype would still apply.  */
7402#ifdef __cplusplus
7403extern "C"
7404#endif
7405char remove ();
7406int
7407main ()
7408{
7409return remove ();
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414rm -f conftest.$ac_objext conftest$ac_exeext
7415if { (ac_try="$ac_link"
7416case "(($ac_try" in
7417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418  *) ac_try_echo=$ac_try;;
7419esac
7420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7421$as_echo "$ac_try_echo") >&5
7422  (eval "$ac_link") 2>conftest.er1
7423  ac_status=$?
7424  grep -v '^ *+' conftest.er1 >conftest.err
7425  rm -f conftest.er1
7426  cat conftest.err >&5
7427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428  (exit $ac_status); } && {
7429	 test -z "$ac_c_werror_flag" ||
7430	 test ! -s conftest.err
7431       } && test -s conftest$ac_exeext && {
7432	 test "$cross_compiling" = yes ||
7433	 $as_test_x conftest$ac_exeext
7434       }; then
7435  ac_cv_lib_posix_remove=yes
7436else
7437  $as_echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440	ac_cv_lib_posix_remove=no
7441fi
7442
7443rm -rf conftest.dSYM
7444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445      conftest$ac_exeext conftest.$ac_ext
7446LIBS=$ac_check_lib_save_LIBS
7447fi
7448{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7449$as_echo "$ac_cv_lib_posix_remove" >&6; }
7450if test "x$ac_cv_lib_posix_remove" = x""yes; then
7451  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7452fi
7453
7454    fi
7455
7456    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7457    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7458$as_echo_n "checking for shmat... " >&6; }
7459if test "${ac_cv_func_shmat+set}" = set; then
7460  $as_echo_n "(cached) " >&6
7461else
7462  cat >conftest.$ac_ext <<_ACEOF
7463/* confdefs.h.  */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h.  */
7468/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7469   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7470#define shmat innocuous_shmat
7471
7472/* System header to define __stub macros and hopefully few prototypes,
7473    which can conflict with char shmat (); below.
7474    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475    <limits.h> exists even on freestanding compilers.  */
7476
7477#ifdef __STDC__
7478# include <limits.h>
7479#else
7480# include <assert.h>
7481#endif
7482
7483#undef shmat
7484
7485/* Override any GCC internal prototype to avoid an error.
7486   Use char because int might match the return type of a GCC
7487   builtin and then its argument prototype would still apply.  */
7488#ifdef __cplusplus
7489extern "C"
7490#endif
7491char shmat ();
7492/* The GNU C library defines this for functions which it implements
7493    to always fail with ENOSYS.  Some functions are actually named
7494    something starting with __ and the normal name is an alias.  */
7495#if defined __stub_shmat || defined __stub___shmat
7496choke me
7497#endif
7498
7499int
7500main ()
7501{
7502return shmat ();
7503  ;
7504  return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext conftest$ac_exeext
7508if { (ac_try="$ac_link"
7509case "(($ac_try" in
7510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511  *) ac_try_echo=$ac_try;;
7512esac
7513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7514$as_echo "$ac_try_echo") >&5
7515  (eval "$ac_link") 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } && {
7522	 test -z "$ac_c_werror_flag" ||
7523	 test ! -s conftest.err
7524       } && test -s conftest$ac_exeext && {
7525	 test "$cross_compiling" = yes ||
7526	 $as_test_x conftest$ac_exeext
7527       }; then
7528  ac_cv_func_shmat=yes
7529else
7530  $as_echo "$as_me: failed program was:" >&5
7531sed 's/^/| /' conftest.$ac_ext >&5
7532
7533	ac_cv_func_shmat=no
7534fi
7535
7536rm -rf conftest.dSYM
7537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7538      conftest$ac_exeext conftest.$ac_ext
7539fi
7540{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7541$as_echo "$ac_cv_func_shmat" >&6; }
7542
7543    if test $ac_cv_func_shmat = no; then
7544      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7545$as_echo_n "checking for shmat in -lipc... " >&6; }
7546if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7547  $as_echo_n "(cached) " >&6
7548else
7549  ac_check_lib_save_LIBS=$LIBS
7550LIBS="-lipc  $LIBS"
7551cat >conftest.$ac_ext <<_ACEOF
7552/* confdefs.h.  */
7553_ACEOF
7554cat confdefs.h >>conftest.$ac_ext
7555cat >>conftest.$ac_ext <<_ACEOF
7556/* end confdefs.h.  */
7557
7558/* Override any GCC internal prototype to avoid an error.
7559   Use char because int might match the return type of a GCC
7560   builtin and then its argument prototype would still apply.  */
7561#ifdef __cplusplus
7562extern "C"
7563#endif
7564char shmat ();
7565int
7566main ()
7567{
7568return shmat ();
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (ac_try="$ac_link"
7575case "(($ac_try" in
7576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577  *) ac_try_echo=$ac_try;;
7578esac
7579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580$as_echo "$ac_try_echo") >&5
7581  (eval "$ac_link") 2>conftest.er1
7582  ac_status=$?
7583  grep -v '^ *+' conftest.er1 >conftest.err
7584  rm -f conftest.er1
7585  cat conftest.err >&5
7586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); } && {
7588	 test -z "$ac_c_werror_flag" ||
7589	 test ! -s conftest.err
7590       } && test -s conftest$ac_exeext && {
7591	 test "$cross_compiling" = yes ||
7592	 $as_test_x conftest$ac_exeext
7593       }; then
7594  ac_cv_lib_ipc_shmat=yes
7595else
7596  $as_echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599	ac_cv_lib_ipc_shmat=no
7600fi
7601
7602rm -rf conftest.dSYM
7603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7604      conftest$ac_exeext conftest.$ac_ext
7605LIBS=$ac_check_lib_save_LIBS
7606fi
7607{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7608$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7609if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7610  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7611fi
7612
7613    fi
7614  fi
7615
7616  # Check for libraries that X11R6 Xt/Xaw programs need.
7617  ac_save_LDFLAGS=$LDFLAGS
7618  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7619  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7620  # check for ICE first), but we must link in the order -lSM -lICE or
7621  # we get undefined symbols.  So assume we have SM if we have ICE.
7622  # These have to be linked with before -lX11, unlike the other
7623  # libraries we check for below, so use a different variable.
7624  # John Interrante, Karl Berry
7625  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7626$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7627if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7628  $as_echo_n "(cached) " >&6
7629else
7630  ac_check_lib_save_LIBS=$LIBS
7631LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7632cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h.  */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h.  */
7638
7639/* Override any GCC internal prototype to avoid an error.
7640   Use char because int might match the return type of a GCC
7641   builtin and then its argument prototype would still apply.  */
7642#ifdef __cplusplus
7643extern "C"
7644#endif
7645char IceConnectionNumber ();
7646int
7647main ()
7648{
7649return IceConnectionNumber ();
7650  ;
7651  return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (ac_try="$ac_link"
7656case "(($ac_try" in
7657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658  *) ac_try_echo=$ac_try;;
7659esac
7660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661$as_echo "$ac_try_echo") >&5
7662  (eval "$ac_link") 2>conftest.er1
7663  ac_status=$?
7664  grep -v '^ *+' conftest.er1 >conftest.err
7665  rm -f conftest.er1
7666  cat conftest.err >&5
7667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); } && {
7669	 test -z "$ac_c_werror_flag" ||
7670	 test ! -s conftest.err
7671       } && test -s conftest$ac_exeext && {
7672	 test "$cross_compiling" = yes ||
7673	 $as_test_x conftest$ac_exeext
7674       }; then
7675  ac_cv_lib_ICE_IceConnectionNumber=yes
7676else
7677  $as_echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680	ac_cv_lib_ICE_IceConnectionNumber=no
7681fi
7682
7683rm -rf conftest.dSYM
7684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685      conftest$ac_exeext conftest.$ac_ext
7686LIBS=$ac_check_lib_save_LIBS
7687fi
7688{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7689$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7690if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7691  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7692fi
7693
7694  LDFLAGS=$ac_save_LDFLAGS
7695
7696fi
7697
7698
7699        if test "$OS390Unix" = "yes"; then
7700    CFLAGS="$CFLAGS -W c,dll"
7701    LDFLAGS="$LDFLAGS -W l,dll"
7702    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7703  fi
7704
7705
7706  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7707    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7708    { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7709$as_echo "Corrected X libraries to $x_libraries" >&6; }
7710    X_LIBS="$X_LIBS -L$x_libraries"
7711    if test "`(uname) 2>/dev/null`" = SunOS &&
7712					 uname -r | grep '^5' >/dev/null; then
7713      X_LIBS="$X_LIBS -R $x_libraries"
7714    fi
7715  fi
7716
7717  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7718    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7719    { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7720$as_echo "Corrected X includes to $x_includes" >&6; }
7721    X_CFLAGS="$X_CFLAGS -I$x_includes"
7722  fi
7723
7724    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7725    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7726    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7727
7728
7729        { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7730$as_echo_n "checking if X11 header files can be found... " >&6; }
7731  cflags_save=$CFLAGS
7732  CFLAGS="$CFLAGS $X_CFLAGS"
7733  cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h.  */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h.  */
7739#include <X11/Xlib.h>
7740#include <X11/Intrinsic.h>
7741int
7742main ()
7743{
7744
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749rm -f conftest.$ac_objext
7750if { (ac_try="$ac_compile"
7751case "(($ac_try" in
7752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753  *) ac_try_echo=$ac_try;;
7754esac
7755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756$as_echo "$ac_try_echo") >&5
7757  (eval "$ac_compile") 2>conftest.er1
7758  ac_status=$?
7759  grep -v '^ *+' conftest.er1 >conftest.err
7760  rm -f conftest.er1
7761  cat conftest.err >&5
7762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763  (exit $ac_status); } && {
7764	 test -z "$ac_c_werror_flag" ||
7765	 test ! -s conftest.err
7766       } && test -s conftest.$ac_objext; then
7767  { $as_echo "$as_me:$LINENO: result: yes" >&5
7768$as_echo "yes" >&6; }
7769else
7770  $as_echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
7773	{ $as_echo "$as_me:$LINENO: result: no" >&5
7774$as_echo "no" >&6; }; no_x=yes
7775fi
7776
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778  CFLAGS=$cflags_save
7779
7780  if test "${no_x-no}" = yes; then
7781    with_x=no
7782  else
7783    cat >>confdefs.h <<\_ACEOF
7784#define HAVE_X11 1
7785_ACEOF
7786
7787    X_LIB="-lXt -lX11";
7788
7789
7790    ac_save_LDFLAGS="$LDFLAGS"
7791    LDFLAGS="-L$x_libraries $LDFLAGS"
7792
7793            { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7794$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7795if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7796  $as_echo_n "(cached) " >&6
7797else
7798  ac_check_lib_save_LIBS=$LIBS
7799LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7800cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h.  */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h.  */
7806
7807/* Override any GCC internal prototype to avoid an error.
7808   Use char because int might match the return type of a GCC
7809   builtin and then its argument prototype would still apply.  */
7810#ifdef __cplusplus
7811extern "C"
7812#endif
7813char _XdmcpAuthDoIt ();
7814int
7815main ()
7816{
7817return _XdmcpAuthDoIt ();
7818  ;
7819  return 0;
7820}
7821_ACEOF
7822rm -f conftest.$ac_objext conftest$ac_exeext
7823if { (ac_try="$ac_link"
7824case "(($ac_try" in
7825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826  *) ac_try_echo=$ac_try;;
7827esac
7828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829$as_echo "$ac_try_echo") >&5
7830  (eval "$ac_link") 2>conftest.er1
7831  ac_status=$?
7832  grep -v '^ *+' conftest.er1 >conftest.err
7833  rm -f conftest.er1
7834  cat conftest.err >&5
7835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); } && {
7837	 test -z "$ac_c_werror_flag" ||
7838	 test ! -s conftest.err
7839       } && test -s conftest$ac_exeext && {
7840	 test "$cross_compiling" = yes ||
7841	 $as_test_x conftest$ac_exeext
7842       }; then
7843  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7844else
7845  $as_echo "$as_me: failed program was:" >&5
7846sed 's/^/| /' conftest.$ac_ext >&5
7847
7848	ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7849fi
7850
7851rm -rf conftest.dSYM
7852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853      conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7857$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7858if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7859  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7860fi
7861
7862
7863                    { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7864$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7865if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7866  $as_echo_n "(cached) " >&6
7867else
7868  ac_check_lib_save_LIBS=$LIBS
7869LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7870cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h.  */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h.  */
7876
7877/* Override any GCC internal prototype to avoid an error.
7878   Use char because int might match the return type of a GCC
7879   builtin and then its argument prototype would still apply.  */
7880#ifdef __cplusplus
7881extern "C"
7882#endif
7883char IceOpenConnection ();
7884int
7885main ()
7886{
7887return IceOpenConnection ();
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (ac_try="$ac_link"
7894case "(($ac_try" in
7895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896  *) ac_try_echo=$ac_try;;
7897esac
7898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899$as_echo "$ac_try_echo") >&5
7900  (eval "$ac_link") 2>conftest.er1
7901  ac_status=$?
7902  grep -v '^ *+' conftest.er1 >conftest.err
7903  rm -f conftest.er1
7904  cat conftest.err >&5
7905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906  (exit $ac_status); } && {
7907	 test -z "$ac_c_werror_flag" ||
7908	 test ! -s conftest.err
7909       } && test -s conftest$ac_exeext && {
7910	 test "$cross_compiling" = yes ||
7911	 $as_test_x conftest$ac_exeext
7912       }; then
7913  ac_cv_lib_ICE_IceOpenConnection=yes
7914else
7915  $as_echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918	ac_cv_lib_ICE_IceOpenConnection=no
7919fi
7920
7921rm -rf conftest.dSYM
7922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7923      conftest$ac_exeext conftest.$ac_ext
7924LIBS=$ac_check_lib_save_LIBS
7925fi
7926{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7927$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7928if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7929  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7930fi
7931
7932
7933        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7934    { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7935$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7936if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7937  $as_echo_n "(cached) " >&6
7938else
7939  ac_check_lib_save_LIBS=$LIBS
7940LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7941cat >conftest.$ac_ext <<_ACEOF
7942/* confdefs.h.  */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h.  */
7947
7948/* Override any GCC internal prototype to avoid an error.
7949   Use char because int might match the return type of a GCC
7950   builtin and then its argument prototype would still apply.  */
7951#ifdef __cplusplus
7952extern "C"
7953#endif
7954char XpmCreatePixmapFromData ();
7955int
7956main ()
7957{
7958return XpmCreatePixmapFromData ();
7959  ;
7960  return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext conftest$ac_exeext
7964if { (ac_try="$ac_link"
7965case "(($ac_try" in
7966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967  *) ac_try_echo=$ac_try;;
7968esac
7969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970$as_echo "$ac_try_echo") >&5
7971  (eval "$ac_link") 2>conftest.er1
7972  ac_status=$?
7973  grep -v '^ *+' conftest.er1 >conftest.err
7974  rm -f conftest.er1
7975  cat conftest.err >&5
7976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); } && {
7978	 test -z "$ac_c_werror_flag" ||
7979	 test ! -s conftest.err
7980       } && test -s conftest$ac_exeext && {
7981	 test "$cross_compiling" = yes ||
7982	 $as_test_x conftest$ac_exeext
7983       }; then
7984  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7985else
7986  $as_echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
7989	ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7990fi
7991
7992rm -rf conftest.dSYM
7993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994      conftest$ac_exeext conftest.$ac_ext
7995LIBS=$ac_check_lib_save_LIBS
7996fi
7997{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7998$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7999if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
8000  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8001fi
8002
8003
8004        { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8005$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8006    cflags_save=$CFLAGS
8007    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8008    cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h.  */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h.  */
8014#include <X11/Xlib.h>
8015int
8016main ()
8017{
8018
8019  ;
8020  return 0;
8021}
8022_ACEOF
8023rm -f conftest.$ac_objext
8024if { (ac_try="$ac_compile"
8025case "(($ac_try" in
8026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027  *) ac_try_echo=$ac_try;;
8028esac
8029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030$as_echo "$ac_try_echo") >&5
8031  (eval "$ac_compile") 2>conftest.er1
8032  ac_status=$?
8033  grep -v '^ *+' conftest.er1 >conftest.err
8034  rm -f conftest.er1
8035  cat conftest.err >&5
8036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037  (exit $ac_status); } && {
8038	 test -z "$ac_c_werror_flag" ||
8039	 test ! -s conftest.err
8040       } && test -s conftest.$ac_objext; then
8041  { $as_echo "$as_me:$LINENO: result: no" >&5
8042$as_echo "no" >&6; }
8043else
8044  $as_echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047	CFLAGS="$CFLAGS -Wno-implicit-int"
8048	cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h.  */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h.  */
8054#include <X11/Xlib.h>
8055int
8056main ()
8057{
8058
8059  ;
8060  return 0;
8061}
8062_ACEOF
8063rm -f conftest.$ac_objext
8064if { (ac_try="$ac_compile"
8065case "(($ac_try" in
8066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067  *) ac_try_echo=$ac_try;;
8068esac
8069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070$as_echo "$ac_try_echo") >&5
8071  (eval "$ac_compile") 2>conftest.er1
8072  ac_status=$?
8073  grep -v '^ *+' conftest.er1 >conftest.err
8074  rm -f conftest.er1
8075  cat conftest.err >&5
8076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077  (exit $ac_status); } && {
8078	 test -z "$ac_c_werror_flag" ||
8079	 test ! -s conftest.err
8080       } && test -s conftest.$ac_objext; then
8081  { $as_echo "$as_me:$LINENO: result: yes" >&5
8082$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8083else
8084  $as_echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087	{ $as_echo "$as_me:$LINENO: result: test failed" >&5
8088$as_echo "test failed" >&6; }
8089
8090fi
8091
8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
8094fi
8095
8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097    CFLAGS=$cflags_save
8098
8099    LDFLAGS="$ac_save_LDFLAGS"
8100
8101    { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8102$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8103    if test "${ac_cv_small_wchar_t+set}" = set; then
8104  $as_echo_n "(cached) " >&6
8105else
8106  if test "$cross_compiling" = yes; then
8107  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8108$as_echo "$as_me: error: failed to compile test program" >&2;}
8109   { (exit 1); exit 1; }; }
8110else
8111  cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117
8118#include <X11/Xlib.h>
8119#if STDC_HEADERS
8120# include <stdlib.h>
8121# include <stddef.h>
8122#endif
8123		main()
8124		{
8125		  if (sizeof(wchar_t) <= 2)
8126		    exit(1);
8127		  exit(0);
8128		}
8129_ACEOF
8130rm -f conftest$ac_exeext
8131if { (ac_try="$ac_link"
8132case "(($ac_try" in
8133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134  *) ac_try_echo=$ac_try;;
8135esac
8136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137$as_echo "$ac_try_echo") >&5
8138  (eval "$ac_link") 2>&5
8139  ac_status=$?
8140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8142  { (case "(($ac_try" in
8143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144  *) ac_try_echo=$ac_try;;
8145esac
8146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8147$as_echo "$ac_try_echo") >&5
8148  (eval "$ac_try") 2>&5
8149  ac_status=$?
8150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); }; }; then
8152  ac_cv_small_wchar_t="no"
8153else
8154  $as_echo "$as_me: program exited with status $ac_status" >&5
8155$as_echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158( exit $ac_status )
8159ac_cv_small_wchar_t="yes"
8160fi
8161rm -rf conftest.dSYM
8162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8163fi
8164
8165
8166fi
8167
8168    { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8169$as_echo "$ac_cv_small_wchar_t" >&6; }
8170    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8171      cat >>confdefs.h <<\_ACEOF
8172#define SMALL_WCHAR_T 1
8173_ACEOF
8174
8175    fi
8176
8177  fi
8178fi
8179
8180test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8181
8182{ $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8183$as_echo_n "checking --enable-gui argument... " >&6; }
8184# Check whether --enable-gui was given.
8185if test "${enable_gui+set}" = set; then
8186  enableval=$enable_gui;
8187else
8188  enable_gui="auto"
8189fi
8190
8191
8192enable_gui_canon=`echo "_$enable_gui" | \
8193	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8194
8195SKIP_GTK=YES
8196SKIP_GTK2=YES
8197SKIP_GNOME=YES
8198SKIP_MOTIF=YES
8199SKIP_ATHENA=YES
8200SKIP_NEXTAW=YES
8201SKIP_PHOTON=YES
8202SKIP_CARBON=YES
8203GUITYPE=NONE
8204
8205if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8206  SKIP_PHOTON=
8207  case "$enable_gui_canon" in
8208    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8209$as_echo "no GUI support" >&6; }
8210		SKIP_PHOTON=YES ;;
8211    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8212$as_echo "yes - automatic GUI support" >&6; } ;;
8213    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8214$as_echo "auto - automatic GUI support" >&6; } ;;
8215    photon)	{ $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8216$as_echo "Photon GUI support" >&6; } ;;
8217    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8218$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8219		SKIP_PHOTON=YES ;;
8220  esac
8221
8222elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8223  SKIP_CARBON=
8224  case "$enable_gui_canon" in
8225    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8226$as_echo "no GUI support" >&6; }
8227		SKIP_CARBON=YES ;;
8228    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8229$as_echo "yes - automatic GUI support" >&6; } ;;
8230    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8231$as_echo "auto - automatic GUI support" >&6; } ;;
8232    carbon)	{ $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8233$as_echo "Carbon GUI support" >&6; } ;;
8234    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8235$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8236		SKIP_CARBON=YES ;;
8237  esac
8238
8239else
8240
8241  case "$enable_gui_canon" in
8242    no|none)	{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8243$as_echo "no GUI support" >&6; } ;;
8244    yes|""|auto)	{ $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8245$as_echo "yes/auto - automatic GUI support" >&6; }
8246		SKIP_GTK=
8247		SKIP_GTK2=
8248		SKIP_GNOME=
8249		SKIP_MOTIF=
8250		SKIP_ATHENA=
8251		SKIP_NEXTAW=
8252		SKIP_CARBON=;;
8253    gtk)	{ $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8254$as_echo "GTK+ 1.x GUI support" >&6; }
8255		SKIP_GTK=;;
8256    gtk2)	{ $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8257$as_echo "GTK+ 2.x GUI support" >&6; }
8258		SKIP_GTK=
8259		SKIP_GTK2=;;
8260    gnome)	{ $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8261$as_echo "GNOME 1.x GUI support" >&6; }
8262		SKIP_GNOME=
8263		SKIP_GTK=;;
8264    gnome2)	{ $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8265$as_echo "GNOME 2.x GUI support" >&6; }
8266		SKIP_GNOME=
8267		SKIP_GTK=
8268		SKIP_GTK2=;;
8269    motif)	{ $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8270$as_echo "Motif GUI support" >&6; }
8271		SKIP_MOTIF=;;
8272    athena)	{ $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8273$as_echo "Athena GUI support" >&6; }
8274		SKIP_ATHENA=;;
8275    nextaw)	{ $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8276$as_echo "neXtaw GUI support" >&6; }
8277		SKIP_NEXTAW=;;
8278    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8279$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8280  esac
8281
8282fi
8283
8284if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8285  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8286$as_echo_n "checking whether or not to look for GTK... " >&6; }
8287  # Check whether --enable-gtk-check was given.
8288if test "${enable_gtk_check+set}" = set; then
8289  enableval=$enable_gtk_check;
8290else
8291  enable_gtk_check="yes"
8292fi
8293
8294  { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8295$as_echo "$enable_gtk_check" >&6; }
8296  if test "x$enable_gtk_check" = "xno"; then
8297    SKIP_GTK=YES
8298    SKIP_GNOME=YES
8299  fi
8300fi
8301
8302if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8303				-a "$enable_gui_canon" != "gnome2"; then
8304  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8305$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8306  # Check whether --enable-gtk2-check was given.
8307if test "${enable_gtk2_check+set}" = set; then
8308  enableval=$enable_gtk2_check;
8309else
8310  enable_gtk2_check="yes"
8311fi
8312
8313  { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8314$as_echo "$enable_gtk2_check" >&6; }
8315  if test "x$enable_gtk2_check" = "xno"; then
8316    SKIP_GTK2=YES
8317  fi
8318fi
8319
8320if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8321				 -a "$enable_gui_canon" != "gnome2"; then
8322  { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8323$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8324  # Check whether --enable-gnome-check was given.
8325if test "${enable_gnome_check+set}" = set; then
8326  enableval=$enable_gnome_check;
8327else
8328  enable_gnome_check="no"
8329fi
8330
8331  { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8332$as_echo "$enable_gnome_check" >&6; }
8333  if test "x$enable_gnome_check" = "xno"; then
8334    SKIP_GNOME=YES
8335  fi
8336fi
8337
8338if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8339  { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8340$as_echo_n "checking whether or not to look for Motif... " >&6; }
8341  # Check whether --enable-motif-check was given.
8342if test "${enable_motif_check+set}" = set; then
8343  enableval=$enable_motif_check;
8344else
8345  enable_motif_check="yes"
8346fi
8347
8348  { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8349$as_echo "$enable_motif_check" >&6; }
8350  if test "x$enable_motif_check" = "xno"; then
8351    SKIP_MOTIF=YES
8352  fi
8353fi
8354
8355if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8356  { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8357$as_echo_n "checking whether or not to look for Athena... " >&6; }
8358  # Check whether --enable-athena-check was given.
8359if test "${enable_athena_check+set}" = set; then
8360  enableval=$enable_athena_check;
8361else
8362  enable_athena_check="yes"
8363fi
8364
8365  { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8366$as_echo "$enable_athena_check" >&6; }
8367  if test "x$enable_athena_check" = "xno"; then
8368    SKIP_ATHENA=YES
8369  fi
8370fi
8371
8372if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8373  { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8374$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8375  # Check whether --enable-nextaw-check was given.
8376if test "${enable_nextaw_check+set}" = set; then
8377  enableval=$enable_nextaw_check;
8378else
8379  enable_nextaw_check="yes"
8380fi
8381
8382  { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8383$as_echo "$enable_nextaw_check" >&6; };
8384  if test "x$enable_nextaw_check" = "xno"; then
8385    SKIP_NEXTAW=YES
8386  fi
8387fi
8388
8389if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8390  { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8391$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8392  # Check whether --enable-carbon-check was given.
8393if test "${enable_carbon_check+set}" = set; then
8394  enableval=$enable_carbon_check;
8395else
8396  enable_carbon_check="yes"
8397fi
8398
8399  { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8400$as_echo "$enable_carbon_check" >&6; };
8401  if test "x$enable_carbon_check" = "xno"; then
8402    SKIP_CARBON=YES
8403  fi
8404fi
8405
8406
8407if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8408  { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8409$as_echo_n "checking for Carbon GUI... " >&6; }
8410    { $as_echo "$as_me:$LINENO: result: yes" >&5
8411$as_echo "yes" >&6; };
8412  GUITYPE=CARBONGUI
8413  if test "$VIMNAME" = "vim"; then
8414    VIMNAME=Vim
8415  fi
8416
8417    if test x$prefix = xNONE; then
8418    prefix=/Applications
8419  fi
8420
8421    datadir='${prefix}/Vim.app/Contents/Resources'
8422
8423    SKIP_GTK=YES;
8424  SKIP_GTK2=YES;
8425  SKIP_GNOME=YES;
8426  SKIP_MOTIF=YES;
8427  SKIP_ATHENA=YES;
8428  SKIP_NEXTAW=YES;
8429  SKIP_PHOTON=YES;
8430  SKIP_CARBON=YES
8431fi
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441if test -z "$SKIP_GTK"; then
8442
8443  { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8444$as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8445
8446# Check whether --with-gtk-prefix was given.
8447if test "${with_gtk_prefix+set}" = set; then
8448  withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8449$as_echo "$gtk_config_prefix" >&6; }
8450else
8451  gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455
8456  { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8457$as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8458
8459# Check whether --with-gtk-exec-prefix was given.
8460if test "${with_gtk_exec_prefix+set}" = set; then
8461  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8462$as_echo "$gtk_config_prefix" >&6; }
8463else
8464  gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8465$as_echo "no" >&6; }
8466fi
8467
8468
8469  { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8470$as_echo_n "checking --disable-gtktest argument... " >&6; }
8471  # Check whether --enable-gtktest was given.
8472if test "${enable_gtktest+set}" = set; then
8473  enableval=$enable_gtktest;
8474else
8475  enable_gtktest=yes
8476fi
8477
8478  if test "x$enable_gtktest" = "xyes" ; then
8479    { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8480$as_echo "gtk test enabled" >&6; }
8481  else
8482    { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8483$as_echo "gtk test disabled" >&6; }
8484  fi
8485
8486  if test "x$gtk_config_prefix" != "x" ; then
8487    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8488    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8489  fi
8490  if test "x$gtk_config_exec_prefix" != "x" ; then
8491    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8492    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8493  fi
8494  if test "X$GTK_CONFIG" = "X"; then
8495    # Extract the first word of "gtk-config", so it can be a program name with args.
8496set dummy gtk-config; ac_word=$2
8497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8500  $as_echo_n "(cached) " >&6
8501else
8502  case $GTK_CONFIG in
8503  [\\/]* | ?:[\\/]*)
8504  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8505  ;;
8506  *)
8507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510  IFS=$as_save_IFS
8511  test -z "$as_dir" && as_dir=.
8512  for ac_exec_ext in '' $ac_executable_extensions; do
8513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516    break 2
8517  fi
8518done
8519done
8520IFS=$as_save_IFS
8521
8522  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8523  ;;
8524esac
8525fi
8526GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8527if test -n "$GTK_CONFIG"; then
8528  { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8529$as_echo "$GTK_CONFIG" >&6; }
8530else
8531  { $as_echo "$as_me:$LINENO: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534
8535
8536    if test "X$GTK_CONFIG" = "Xno"; then
8537            # Extract the first word of "gtk12-config", so it can be a program name with args.
8538set dummy gtk12-config; ac_word=$2
8539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8542  $as_echo_n "(cached) " >&6
8543else
8544  case $GTK12_CONFIG in
8545  [\\/]* | ?:[\\/]*)
8546  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8547  ;;
8548  *)
8549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550for as_dir in $PATH
8551do
8552  IFS=$as_save_IFS
8553  test -z "$as_dir" && as_dir=.
8554  for ac_exec_ext in '' $ac_executable_extensions; do
8555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558    break 2
8559  fi
8560done
8561done
8562IFS=$as_save_IFS
8563
8564  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8565  ;;
8566esac
8567fi
8568GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8569if test -n "$GTK12_CONFIG"; then
8570  { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8571$as_echo "$GTK12_CONFIG" >&6; }
8572else
8573  { $as_echo "$as_me:$LINENO: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577
8578      GTK_CONFIG="$GTK12_CONFIG"
8579    fi
8580  else
8581    { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8582$as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8583  fi
8584  if test "X$PKG_CONFIG" = "X"; then
8585    # Extract the first word of "pkg-config", so it can be a program name with args.
8586set dummy pkg-config; ac_word=$2
8587{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8590  $as_echo_n "(cached) " >&6
8591else
8592  case $PKG_CONFIG in
8593  [\\/]* | ?:[\\/]*)
8594  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8595  ;;
8596  *)
8597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600  IFS=$as_save_IFS
8601  test -z "$as_dir" && as_dir=.
8602  for ac_exec_ext in '' $ac_executable_extensions; do
8603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8605    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8606    break 2
8607  fi
8608done
8609done
8610IFS=$as_save_IFS
8611
8612  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8613  ;;
8614esac
8615fi
8616PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8617if test -n "$PKG_CONFIG"; then
8618  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8619$as_echo "$PKG_CONFIG" >&6; }
8620else
8621  { $as_echo "$as_me:$LINENO: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
8624
8625
8626  fi
8627
8628  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8629            if test "X$SKIP_GTK2" != "XYES"; then
8630
8631  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8632  {
8633    min_gtk_version=2.2.0
8634    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8635$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8636    no_gtk=""
8637    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8638	  && $PKG_CONFIG --exists gtk+-2.0; then
8639    {
8640                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8641      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8642      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8643      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8644	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8645      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8646	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8647      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8648	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8649    }
8650    elif test "X$GTK_CONFIG" != "Xno"; then
8651    {
8652      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8653      GTK_LIBDIR=
8654      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8655      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8656	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8657      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8658	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8659      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8660	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8661    }
8662    else
8663      no_gtk=yes
8664    fi
8665
8666    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8667    {
8668      ac_save_CFLAGS="$CFLAGS"
8669      ac_save_LIBS="$LIBS"
8670      CFLAGS="$CFLAGS $GTK_CFLAGS"
8671      LIBS="$LIBS $GTK_LIBS"
8672
8673                              rm -f conf.gtktest
8674      if test "$cross_compiling" = yes; then
8675  echo $ac_n "cross compiling; assumed OK... $ac_c"
8676else
8677  cat >conftest.$ac_ext <<_ACEOF
8678/* confdefs.h.  */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h.  */
8683
8684#include <gtk/gtk.h>
8685#include <stdio.h>
8686#if STDC_HEADERS
8687# include <stdlib.h>
8688# include <stddef.h>
8689#endif
8690
8691int
8692main ()
8693{
8694int major, minor, micro;
8695char *tmp_version;
8696
8697system ("touch conf.gtktest");
8698
8699/* HP/UX 9 (%@#!) writes to sscanf strings */
8700tmp_version = g_strdup("$min_gtk_version");
8701if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8702   printf("%s, bad version string\n", "$min_gtk_version");
8703   exit(1);
8704 }
8705
8706if ((gtk_major_version > major) ||
8707    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8708    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8709				     (gtk_micro_version >= micro)))
8710{
8711    return 0;
8712}
8713return 1;
8714}
8715
8716_ACEOF
8717rm -f conftest$ac_exeext
8718if { (ac_try="$ac_link"
8719case "(($ac_try" in
8720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721  *) ac_try_echo=$ac_try;;
8722esac
8723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724$as_echo "$ac_try_echo") >&5
8725  (eval "$ac_link") 2>&5
8726  ac_status=$?
8727  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8729  { (case "(($ac_try" in
8730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731  *) ac_try_echo=$ac_try;;
8732esac
8733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734$as_echo "$ac_try_echo") >&5
8735  (eval "$ac_try") 2>&5
8736  ac_status=$?
8737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738  (exit $ac_status); }; }; then
8739  :
8740else
8741  $as_echo "$as_me: program exited with status $ac_status" >&5
8742$as_echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745( exit $ac_status )
8746no_gtk=yes
8747fi
8748rm -rf conftest.dSYM
8749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8750fi
8751
8752
8753      CFLAGS="$ac_save_CFLAGS"
8754      LIBS="$ac_save_LIBS"
8755    }
8756    fi
8757    if test "x$no_gtk" = x ; then
8758      if test "x$enable_gtktest" = "xyes"; then
8759	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8760$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8761      else
8762	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8763$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8764      fi
8765      GUI_LIB_LOC="$GTK_LIBDIR"
8766		   GTK_LIBNAME="$GTK_LIBS"
8767		  GUI_INC_LOC="$GTK_CFLAGS"
8768    else
8769    {
8770      { $as_echo "$as_me:$LINENO: result: no" >&5
8771$as_echo "no" >&6; }
8772      GTK_CFLAGS=""
8773      GTK_LIBS=""
8774      :
8775    }
8776    fi
8777  }
8778  else
8779    GTK_CFLAGS=""
8780    GTK_LIBS=""
8781    :
8782  fi
8783
8784
8785  rm -f conf.gtktest
8786
8787      if test "x$GTK_CFLAGS" != "x"; then
8788	SKIP_ATHENA=YES
8789	SKIP_NEXTAW=YES
8790	SKIP_MOTIF=YES
8791	GUITYPE=GTK
8792
8793      fi
8794    fi
8795
8796                if test "x$GUITYPE" != "xGTK"; then
8797      SKIP_GTK2=YES
8798
8799  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8800  {
8801    min_gtk_version=1.1.16
8802    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8803$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8804    no_gtk=""
8805    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8806	  && $PKG_CONFIG --exists gtk+-2.0; then
8807    {
8808                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8809      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8810      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8811      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8812	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8813      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8814	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8815      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8816	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8817    }
8818    elif test "X$GTK_CONFIG" != "Xno"; then
8819    {
8820      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8821      GTK_LIBDIR=
8822      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8823      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8824	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8825      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8826	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8827      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8828	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8829    }
8830    else
8831      no_gtk=yes
8832    fi
8833
8834    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8835    {
8836      ac_save_CFLAGS="$CFLAGS"
8837      ac_save_LIBS="$LIBS"
8838      CFLAGS="$CFLAGS $GTK_CFLAGS"
8839      LIBS="$LIBS $GTK_LIBS"
8840
8841                              rm -f conf.gtktest
8842      if test "$cross_compiling" = yes; then
8843  echo $ac_n "cross compiling; assumed OK... $ac_c"
8844else
8845  cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h.  */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h.  */
8851
8852#include <gtk/gtk.h>
8853#include <stdio.h>
8854#if STDC_HEADERS
8855# include <stdlib.h>
8856# include <stddef.h>
8857#endif
8858
8859int
8860main ()
8861{
8862int major, minor, micro;
8863char *tmp_version;
8864
8865system ("touch conf.gtktest");
8866
8867/* HP/UX 9 (%@#!) writes to sscanf strings */
8868tmp_version = g_strdup("$min_gtk_version");
8869if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8870   printf("%s, bad version string\n", "$min_gtk_version");
8871   exit(1);
8872 }
8873
8874if ((gtk_major_version > major) ||
8875    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8876    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8877				     (gtk_micro_version >= micro)))
8878{
8879    return 0;
8880}
8881return 1;
8882}
8883
8884_ACEOF
8885rm -f conftest$ac_exeext
8886if { (ac_try="$ac_link"
8887case "(($ac_try" in
8888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889  *) ac_try_echo=$ac_try;;
8890esac
8891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8892$as_echo "$ac_try_echo") >&5
8893  (eval "$ac_link") 2>&5
8894  ac_status=$?
8895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897  { (case "(($ac_try" in
8898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899  *) ac_try_echo=$ac_try;;
8900esac
8901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902$as_echo "$ac_try_echo") >&5
8903  (eval "$ac_try") 2>&5
8904  ac_status=$?
8905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906  (exit $ac_status); }; }; then
8907  :
8908else
8909  $as_echo "$as_me: program exited with status $ac_status" >&5
8910$as_echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913( exit $ac_status )
8914no_gtk=yes
8915fi
8916rm -rf conftest.dSYM
8917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918fi
8919
8920
8921      CFLAGS="$ac_save_CFLAGS"
8922      LIBS="$ac_save_LIBS"
8923    }
8924    fi
8925    if test "x$no_gtk" = x ; then
8926      if test "x$enable_gtktest" = "xyes"; then
8927	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8928$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8929      else
8930	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8931$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8932      fi
8933      GTK_LIBNAME="$GTK_LIBS"
8934		  GUI_INC_LOC="$GTK_CFLAGS"
8935    else
8936    {
8937      { $as_echo "$as_me:$LINENO: result: no" >&5
8938$as_echo "no" >&6; }
8939      GTK_CFLAGS=""
8940      GTK_LIBS=""
8941      :
8942    }
8943    fi
8944  }
8945  else
8946    GTK_CFLAGS=""
8947    GTK_LIBS=""
8948    :
8949  fi
8950
8951
8952  rm -f conf.gtktest
8953
8954      if test "x$GTK_CFLAGS" != "x"; then
8955	SKIP_ATHENA=YES
8956	SKIP_NEXTAW=YES
8957	SKIP_MOTIF=YES
8958	GUITYPE=GTK
8959
8960      fi
8961    fi
8962  fi
8963    if test "x$GUITYPE" = "xGTK"; then
8964    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8965	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8966      { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8967$as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8968    else
8969    {
8970      if test "0$gtk_major_version" -ge 2; then
8971	cat >>confdefs.h <<\_ACEOF
8972#define HAVE_GTK2 1
8973_ACEOF
8974
8975	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8976		|| test "0$gtk_minor_version" -ge 2 \
8977		|| test "0$gtk_major_version" -gt 2; then
8978	  cat >>confdefs.h <<\_ACEOF
8979#define HAVE_GTK_MULTIHEAD 1
8980_ACEOF
8981
8982	fi
8983      fi
8984                        if test -z "$SKIP_GNOME"; then
8985      {
8986
8987
8988
8989
8990
8991
8992# Check whether --with-gnome-includes was given.
8993if test "${with_gnome_includes+set}" = set; then
8994  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8995
8996fi
8997
8998
8999
9000# Check whether --with-gnome-libs was given.
9001if test "${with_gnome_libs+set}" = set; then
9002  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9003
9004fi
9005
9006
9007
9008# Check whether --with-gnome was given.
9009if test "${with_gnome+set}" = set; then
9010  withval=$with_gnome; if test x$withval = xyes; then
9011      want_gnome=yes
9012      have_gnome=yes
9013    else
9014      if test "x$withval" = xno; then
9015	want_gnome=no
9016      else
9017	want_gnome=yes
9018	LDFLAGS="$LDFLAGS -L$withval/lib"
9019	CFLAGS="$CFLAGS -I$withval/include"
9020	gnome_prefix=$withval/lib
9021      fi
9022    fi
9023else
9024  want_gnome=yes
9025fi
9026
9027
9028  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9029  {
9030    { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9031$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9032    if $PKG_CONFIG --exists libgnomeui-2.0; then
9033      { $as_echo "$as_me:$LINENO: result: yes" >&5
9034$as_echo "yes" >&6; }
9035      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9036      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9037      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9038
9039                  { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9040$as_echo_n "checking for FreeBSD... " >&6; }
9041      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9042	{ $as_echo "$as_me:$LINENO: result: yes" >&5
9043$as_echo "yes" >&6; }
9044	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9045	GNOME_LIBS="$GNOME_LIBS -pthread"
9046      else
9047	{ $as_echo "$as_me:$LINENO: result: no" >&5
9048$as_echo "no" >&6; }
9049      fi
9050      have_gnome=yes
9051    else
9052      { $as_echo "$as_me:$LINENO: result: not found" >&5
9053$as_echo "not found" >&6; }
9054      if test "x" = xfail; then
9055	{ { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9056$as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9057   { (exit 1); exit 1; }; }
9058      fi
9059    fi
9060  }
9061  elif test "x$want_gnome" = xyes; then
9062  {
9063    # Extract the first word of "gnome-config", so it can be a program name with args.
9064set dummy gnome-config; ac_word=$2
9065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9066$as_echo_n "checking for $ac_word... " >&6; }
9067if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9068  $as_echo_n "(cached) " >&6
9069else
9070  case $GNOME_CONFIG in
9071  [\\/]* | ?:[\\/]*)
9072  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9073  ;;
9074  *)
9075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076for as_dir in $PATH
9077do
9078  IFS=$as_save_IFS
9079  test -z "$as_dir" && as_dir=.
9080  for ac_exec_ext in '' $ac_executable_extensions; do
9081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9083    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9084    break 2
9085  fi
9086done
9087done
9088IFS=$as_save_IFS
9089
9090  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9091  ;;
9092esac
9093fi
9094GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9095if test -n "$GNOME_CONFIG"; then
9096  { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9097$as_echo "$GNOME_CONFIG" >&6; }
9098else
9099  { $as_echo "$as_me:$LINENO: result: no" >&5
9100$as_echo "no" >&6; }
9101fi
9102
9103
9104    if test "$GNOME_CONFIG" = "no"; then
9105      no_gnome_config="yes"
9106    else
9107      { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9108$as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9109      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9110	{ $as_echo "$as_me:$LINENO: result: yes" >&5
9111$as_echo "yes" >&6; }
9112	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9113	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9114	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9115	have_gnome=yes
9116      else
9117	{ $as_echo "$as_me:$LINENO: result: no" >&5
9118$as_echo "no" >&6; }
9119	no_gnome_config="yes"
9120      fi
9121    fi
9122
9123    if test x$exec_prefix = xNONE; then
9124      if test x$prefix = xNONE; then
9125	gnome_prefix=$ac_default_prefix/lib
9126      else
9127	gnome_prefix=$prefix/lib
9128      fi
9129    else
9130      gnome_prefix=`eval echo \`echo $libdir\``
9131    fi
9132
9133    if test "$no_gnome_config" = "yes"; then
9134      { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9135$as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9136      if test -f $gnome_prefix/gnomeConf.sh; then
9137	{ $as_echo "$as_me:$LINENO: result: found" >&5
9138$as_echo "found" >&6; }
9139	echo "loading gnome configuration from" \
9140	  "$gnome_prefix/gnomeConf.sh"
9141	. $gnome_prefix/gnomeConf.sh
9142	have_gnome=yes
9143      else
9144	{ $as_echo "$as_me:$LINENO: result: not found" >&5
9145$as_echo "not found" >&6; }
9146	if test x = xfail; then
9147	  { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9148$as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9149   { (exit 1); exit 1; }; }
9150	fi
9151      fi
9152    fi
9153  }
9154  fi
9155
9156	if test x$have_gnome = xyes ; then
9157	  cat >>confdefs.h <<\_ACEOF
9158#define FEAT_GUI_GNOME 1
9159_ACEOF
9160
9161	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9162	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9163	fi
9164      }
9165      fi
9166    }
9167    fi
9168  fi
9169fi
9170
9171
9172if test -z "$SKIP_MOTIF"; then
9173  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"
9174    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9175
9176  { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9177$as_echo_n "checking for location of Motif GUI includes... " >&6; }
9178  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9179  GUI_INC_LOC=
9180  for try in $gui_includes; do
9181    if test -f "$try/Xm/Xm.h"; then
9182      GUI_INC_LOC=$try
9183    fi
9184  done
9185  if test -n "$GUI_INC_LOC"; then
9186    if test "$GUI_INC_LOC" = /usr/include; then
9187      GUI_INC_LOC=
9188      { $as_echo "$as_me:$LINENO: result: in default path" >&5
9189$as_echo "in default path" >&6; }
9190    else
9191      { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9192$as_echo "$GUI_INC_LOC" >&6; }
9193    fi
9194  else
9195    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9196$as_echo "<not found>" >&6; }
9197    SKIP_MOTIF=YES
9198  fi
9199fi
9200
9201
9202if test -z "$SKIP_MOTIF"; then
9203  { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9204$as_echo_n "checking --with-motif-lib argument... " >&6; }
9205
9206# Check whether --with-motif-lib was given.
9207if test "${with_motif_lib+set}" = set; then
9208  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9209fi
9210
9211
9212  if test -n "$MOTIF_LIBNAME"; then
9213    { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9214$as_echo "$MOTIF_LIBNAME" >&6; }
9215    GUI_LIB_LOC=
9216  else
9217    { $as_echo "$as_me:$LINENO: result: no" >&5
9218$as_echo "no" >&6; }
9219
9220        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9221
9222    { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9223$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9224    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9225    GUI_LIB_LOC=
9226    for try in $gui_libs; do
9227      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9228	if test -f "$libtry"; then
9229	  GUI_LIB_LOC=$try
9230	fi
9231      done
9232    done
9233    if test -n "$GUI_LIB_LOC"; then
9234            if test "$GUI_LIB_LOC" = /usr/lib; then
9235	GUI_LIB_LOC=
9236	{ $as_echo "$as_me:$LINENO: result: in default path" >&5
9237$as_echo "in default path" >&6; }
9238      else
9239	if test -n "$GUI_LIB_LOC"; then
9240	  { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9241$as_echo "$GUI_LIB_LOC" >&6; }
9242	  if test "`(uname) 2>/dev/null`" = SunOS &&
9243					 uname -r | grep '^5' >/dev/null; then
9244	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9245	  fi
9246	fi
9247      fi
9248      MOTIF_LIBNAME=-lXm
9249    else
9250      { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9251$as_echo "<not found>" >&6; }
9252      SKIP_MOTIF=YES
9253    fi
9254  fi
9255fi
9256
9257if test -z "$SKIP_MOTIF"; then
9258  SKIP_ATHENA=YES
9259  SKIP_NEXTAW=YES
9260  GUITYPE=MOTIF
9261
9262fi
9263
9264
9265GUI_X_LIBS=
9266
9267if test -z "$SKIP_ATHENA"; then
9268  { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9269$as_echo_n "checking if Athena header files can be found... " >&6; }
9270  cflags_save=$CFLAGS
9271  CFLAGS="$CFLAGS $X_CFLAGS"
9272  cat >conftest.$ac_ext <<_ACEOF
9273/* confdefs.h.  */
9274_ACEOF
9275cat confdefs.h >>conftest.$ac_ext
9276cat >>conftest.$ac_ext <<_ACEOF
9277/* end confdefs.h.  */
9278
9279#include <X11/Intrinsic.h>
9280#include <X11/Xaw/Paned.h>
9281int
9282main ()
9283{
9284
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289rm -f conftest.$ac_objext
9290if { (ac_try="$ac_compile"
9291case "(($ac_try" in
9292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293  *) ac_try_echo=$ac_try;;
9294esac
9295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296$as_echo "$ac_try_echo") >&5
9297  (eval "$ac_compile") 2>conftest.er1
9298  ac_status=$?
9299  grep -v '^ *+' conftest.er1 >conftest.err
9300  rm -f conftest.er1
9301  cat conftest.err >&5
9302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); } && {
9304	 test -z "$ac_c_werror_flag" ||
9305	 test ! -s conftest.err
9306       } && test -s conftest.$ac_objext; then
9307  { $as_echo "$as_me:$LINENO: result: yes" >&5
9308$as_echo "yes" >&6; }
9309else
9310  $as_echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313	{ $as_echo "$as_me:$LINENO: result: no" >&5
9314$as_echo "no" >&6; }; SKIP_ATHENA=YES
9315fi
9316
9317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318  CFLAGS=$cflags_save
9319fi
9320
9321if test -z "$SKIP_ATHENA"; then
9322  GUITYPE=ATHENA
9323fi
9324
9325if test -z "$SKIP_NEXTAW"; then
9326  { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9327$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9328  cflags_save=$CFLAGS
9329  CFLAGS="$CFLAGS $X_CFLAGS"
9330  cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h.  */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h.  */
9336
9337#include <X11/Intrinsic.h>
9338#include <X11/neXtaw/Paned.h>
9339int
9340main ()
9341{
9342
9343  ;
9344  return 0;
9345}
9346_ACEOF
9347rm -f conftest.$ac_objext
9348if { (ac_try="$ac_compile"
9349case "(($ac_try" in
9350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351  *) ac_try_echo=$ac_try;;
9352esac
9353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354$as_echo "$ac_try_echo") >&5
9355  (eval "$ac_compile") 2>conftest.er1
9356  ac_status=$?
9357  grep -v '^ *+' conftest.er1 >conftest.err
9358  rm -f conftest.er1
9359  cat conftest.err >&5
9360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } && {
9362	 test -z "$ac_c_werror_flag" ||
9363	 test ! -s conftest.err
9364       } && test -s conftest.$ac_objext; then
9365  { $as_echo "$as_me:$LINENO: result: yes" >&5
9366$as_echo "yes" >&6; }
9367else
9368  $as_echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371	{ $as_echo "$as_me:$LINENO: result: no" >&5
9372$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9373fi
9374
9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376  CFLAGS=$cflags_save
9377fi
9378
9379if test -z "$SKIP_NEXTAW"; then
9380  GUITYPE=NEXTAW
9381fi
9382
9383if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9384      if test -n "$GUI_INC_LOC"; then
9385    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9386  fi
9387  if test -n "$GUI_LIB_LOC"; then
9388    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9389  fi
9390
9391    ldflags_save=$LDFLAGS
9392  LDFLAGS="$X_LIBS $LDFLAGS"
9393  { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9394$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9395if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9396  $as_echo_n "(cached) " >&6
9397else
9398  ac_check_lib_save_LIBS=$LIBS
9399LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9400cat >conftest.$ac_ext <<_ACEOF
9401/* confdefs.h.  */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h.  */
9406
9407/* Override any GCC internal prototype to avoid an error.
9408   Use char because int might match the return type of a GCC
9409   builtin and then its argument prototype would still apply.  */
9410#ifdef __cplusplus
9411extern "C"
9412#endif
9413char XShapeQueryExtension ();
9414int
9415main ()
9416{
9417return XShapeQueryExtension ();
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426  *) ac_try_echo=$ac_try;;
9427esac
9428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429$as_echo "$ac_try_echo") >&5
9430  (eval "$ac_link") 2>conftest.er1
9431  ac_status=$?
9432  grep -v '^ *+' conftest.er1 >conftest.err
9433  rm -f conftest.er1
9434  cat conftest.err >&5
9435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436  (exit $ac_status); } && {
9437	 test -z "$ac_c_werror_flag" ||
9438	 test ! -s conftest.err
9439       } && test -s conftest$ac_exeext && {
9440	 test "$cross_compiling" = yes ||
9441	 $as_test_x conftest$ac_exeext
9442       }; then
9443  ac_cv_lib_Xext_XShapeQueryExtension=yes
9444else
9445  $as_echo "$as_me: failed program was:" >&5
9446sed 's/^/| /' conftest.$ac_ext >&5
9447
9448	ac_cv_lib_Xext_XShapeQueryExtension=no
9449fi
9450
9451rm -rf conftest.dSYM
9452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453      conftest$ac_exeext conftest.$ac_ext
9454LIBS=$ac_check_lib_save_LIBS
9455fi
9456{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9457$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9458if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9459  GUI_X_LIBS="-lXext"
9460fi
9461
9462    { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9463$as_echo_n "checking for wslen in -lw... " >&6; }
9464if test "${ac_cv_lib_w_wslen+set}" = set; then
9465  $as_echo_n "(cached) " >&6
9466else
9467  ac_check_lib_save_LIBS=$LIBS
9468LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9469cat >conftest.$ac_ext <<_ACEOF
9470/* confdefs.h.  */
9471_ACEOF
9472cat confdefs.h >>conftest.$ac_ext
9473cat >>conftest.$ac_ext <<_ACEOF
9474/* end confdefs.h.  */
9475
9476/* Override any GCC internal prototype to avoid an error.
9477   Use char because int might match the return type of a GCC
9478   builtin and then its argument prototype would still apply.  */
9479#ifdef __cplusplus
9480extern "C"
9481#endif
9482char wslen ();
9483int
9484main ()
9485{
9486return wslen ();
9487  ;
9488  return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext conftest$ac_exeext
9492if { (ac_try="$ac_link"
9493case "(($ac_try" in
9494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495  *) ac_try_echo=$ac_try;;
9496esac
9497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498$as_echo "$ac_try_echo") >&5
9499  (eval "$ac_link") 2>conftest.er1
9500  ac_status=$?
9501  grep -v '^ *+' conftest.er1 >conftest.err
9502  rm -f conftest.er1
9503  cat conftest.err >&5
9504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505  (exit $ac_status); } && {
9506	 test -z "$ac_c_werror_flag" ||
9507	 test ! -s conftest.err
9508       } && test -s conftest$ac_exeext && {
9509	 test "$cross_compiling" = yes ||
9510	 $as_test_x conftest$ac_exeext
9511       }; then
9512  ac_cv_lib_w_wslen=yes
9513else
9514  $as_echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
9517	ac_cv_lib_w_wslen=no
9518fi
9519
9520rm -rf conftest.dSYM
9521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9522      conftest$ac_exeext conftest.$ac_ext
9523LIBS=$ac_check_lib_save_LIBS
9524fi
9525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9526$as_echo "$ac_cv_lib_w_wslen" >&6; }
9527if test "x$ac_cv_lib_w_wslen" = x""yes; then
9528  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9529fi
9530
9531  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9532$as_echo_n "checking for dlsym in -ldl... " >&6; }
9533if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9534  $as_echo_n "(cached) " >&6
9535else
9536  ac_check_lib_save_LIBS=$LIBS
9537LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9538cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h.  */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h.  */
9544
9545/* Override any GCC internal prototype to avoid an error.
9546   Use char because int might match the return type of a GCC
9547   builtin and then its argument prototype would still apply.  */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
9551char dlsym ();
9552int
9553main ()
9554{
9555return dlsym ();
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
9561if { (ac_try="$ac_link"
9562case "(($ac_try" in
9563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564  *) ac_try_echo=$ac_try;;
9565esac
9566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567$as_echo "$ac_try_echo") >&5
9568  (eval "$ac_link") 2>conftest.er1
9569  ac_status=$?
9570  grep -v '^ *+' conftest.er1 >conftest.err
9571  rm -f conftest.er1
9572  cat conftest.err >&5
9573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574  (exit $ac_status); } && {
9575	 test -z "$ac_c_werror_flag" ||
9576	 test ! -s conftest.err
9577       } && test -s conftest$ac_exeext && {
9578	 test "$cross_compiling" = yes ||
9579	 $as_test_x conftest$ac_exeext
9580       }; then
9581  ac_cv_lib_dl_dlsym=yes
9582else
9583  $as_echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586	ac_cv_lib_dl_dlsym=no
9587fi
9588
9589rm -rf conftest.dSYM
9590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591      conftest$ac_exeext conftest.$ac_ext
9592LIBS=$ac_check_lib_save_LIBS
9593fi
9594{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9595$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9596if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9597  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9598fi
9599
9600  { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9601$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9602if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9603  $as_echo_n "(cached) " >&6
9604else
9605  ac_check_lib_save_LIBS=$LIBS
9606LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607cat >conftest.$ac_ext <<_ACEOF
9608/* confdefs.h.  */
9609_ACEOF
9610cat confdefs.h >>conftest.$ac_ext
9611cat >>conftest.$ac_ext <<_ACEOF
9612/* end confdefs.h.  */
9613
9614/* Override any GCC internal prototype to avoid an error.
9615   Use char because int might match the return type of a GCC
9616   builtin and then its argument prototype would still apply.  */
9617#ifdef __cplusplus
9618extern "C"
9619#endif
9620char XmuCreateStippledPixmap ();
9621int
9622main ()
9623{
9624return XmuCreateStippledPixmap ();
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
9630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633  *) ac_try_echo=$ac_try;;
9634esac
9635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636$as_echo "$ac_try_echo") >&5
9637  (eval "$ac_link") 2>conftest.er1
9638  ac_status=$?
9639  grep -v '^ *+' conftest.er1 >conftest.err
9640  rm -f conftest.er1
9641  cat conftest.err >&5
9642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); } && {
9644	 test -z "$ac_c_werror_flag" ||
9645	 test ! -s conftest.err
9646       } && test -s conftest$ac_exeext && {
9647	 test "$cross_compiling" = yes ||
9648	 $as_test_x conftest$ac_exeext
9649       }; then
9650  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9651else
9652  $as_echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655	ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9656fi
9657
9658rm -rf conftest.dSYM
9659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660      conftest$ac_exeext conftest.$ac_ext
9661LIBS=$ac_check_lib_save_LIBS
9662fi
9663{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9664$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9665if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9666  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9667fi
9668
9669  if test -z "$SKIP_MOTIF"; then
9670    { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9671$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9672if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9673  $as_echo_n "(cached) " >&6
9674else
9675  ac_check_lib_save_LIBS=$LIBS
9676LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9677cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h.  */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h.  */
9683
9684/* Override any GCC internal prototype to avoid an error.
9685   Use char because int might match the return type of a GCC
9686   builtin and then its argument prototype would still apply.  */
9687#ifdef __cplusplus
9688extern "C"
9689#endif
9690char XpEndJob ();
9691int
9692main ()
9693{
9694return XpEndJob ();
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703  *) ac_try_echo=$ac_try;;
9704esac
9705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706$as_echo "$ac_try_echo") >&5
9707  (eval "$ac_link") 2>conftest.er1
9708  ac_status=$?
9709  grep -v '^ *+' conftest.er1 >conftest.err
9710  rm -f conftest.er1
9711  cat conftest.err >&5
9712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); } && {
9714	 test -z "$ac_c_werror_flag" ||
9715	 test ! -s conftest.err
9716       } && test -s conftest$ac_exeext && {
9717	 test "$cross_compiling" = yes ||
9718	 $as_test_x conftest$ac_exeext
9719       }; then
9720  ac_cv_lib_Xp_XpEndJob=yes
9721else
9722  $as_echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725	ac_cv_lib_Xp_XpEndJob=no
9726fi
9727
9728rm -rf conftest.dSYM
9729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730      conftest$ac_exeext conftest.$ac_ext
9731LIBS=$ac_check_lib_save_LIBS
9732fi
9733{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9734$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9735if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9736  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9737fi
9738
9739  fi
9740  LDFLAGS=$ldflags_save
9741
9742    { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9743$as_echo_n "checking for extra X11 defines... " >&6; }
9744  NARROW_PROTO=
9745  rm -fr conftestdir
9746  if mkdir conftestdir; then
9747    cd conftestdir
9748    cat > Imakefile <<'EOF'
9749acfindx:
9750	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9751EOF
9752    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9753      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9754    fi
9755    cd ..
9756    rm -fr conftestdir
9757  fi
9758  if test -z "$NARROW_PROTO"; then
9759    { $as_echo "$as_me:$LINENO: result: no" >&5
9760$as_echo "no" >&6; }
9761  else
9762    { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9763$as_echo "$NARROW_PROTO" >&6; }
9764  fi
9765
9766fi
9767
9768if test "$enable_xsmp" = "yes"; then
9769  cppflags_save=$CPPFLAGS
9770  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9771
9772for ac_header in X11/SM/SMlib.h
9773do
9774as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9777$as_echo_n "checking for $ac_header... " >&6; }
9778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779  $as_echo_n "(cached) " >&6
9780fi
9781ac_res=`eval 'as_val=${'$as_ac_Header'}
9782		 $as_echo "$as_val"'`
9783	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9784$as_echo "$ac_res" >&6; }
9785else
9786  # Is the header compilable?
9787{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788$as_echo_n "checking $ac_header usability... " >&6; }
9789cat >conftest.$ac_ext <<_ACEOF
9790/* confdefs.h.  */
9791_ACEOF
9792cat confdefs.h >>conftest.$ac_ext
9793cat >>conftest.$ac_ext <<_ACEOF
9794/* end confdefs.h.  */
9795$ac_includes_default
9796#include <$ac_header>
9797_ACEOF
9798rm -f conftest.$ac_objext
9799if { (ac_try="$ac_compile"
9800case "(($ac_try" in
9801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802  *) ac_try_echo=$ac_try;;
9803esac
9804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805$as_echo "$ac_try_echo") >&5
9806  (eval "$ac_compile") 2>conftest.er1
9807  ac_status=$?
9808  grep -v '^ *+' conftest.er1 >conftest.err
9809  rm -f conftest.er1
9810  cat conftest.err >&5
9811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812  (exit $ac_status); } && {
9813	 test -z "$ac_c_werror_flag" ||
9814	 test ! -s conftest.err
9815       } && test -s conftest.$ac_objext; then
9816  ac_header_compiler=yes
9817else
9818  $as_echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821	ac_header_compiler=no
9822fi
9823
9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9826$as_echo "$ac_header_compiler" >&6; }
9827
9828# Is the header present?
9829{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9830$as_echo_n "checking $ac_header presence... " >&6; }
9831cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h.  */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h.  */
9837#include <$ac_header>
9838_ACEOF
9839if { (ac_try="$ac_cpp conftest.$ac_ext"
9840case "(($ac_try" in
9841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842  *) ac_try_echo=$ac_try;;
9843esac
9844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845$as_echo "$ac_try_echo") >&5
9846  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9847  ac_status=$?
9848  grep -v '^ *+' conftest.er1 >conftest.err
9849  rm -f conftest.er1
9850  cat conftest.err >&5
9851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); } >/dev/null && {
9853	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9854	 test ! -s conftest.err
9855       }; then
9856  ac_header_preproc=yes
9857else
9858  $as_echo "$as_me: failed program was:" >&5
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
9861  ac_header_preproc=no
9862fi
9863
9864rm -f conftest.err conftest.$ac_ext
9865{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866$as_echo "$ac_header_preproc" >&6; }
9867
9868# So?  What about this header?
9869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9870  yes:no: )
9871    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875    ac_header_preproc=yes
9876    ;;
9877  no:yes:* )
9878    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9881$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9882    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9885$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9886    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9890
9891    ;;
9892esac
9893{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9894$as_echo_n "checking for $ac_header... " >&6; }
9895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896  $as_echo_n "(cached) " >&6
9897else
9898  eval "$as_ac_Header=\$ac_header_preproc"
9899fi
9900ac_res=`eval 'as_val=${'$as_ac_Header'}
9901		 $as_echo "$as_val"'`
9902	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9903$as_echo "$ac_res" >&6; }
9904
9905fi
9906as_val=`eval 'as_val=${'$as_ac_Header'}
9907		 $as_echo "$as_val"'`
9908   if test "x$as_val" = x""yes; then
9909  cat >>confdefs.h <<_ACEOF
9910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9911_ACEOF
9912
9913fi
9914
9915done
9916
9917  CPPFLAGS=$cppflags_save
9918fi
9919
9920
9921if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9922    cppflags_save=$CPPFLAGS
9923  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9924
9925
9926for ac_header in X11/xpm.h X11/Sunkeysym.h
9927do
9928as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931$as_echo_n "checking for $ac_header... " >&6; }
9932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933  $as_echo_n "(cached) " >&6
9934fi
9935ac_res=`eval 'as_val=${'$as_ac_Header'}
9936		 $as_echo "$as_val"'`
9937	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9938$as_echo "$ac_res" >&6; }
9939else
9940  # Is the header compilable?
9941{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942$as_echo_n "checking $ac_header usability... " >&6; }
9943cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h.  */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h.  */
9949$ac_includes_default
9950#include <$ac_header>
9951_ACEOF
9952rm -f conftest.$ac_objext
9953if { (ac_try="$ac_compile"
9954case "(($ac_try" in
9955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956  *) ac_try_echo=$ac_try;;
9957esac
9958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959$as_echo "$ac_try_echo") >&5
9960  (eval "$ac_compile") 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } && {
9967	 test -z "$ac_c_werror_flag" ||
9968	 test ! -s conftest.err
9969       } && test -s conftest.$ac_objext; then
9970  ac_header_compiler=yes
9971else
9972  $as_echo "$as_me: failed program was:" >&5
9973sed 's/^/| /' conftest.$ac_ext >&5
9974
9975	ac_header_compiler=no
9976fi
9977
9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980$as_echo "$ac_header_compiler" >&6; }
9981
9982# Is the header present?
9983{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9984$as_echo_n "checking $ac_header presence... " >&6; }
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991#include <$ac_header>
9992_ACEOF
9993if { (ac_try="$ac_cpp conftest.$ac_ext"
9994case "(($ac_try" in
9995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996  *) ac_try_echo=$ac_try;;
9997esac
9998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999$as_echo "$ac_try_echo") >&5
10000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10001  ac_status=$?
10002  grep -v '^ *+' conftest.er1 >conftest.err
10003  rm -f conftest.er1
10004  cat conftest.err >&5
10005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); } >/dev/null && {
10007	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10008	 test ! -s conftest.err
10009       }; then
10010  ac_header_preproc=yes
10011else
10012  $as_echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015  ac_header_preproc=no
10016fi
10017
10018rm -f conftest.err conftest.$ac_ext
10019{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020$as_echo "$ac_header_preproc" >&6; }
10021
10022# So?  What about this header?
10023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10024  yes:no: )
10025    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10028$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10029    ac_header_preproc=yes
10030    ;;
10031  no:yes:* )
10032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10035$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10036    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10037$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10038    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10039$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10040    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10041$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10042    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10043$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10044
10045    ;;
10046esac
10047{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10048$as_echo_n "checking for $ac_header... " >&6; }
10049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050  $as_echo_n "(cached) " >&6
10051else
10052  eval "$as_ac_Header=\$ac_header_preproc"
10053fi
10054ac_res=`eval 'as_val=${'$as_ac_Header'}
10055		 $as_echo "$as_val"'`
10056	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10057$as_echo "$ac_res" >&6; }
10058
10059fi
10060as_val=`eval 'as_val=${'$as_ac_Header'}
10061		 $as_echo "$as_val"'`
10062   if test "x$as_val" = x""yes; then
10063  cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068
10069done
10070
10071
10072    if test ! "$enable_xim" = "no"; then
10073    { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10074$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10075    cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h.  */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h.  */
10081#include <X11/Xlib.h>
10082_ACEOF
10083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10084  $EGREP "XIMText" >/dev/null 2>&1; then
10085  { $as_echo "$as_me:$LINENO: result: yes" >&5
10086$as_echo "yes" >&6; }
10087else
10088  { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10089$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10090fi
10091rm -f conftest*
10092
10093  fi
10094  CPPFLAGS=$cppflags_save
10095
10096    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10097		-a "x$GUITYPE" != "xNONE" ; then
10098    { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10099$as_echo "X GUI selected; xim has been enabled" >&6; }
10100    enable_xim="yes"
10101  fi
10102fi
10103
10104if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10105  cppflags_save=$CPPFLAGS
10106  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10107  { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10108$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10109  cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h.  */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h.  */
10115
10116#include <X11/Intrinsic.h>
10117#include <X11/Xmu/Editres.h>
10118int
10119main ()
10120{
10121int i; i = 0;
10122  ;
10123  return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (ac_try="$ac_compile"
10128case "(($ac_try" in
10129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130  *) ac_try_echo=$ac_try;;
10131esac
10132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133$as_echo "$ac_try_echo") >&5
10134  (eval "$ac_compile") 2>conftest.er1
10135  ac_status=$?
10136  grep -v '^ *+' conftest.er1 >conftest.err
10137  rm -f conftest.er1
10138  cat conftest.err >&5
10139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140  (exit $ac_status); } && {
10141	 test -z "$ac_c_werror_flag" ||
10142	 test ! -s conftest.err
10143       } && test -s conftest.$ac_objext; then
10144  { $as_echo "$as_me:$LINENO: result: yes" >&5
10145$as_echo "yes" >&6; }
10146		      cat >>confdefs.h <<\_ACEOF
10147#define HAVE_X11_XMU_EDITRES_H 1
10148_ACEOF
10149
10150else
10151  $as_echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154	{ $as_echo "$as_me:$LINENO: result: no" >&5
10155$as_echo "no" >&6; }
10156fi
10157
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159  CPPFLAGS=$cppflags_save
10160fi
10161
10162if test -z "$SKIP_MOTIF"; then
10163  cppflags_save=$CPPFLAGS
10164  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10165
10166
10167
10168
10169
10170
10171
10172for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10173		   Xm/UnhighlightT.h Xm/Notebook.h
10174do
10175as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10177  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10178$as_echo_n "checking for $ac_header... " >&6; }
10179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180  $as_echo_n "(cached) " >&6
10181fi
10182ac_res=`eval 'as_val=${'$as_ac_Header'}
10183		 $as_echo "$as_val"'`
10184	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10185$as_echo "$ac_res" >&6; }
10186else
10187  # Is the header compilable?
10188{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189$as_echo_n "checking $ac_header usability... " >&6; }
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h.  */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h.  */
10196$ac_includes_default
10197#include <$ac_header>
10198_ACEOF
10199rm -f conftest.$ac_objext
10200if { (ac_try="$ac_compile"
10201case "(($ac_try" in
10202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203  *) ac_try_echo=$ac_try;;
10204esac
10205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10206$as_echo "$ac_try_echo") >&5
10207  (eval "$ac_compile") 2>conftest.er1
10208  ac_status=$?
10209  grep -v '^ *+' conftest.er1 >conftest.err
10210  rm -f conftest.er1
10211  cat conftest.err >&5
10212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); } && {
10214	 test -z "$ac_c_werror_flag" ||
10215	 test ! -s conftest.err
10216       } && test -s conftest.$ac_objext; then
10217  ac_header_compiler=yes
10218else
10219  $as_echo "$as_me: failed program was:" >&5
10220sed 's/^/| /' conftest.$ac_ext >&5
10221
10222	ac_header_compiler=no
10223fi
10224
10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10227$as_echo "$ac_header_compiler" >&6; }
10228
10229# Is the header present?
10230{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10231$as_echo_n "checking $ac_header presence... " >&6; }
10232cat >conftest.$ac_ext <<_ACEOF
10233/* confdefs.h.  */
10234_ACEOF
10235cat confdefs.h >>conftest.$ac_ext
10236cat >>conftest.$ac_ext <<_ACEOF
10237/* end confdefs.h.  */
10238#include <$ac_header>
10239_ACEOF
10240if { (ac_try="$ac_cpp conftest.$ac_ext"
10241case "(($ac_try" in
10242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243  *) ac_try_echo=$ac_try;;
10244esac
10245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246$as_echo "$ac_try_echo") >&5
10247  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10248  ac_status=$?
10249  grep -v '^ *+' conftest.er1 >conftest.err
10250  rm -f conftest.er1
10251  cat conftest.err >&5
10252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); } >/dev/null && {
10254	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10255	 test ! -s conftest.err
10256       }; then
10257  ac_header_preproc=yes
10258else
10259  $as_echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262  ac_header_preproc=no
10263fi
10264
10265rm -f conftest.err conftest.$ac_ext
10266{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10267$as_echo "$ac_header_preproc" >&6; }
10268
10269# So?  What about this header?
10270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10271  yes:no: )
10272    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10273$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10274    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10275$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10276    ac_header_preproc=yes
10277    ;;
10278  no:yes:* )
10279    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10280$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10281    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10282$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10283    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10284$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10285    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10286$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10287    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10288$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10289    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10290$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10291
10292    ;;
10293esac
10294{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10295$as_echo_n "checking for $ac_header... " >&6; }
10296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10297  $as_echo_n "(cached) " >&6
10298else
10299  eval "$as_ac_Header=\$ac_header_preproc"
10300fi
10301ac_res=`eval 'as_val=${'$as_ac_Header'}
10302		 $as_echo "$as_val"'`
10303	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10304$as_echo "$ac_res" >&6; }
10305
10306fi
10307as_val=`eval 'as_val=${'$as_ac_Header'}
10308		 $as_echo "$as_val"'`
10309   if test "x$as_val" = x""yes; then
10310  cat >>confdefs.h <<_ACEOF
10311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312_ACEOF
10313
10314fi
10315
10316done
10317
10318
10319  if test $ac_cv_header_Xm_XpmP_h = yes; then
10320        { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10321$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10322    cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h.  */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h.  */
10328#include <Xm/XpmP.h>
10329int
10330main ()
10331{
10332XpmAttributes_21 attr;
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337rm -f conftest.$ac_objext
10338if { (ac_try="$ac_compile"
10339case "(($ac_try" in
10340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341  *) ac_try_echo=$ac_try;;
10342esac
10343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10344$as_echo "$ac_try_echo") >&5
10345  (eval "$ac_compile") 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } && {
10352	 test -z "$ac_c_werror_flag" ||
10353	 test ! -s conftest.err
10354       } && test -s conftest.$ac_objext; then
10355  { $as_echo "$as_me:$LINENO: result: yes" >&5
10356$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10357#define XPMATTRIBUTES_TYPE XpmAttributes_21
10358_ACEOF
10359
10360else
10361  $as_echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364	{ $as_echo "$as_me:$LINENO: result: no" >&5
10365$as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10366#define XPMATTRIBUTES_TYPE XpmAttributes
10367_ACEOF
10368
10369
10370fi
10371
10372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373  else
10374    cat >>confdefs.h <<\_ACEOF
10375#define XPMATTRIBUTES_TYPE XpmAttributes
10376_ACEOF
10377
10378  fi
10379  CPPFLAGS=$cppflags_save
10380fi
10381
10382if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10383  { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10384$as_echo "no GUI selected; xim has been disabled" >&6; }
10385  enable_xim="no"
10386fi
10387if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10388  { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10389$as_echo "no GUI selected; fontset has been disabled" >&6; }
10390  enable_fontset="no"
10391fi
10392if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10393  { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10394$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10395  enable_fontset="no"
10396fi
10397
10398if test -z "$SKIP_PHOTON"; then
10399  GUITYPE=PHOTONGUI
10400fi
10401
10402
10403
10404
10405
10406
10407if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10408  { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10409$as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10410   { (exit 1); exit 1; }; }
10411fi
10412
10413if test "$enable_xim" = "yes"; then
10414  cat >>confdefs.h <<\_ACEOF
10415#define FEAT_XIM 1
10416_ACEOF
10417
10418fi
10419if test "$enable_fontset" = "yes"; then
10420  cat >>confdefs.h <<\_ACEOF
10421#define FEAT_XFONTSET 1
10422_ACEOF
10423
10424fi
10425
10426
10427
10428
10429if test "$enable_hangulinput" = "yes"; then
10430  if test "x$GUITYPE" = "xNONE"; then
10431    { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10432$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10433    enable_hangulinput=no
10434  else
10435    cat >>confdefs.h <<\_ACEOF
10436#define FEAT_HANGULIN 1
10437_ACEOF
10438
10439    HANGULIN_SRC=hangulin.c
10440
10441    HANGULIN_OBJ=objects/hangulin.o
10442
10443  fi
10444fi
10445
10446
10447{ $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10448$as_echo_n "checking whether toupper is broken... " >&6; }
10449if test "${vim_cv_toupper_broken+set}" = set; then
10450  $as_echo_n "(cached) " >&6
10451else
10452
10453    if test "$cross_compiling" = yes; then
10454
10455    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10456$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10457   { (exit 1); exit 1; }; }
10458
10459else
10460  cat >conftest.$ac_ext <<_ACEOF
10461
10462#include "confdefs.h"
10463#include <ctype.h>
10464#if STDC_HEADERS
10465# include <stdlib.h>
10466# include <stddef.h>
10467#endif
10468main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10469
10470_ACEOF
10471rm -f conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475  *) ac_try_echo=$ac_try;;
10476esac
10477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10478$as_echo "$ac_try_echo") >&5
10479  (eval "$ac_link") 2>&5
10480  ac_status=$?
10481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10483  { (case "(($ac_try" in
10484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485  *) ac_try_echo=$ac_try;;
10486esac
10487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488$as_echo "$ac_try_echo") >&5
10489  (eval "$ac_try") 2>&5
10490  ac_status=$?
10491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492  (exit $ac_status); }; }; then
10493
10494    vim_cv_toupper_broken=yes
10495
10496else
10497  $as_echo "$as_me: program exited with status $ac_status" >&5
10498$as_echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501( exit $ac_status )
10502
10503    vim_cv_toupper_broken=no
10504
10505fi
10506rm -rf conftest.dSYM
10507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10508fi
10509
10510
10511fi
10512{ $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10513$as_echo "$vim_cv_toupper_broken" >&6; }
10514
10515if test "x$vim_cv_toupper_broken" = "xyes" ; then
10516  cat >>confdefs.h <<\_ACEOF
10517#define BROKEN_TOUPPER 1
10518_ACEOF
10519
10520fi
10521
10522{ $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10523$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10524cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h.  */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h.  */
10530#include <stdio.h>
10531int
10532main ()
10533{
10534printf("(" __DATE__ " " __TIME__ ")");
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext
10540if { (ac_try="$ac_compile"
10541case "(($ac_try" in
10542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543  *) ac_try_echo=$ac_try;;
10544esac
10545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546$as_echo "$ac_try_echo") >&5
10547  (eval "$ac_compile") 2>conftest.er1
10548  ac_status=$?
10549  grep -v '^ *+' conftest.er1 >conftest.err
10550  rm -f conftest.er1
10551  cat conftest.err >&5
10552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } && {
10554	 test -z "$ac_c_werror_flag" ||
10555	 test ! -s conftest.err
10556       } && test -s conftest.$ac_objext; then
10557  { $as_echo "$as_me:$LINENO: result: yes" >&5
10558$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10559#define HAVE_DATE_TIME 1
10560_ACEOF
10561
10562else
10563  $as_echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566	{ $as_echo "$as_me:$LINENO: result: no" >&5
10567$as_echo "no" >&6; }
10568fi
10569
10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571
10572{ $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10573$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10574cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h.  */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h.  */
10580#include <stdio.h>
10581int
10582main ()
10583{
10584int x __attribute__((unused));
10585  ;
10586  return 0;
10587}
10588_ACEOF
10589rm -f conftest.$ac_objext
10590if { (ac_try="$ac_compile"
10591case "(($ac_try" in
10592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593  *) ac_try_echo=$ac_try;;
10594esac
10595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10596$as_echo "$ac_try_echo") >&5
10597  (eval "$ac_compile") 2>conftest.er1
10598  ac_status=$?
10599  grep -v '^ *+' conftest.er1 >conftest.err
10600  rm -f conftest.er1
10601  cat conftest.err >&5
10602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } && {
10604	 test -z "$ac_c_werror_flag" ||
10605	 test ! -s conftest.err
10606       } && test -s conftest.$ac_objext; then
10607  { $as_echo "$as_me:$LINENO: result: yes" >&5
10608$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10609#define HAVE_ATTRIBUTE_UNUSED 1
10610_ACEOF
10611
10612else
10613  $as_echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616	{ $as_echo "$as_me:$LINENO: result: no" >&5
10617$as_echo "no" >&6; }
10618fi
10619
10620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621
10622if test "${ac_cv_header_elf_h+set}" = set; then
10623  { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10624$as_echo_n "checking for elf.h... " >&6; }
10625if test "${ac_cv_header_elf_h+set}" = set; then
10626  $as_echo_n "(cached) " >&6
10627fi
10628{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10629$as_echo "$ac_cv_header_elf_h" >&6; }
10630else
10631  # Is the header compilable?
10632{ $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10633$as_echo_n "checking elf.h usability... " >&6; }
10634cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h.  */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h.  */
10640$ac_includes_default
10641#include <elf.h>
10642_ACEOF
10643rm -f conftest.$ac_objext
10644if { (ac_try="$ac_compile"
10645case "(($ac_try" in
10646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647  *) ac_try_echo=$ac_try;;
10648esac
10649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650$as_echo "$ac_try_echo") >&5
10651  (eval "$ac_compile") 2>conftest.er1
10652  ac_status=$?
10653  grep -v '^ *+' conftest.er1 >conftest.err
10654  rm -f conftest.er1
10655  cat conftest.err >&5
10656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); } && {
10658	 test -z "$ac_c_werror_flag" ||
10659	 test ! -s conftest.err
10660       } && test -s conftest.$ac_objext; then
10661  ac_header_compiler=yes
10662else
10663  $as_echo "$as_me: failed program was:" >&5
10664sed 's/^/| /' conftest.$ac_ext >&5
10665
10666	ac_header_compiler=no
10667fi
10668
10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10671$as_echo "$ac_header_compiler" >&6; }
10672
10673# Is the header present?
10674{ $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10675$as_echo_n "checking elf.h presence... " >&6; }
10676cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h.  */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h.  */
10682#include <elf.h>
10683_ACEOF
10684if { (ac_try="$ac_cpp conftest.$ac_ext"
10685case "(($ac_try" in
10686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687  *) ac_try_echo=$ac_try;;
10688esac
10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690$as_echo "$ac_try_echo") >&5
10691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10692  ac_status=$?
10693  grep -v '^ *+' conftest.er1 >conftest.err
10694  rm -f conftest.er1
10695  cat conftest.err >&5
10696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); } >/dev/null && {
10698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10699	 test ! -s conftest.err
10700       }; then
10701  ac_header_preproc=yes
10702else
10703  $as_echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706  ac_header_preproc=no
10707fi
10708
10709rm -f conftest.err conftest.$ac_ext
10710{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711$as_echo "$ac_header_preproc" >&6; }
10712
10713# So?  What about this header?
10714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715  yes:no: )
10716    { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10717$as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10719$as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10720    ac_header_preproc=yes
10721    ;;
10722  no:yes:* )
10723    { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10724$as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10725    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
10726$as_echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
10727    { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10728$as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10729    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
10730$as_echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10731    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10732$as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10733    { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10734$as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10735
10736    ;;
10737esac
10738{ $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10739$as_echo_n "checking for elf.h... " >&6; }
10740if test "${ac_cv_header_elf_h+set}" = set; then
10741  $as_echo_n "(cached) " >&6
10742else
10743  ac_cv_header_elf_h=$ac_header_preproc
10744fi
10745{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10746$as_echo "$ac_cv_header_elf_h" >&6; }
10747
10748fi
10749if test "x$ac_cv_header_elf_h" = x""yes; then
10750  HAS_ELF=1
10751fi
10752
10753
10754if test "$HAS_ELF" = 1; then
10755
10756{ $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10757$as_echo_n "checking for main in -lelf... " >&6; }
10758if test "${ac_cv_lib_elf_main+set}" = set; then
10759  $as_echo_n "(cached) " >&6
10760else
10761  ac_check_lib_save_LIBS=$LIBS
10762LIBS="-lelf  $LIBS"
10763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h.  */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h.  */
10769
10770
10771int
10772main ()
10773{
10774return main ();
10775  ;
10776  return 0;
10777}
10778_ACEOF
10779rm -f conftest.$ac_objext conftest$ac_exeext
10780if { (ac_try="$ac_link"
10781case "(($ac_try" in
10782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783  *) ac_try_echo=$ac_try;;
10784esac
10785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786$as_echo "$ac_try_echo") >&5
10787  (eval "$ac_link") 2>conftest.er1
10788  ac_status=$?
10789  grep -v '^ *+' conftest.er1 >conftest.err
10790  rm -f conftest.er1
10791  cat conftest.err >&5
10792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); } && {
10794	 test -z "$ac_c_werror_flag" ||
10795	 test ! -s conftest.err
10796       } && test -s conftest$ac_exeext && {
10797	 test "$cross_compiling" = yes ||
10798	 $as_test_x conftest$ac_exeext
10799       }; then
10800  ac_cv_lib_elf_main=yes
10801else
10802  $as_echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
10804
10805	ac_cv_lib_elf_main=no
10806fi
10807
10808rm -rf conftest.dSYM
10809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810      conftest$ac_exeext conftest.$ac_ext
10811LIBS=$ac_check_lib_save_LIBS
10812fi
10813{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10814$as_echo "$ac_cv_lib_elf_main" >&6; }
10815if test "x$ac_cv_lib_elf_main" = x""yes; then
10816  cat >>confdefs.h <<_ACEOF
10817#define HAVE_LIBELF 1
10818_ACEOF
10819
10820  LIBS="-lelf $LIBS"
10821
10822fi
10823
10824fi
10825
10826
10827
10828
10829
10830
10831ac_header_dirent=no
10832for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10833  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10834{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10835$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837  $as_echo_n "(cached) " >&6
10838else
10839  cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h.  */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h.  */
10845#include <sys/types.h>
10846#include <$ac_hdr>
10847
10848int
10849main ()
10850{
10851if ((DIR *) 0)
10852return 0;
10853  ;
10854  return 0;
10855}
10856_ACEOF
10857rm -f conftest.$ac_objext
10858if { (ac_try="$ac_compile"
10859case "(($ac_try" in
10860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861  *) ac_try_echo=$ac_try;;
10862esac
10863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864$as_echo "$ac_try_echo") >&5
10865  (eval "$ac_compile") 2>conftest.er1
10866  ac_status=$?
10867  grep -v '^ *+' conftest.er1 >conftest.err
10868  rm -f conftest.er1
10869  cat conftest.err >&5
10870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871  (exit $ac_status); } && {
10872	 test -z "$ac_c_werror_flag" ||
10873	 test ! -s conftest.err
10874       } && test -s conftest.$ac_objext; then
10875  eval "$as_ac_Header=yes"
10876else
10877  $as_echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880	eval "$as_ac_Header=no"
10881fi
10882
10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884fi
10885ac_res=`eval 'as_val=${'$as_ac_Header'}
10886		 $as_echo "$as_val"'`
10887	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888$as_echo "$ac_res" >&6; }
10889as_val=`eval 'as_val=${'$as_ac_Header'}
10890		 $as_echo "$as_val"'`
10891   if test "x$as_val" = x""yes; then
10892  cat >>confdefs.h <<_ACEOF
10893#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894_ACEOF
10895
10896ac_header_dirent=$ac_hdr; break
10897fi
10898
10899done
10900# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901if test $ac_header_dirent = dirent.h; then
10902  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10903$as_echo_n "checking for library containing opendir... " >&6; }
10904if test "${ac_cv_search_opendir+set}" = set; then
10905  $as_echo_n "(cached) " >&6
10906else
10907  ac_func_search_save_LIBS=$LIBS
10908cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h.  */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h.  */
10914
10915/* Override any GCC internal prototype to avoid an error.
10916   Use char because int might match the return type of a GCC
10917   builtin and then its argument prototype would still apply.  */
10918#ifdef __cplusplus
10919extern "C"
10920#endif
10921char opendir ();
10922int
10923main ()
10924{
10925return opendir ();
10926  ;
10927  return 0;
10928}
10929_ACEOF
10930for ac_lib in '' dir; do
10931  if test -z "$ac_lib"; then
10932    ac_res="none required"
10933  else
10934    ac_res=-l$ac_lib
10935    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10936  fi
10937  rm -f conftest.$ac_objext conftest$ac_exeext
10938if { (ac_try="$ac_link"
10939case "(($ac_try" in
10940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941  *) ac_try_echo=$ac_try;;
10942esac
10943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944$as_echo "$ac_try_echo") >&5
10945  (eval "$ac_link") 2>conftest.er1
10946  ac_status=$?
10947  grep -v '^ *+' conftest.er1 >conftest.err
10948  rm -f conftest.er1
10949  cat conftest.err >&5
10950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951  (exit $ac_status); } && {
10952	 test -z "$ac_c_werror_flag" ||
10953	 test ! -s conftest.err
10954       } && test -s conftest$ac_exeext && {
10955	 test "$cross_compiling" = yes ||
10956	 $as_test_x conftest$ac_exeext
10957       }; then
10958  ac_cv_search_opendir=$ac_res
10959else
10960  $as_echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
10962
10963
10964fi
10965
10966rm -rf conftest.dSYM
10967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968      conftest$ac_exeext
10969  if test "${ac_cv_search_opendir+set}" = set; then
10970  break
10971fi
10972done
10973if test "${ac_cv_search_opendir+set}" = set; then
10974  :
10975else
10976  ac_cv_search_opendir=no
10977fi
10978rm conftest.$ac_ext
10979LIBS=$ac_func_search_save_LIBS
10980fi
10981{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10982$as_echo "$ac_cv_search_opendir" >&6; }
10983ac_res=$ac_cv_search_opendir
10984if test "$ac_res" != no; then
10985  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10986
10987fi
10988
10989else
10990  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10991$as_echo_n "checking for library containing opendir... " >&6; }
10992if test "${ac_cv_search_opendir+set}" = set; then
10993  $as_echo_n "(cached) " >&6
10994else
10995  ac_func_search_save_LIBS=$LIBS
10996cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h.  */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h.  */
11002
11003/* Override any GCC internal prototype to avoid an error.
11004   Use char because int might match the return type of a GCC
11005   builtin and then its argument prototype would still apply.  */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char opendir ();
11010int
11011main ()
11012{
11013return opendir ();
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018for ac_lib in '' x; do
11019  if test -z "$ac_lib"; then
11020    ac_res="none required"
11021  else
11022    ac_res=-l$ac_lib
11023    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11024  fi
11025  rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029  *) ac_try_echo=$ac_try;;
11030esac
11031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11032$as_echo "$ac_try_echo") >&5
11033  (eval "$ac_link") 2>conftest.er1
11034  ac_status=$?
11035  grep -v '^ *+' conftest.er1 >conftest.err
11036  rm -f conftest.er1
11037  cat conftest.err >&5
11038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039  (exit $ac_status); } && {
11040	 test -z "$ac_c_werror_flag" ||
11041	 test ! -s conftest.err
11042       } && test -s conftest$ac_exeext && {
11043	 test "$cross_compiling" = yes ||
11044	 $as_test_x conftest$ac_exeext
11045       }; then
11046  ac_cv_search_opendir=$ac_res
11047else
11048  $as_echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051
11052fi
11053
11054rm -rf conftest.dSYM
11055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11056      conftest$ac_exeext
11057  if test "${ac_cv_search_opendir+set}" = set; then
11058  break
11059fi
11060done
11061if test "${ac_cv_search_opendir+set}" = set; then
11062  :
11063else
11064  ac_cv_search_opendir=no
11065fi
11066rm conftest.$ac_ext
11067LIBS=$ac_func_search_save_LIBS
11068fi
11069{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11070$as_echo "$ac_cv_search_opendir" >&6; }
11071ac_res=$ac_cv_search_opendir
11072if test "$ac_res" != no; then
11073  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11074
11075fi
11076
11077fi
11078
11079
11080if test $ac_cv_header_sys_wait_h = no; then
11081  { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11082$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11083  cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h.  */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h.  */
11089#include <sys/wait.h>
11090int
11091main ()
11092{
11093union wait xx, yy; xx = yy
11094  ;
11095  return 0;
11096}
11097_ACEOF
11098rm -f conftest.$ac_objext
11099if { (ac_try="$ac_compile"
11100case "(($ac_try" in
11101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102  *) ac_try_echo=$ac_try;;
11103esac
11104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105$as_echo "$ac_try_echo") >&5
11106  (eval "$ac_compile") 2>conftest.er1
11107  ac_status=$?
11108  grep -v '^ *+' conftest.er1 >conftest.err
11109  rm -f conftest.er1
11110  cat conftest.err >&5
11111  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112  (exit $ac_status); } && {
11113	 test -z "$ac_c_werror_flag" ||
11114	 test ! -s conftest.err
11115       } && test -s conftest.$ac_objext; then
11116  { $as_echo "$as_me:$LINENO: result: yes" >&5
11117$as_echo "yes" >&6; }
11118			cat >>confdefs.h <<\_ACEOF
11119#define HAVE_SYS_WAIT_H 1
11120_ACEOF
11121
11122			cat >>confdefs.h <<\_ACEOF
11123#define HAVE_UNION_WAIT 1
11124_ACEOF
11125
11126else
11127  $as_echo "$as_me: failed program was:" >&5
11128sed 's/^/| /' conftest.$ac_ext >&5
11129
11130	{ $as_echo "$as_me:$LINENO: result: no" >&5
11131$as_echo "no" >&6; }
11132fi
11133
11134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11178	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11179	iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11180	sys/resource.h sys/systeminfo.h locale.h \
11181	sys/stream.h termios.h libc.h sys/statfs.h \
11182	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11183	libgen.h util/debug.h util/msg18n.h frame.h \
11184	sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11185do
11186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11189$as_echo_n "checking for $ac_header... " >&6; }
11190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191  $as_echo_n "(cached) " >&6
11192fi
11193ac_res=`eval 'as_val=${'$as_ac_Header'}
11194		 $as_echo "$as_val"'`
11195	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196$as_echo "$ac_res" >&6; }
11197else
11198  # Is the header compilable?
11199{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200$as_echo_n "checking $ac_header usability... " >&6; }
11201cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h.  */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h.  */
11207$ac_includes_default
11208#include <$ac_header>
11209_ACEOF
11210rm -f conftest.$ac_objext
11211if { (ac_try="$ac_compile"
11212case "(($ac_try" in
11213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214  *) ac_try_echo=$ac_try;;
11215esac
11216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11217$as_echo "$ac_try_echo") >&5
11218  (eval "$ac_compile") 2>conftest.er1
11219  ac_status=$?
11220  grep -v '^ *+' conftest.er1 >conftest.err
11221  rm -f conftest.er1
11222  cat conftest.err >&5
11223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224  (exit $ac_status); } && {
11225	 test -z "$ac_c_werror_flag" ||
11226	 test ! -s conftest.err
11227       } && test -s conftest.$ac_objext; then
11228  ac_header_compiler=yes
11229else
11230  $as_echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
11233	ac_header_compiler=no
11234fi
11235
11236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238$as_echo "$ac_header_compiler" >&6; }
11239
11240# Is the header present?
11241{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242$as_echo_n "checking $ac_header presence... " >&6; }
11243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h.  */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h.  */
11249#include <$ac_header>
11250_ACEOF
11251if { (ac_try="$ac_cpp conftest.$ac_ext"
11252case "(($ac_try" in
11253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254  *) ac_try_echo=$ac_try;;
11255esac
11256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257$as_echo "$ac_try_echo") >&5
11258  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259  ac_status=$?
11260  grep -v '^ *+' conftest.er1 >conftest.err
11261  rm -f conftest.er1
11262  cat conftest.err >&5
11263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264  (exit $ac_status); } >/dev/null && {
11265	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266	 test ! -s conftest.err
11267       }; then
11268  ac_header_preproc=yes
11269else
11270  $as_echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273  ac_header_preproc=no
11274fi
11275
11276rm -f conftest.err conftest.$ac_ext
11277{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278$as_echo "$ac_header_preproc" >&6; }
11279
11280# So?  What about this header?
11281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11282  yes:no: )
11283    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287    ac_header_preproc=yes
11288    ;;
11289  no:yes:* )
11290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11293$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11297$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11302
11303    ;;
11304esac
11305{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11306$as_echo_n "checking for $ac_header... " >&6; }
11307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308  $as_echo_n "(cached) " >&6
11309else
11310  eval "$as_ac_Header=\$ac_header_preproc"
11311fi
11312ac_res=`eval 'as_val=${'$as_ac_Header'}
11313		 $as_echo "$as_val"'`
11314	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315$as_echo "$ac_res" >&6; }
11316
11317fi
11318as_val=`eval 'as_val=${'$as_ac_Header'}
11319		 $as_echo "$as_val"'`
11320   if test "x$as_val" = x""yes; then
11321  cat >>confdefs.h <<_ACEOF
11322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11323_ACEOF
11324
11325fi
11326
11327done
11328
11329
11330
11331for ac_header in sys/ptem.h
11332do
11333as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335$as_echo_n "checking for $ac_header... " >&6; }
11336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337  $as_echo_n "(cached) " >&6
11338else
11339  cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h.  */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h.  */
11345#if defined HAVE_SYS_STREAM_H
11346#  include <sys/stream.h>
11347#endif
11348
11349#include <$ac_header>
11350_ACEOF
11351rm -f conftest.$ac_objext
11352if { (ac_try="$ac_compile"
11353case "(($ac_try" in
11354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355  *) ac_try_echo=$ac_try;;
11356esac
11357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11358$as_echo "$ac_try_echo") >&5
11359  (eval "$ac_compile") 2>conftest.er1
11360  ac_status=$?
11361  grep -v '^ *+' conftest.er1 >conftest.err
11362  rm -f conftest.er1
11363  cat conftest.err >&5
11364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365  (exit $ac_status); } && {
11366	 test -z "$ac_c_werror_flag" ||
11367	 test ! -s conftest.err
11368       } && test -s conftest.$ac_objext; then
11369  eval "$as_ac_Header=yes"
11370else
11371  $as_echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374	eval "$as_ac_Header=no"
11375fi
11376
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378fi
11379ac_res=`eval 'as_val=${'$as_ac_Header'}
11380		 $as_echo "$as_val"'`
11381	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11382$as_echo "$ac_res" >&6; }
11383as_val=`eval 'as_val=${'$as_ac_Header'}
11384		 $as_echo "$as_val"'`
11385   if test "x$as_val" = x""yes; then
11386  cat >>confdefs.h <<_ACEOF
11387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388_ACEOF
11389
11390fi
11391
11392done
11393
11394
11395
11396for ac_header in sys/sysctl.h
11397do
11398as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11400$as_echo_n "checking for $ac_header... " >&6; }
11401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402  $as_echo_n "(cached) " >&6
11403else
11404  cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h.  */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h.  */
11410#if defined HAVE_SYS_PARAM_H
11411#  include <sys/param.h>
11412#endif
11413
11414#include <$ac_header>
11415_ACEOF
11416rm -f conftest.$ac_objext
11417if { (ac_try="$ac_compile"
11418case "(($ac_try" in
11419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420  *) ac_try_echo=$ac_try;;
11421esac
11422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11423$as_echo "$ac_try_echo") >&5
11424  (eval "$ac_compile") 2>conftest.er1
11425  ac_status=$?
11426  grep -v '^ *+' conftest.er1 >conftest.err
11427  rm -f conftest.er1
11428  cat conftest.err >&5
11429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430  (exit $ac_status); } && {
11431	 test -z "$ac_c_werror_flag" ||
11432	 test ! -s conftest.err
11433       } && test -s conftest.$ac_objext; then
11434  eval "$as_ac_Header=yes"
11435else
11436  $as_echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
11439	eval "$as_ac_Header=no"
11440fi
11441
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443fi
11444ac_res=`eval 'as_val=${'$as_ac_Header'}
11445		 $as_echo "$as_val"'`
11446	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11447$as_echo "$ac_res" >&6; }
11448as_val=`eval 'as_val=${'$as_ac_Header'}
11449		 $as_echo "$as_val"'`
11450   if test "x$as_val" = x""yes; then
11451  cat >>confdefs.h <<_ACEOF
11452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11453_ACEOF
11454
11455fi
11456
11457done
11458
11459
11460
11461{ $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11462$as_echo_n "checking for pthread_np.h... " >&6; }
11463cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h.  */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h.  */
11469
11470#include <pthread.h>
11471#include <pthread_np.h>
11472int
11473main ()
11474{
11475int i; i = 0;
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480rm -f conftest.$ac_objext
11481if { (ac_try="$ac_compile"
11482case "(($ac_try" in
11483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484  *) ac_try_echo=$ac_try;;
11485esac
11486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11487$as_echo "$ac_try_echo") >&5
11488  (eval "$ac_compile") 2>conftest.er1
11489  ac_status=$?
11490  grep -v '^ *+' conftest.er1 >conftest.err
11491  rm -f conftest.er1
11492  cat conftest.err >&5
11493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494  (exit $ac_status); } && {
11495	 test -z "$ac_c_werror_flag" ||
11496	 test ! -s conftest.err
11497       } && test -s conftest.$ac_objext; then
11498  { $as_echo "$as_me:$LINENO: result: yes" >&5
11499$as_echo "yes" >&6; }
11500		      cat >>confdefs.h <<\_ACEOF
11501#define HAVE_PTHREAD_NP_H 1
11502_ACEOF
11503
11504else
11505  $as_echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508	{ $as_echo "$as_me:$LINENO: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
11511
11512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513
11514
11515for ac_header in strings.h
11516do
11517as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11520$as_echo_n "checking for $ac_header... " >&6; }
11521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11522  $as_echo_n "(cached) " >&6
11523fi
11524ac_res=`eval 'as_val=${'$as_ac_Header'}
11525		 $as_echo "$as_val"'`
11526	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11527$as_echo "$ac_res" >&6; }
11528else
11529  # Is the header compilable?
11530{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531$as_echo_n "checking $ac_header usability... " >&6; }
11532cat >conftest.$ac_ext <<_ACEOF
11533/* confdefs.h.  */
11534_ACEOF
11535cat confdefs.h >>conftest.$ac_ext
11536cat >>conftest.$ac_ext <<_ACEOF
11537/* end confdefs.h.  */
11538$ac_includes_default
11539#include <$ac_header>
11540_ACEOF
11541rm -f conftest.$ac_objext
11542if { (ac_try="$ac_compile"
11543case "(($ac_try" in
11544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545  *) ac_try_echo=$ac_try;;
11546esac
11547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11548$as_echo "$ac_try_echo") >&5
11549  (eval "$ac_compile") 2>conftest.er1
11550  ac_status=$?
11551  grep -v '^ *+' conftest.er1 >conftest.err
11552  rm -f conftest.er1
11553  cat conftest.err >&5
11554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555  (exit $ac_status); } && {
11556	 test -z "$ac_c_werror_flag" ||
11557	 test ! -s conftest.err
11558       } && test -s conftest.$ac_objext; then
11559  ac_header_compiler=yes
11560else
11561  $as_echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564	ac_header_compiler=no
11565fi
11566
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569$as_echo "$ac_header_compiler" >&6; }
11570
11571# Is the header present?
11572{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573$as_echo_n "checking $ac_header presence... " >&6; }
11574cat >conftest.$ac_ext <<_ACEOF
11575/* confdefs.h.  */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h.  */
11580#include <$ac_header>
11581_ACEOF
11582if { (ac_try="$ac_cpp conftest.$ac_ext"
11583case "(($ac_try" in
11584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585  *) ac_try_echo=$ac_try;;
11586esac
11587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588$as_echo "$ac_try_echo") >&5
11589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11590  ac_status=$?
11591  grep -v '^ *+' conftest.er1 >conftest.err
11592  rm -f conftest.er1
11593  cat conftest.err >&5
11594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595  (exit $ac_status); } >/dev/null && {
11596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11597	 test ! -s conftest.err
11598       }; then
11599  ac_header_preproc=yes
11600else
11601  $as_echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604  ac_header_preproc=no
11605fi
11606
11607rm -f conftest.err conftest.$ac_ext
11608{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11609$as_echo "$ac_header_preproc" >&6; }
11610
11611# So?  What about this header?
11612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613  yes:no: )
11614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11615$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11617$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11618    ac_header_preproc=yes
11619    ;;
11620  no:yes:* )
11621    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11622$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11624$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11626$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11628$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11630$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11631    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11632$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633
11634    ;;
11635esac
11636{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637$as_echo_n "checking for $ac_header... " >&6; }
11638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639  $as_echo_n "(cached) " >&6
11640else
11641  eval "$as_ac_Header=\$ac_header_preproc"
11642fi
11643ac_res=`eval 'as_val=${'$as_ac_Header'}
11644		 $as_echo "$as_val"'`
11645	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646$as_echo "$ac_res" >&6; }
11647
11648fi
11649as_val=`eval 'as_val=${'$as_ac_Header'}
11650		 $as_echo "$as_val"'`
11651   if test "x$as_val" = x""yes; then
11652  cat >>confdefs.h <<_ACEOF
11653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654_ACEOF
11655
11656fi
11657
11658done
11659
11660if test "x$MACOSX" = "xyes"; then
11661    cat >>confdefs.h <<\_ACEOF
11662#define NO_STRINGS_WITH_STRING_H 1
11663_ACEOF
11664
11665else
11666
11667{ $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11668$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11669cppflags_save=$CPPFLAGS
11670CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11671cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h.  */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h.  */
11677
11678#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11679# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11680			/* but don't do it on AIX 5.1 (Uribarri) */
11681#endif
11682#ifdef HAVE_XM_XM_H
11683# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11684#endif
11685#ifdef HAVE_STRING_H
11686# include <string.h>
11687#endif
11688#if defined(HAVE_STRINGS_H)
11689# include <strings.h>
11690#endif
11691
11692int
11693main ()
11694{
11695int i; i = 0;
11696  ;
11697  return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (ac_try="$ac_compile"
11702case "(($ac_try" in
11703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704  *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707$as_echo "$ac_try_echo") >&5
11708  (eval "$ac_compile") 2>conftest.er1
11709  ac_status=$?
11710  grep -v '^ *+' conftest.er1 >conftest.err
11711  rm -f conftest.er1
11712  cat conftest.err >&5
11713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714  (exit $ac_status); } && {
11715	 test -z "$ac_c_werror_flag" ||
11716	 test ! -s conftest.err
11717       } && test -s conftest.$ac_objext; then
11718  { $as_echo "$as_me:$LINENO: result: yes" >&5
11719$as_echo "yes" >&6; }
11720else
11721  $as_echo "$as_me: failed program was:" >&5
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
11724	cat >>confdefs.h <<\_ACEOF
11725#define NO_STRINGS_WITH_STRING_H 1
11726_ACEOF
11727
11728		{ $as_echo "$as_me:$LINENO: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733CPPFLAGS=$cppflags_save
11734fi
11735
11736if test $ac_cv_c_compiler_gnu = yes; then
11737    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11738$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11739if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11740  $as_echo_n "(cached) " >&6
11741else
11742    ac_pattern="Autoconf.*'x'"
11743  cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h.  */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h.  */
11749#include <sgtty.h>
11750Autoconf TIOCGETP
11751_ACEOF
11752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11753  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11754  ac_cv_prog_gcc_traditional=yes
11755else
11756  ac_cv_prog_gcc_traditional=no
11757fi
11758rm -f conftest*
11759
11760
11761  if test $ac_cv_prog_gcc_traditional = no; then
11762    cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h.  */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h.  */
11768#include <termio.h>
11769Autoconf TCGETA
11770_ACEOF
11771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11773  ac_cv_prog_gcc_traditional=yes
11774fi
11775rm -f conftest*
11776
11777  fi
11778fi
11779{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11780$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11781  if test $ac_cv_prog_gcc_traditional = yes; then
11782    CC="$CC -traditional"
11783  fi
11784fi
11785
11786{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11787$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11788if test "${ac_cv_c_const+set}" = set; then
11789  $as_echo_n "(cached) " >&6
11790else
11791  cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h.  */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h.  */
11797
11798int
11799main ()
11800{
11801/* FIXME: Include the comments suggested by Paul. */
11802#ifndef __cplusplus
11803  /* Ultrix mips cc rejects this.  */
11804  typedef int charset[2];
11805  const charset cs;
11806  /* SunOS 4.1.1 cc rejects this.  */
11807  char const *const *pcpcc;
11808  char **ppc;
11809  /* NEC SVR4.0.2 mips cc rejects this.  */
11810  struct point {int x, y;};
11811  static struct point const zero = {0,0};
11812  /* AIX XL C 1.02.0.0 rejects this.
11813     It does not let you subtract one const X* pointer from another in
11814     an arm of an if-expression whose if-part is not a constant
11815     expression */
11816  const char *g = "string";
11817  pcpcc = &g + (g ? g-g : 0);
11818  /* HPUX 7.0 cc rejects these. */
11819  ++pcpcc;
11820  ppc = (char**) pcpcc;
11821  pcpcc = (char const *const *) ppc;
11822  { /* SCO 3.2v4 cc rejects this.  */
11823    char *t;
11824    char const *s = 0 ? (char *) 0 : (char const *) 0;
11825
11826    *t++ = 0;
11827    if (s) return 0;
11828  }
11829  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11830    int x[] = {25, 17};
11831    const int *foo = &x[0];
11832    ++foo;
11833  }
11834  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11835    typedef const int *iptr;
11836    iptr p = 0;
11837    ++p;
11838  }
11839  { /* AIX XL C 1.02.0.0 rejects this saying
11840       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11841    struct s { int j; const int *ap[3]; };
11842    struct s *b; b->j = 5;
11843  }
11844  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11845    const int foo = 10;
11846    if (!foo) return 0;
11847  }
11848  return !cs[0] && !zero.x;
11849#endif
11850
11851  ;
11852  return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext
11856if { (ac_try="$ac_compile"
11857case "(($ac_try" in
11858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859  *) ac_try_echo=$ac_try;;
11860esac
11861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862$as_echo "$ac_try_echo") >&5
11863  (eval "$ac_compile") 2>conftest.er1
11864  ac_status=$?
11865  grep -v '^ *+' conftest.er1 >conftest.err
11866  rm -f conftest.er1
11867  cat conftest.err >&5
11868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869  (exit $ac_status); } && {
11870	 test -z "$ac_c_werror_flag" ||
11871	 test ! -s conftest.err
11872       } && test -s conftest.$ac_objext; then
11873  ac_cv_c_const=yes
11874else
11875  $as_echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878	ac_cv_c_const=no
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882fi
11883{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11884$as_echo "$ac_cv_c_const" >&6; }
11885if test $ac_cv_c_const = no; then
11886
11887cat >>confdefs.h <<\_ACEOF
11888#define const /**/
11889_ACEOF
11890
11891fi
11892
11893{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11894$as_echo_n "checking for working volatile... " >&6; }
11895if test "${ac_cv_c_volatile+set}" = set; then
11896  $as_echo_n "(cached) " >&6
11897else
11898  cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h.  */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h.  */
11904
11905int
11906main ()
11907{
11908
11909volatile int x;
11910int * volatile y = (int *) 0;
11911return !x && !y;
11912  ;
11913  return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext
11917if { (ac_try="$ac_compile"
11918case "(($ac_try" in
11919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920  *) ac_try_echo=$ac_try;;
11921esac
11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923$as_echo "$ac_try_echo") >&5
11924  (eval "$ac_compile") 2>conftest.er1
11925  ac_status=$?
11926  grep -v '^ *+' conftest.er1 >conftest.err
11927  rm -f conftest.er1
11928  cat conftest.err >&5
11929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930  (exit $ac_status); } && {
11931	 test -z "$ac_c_werror_flag" ||
11932	 test ! -s conftest.err
11933       } && test -s conftest.$ac_objext; then
11934  ac_cv_c_volatile=yes
11935else
11936  $as_echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
11939	ac_cv_c_volatile=no
11940fi
11941
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943fi
11944{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11945$as_echo "$ac_cv_c_volatile" >&6; }
11946if test $ac_cv_c_volatile = no; then
11947
11948cat >>confdefs.h <<\_ACEOF
11949#define volatile /**/
11950_ACEOF
11951
11952fi
11953
11954{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11955$as_echo_n "checking for mode_t... " >&6; }
11956if test "${ac_cv_type_mode_t+set}" = set; then
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_cv_type_mode_t=no
11960cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h.  */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h.  */
11966$ac_includes_default
11967int
11968main ()
11969{
11970if (sizeof (mode_t))
11971       return 0;
11972  ;
11973  return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (ac_try="$ac_compile"
11978case "(($ac_try" in
11979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980  *) ac_try_echo=$ac_try;;
11981esac
11982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983$as_echo "$ac_try_echo") >&5
11984  (eval "$ac_compile") 2>conftest.er1
11985  ac_status=$?
11986  grep -v '^ *+' conftest.er1 >conftest.err
11987  rm -f conftest.er1
11988  cat conftest.err >&5
11989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990  (exit $ac_status); } && {
11991	 test -z "$ac_c_werror_flag" ||
11992	 test ! -s conftest.err
11993       } && test -s conftest.$ac_objext; then
11994  cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h.  */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h.  */
12000$ac_includes_default
12001int
12002main ()
12003{
12004if (sizeof ((mode_t)))
12005	  return 0;
12006  ;
12007  return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext
12011if { (ac_try="$ac_compile"
12012case "(($ac_try" in
12013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014  *) ac_try_echo=$ac_try;;
12015esac
12016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12017$as_echo "$ac_try_echo") >&5
12018  (eval "$ac_compile") 2>conftest.er1
12019  ac_status=$?
12020  grep -v '^ *+' conftest.er1 >conftest.err
12021  rm -f conftest.er1
12022  cat conftest.err >&5
12023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024  (exit $ac_status); } && {
12025	 test -z "$ac_c_werror_flag" ||
12026	 test ! -s conftest.err
12027       } && test -s conftest.$ac_objext; then
12028  :
12029else
12030  $as_echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
12033	ac_cv_type_mode_t=yes
12034fi
12035
12036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037else
12038  $as_echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041
12042fi
12043
12044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045fi
12046{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12047$as_echo "$ac_cv_type_mode_t" >&6; }
12048if test "x$ac_cv_type_mode_t" = x""yes; then
12049  :
12050else
12051
12052cat >>confdefs.h <<_ACEOF
12053#define mode_t int
12054_ACEOF
12055
12056fi
12057
12058{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
12059$as_echo_n "checking for off_t... " >&6; }
12060if test "${ac_cv_type_off_t+set}" = set; then
12061  $as_echo_n "(cached) " >&6
12062else
12063  ac_cv_type_off_t=no
12064cat >conftest.$ac_ext <<_ACEOF
12065/* confdefs.h.  */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h.  */
12070$ac_includes_default
12071int
12072main ()
12073{
12074if (sizeof (off_t))
12075       return 0;
12076  ;
12077  return 0;
12078}
12079_ACEOF
12080rm -f conftest.$ac_objext
12081if { (ac_try="$ac_compile"
12082case "(($ac_try" in
12083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084  *) ac_try_echo=$ac_try;;
12085esac
12086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087$as_echo "$ac_try_echo") >&5
12088  (eval "$ac_compile") 2>conftest.er1
12089  ac_status=$?
12090  grep -v '^ *+' conftest.er1 >conftest.err
12091  rm -f conftest.er1
12092  cat conftest.err >&5
12093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); } && {
12095	 test -z "$ac_c_werror_flag" ||
12096	 test ! -s conftest.err
12097       } && test -s conftest.$ac_objext; then
12098  cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h.  */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h.  */
12104$ac_includes_default
12105int
12106main ()
12107{
12108if (sizeof ((off_t)))
12109	  return 0;
12110  ;
12111  return 0;
12112}
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (ac_try="$ac_compile"
12116case "(($ac_try" in
12117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118  *) ac_try_echo=$ac_try;;
12119esac
12120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121$as_echo "$ac_try_echo") >&5
12122  (eval "$ac_compile") 2>conftest.er1
12123  ac_status=$?
12124  grep -v '^ *+' conftest.er1 >conftest.err
12125  rm -f conftest.er1
12126  cat conftest.err >&5
12127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128  (exit $ac_status); } && {
12129	 test -z "$ac_c_werror_flag" ||
12130	 test ! -s conftest.err
12131       } && test -s conftest.$ac_objext; then
12132  :
12133else
12134  $as_echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137	ac_cv_type_off_t=yes
12138fi
12139
12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141else
12142  $as_echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146fi
12147
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149fi
12150{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12151$as_echo "$ac_cv_type_off_t" >&6; }
12152if test "x$ac_cv_type_off_t" = x""yes; then
12153  :
12154else
12155
12156cat >>confdefs.h <<_ACEOF
12157#define off_t long int
12158_ACEOF
12159
12160fi
12161
12162{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12163$as_echo_n "checking for pid_t... " >&6; }
12164if test "${ac_cv_type_pid_t+set}" = set; then
12165  $as_echo_n "(cached) " >&6
12166else
12167  ac_cv_type_pid_t=no
12168cat >conftest.$ac_ext <<_ACEOF
12169/* confdefs.h.  */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h.  */
12174$ac_includes_default
12175int
12176main ()
12177{
12178if (sizeof (pid_t))
12179       return 0;
12180  ;
12181  return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext
12185if { (ac_try="$ac_compile"
12186case "(($ac_try" in
12187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188  *) ac_try_echo=$ac_try;;
12189esac
12190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12191$as_echo "$ac_try_echo") >&5
12192  (eval "$ac_compile") 2>conftest.er1
12193  ac_status=$?
12194  grep -v '^ *+' conftest.er1 >conftest.err
12195  rm -f conftest.er1
12196  cat conftest.err >&5
12197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198  (exit $ac_status); } && {
12199	 test -z "$ac_c_werror_flag" ||
12200	 test ! -s conftest.err
12201       } && test -s conftest.$ac_objext; then
12202  cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h.  */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h.  */
12208$ac_includes_default
12209int
12210main ()
12211{
12212if (sizeof ((pid_t)))
12213	  return 0;
12214  ;
12215  return 0;
12216}
12217_ACEOF
12218rm -f conftest.$ac_objext
12219if { (ac_try="$ac_compile"
12220case "(($ac_try" in
12221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222  *) ac_try_echo=$ac_try;;
12223esac
12224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225$as_echo "$ac_try_echo") >&5
12226  (eval "$ac_compile") 2>conftest.er1
12227  ac_status=$?
12228  grep -v '^ *+' conftest.er1 >conftest.err
12229  rm -f conftest.er1
12230  cat conftest.err >&5
12231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232  (exit $ac_status); } && {
12233	 test -z "$ac_c_werror_flag" ||
12234	 test ! -s conftest.err
12235       } && test -s conftest.$ac_objext; then
12236  :
12237else
12238  $as_echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241	ac_cv_type_pid_t=yes
12242fi
12243
12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245else
12246  $as_echo "$as_me: failed program was:" >&5
12247sed 's/^/| /' conftest.$ac_ext >&5
12248
12249
12250fi
12251
12252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253fi
12254{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12255$as_echo "$ac_cv_type_pid_t" >&6; }
12256if test "x$ac_cv_type_pid_t" = x""yes; then
12257  :
12258else
12259
12260cat >>confdefs.h <<_ACEOF
12261#define pid_t int
12262_ACEOF
12263
12264fi
12265
12266{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
12267$as_echo_n "checking for size_t... " >&6; }
12268if test "${ac_cv_type_size_t+set}" = set; then
12269  $as_echo_n "(cached) " >&6
12270else
12271  ac_cv_type_size_t=no
12272cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h.  */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h.  */
12278$ac_includes_default
12279int
12280main ()
12281{
12282if (sizeof (size_t))
12283       return 0;
12284  ;
12285  return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext
12289if { (ac_try="$ac_compile"
12290case "(($ac_try" in
12291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292  *) ac_try_echo=$ac_try;;
12293esac
12294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12295$as_echo "$ac_try_echo") >&5
12296  (eval "$ac_compile") 2>conftest.er1
12297  ac_status=$?
12298  grep -v '^ *+' conftest.er1 >conftest.err
12299  rm -f conftest.er1
12300  cat conftest.err >&5
12301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302  (exit $ac_status); } && {
12303	 test -z "$ac_c_werror_flag" ||
12304	 test ! -s conftest.err
12305       } && test -s conftest.$ac_objext; then
12306  cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h.  */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h.  */
12312$ac_includes_default
12313int
12314main ()
12315{
12316if (sizeof ((size_t)))
12317	  return 0;
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext
12323if { (ac_try="$ac_compile"
12324case "(($ac_try" in
12325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326  *) ac_try_echo=$ac_try;;
12327esac
12328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12329$as_echo "$ac_try_echo") >&5
12330  (eval "$ac_compile") 2>conftest.er1
12331  ac_status=$?
12332  grep -v '^ *+' conftest.er1 >conftest.err
12333  rm -f conftest.er1
12334  cat conftest.err >&5
12335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); } && {
12337	 test -z "$ac_c_werror_flag" ||
12338	 test ! -s conftest.err
12339       } && test -s conftest.$ac_objext; then
12340  :
12341else
12342  $as_echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345	ac_cv_type_size_t=yes
12346fi
12347
12348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349else
12350  $as_echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353
12354fi
12355
12356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357fi
12358{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12359$as_echo "$ac_cv_type_size_t" >&6; }
12360if test "x$ac_cv_type_size_t" = x""yes; then
12361  :
12362else
12363
12364cat >>confdefs.h <<_ACEOF
12365#define size_t unsigned int
12366_ACEOF
12367
12368fi
12369
12370{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12371$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12372if test "${ac_cv_type_uid_t+set}" = set; then
12373  $as_echo_n "(cached) " >&6
12374else
12375  cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h.  */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h.  */
12381#include <sys/types.h>
12382
12383_ACEOF
12384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12385  $EGREP "uid_t" >/dev/null 2>&1; then
12386  ac_cv_type_uid_t=yes
12387else
12388  ac_cv_type_uid_t=no
12389fi
12390rm -f conftest*
12391
12392fi
12393{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12394$as_echo "$ac_cv_type_uid_t" >&6; }
12395if test $ac_cv_type_uid_t = no; then
12396
12397cat >>confdefs.h <<\_ACEOF
12398#define uid_t int
12399_ACEOF
12400
12401
12402cat >>confdefs.h <<\_ACEOF
12403#define gid_t int
12404_ACEOF
12405
12406fi
12407
12408{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12409$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12410if test "${ac_cv_header_time+set}" = set; then
12411  $as_echo_n "(cached) " >&6
12412else
12413  cat >conftest.$ac_ext <<_ACEOF
12414/* confdefs.h.  */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h.  */
12419#include <sys/types.h>
12420#include <sys/time.h>
12421#include <time.h>
12422
12423int
12424main ()
12425{
12426if ((struct tm *) 0)
12427return 0;
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext
12433if { (ac_try="$ac_compile"
12434case "(($ac_try" in
12435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436  *) ac_try_echo=$ac_try;;
12437esac
12438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439$as_echo "$ac_try_echo") >&5
12440  (eval "$ac_compile") 2>conftest.er1
12441  ac_status=$?
12442  grep -v '^ *+' conftest.er1 >conftest.err
12443  rm -f conftest.er1
12444  cat conftest.err >&5
12445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446  (exit $ac_status); } && {
12447	 test -z "$ac_c_werror_flag" ||
12448	 test ! -s conftest.err
12449       } && test -s conftest.$ac_objext; then
12450  ac_cv_header_time=yes
12451else
12452  $as_echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455	ac_cv_header_time=no
12456fi
12457
12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459fi
12460{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12461$as_echo "$ac_cv_header_time" >&6; }
12462if test $ac_cv_header_time = yes; then
12463
12464cat >>confdefs.h <<\_ACEOF
12465#define TIME_WITH_SYS_TIME 1
12466_ACEOF
12467
12468fi
12469
12470{ $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12471$as_echo_n "checking for ino_t... " >&6; }
12472if test "${ac_cv_type_ino_t+set}" = set; then
12473  $as_echo_n "(cached) " >&6
12474else
12475  ac_cv_type_ino_t=no
12476cat >conftest.$ac_ext <<_ACEOF
12477/* confdefs.h.  */
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h.  */
12482$ac_includes_default
12483int
12484main ()
12485{
12486if (sizeof (ino_t))
12487       return 0;
12488  ;
12489  return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext
12493if { (ac_try="$ac_compile"
12494case "(($ac_try" in
12495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496  *) ac_try_echo=$ac_try;;
12497esac
12498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499$as_echo "$ac_try_echo") >&5
12500  (eval "$ac_compile") 2>conftest.er1
12501  ac_status=$?
12502  grep -v '^ *+' conftest.er1 >conftest.err
12503  rm -f conftest.er1
12504  cat conftest.err >&5
12505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506  (exit $ac_status); } && {
12507	 test -z "$ac_c_werror_flag" ||
12508	 test ! -s conftest.err
12509       } && test -s conftest.$ac_objext; then
12510  cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h.  */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h.  */
12516$ac_includes_default
12517int
12518main ()
12519{
12520if (sizeof ((ino_t)))
12521	  return 0;
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (ac_try="$ac_compile"
12528case "(($ac_try" in
12529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530  *) ac_try_echo=$ac_try;;
12531esac
12532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533$as_echo "$ac_try_echo") >&5
12534  (eval "$ac_compile") 2>conftest.er1
12535  ac_status=$?
12536  grep -v '^ *+' conftest.er1 >conftest.err
12537  rm -f conftest.er1
12538  cat conftest.err >&5
12539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540  (exit $ac_status); } && {
12541	 test -z "$ac_c_werror_flag" ||
12542	 test ! -s conftest.err
12543       } && test -s conftest.$ac_objext; then
12544  :
12545else
12546  $as_echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549	ac_cv_type_ino_t=yes
12550fi
12551
12552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553else
12554  $as_echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557
12558fi
12559
12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561fi
12562{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12563$as_echo "$ac_cv_type_ino_t" >&6; }
12564if test "x$ac_cv_type_ino_t" = x""yes; then
12565  :
12566else
12567
12568cat >>confdefs.h <<_ACEOF
12569#define ino_t long
12570_ACEOF
12571
12572fi
12573
12574{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12575$as_echo_n "checking for dev_t... " >&6; }
12576if test "${ac_cv_type_dev_t+set}" = set; then
12577  $as_echo_n "(cached) " >&6
12578else
12579  ac_cv_type_dev_t=no
12580cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h.  */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h.  */
12586$ac_includes_default
12587int
12588main ()
12589{
12590if (sizeof (dev_t))
12591       return 0;
12592  ;
12593  return 0;
12594}
12595_ACEOF
12596rm -f conftest.$ac_objext
12597if { (ac_try="$ac_compile"
12598case "(($ac_try" in
12599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600  *) ac_try_echo=$ac_try;;
12601esac
12602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12603$as_echo "$ac_try_echo") >&5
12604  (eval "$ac_compile") 2>conftest.er1
12605  ac_status=$?
12606  grep -v '^ *+' conftest.er1 >conftest.err
12607  rm -f conftest.er1
12608  cat conftest.err >&5
12609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610  (exit $ac_status); } && {
12611	 test -z "$ac_c_werror_flag" ||
12612	 test ! -s conftest.err
12613       } && test -s conftest.$ac_objext; then
12614  cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h.  */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h.  */
12620$ac_includes_default
12621int
12622main ()
12623{
12624if (sizeof ((dev_t)))
12625	  return 0;
12626  ;
12627  return 0;
12628}
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (ac_try="$ac_compile"
12632case "(($ac_try" in
12633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634  *) ac_try_echo=$ac_try;;
12635esac
12636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12637$as_echo "$ac_try_echo") >&5
12638  (eval "$ac_compile") 2>conftest.er1
12639  ac_status=$?
12640  grep -v '^ *+' conftest.er1 >conftest.err
12641  rm -f conftest.er1
12642  cat conftest.err >&5
12643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644  (exit $ac_status); } && {
12645	 test -z "$ac_c_werror_flag" ||
12646	 test ! -s conftest.err
12647       } && test -s conftest.$ac_objext; then
12648  :
12649else
12650  $as_echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653	ac_cv_type_dev_t=yes
12654fi
12655
12656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657else
12658  $as_echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661
12662fi
12663
12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665fi
12666{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12667$as_echo "$ac_cv_type_dev_t" >&6; }
12668if test "x$ac_cv_type_dev_t" = x""yes; then
12669  :
12670else
12671
12672cat >>confdefs.h <<_ACEOF
12673#define dev_t unsigned
12674_ACEOF
12675
12676fi
12677
12678
12679{ $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12680$as_echo_n "checking for rlim_t... " >&6; }
12681if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12682  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12683$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12684else
12685  cat >conftest.$ac_ext <<_ACEOF
12686/* confdefs.h.  */
12687_ACEOF
12688cat confdefs.h >>conftest.$ac_ext
12689cat >>conftest.$ac_ext <<_ACEOF
12690/* end confdefs.h.  */
12691
12692#include <sys/types.h>
12693#if STDC_HEADERS
12694# include <stdlib.h>
12695# include <stddef.h>
12696#endif
12697#ifdef HAVE_SYS_RESOURCE_H
12698# include <sys/resource.h>
12699#endif
12700
12701_ACEOF
12702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12703  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12704  ac_cv_type_rlim_t=yes
12705else
12706  ac_cv_type_rlim_t=no
12707fi
12708rm -f conftest*
12709
12710	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12711$as_echo "$ac_cv_type_rlim_t" >&6; }
12712fi
12713if test $ac_cv_type_rlim_t = no; then
12714  cat >> confdefs.h <<\EOF
12715#define rlim_t unsigned long
12716EOF
12717fi
12718
12719{ $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12720$as_echo_n "checking for stack_t... " >&6; }
12721if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12722  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12723$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12724else
12725  cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h.  */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h.  */
12731
12732#include <sys/types.h>
12733#if STDC_HEADERS
12734# include <stdlib.h>
12735# include <stddef.h>
12736#endif
12737#include <signal.h>
12738
12739_ACEOF
12740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741  $EGREP "stack_t" >/dev/null 2>&1; then
12742  ac_cv_type_stack_t=yes
12743else
12744  ac_cv_type_stack_t=no
12745fi
12746rm -f conftest*
12747
12748	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12749$as_echo "$ac_cv_type_stack_t" >&6; }
12750fi
12751if test $ac_cv_type_stack_t = no; then
12752  cat >> confdefs.h <<\EOF
12753#define stack_t struct sigaltstack
12754EOF
12755fi
12756
12757{ $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12758$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12759cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h.  */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h.  */
12765
12766#include <sys/types.h>
12767#if STDC_HEADERS
12768# include <stdlib.h>
12769# include <stddef.h>
12770#endif
12771#include <signal.h>
12772#include "confdefs.h"
12773
12774int
12775main ()
12776{
12777stack_t sigstk; sigstk.ss_base = 0;
12778  ;
12779  return 0;
12780}
12781_ACEOF
12782rm -f conftest.$ac_objext
12783if { (ac_try="$ac_compile"
12784case "(($ac_try" in
12785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786  *) ac_try_echo=$ac_try;;
12787esac
12788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789$as_echo "$ac_try_echo") >&5
12790  (eval "$ac_compile") 2>conftest.er1
12791  ac_status=$?
12792  grep -v '^ *+' conftest.er1 >conftest.err
12793  rm -f conftest.er1
12794  cat conftest.err >&5
12795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796  (exit $ac_status); } && {
12797	 test -z "$ac_c_werror_flag" ||
12798	 test ! -s conftest.err
12799       } && test -s conftest.$ac_objext; then
12800  { $as_echo "$as_me:$LINENO: result: yes" >&5
12801$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12802#define HAVE_SS_BASE 1
12803_ACEOF
12804
12805else
12806  $as_echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809	{ $as_echo "$as_me:$LINENO: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814
12815olibs="$LIBS"
12816{ $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12817$as_echo_n "checking --with-tlib argument... " >&6; }
12818
12819# Check whether --with-tlib was given.
12820if test "${with_tlib+set}" = set; then
12821  withval=$with_tlib;
12822fi
12823
12824if test -n "$with_tlib"; then
12825  { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12826$as_echo "$with_tlib" >&6; }
12827  LIBS="$LIBS -l$with_tlib"
12828  { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12829$as_echo_n "checking for linking with $with_tlib library... " >&6; }
12830  cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h.  */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h.  */
12836
12837int
12838main ()
12839{
12840
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext conftest$ac_exeext
12846if { (ac_try="$ac_link"
12847case "(($ac_try" in
12848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849  *) ac_try_echo=$ac_try;;
12850esac
12851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852$as_echo "$ac_try_echo") >&5
12853  (eval "$ac_link") 2>conftest.er1
12854  ac_status=$?
12855  grep -v '^ *+' conftest.er1 >conftest.err
12856  rm -f conftest.er1
12857  cat conftest.err >&5
12858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859  (exit $ac_status); } && {
12860	 test -z "$ac_c_werror_flag" ||
12861	 test ! -s conftest.err
12862       } && test -s conftest$ac_exeext && {
12863	 test "$cross_compiling" = yes ||
12864	 $as_test_x conftest$ac_exeext
12865       }; then
12866  { $as_echo "$as_me:$LINENO: result: OK" >&5
12867$as_echo "OK" >&6; }
12868else
12869  $as_echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872	{ { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12873$as_echo "$as_me: error: FAILED" >&2;}
12874   { (exit 1); exit 1; }; }
12875fi
12876
12877rm -rf conftest.dSYM
12878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879      conftest$ac_exeext conftest.$ac_ext
12880    olibs="$LIBS"
12881else
12882  { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12883$as_echo "empty: automatic terminal library selection" >&6; }
12884              case "`uname -s 2>/dev/null`" in
12885	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
12886	*)	tlibs="ncurses termlib termcap curses";;
12887  esac
12888  for libname in $tlibs; do
12889
12890as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12891{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12892$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12893if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12894  $as_echo_n "(cached) " >&6
12895else
12896  ac_check_lib_save_LIBS=$LIBS
12897LIBS="-l${libname}  $LIBS"
12898cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h.  */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h.  */
12904
12905/* Override any GCC internal prototype to avoid an error.
12906   Use char because int might match the return type of a GCC
12907   builtin and then its argument prototype would still apply.  */
12908#ifdef __cplusplus
12909extern "C"
12910#endif
12911char tgetent ();
12912int
12913main ()
12914{
12915return tgetent ();
12916  ;
12917  return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext conftest$ac_exeext
12921if { (ac_try="$ac_link"
12922case "(($ac_try" in
12923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924  *) ac_try_echo=$ac_try;;
12925esac
12926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927$as_echo "$ac_try_echo") >&5
12928  (eval "$ac_link") 2>conftest.er1
12929  ac_status=$?
12930  grep -v '^ *+' conftest.er1 >conftest.err
12931  rm -f conftest.er1
12932  cat conftest.err >&5
12933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934  (exit $ac_status); } && {
12935	 test -z "$ac_c_werror_flag" ||
12936	 test ! -s conftest.err
12937       } && test -s conftest$ac_exeext && {
12938	 test "$cross_compiling" = yes ||
12939	 $as_test_x conftest$ac_exeext
12940       }; then
12941  eval "$as_ac_Lib=yes"
12942else
12943  $as_echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946	eval "$as_ac_Lib=no"
12947fi
12948
12949rm -rf conftest.dSYM
12950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12951      conftest$ac_exeext conftest.$ac_ext
12952LIBS=$ac_check_lib_save_LIBS
12953fi
12954ac_res=`eval 'as_val=${'$as_ac_Lib'}
12955		 $as_echo "$as_val"'`
12956	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957$as_echo "$ac_res" >&6; }
12958as_val=`eval 'as_val=${'$as_ac_Lib'}
12959		 $as_echo "$as_val"'`
12960   if test "x$as_val" = x""yes; then
12961  cat >>confdefs.h <<_ACEOF
12962#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12963_ACEOF
12964
12965  LIBS="-l${libname} $LIBS"
12966
12967fi
12968
12969    if test "x$olibs" != "x$LIBS"; then
12970                        if test "$cross_compiling" = yes; then
12971  res="FAIL"
12972else
12973  cat >conftest.$ac_ext <<_ACEOF
12974/* confdefs.h.  */
12975_ACEOF
12976cat confdefs.h >>conftest.$ac_ext
12977cat >>conftest.$ac_ext <<_ACEOF
12978/* end confdefs.h.  */
12979
12980#ifdef HAVE_TERMCAP_H
12981# include <termcap.h>
12982#endif
12983#if STDC_HEADERS
12984# include <stdlib.h>
12985# include <stddef.h>
12986#endif
12987main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12988_ACEOF
12989rm -f conftest$ac_exeext
12990if { (ac_try="$ac_link"
12991case "(($ac_try" in
12992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993  *) ac_try_echo=$ac_try;;
12994esac
12995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996$as_echo "$ac_try_echo") >&5
12997  (eval "$ac_link") 2>&5
12998  ac_status=$?
12999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13001  { (case "(($ac_try" in
13002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003  *) ac_try_echo=$ac_try;;
13004esac
13005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006$as_echo "$ac_try_echo") >&5
13007  (eval "$ac_try") 2>&5
13008  ac_status=$?
13009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010  (exit $ac_status); }; }; then
13011  res="OK"
13012else
13013  $as_echo "$as_me: program exited with status $ac_status" >&5
13014$as_echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017( exit $ac_status )
13018res="FAIL"
13019fi
13020rm -rf conftest.dSYM
13021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13022fi
13023
13024
13025      if test "$res" = "OK"; then
13026	break
13027      fi
13028      { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13029$as_echo "$libname library is not usable" >&6; }
13030      LIBS="$olibs"
13031    fi
13032  done
13033  if test "x$olibs" = "x$LIBS"; then
13034    { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13035$as_echo "no terminal library found" >&6; }
13036  fi
13037fi
13038
13039if test "x$olibs" = "x$LIBS"; then
13040  { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13041$as_echo_n "checking for tgetent()... " >&6; }
13042  cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h.  */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h.  */
13048
13049int
13050main ()
13051{
13052char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13053  ;
13054  return 0;
13055}
13056_ACEOF
13057rm -f conftest.$ac_objext conftest$ac_exeext
13058if { (ac_try="$ac_link"
13059case "(($ac_try" in
13060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061  *) ac_try_echo=$ac_try;;
13062esac
13063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13064$as_echo "$ac_try_echo") >&5
13065  (eval "$ac_link") 2>conftest.er1
13066  ac_status=$?
13067  grep -v '^ *+' conftest.er1 >conftest.err
13068  rm -f conftest.er1
13069  cat conftest.err >&5
13070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071  (exit $ac_status); } && {
13072	 test -z "$ac_c_werror_flag" ||
13073	 test ! -s conftest.err
13074       } && test -s conftest$ac_exeext && {
13075	 test "$cross_compiling" = yes ||
13076	 $as_test_x conftest$ac_exeext
13077       }; then
13078  { $as_echo "$as_me:$LINENO: result: yes" >&5
13079$as_echo "yes" >&6; }
13080else
13081  $as_echo "$as_me: failed program was:" >&5
13082sed 's/^/| /' conftest.$ac_ext >&5
13083
13084	{ { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13085      You need to install a terminal library; for example ncurses.
13086      Or specify the name of the library with --with-tlib." >&5
13087$as_echo "$as_me: error: NOT FOUND!
13088      You need to install a terminal library; for example ncurses.
13089      Or specify the name of the library with --with-tlib." >&2;}
13090   { (exit 1); exit 1; }; }
13091fi
13092
13093rm -rf conftest.dSYM
13094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095      conftest$ac_exeext conftest.$ac_ext
13096fi
13097
13098{ $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13099$as_echo_n "checking whether we talk terminfo... " >&6; }
13100if test "${vim_cv_terminfo+set}" = set; then
13101  $as_echo_n "(cached) " >&6
13102else
13103
13104    if test "$cross_compiling" = yes; then
13105
13106      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13107$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13108   { (exit 1); exit 1; }; }
13109
13110else
13111  cat >conftest.$ac_ext <<_ACEOF
13112
13113#include "confdefs.h"
13114#ifdef HAVE_TERMCAP_H
13115# include <termcap.h>
13116#endif
13117#ifdef HAVE_STRING_H
13118# include <string.h>
13119#endif
13120#if STDC_HEADERS
13121# include <stdlib.h>
13122# include <stddef.h>
13123#endif
13124main()
13125{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13126
13127_ACEOF
13128rm -f conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132  *) ac_try_echo=$ac_try;;
13133esac
13134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135$as_echo "$ac_try_echo") >&5
13136  (eval "$ac_link") 2>&5
13137  ac_status=$?
13138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13140  { (case "(($ac_try" in
13141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142  *) ac_try_echo=$ac_try;;
13143esac
13144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145$as_echo "$ac_try_echo") >&5
13146  (eval "$ac_try") 2>&5
13147  ac_status=$?
13148  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149  (exit $ac_status); }; }; then
13150
13151      vim_cv_terminfo=no
13152
13153else
13154  $as_echo "$as_me: program exited with status $ac_status" >&5
13155$as_echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158( exit $ac_status )
13159
13160      vim_cv_terminfo=yes
13161
13162fi
13163rm -rf conftest.dSYM
13164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13165fi
13166
13167
13168
13169fi
13170{ $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13171$as_echo "$vim_cv_terminfo" >&6; }
13172
13173if test "x$vim_cv_terminfo" = "xyes" ; then
13174  cat >>confdefs.h <<\_ACEOF
13175#define TERMINFO 1
13176_ACEOF
13177
13178fi
13179
13180if test "x$olibs" != "x$LIBS"; then
13181  { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13182$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13183if test "${vim_cv_tgent+set}" = set; then
13184  $as_echo_n "(cached) " >&6
13185else
13186
13187      if test "$cross_compiling" = yes; then
13188
13189	{ { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13190$as_echo "$as_me: error: failed to compile test program." >&2;}
13191   { (exit 1); exit 1; }; }
13192
13193else
13194  cat >conftest.$ac_ext <<_ACEOF
13195
13196#include "confdefs.h"
13197#ifdef HAVE_TERMCAP_H
13198# include <termcap.h>
13199#endif
13200#if STDC_HEADERS
13201# include <stdlib.h>
13202# include <stddef.h>
13203#endif
13204main()
13205{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13206
13207_ACEOF
13208rm -f conftest$ac_exeext
13209if { (ac_try="$ac_link"
13210case "(($ac_try" in
13211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212  *) ac_try_echo=$ac_try;;
13213esac
13214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215$as_echo "$ac_try_echo") >&5
13216  (eval "$ac_link") 2>&5
13217  ac_status=$?
13218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13220  { (case "(($ac_try" in
13221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222  *) ac_try_echo=$ac_try;;
13223esac
13224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225$as_echo "$ac_try_echo") >&5
13226  (eval "$ac_try") 2>&5
13227  ac_status=$?
13228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229  (exit $ac_status); }; }; then
13230
13231	vim_cv_tgent=zero
13232
13233else
13234  $as_echo "$as_me: program exited with status $ac_status" >&5
13235$as_echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238( exit $ac_status )
13239
13240	vim_cv_tgent=non-zero
13241
13242fi
13243rm -rf conftest.dSYM
13244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13245fi
13246
13247
13248
13249fi
13250{ $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13251$as_echo "$vim_cv_tgent" >&6; }
13252
13253  if test "x$vim_cv_tgent" = "xzero" ; then
13254    cat >>confdefs.h <<\_ACEOF
13255#define TGETENT_ZERO_ERR 0
13256_ACEOF
13257
13258  fi
13259fi
13260
13261{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13262$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13263cat >conftest.$ac_ext <<_ACEOF
13264/* confdefs.h.  */
13265_ACEOF
13266cat confdefs.h >>conftest.$ac_ext
13267cat >>conftest.$ac_ext <<_ACEOF
13268/* end confdefs.h.  */
13269
13270#ifdef HAVE_TERMCAP_H
13271# include <termcap.h>
13272#endif
13273
13274int
13275main ()
13276{
13277ospeed = 20000
13278  ;
13279  return 0;
13280}
13281_ACEOF
13282rm -f conftest.$ac_objext conftest$ac_exeext
13283if { (ac_try="$ac_link"
13284case "(($ac_try" in
13285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286  *) ac_try_echo=$ac_try;;
13287esac
13288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13289$as_echo "$ac_try_echo") >&5
13290  (eval "$ac_link") 2>conftest.er1
13291  ac_status=$?
13292  grep -v '^ *+' conftest.er1 >conftest.err
13293  rm -f conftest.er1
13294  cat conftest.err >&5
13295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296  (exit $ac_status); } && {
13297	 test -z "$ac_c_werror_flag" ||
13298	 test ! -s conftest.err
13299       } && test -s conftest$ac_exeext && {
13300	 test "$cross_compiling" = yes ||
13301	 $as_test_x conftest$ac_exeext
13302       }; then
13303  { $as_echo "$as_me:$LINENO: result: yes" >&5
13304$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13305#define HAVE_OSPEED 1
13306_ACEOF
13307
13308else
13309  $as_echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312	{ $as_echo "$as_me:$LINENO: result: no" >&5
13313$as_echo "no" >&6; }
13314	{ $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13315$as_echo_n "checking whether ospeed can be extern... " >&6; }
13316	cat >conftest.$ac_ext <<_ACEOF
13317/* confdefs.h.  */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h.  */
13322
13323#ifdef HAVE_TERMCAP_H
13324# include <termcap.h>
13325#endif
13326extern short ospeed;
13327
13328int
13329main ()
13330{
13331ospeed = 20000
13332  ;
13333  return 0;
13334}
13335_ACEOF
13336rm -f conftest.$ac_objext conftest$ac_exeext
13337if { (ac_try="$ac_link"
13338case "(($ac_try" in
13339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340  *) ac_try_echo=$ac_try;;
13341esac
13342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13343$as_echo "$ac_try_echo") >&5
13344  (eval "$ac_link") 2>conftest.er1
13345  ac_status=$?
13346  grep -v '^ *+' conftest.er1 >conftest.err
13347  rm -f conftest.er1
13348  cat conftest.err >&5
13349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350  (exit $ac_status); } && {
13351	 test -z "$ac_c_werror_flag" ||
13352	 test ! -s conftest.err
13353       } && test -s conftest$ac_exeext && {
13354	 test "$cross_compiling" = yes ||
13355	 $as_test_x conftest$ac_exeext
13356       }; then
13357  { $as_echo "$as_me:$LINENO: result: yes" >&5
13358$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13359#define OSPEED_EXTERN 1
13360_ACEOF
13361
13362else
13363  $as_echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366	{ $as_echo "$as_me:$LINENO: result: no" >&5
13367$as_echo "no" >&6; }
13368fi
13369
13370rm -rf conftest.dSYM
13371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372      conftest$ac_exeext conftest.$ac_ext
13373
13374fi
13375
13376rm -rf conftest.dSYM
13377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378      conftest$ac_exeext conftest.$ac_ext
13379
13380{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13381$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h.  */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h.  */
13388
13389#ifdef HAVE_TERMCAP_H
13390# include <termcap.h>
13391#endif
13392
13393int
13394main ()
13395{
13396if (UP == 0 && BC == 0) PC = 1
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401rm -f conftest.$ac_objext conftest$ac_exeext
13402if { (ac_try="$ac_link"
13403case "(($ac_try" in
13404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405  *) ac_try_echo=$ac_try;;
13406esac
13407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408$as_echo "$ac_try_echo") >&5
13409  (eval "$ac_link") 2>conftest.er1
13410  ac_status=$?
13411  grep -v '^ *+' conftest.er1 >conftest.err
13412  rm -f conftest.er1
13413  cat conftest.err >&5
13414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); } && {
13416	 test -z "$ac_c_werror_flag" ||
13417	 test ! -s conftest.err
13418       } && test -s conftest$ac_exeext && {
13419	 test "$cross_compiling" = yes ||
13420	 $as_test_x conftest$ac_exeext
13421       }; then
13422  { $as_echo "$as_me:$LINENO: result: yes" >&5
13423$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13424#define HAVE_UP_BC_PC 1
13425_ACEOF
13426
13427else
13428  $as_echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431	{ $as_echo "$as_me:$LINENO: result: no" >&5
13432$as_echo "no" >&6; }
13433	{ $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13434$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13435	cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h.  */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h.  */
13441
13442#ifdef HAVE_TERMCAP_H
13443# include <termcap.h>
13444#endif
13445extern char *UP, *BC, PC;
13446
13447int
13448main ()
13449{
13450if (UP == 0 && BC == 0) PC = 1
13451  ;
13452  return 0;
13453}
13454_ACEOF
13455rm -f conftest.$ac_objext conftest$ac_exeext
13456if { (ac_try="$ac_link"
13457case "(($ac_try" in
13458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459  *) ac_try_echo=$ac_try;;
13460esac
13461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462$as_echo "$ac_try_echo") >&5
13463  (eval "$ac_link") 2>conftest.er1
13464  ac_status=$?
13465  grep -v '^ *+' conftest.er1 >conftest.err
13466  rm -f conftest.er1
13467  cat conftest.err >&5
13468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469  (exit $ac_status); } && {
13470	 test -z "$ac_c_werror_flag" ||
13471	 test ! -s conftest.err
13472       } && test -s conftest$ac_exeext && {
13473	 test "$cross_compiling" = yes ||
13474	 $as_test_x conftest$ac_exeext
13475       }; then
13476  { $as_echo "$as_me:$LINENO: result: yes" >&5
13477$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13478#define UP_BC_PC_EXTERN 1
13479_ACEOF
13480
13481else
13482  $as_echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485	{ $as_echo "$as_me:$LINENO: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489rm -rf conftest.dSYM
13490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13491      conftest$ac_exeext conftest.$ac_ext
13492
13493fi
13494
13495rm -rf conftest.dSYM
13496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13497      conftest$ac_exeext conftest.$ac_ext
13498
13499{ $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13500$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13501cat >conftest.$ac_ext <<_ACEOF
13502/* confdefs.h.  */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h.  */
13507
13508#ifdef HAVE_TERMCAP_H
13509# include <termcap.h>
13510#endif
13511
13512int
13513main ()
13514{
13515extern int xx(); tputs("test", 1, (outfuntype)xx)
13516  ;
13517  return 0;
13518}
13519_ACEOF
13520rm -f conftest.$ac_objext
13521if { (ac_try="$ac_compile"
13522case "(($ac_try" in
13523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524  *) ac_try_echo=$ac_try;;
13525esac
13526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527$as_echo "$ac_try_echo") >&5
13528  (eval "$ac_compile") 2>conftest.er1
13529  ac_status=$?
13530  grep -v '^ *+' conftest.er1 >conftest.err
13531  rm -f conftest.er1
13532  cat conftest.err >&5
13533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534  (exit $ac_status); } && {
13535	 test -z "$ac_c_werror_flag" ||
13536	 test ! -s conftest.err
13537       } && test -s conftest.$ac_objext; then
13538  { $as_echo "$as_me:$LINENO: result: yes" >&5
13539$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13540#define HAVE_OUTFUNTYPE 1
13541_ACEOF
13542
13543else
13544  $as_echo "$as_me: failed program was:" >&5
13545sed 's/^/| /' conftest.$ac_ext >&5
13546
13547	{ $as_echo "$as_me:$LINENO: result: no" >&5
13548$as_echo "no" >&6; }
13549fi
13550
13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552
13553{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13554$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13555cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h.  */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h.  */
13561
13562#include <sys/types.h>
13563#include <sys/time.h>
13564#include <sys/select.h>
13565int
13566main ()
13567{
13568
13569  ;
13570  return 0;
13571}
13572_ACEOF
13573rm -f conftest.$ac_objext
13574if { (ac_try="$ac_compile"
13575case "(($ac_try" in
13576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577  *) ac_try_echo=$ac_try;;
13578esac
13579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580$as_echo "$ac_try_echo") >&5
13581  (eval "$ac_compile") 2>conftest.er1
13582  ac_status=$?
13583  grep -v '^ *+' conftest.er1 >conftest.err
13584  rm -f conftest.er1
13585  cat conftest.err >&5
13586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587  (exit $ac_status); } && {
13588	 test -z "$ac_c_werror_flag" ||
13589	 test ! -s conftest.err
13590       } && test -s conftest.$ac_objext; then
13591  { $as_echo "$as_me:$LINENO: result: yes" >&5
13592$as_echo "yes" >&6; }
13593			cat >>confdefs.h <<\_ACEOF
13594#define SYS_SELECT_WITH_SYS_TIME 1
13595_ACEOF
13596
13597else
13598  $as_echo "$as_me: failed program was:" >&5
13599sed 's/^/| /' conftest.$ac_ext >&5
13600
13601	{ $as_echo "$as_me:$LINENO: result: no" >&5
13602$as_echo "no" >&6; }
13603fi
13604
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606
13607
13608{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13609$as_echo_n "checking for /dev/ptc... " >&6; }
13610if test -r /dev/ptc; then
13611  cat >>confdefs.h <<\_ACEOF
13612#define HAVE_DEV_PTC 1
13613_ACEOF
13614
13615  { $as_echo "$as_me:$LINENO: result: yes" >&5
13616$as_echo "yes" >&6; }
13617else
13618  { $as_echo "$as_me:$LINENO: result: no" >&5
13619$as_echo "no" >&6; }
13620fi
13621
13622{ $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13623$as_echo_n "checking for SVR4 ptys... " >&6; }
13624if test -c /dev/ptmx ; then
13625  cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h.  */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h.  */
13631
13632int
13633main ()
13634{
13635ptsname(0);grantpt(0);unlockpt(0);
13636  ;
13637  return 0;
13638}
13639_ACEOF
13640rm -f conftest.$ac_objext conftest$ac_exeext
13641if { (ac_try="$ac_link"
13642case "(($ac_try" in
13643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644  *) ac_try_echo=$ac_try;;
13645esac
13646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13647$as_echo "$ac_try_echo") >&5
13648  (eval "$ac_link") 2>conftest.er1
13649  ac_status=$?
13650  grep -v '^ *+' conftest.er1 >conftest.err
13651  rm -f conftest.er1
13652  cat conftest.err >&5
13653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654  (exit $ac_status); } && {
13655	 test -z "$ac_c_werror_flag" ||
13656	 test ! -s conftest.err
13657       } && test -s conftest$ac_exeext && {
13658	 test "$cross_compiling" = yes ||
13659	 $as_test_x conftest$ac_exeext
13660       }; then
13661  { $as_echo "$as_me:$LINENO: result: yes" >&5
13662$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13663#define HAVE_SVR4_PTYS 1
13664_ACEOF
13665
13666else
13667  $as_echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670	{ $as_echo "$as_me:$LINENO: result: no" >&5
13671$as_echo "no" >&6; }
13672fi
13673
13674rm -rf conftest.dSYM
13675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676      conftest$ac_exeext conftest.$ac_ext
13677else
13678  { $as_echo "$as_me:$LINENO: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
13681
13682{ $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13683$as_echo_n "checking for ptyranges... " >&6; }
13684if test -d /dev/ptym ; then
13685  pdir='/dev/ptym'
13686else
13687  pdir='/dev'
13688fi
13689cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h.  */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h.  */
13695#ifdef M_UNIX
13696   yes;
13697#endif
13698
13699_ACEOF
13700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701  $EGREP "yes" >/dev/null 2>&1; then
13702  ptys=`echo /dev/ptyp??`
13703else
13704  ptys=`echo $pdir/pty??`
13705fi
13706rm -f conftest*
13707
13708if test "$ptys" != "$pdir/pty??" ; then
13709  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13710  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
13711  cat >>confdefs.h <<_ACEOF
13712#define PTYRANGE0 "$p0"
13713_ACEOF
13714
13715  cat >>confdefs.h <<_ACEOF
13716#define PTYRANGE1 "$p1"
13717_ACEOF
13718
13719  { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13720$as_echo "$p0 / $p1" >&6; }
13721else
13722  { $as_echo "$as_me:$LINENO: result: don't know" >&5
13723$as_echo "don't know" >&6; }
13724fi
13725
13726rm -f conftest_grp
13727{ $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13728$as_echo_n "checking default tty permissions/group... " >&6; }
13729if test "${vim_cv_tty_group+set}" = set; then
13730  $as_echo_n "(cached) " >&6
13731else
13732
13733    if test "$cross_compiling" = yes; then
13734
13735      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13736$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13737   { (exit 1); exit 1; }; }
13738
13739else
13740  cat >conftest.$ac_ext <<_ACEOF
13741
13742#include "confdefs.h"
13743#include <sys/types.h>
13744#if STDC_HEADERS
13745# include <stdlib.h>
13746# include <stddef.h>
13747#endif
13748#ifdef HAVE_UNISTD_H
13749#include <unistd.h>
13750#endif
13751#include <sys/stat.h>
13752#include <stdio.h>
13753main()
13754{
13755  struct stat sb;
13756  char *x,*ttyname();
13757  int om, m;
13758  FILE *fp;
13759
13760  if (!(x = ttyname(0))) exit(1);
13761  if (stat(x, &sb)) exit(1);
13762  om = sb.st_mode;
13763  if (om & 002) exit(0);
13764  m = system("mesg y");
13765  if (m == -1 || m == 127) exit(1);
13766  if (stat(x, &sb)) exit(1);
13767  m = sb.st_mode;
13768  if (chmod(x, om)) exit(1);
13769  if (m & 002) exit(0);
13770  if (sb.st_gid == getgid()) exit(1);
13771  if (!(fp=fopen("conftest_grp", "w")))
13772    exit(1);
13773  fprintf(fp, "%d\n", sb.st_gid);
13774  fclose(fp);
13775  exit(0);
13776}
13777
13778_ACEOF
13779rm -f conftest$ac_exeext
13780if { (ac_try="$ac_link"
13781case "(($ac_try" in
13782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783  *) ac_try_echo=$ac_try;;
13784esac
13785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13786$as_echo "$ac_try_echo") >&5
13787  (eval "$ac_link") 2>&5
13788  ac_status=$?
13789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13791  { (case "(($ac_try" in
13792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793  *) ac_try_echo=$ac_try;;
13794esac
13795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13796$as_echo "$ac_try_echo") >&5
13797  (eval "$ac_try") 2>&5
13798  ac_status=$?
13799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800  (exit $ac_status); }; }; then
13801
13802      if test -f conftest_grp; then
13803	vim_cv_tty_group=`cat conftest_grp`
13804	if test "x$vim_cv_tty_mode" = "x" ; then
13805	  vim_cv_tty_mode=0620
13806	fi
13807	{ $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13808$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13809      else
13810	vim_cv_tty_group=world
13811	{ $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13812$as_echo "ptys are world accessible" >&6; }
13813      fi
13814
13815else
13816  $as_echo "$as_me: program exited with status $ac_status" >&5
13817$as_echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820( exit $ac_status )
13821
13822      vim_cv_tty_group=world
13823      { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13824$as_echo "can't determine - assume ptys are world accessible" >&6; }
13825
13826fi
13827rm -rf conftest.dSYM
13828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13829fi
13830
13831
13832
13833fi
13834{ $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13835$as_echo "$vim_cv_tty_group" >&6; }
13836rm -f conftest_grp
13837
13838if test "x$vim_cv_tty_group" != "xworld" ; then
13839  cat >>confdefs.h <<_ACEOF
13840#define PTYGROUP $vim_cv_tty_group
13841_ACEOF
13842
13843  if test "x$vim_cv_tty_mode" = "x" ; then
13844    { { $as_echo "$as_me:$LINENO: 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 (propably 0620)" >&5
13845$as_echo "$as_me: 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 (propably 0620)" >&2;}
13846   { (exit 1); exit 1; }; }
13847  else
13848    cat >>confdefs.h <<\_ACEOF
13849#define PTYMODE 0620
13850_ACEOF
13851
13852  fi
13853fi
13854
13855
13856{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13857$as_echo_n "checking return type of signal handlers... " >&6; }
13858if test "${ac_cv_type_signal+set}" = set; then
13859  $as_echo_n "(cached) " >&6
13860else
13861  cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h.  */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h.  */
13867#include <sys/types.h>
13868#include <signal.h>
13869
13870int
13871main ()
13872{
13873return *(signal (0, 0)) (0) == 1;
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (ac_try="$ac_compile"
13880case "(($ac_try" in
13881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882  *) ac_try_echo=$ac_try;;
13883esac
13884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885$as_echo "$ac_try_echo") >&5
13886  (eval "$ac_compile") 2>conftest.er1
13887  ac_status=$?
13888  grep -v '^ *+' conftest.er1 >conftest.err
13889  rm -f conftest.er1
13890  cat conftest.err >&5
13891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892  (exit $ac_status); } && {
13893	 test -z "$ac_c_werror_flag" ||
13894	 test ! -s conftest.err
13895       } && test -s conftest.$ac_objext; then
13896  ac_cv_type_signal=int
13897else
13898  $as_echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
13900
13901	ac_cv_type_signal=void
13902fi
13903
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905fi
13906{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13907$as_echo "$ac_cv_type_signal" >&6; }
13908
13909cat >>confdefs.h <<_ACEOF
13910#define RETSIGTYPE $ac_cv_type_signal
13911_ACEOF
13912
13913
13914
13915if test $ac_cv_type_signal = void; then
13916  cat >>confdefs.h <<\_ACEOF
13917#define SIGRETURN return
13918_ACEOF
13919
13920else
13921  cat >>confdefs.h <<\_ACEOF
13922#define SIGRETURN return 0
13923_ACEOF
13924
13925fi
13926
13927{ $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13928$as_echo_n "checking for struct sigcontext... " >&6; }
13929cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h.  */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h.  */
13935
13936#include <signal.h>
13937test_sig()
13938{
13939    struct sigcontext *scont;
13940    scont = (struct sigcontext *)0;
13941    return 1;
13942}
13943int
13944main ()
13945{
13946
13947  ;
13948  return 0;
13949}
13950_ACEOF
13951rm -f conftest.$ac_objext
13952if { (ac_try="$ac_compile"
13953case "(($ac_try" in
13954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955  *) ac_try_echo=$ac_try;;
13956esac
13957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13958$as_echo "$ac_try_echo") >&5
13959  (eval "$ac_compile") 2>conftest.er1
13960  ac_status=$?
13961  grep -v '^ *+' conftest.er1 >conftest.err
13962  rm -f conftest.er1
13963  cat conftest.err >&5
13964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965  (exit $ac_status); } && {
13966	 test -z "$ac_c_werror_flag" ||
13967	 test ! -s conftest.err
13968       } && test -s conftest.$ac_objext; then
13969  { $as_echo "$as_me:$LINENO: result: yes" >&5
13970$as_echo "yes" >&6; }
13971		cat >>confdefs.h <<\_ACEOF
13972#define HAVE_SIGCONTEXT 1
13973_ACEOF
13974
13975else
13976  $as_echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979	{ $as_echo "$as_me:$LINENO: result: no" >&5
13980$as_echo "no" >&6; }
13981fi
13982
13983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984
13985{ $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13986$as_echo_n "checking getcwd implementation is broken... " >&6; }
13987if test "${vim_cv_getcwd_broken+set}" = set; then
13988  $as_echo_n "(cached) " >&6
13989else
13990
13991    if test "$cross_compiling" = yes; then
13992
13993      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13994$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13995   { (exit 1); exit 1; }; }
13996
13997else
13998  cat >conftest.$ac_ext <<_ACEOF
13999
14000#include "confdefs.h"
14001#ifdef HAVE_UNISTD_H
14002#include <unistd.h>
14003#endif
14004char *dagger[] = { "IFS=pwd", 0 };
14005main()
14006{
14007  char buffer[500];
14008  extern char **environ;
14009  environ = dagger;
14010  return getcwd(buffer, 500) ? 0 : 1;
14011}
14012
14013_ACEOF
14014rm -f conftest$ac_exeext
14015if { (ac_try="$ac_link"
14016case "(($ac_try" in
14017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018  *) ac_try_echo=$ac_try;;
14019esac
14020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14021$as_echo "$ac_try_echo") >&5
14022  (eval "$ac_link") 2>&5
14023  ac_status=$?
14024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026  { (case "(($ac_try" in
14027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028  *) ac_try_echo=$ac_try;;
14029esac
14030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031$as_echo "$ac_try_echo") >&5
14032  (eval "$ac_try") 2>&5
14033  ac_status=$?
14034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035  (exit $ac_status); }; }; then
14036
14037      vim_cv_getcwd_broken=no
14038
14039else
14040  $as_echo "$as_me: program exited with status $ac_status" >&5
14041$as_echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044( exit $ac_status )
14045
14046      vim_cv_getcwd_broken=yes
14047
14048fi
14049rm -rf conftest.dSYM
14050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14051fi
14052
14053
14054
14055fi
14056{ $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14057$as_echo "$vim_cv_getcwd_broken" >&6; }
14058
14059if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14060  cat >>confdefs.h <<\_ACEOF
14061#define BAD_GETCWD 1
14062_ACEOF
14063
14064fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14112	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14113	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14114	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14115	sigvec strcasecmp strerror strftime stricmp strncasecmp \
14116	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14117	usleep utime utimes
14118do
14119as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14120{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14121$as_echo_n "checking for $ac_func... " >&6; }
14122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14123  $as_echo_n "(cached) " >&6
14124else
14125  cat >conftest.$ac_ext <<_ACEOF
14126/* confdefs.h.  */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h.  */
14131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14133#define $ac_func innocuous_$ac_func
14134
14135/* System header to define __stub macros and hopefully few prototypes,
14136    which can conflict with char $ac_func (); below.
14137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138    <limits.h> exists even on freestanding compilers.  */
14139
14140#ifdef __STDC__
14141# include <limits.h>
14142#else
14143# include <assert.h>
14144#endif
14145
14146#undef $ac_func
14147
14148/* Override any GCC internal prototype to avoid an error.
14149   Use char because int might match the return type of a GCC
14150   builtin and then its argument prototype would still apply.  */
14151#ifdef __cplusplus
14152extern "C"
14153#endif
14154char $ac_func ();
14155/* The GNU C library defines this for functions which it implements
14156    to always fail with ENOSYS.  Some functions are actually named
14157    something starting with __ and the normal name is an alias.  */
14158#if defined __stub_$ac_func || defined __stub___$ac_func
14159choke me
14160#endif
14161
14162int
14163main ()
14164{
14165return $ac_func ();
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext conftest$ac_exeext
14171if { (ac_try="$ac_link"
14172case "(($ac_try" in
14173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174  *) ac_try_echo=$ac_try;;
14175esac
14176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177$as_echo "$ac_try_echo") >&5
14178  (eval "$ac_link") 2>conftest.er1
14179  ac_status=$?
14180  grep -v '^ *+' conftest.er1 >conftest.err
14181  rm -f conftest.er1
14182  cat conftest.err >&5
14183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184  (exit $ac_status); } && {
14185	 test -z "$ac_c_werror_flag" ||
14186	 test ! -s conftest.err
14187       } && test -s conftest$ac_exeext && {
14188	 test "$cross_compiling" = yes ||
14189	 $as_test_x conftest$ac_exeext
14190       }; then
14191  eval "$as_ac_var=yes"
14192else
14193  $as_echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196	eval "$as_ac_var=no"
14197fi
14198
14199rm -rf conftest.dSYM
14200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201      conftest$ac_exeext conftest.$ac_ext
14202fi
14203ac_res=`eval 'as_val=${'$as_ac_var'}
14204		 $as_echo "$as_val"'`
14205	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206$as_echo "$ac_res" >&6; }
14207as_val=`eval 'as_val=${'$as_ac_var'}
14208		 $as_echo "$as_val"'`
14209   if test "x$as_val" = x""yes; then
14210  cat >>confdefs.h <<_ACEOF
14211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212_ACEOF
14213
14214fi
14215done
14216
14217{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14218$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14219if test "${ac_cv_sys_largefile_source+set}" = set; then
14220  $as_echo_n "(cached) " >&6
14221else
14222  while :; do
14223  cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h.  */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h.  */
14229#include <sys/types.h> /* for off_t */
14230     #include <stdio.h>
14231int
14232main ()
14233{
14234int (*fp) (FILE *, off_t, int) = fseeko;
14235     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14236  ;
14237  return 0;
14238}
14239_ACEOF
14240rm -f conftest.$ac_objext conftest$ac_exeext
14241if { (ac_try="$ac_link"
14242case "(($ac_try" in
14243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244  *) ac_try_echo=$ac_try;;
14245esac
14246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247$as_echo "$ac_try_echo") >&5
14248  (eval "$ac_link") 2>conftest.er1
14249  ac_status=$?
14250  grep -v '^ *+' conftest.er1 >conftest.err
14251  rm -f conftest.er1
14252  cat conftest.err >&5
14253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254  (exit $ac_status); } && {
14255	 test -z "$ac_c_werror_flag" ||
14256	 test ! -s conftest.err
14257       } && test -s conftest$ac_exeext && {
14258	 test "$cross_compiling" = yes ||
14259	 $as_test_x conftest$ac_exeext
14260       }; then
14261  ac_cv_sys_largefile_source=no; break
14262else
14263  $as_echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266
14267fi
14268
14269rm -rf conftest.dSYM
14270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271      conftest$ac_exeext conftest.$ac_ext
14272  cat >conftest.$ac_ext <<_ACEOF
14273/* confdefs.h.  */
14274_ACEOF
14275cat confdefs.h >>conftest.$ac_ext
14276cat >>conftest.$ac_ext <<_ACEOF
14277/* end confdefs.h.  */
14278#define _LARGEFILE_SOURCE 1
14279#include <sys/types.h> /* for off_t */
14280     #include <stdio.h>
14281int
14282main ()
14283{
14284int (*fp) (FILE *, off_t, int) = fseeko;
14285     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14286  ;
14287  return 0;
14288}
14289_ACEOF
14290rm -f conftest.$ac_objext conftest$ac_exeext
14291if { (ac_try="$ac_link"
14292case "(($ac_try" in
14293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294  *) ac_try_echo=$ac_try;;
14295esac
14296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297$as_echo "$ac_try_echo") >&5
14298  (eval "$ac_link") 2>conftest.er1
14299  ac_status=$?
14300  grep -v '^ *+' conftest.er1 >conftest.err
14301  rm -f conftest.er1
14302  cat conftest.err >&5
14303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304  (exit $ac_status); } && {
14305	 test -z "$ac_c_werror_flag" ||
14306	 test ! -s conftest.err
14307       } && test -s conftest$ac_exeext && {
14308	 test "$cross_compiling" = yes ||
14309	 $as_test_x conftest$ac_exeext
14310       }; then
14311  ac_cv_sys_largefile_source=1; break
14312else
14313  $as_echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316
14317fi
14318
14319rm -rf conftest.dSYM
14320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321      conftest$ac_exeext conftest.$ac_ext
14322  ac_cv_sys_largefile_source=unknown
14323  break
14324done
14325fi
14326{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14327$as_echo "$ac_cv_sys_largefile_source" >&6; }
14328case $ac_cv_sys_largefile_source in #(
14329  no | unknown) ;;
14330  *)
14331cat >>confdefs.h <<_ACEOF
14332#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14333_ACEOF
14334;;
14335esac
14336rm -rf conftest*
14337
14338# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14339# in glibc 2.1.3, but that breaks too many other things.
14340# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14341if test $ac_cv_sys_largefile_source != unknown; then
14342
14343cat >>confdefs.h <<\_ACEOF
14344#define HAVE_FSEEKO 1
14345_ACEOF
14346
14347fi
14348
14349
14350# Check whether --enable-largefile was given.
14351if test "${enable_largefile+set}" = set; then
14352  enableval=$enable_largefile;
14353fi
14354
14355if test "$enable_largefile" != no; then
14356
14357  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14358$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14359if test "${ac_cv_sys_largefile_CC+set}" = set; then
14360  $as_echo_n "(cached) " >&6
14361else
14362  ac_cv_sys_largefile_CC=no
14363     if test "$GCC" != yes; then
14364       ac_save_CC=$CC
14365       while :; do
14366	 # IRIX 6.2 and later do not support large files by default,
14367	 # so use the C compiler's -n32 option if that helps.
14368	 cat >conftest.$ac_ext <<_ACEOF
14369/* confdefs.h.  */
14370_ACEOF
14371cat confdefs.h >>conftest.$ac_ext
14372cat >>conftest.$ac_ext <<_ACEOF
14373/* end confdefs.h.  */
14374#include <sys/types.h>
14375 /* Check that off_t can represent 2**63 - 1 correctly.
14376    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14377    since some C++ compilers masquerading as C compilers
14378    incorrectly reject 9223372036854775807.  */
14379#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14380  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14381		       && LARGE_OFF_T % 2147483647 == 1)
14382		      ? 1 : -1];
14383int
14384main ()
14385{
14386
14387  ;
14388  return 0;
14389}
14390_ACEOF
14391	 rm -f conftest.$ac_objext
14392if { (ac_try="$ac_compile"
14393case "(($ac_try" in
14394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395  *) ac_try_echo=$ac_try;;
14396esac
14397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398$as_echo "$ac_try_echo") >&5
14399  (eval "$ac_compile") 2>conftest.er1
14400  ac_status=$?
14401  grep -v '^ *+' conftest.er1 >conftest.err
14402  rm -f conftest.er1
14403  cat conftest.err >&5
14404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405  (exit $ac_status); } && {
14406	 test -z "$ac_c_werror_flag" ||
14407	 test ! -s conftest.err
14408       } && test -s conftest.$ac_objext; then
14409  break
14410else
14411  $as_echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
14415fi
14416
14417rm -f core conftest.err conftest.$ac_objext
14418	 CC="$CC -n32"
14419	 rm -f conftest.$ac_objext
14420if { (ac_try="$ac_compile"
14421case "(($ac_try" in
14422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423  *) ac_try_echo=$ac_try;;
14424esac
14425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426$as_echo "$ac_try_echo") >&5
14427  (eval "$ac_compile") 2>conftest.er1
14428  ac_status=$?
14429  grep -v '^ *+' conftest.er1 >conftest.err
14430  rm -f conftest.er1
14431  cat conftest.err >&5
14432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433  (exit $ac_status); } && {
14434	 test -z "$ac_c_werror_flag" ||
14435	 test ! -s conftest.err
14436       } && test -s conftest.$ac_objext; then
14437  ac_cv_sys_largefile_CC=' -n32'; break
14438else
14439  $as_echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442
14443fi
14444
14445rm -f core conftest.err conftest.$ac_objext
14446	 break
14447       done
14448       CC=$ac_save_CC
14449       rm -f conftest.$ac_ext
14450    fi
14451fi
14452{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14453$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14454  if test "$ac_cv_sys_largefile_CC" != no; then
14455    CC=$CC$ac_cv_sys_largefile_CC
14456  fi
14457
14458  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14459$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14460if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14461  $as_echo_n "(cached) " >&6
14462else
14463  while :; do
14464  cat >conftest.$ac_ext <<_ACEOF
14465/* confdefs.h.  */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h.  */
14470#include <sys/types.h>
14471 /* Check that off_t can represent 2**63 - 1 correctly.
14472    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14473    since some C++ compilers masquerading as C compilers
14474    incorrectly reject 9223372036854775807.  */
14475#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14476  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14477		       && LARGE_OFF_T % 2147483647 == 1)
14478		      ? 1 : -1];
14479int
14480main ()
14481{
14482
14483  ;
14484  return 0;
14485}
14486_ACEOF
14487rm -f conftest.$ac_objext
14488if { (ac_try="$ac_compile"
14489case "(($ac_try" in
14490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491  *) ac_try_echo=$ac_try;;
14492esac
14493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494$as_echo "$ac_try_echo") >&5
14495  (eval "$ac_compile") 2>conftest.er1
14496  ac_status=$?
14497  grep -v '^ *+' conftest.er1 >conftest.err
14498  rm -f conftest.er1
14499  cat conftest.err >&5
14500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501  (exit $ac_status); } && {
14502	 test -z "$ac_c_werror_flag" ||
14503	 test ! -s conftest.err
14504       } && test -s conftest.$ac_objext; then
14505  ac_cv_sys_file_offset_bits=no; break
14506else
14507  $as_echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
14510
14511fi
14512
14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514  cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h.  */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h.  */
14520#define _FILE_OFFSET_BITS 64
14521#include <sys/types.h>
14522 /* Check that off_t can represent 2**63 - 1 correctly.
14523    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14524    since some C++ compilers masquerading as C compilers
14525    incorrectly reject 9223372036854775807.  */
14526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14527  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14528		       && LARGE_OFF_T % 2147483647 == 1)
14529		      ? 1 : -1];
14530int
14531main ()
14532{
14533
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538rm -f conftest.$ac_objext
14539if { (ac_try="$ac_compile"
14540case "(($ac_try" in
14541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542  *) ac_try_echo=$ac_try;;
14543esac
14544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545$as_echo "$ac_try_echo") >&5
14546  (eval "$ac_compile") 2>conftest.er1
14547  ac_status=$?
14548  grep -v '^ *+' conftest.er1 >conftest.err
14549  rm -f conftest.er1
14550  cat conftest.err >&5
14551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552  (exit $ac_status); } && {
14553	 test -z "$ac_c_werror_flag" ||
14554	 test ! -s conftest.err
14555       } && test -s conftest.$ac_objext; then
14556  ac_cv_sys_file_offset_bits=64; break
14557else
14558  $as_echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561
14562fi
14563
14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565  ac_cv_sys_file_offset_bits=unknown
14566  break
14567done
14568fi
14569{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14570$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14571case $ac_cv_sys_file_offset_bits in #(
14572  no | unknown) ;;
14573  *)
14574cat >>confdefs.h <<_ACEOF
14575#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14576_ACEOF
14577;;
14578esac
14579rm -rf conftest*
14580  if test $ac_cv_sys_file_offset_bits = unknown; then
14581    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14582$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14583if test "${ac_cv_sys_large_files+set}" = set; then
14584  $as_echo_n "(cached) " >&6
14585else
14586  while :; do
14587  cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h.  */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h.  */
14593#include <sys/types.h>
14594 /* Check that off_t can represent 2**63 - 1 correctly.
14595    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14596    since some C++ compilers masquerading as C compilers
14597    incorrectly reject 9223372036854775807.  */
14598#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14599  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14600		       && LARGE_OFF_T % 2147483647 == 1)
14601		      ? 1 : -1];
14602int
14603main ()
14604{
14605
14606  ;
14607  return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (ac_try="$ac_compile"
14612case "(($ac_try" in
14613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614  *) ac_try_echo=$ac_try;;
14615esac
14616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617$as_echo "$ac_try_echo") >&5
14618  (eval "$ac_compile") 2>conftest.er1
14619  ac_status=$?
14620  grep -v '^ *+' conftest.er1 >conftest.err
14621  rm -f conftest.er1
14622  cat conftest.err >&5
14623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624  (exit $ac_status); } && {
14625	 test -z "$ac_c_werror_flag" ||
14626	 test ! -s conftest.err
14627       } && test -s conftest.$ac_objext; then
14628  ac_cv_sys_large_files=no; break
14629else
14630  $as_echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633
14634fi
14635
14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637  cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h.  */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h.  */
14643#define _LARGE_FILES 1
14644#include <sys/types.h>
14645 /* Check that off_t can represent 2**63 - 1 correctly.
14646    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14647    since some C++ compilers masquerading as C compilers
14648    incorrectly reject 9223372036854775807.  */
14649#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14650  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14651		       && LARGE_OFF_T % 2147483647 == 1)
14652		      ? 1 : -1];
14653int
14654main ()
14655{
14656
14657  ;
14658  return 0;
14659}
14660_ACEOF
14661rm -f conftest.$ac_objext
14662if { (ac_try="$ac_compile"
14663case "(($ac_try" in
14664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665  *) ac_try_echo=$ac_try;;
14666esac
14667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14668$as_echo "$ac_try_echo") >&5
14669  (eval "$ac_compile") 2>conftest.er1
14670  ac_status=$?
14671  grep -v '^ *+' conftest.er1 >conftest.err
14672  rm -f conftest.er1
14673  cat conftest.err >&5
14674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675  (exit $ac_status); } && {
14676	 test -z "$ac_c_werror_flag" ||
14677	 test ! -s conftest.err
14678       } && test -s conftest.$ac_objext; then
14679  ac_cv_sys_large_files=1; break
14680else
14681  $as_echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684
14685fi
14686
14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688  ac_cv_sys_large_files=unknown
14689  break
14690done
14691fi
14692{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14693$as_echo "$ac_cv_sys_large_files" >&6; }
14694case $ac_cv_sys_large_files in #(
14695  no | unknown) ;;
14696  *)
14697cat >>confdefs.h <<_ACEOF
14698#define _LARGE_FILES $ac_cv_sys_large_files
14699_ACEOF
14700;;
14701esac
14702rm -rf conftest*
14703  fi
14704fi
14705
14706
14707{ $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14708$as_echo_n "checking for st_blksize... " >&6; }
14709cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h.  */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h.  */
14715#include <sys/types.h>
14716#include <sys/stat.h>
14717int
14718main ()
14719{
14720	struct stat st;
14721	int n;
14722
14723	stat("/", &st);
14724	n = (int)st.st_blksize;
14725  ;
14726  return 0;
14727}
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (ac_try="$ac_compile"
14731case "(($ac_try" in
14732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733  *) ac_try_echo=$ac_try;;
14734esac
14735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736$as_echo "$ac_try_echo") >&5
14737  (eval "$ac_compile") 2>conftest.er1
14738  ac_status=$?
14739  grep -v '^ *+' conftest.er1 >conftest.err
14740  rm -f conftest.er1
14741  cat conftest.err >&5
14742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743  (exit $ac_status); } && {
14744	 test -z "$ac_c_werror_flag" ||
14745	 test ! -s conftest.err
14746       } && test -s conftest.$ac_objext; then
14747  { $as_echo "$as_me:$LINENO: result: yes" >&5
14748$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14749#define HAVE_ST_BLKSIZE 1
14750_ACEOF
14751
14752else
14753  $as_echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
14756	{ $as_echo "$as_me:$LINENO: result: no" >&5
14757$as_echo "no" >&6; }
14758fi
14759
14760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761
14762{ $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14763$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14764if test "${vim_cv_stat_ignores_slash+set}" = set; then
14765  $as_echo_n "(cached) " >&6
14766else
14767
14768    if test "$cross_compiling" = yes; then
14769
14770      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14771$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14772   { (exit 1); exit 1; }; }
14773
14774else
14775  cat >conftest.$ac_ext <<_ACEOF
14776
14777#include "confdefs.h"
14778#if STDC_HEADERS
14779# include <stdlib.h>
14780# include <stddef.h>
14781#endif
14782#include <sys/types.h>
14783#include <sys/stat.h>
14784main() {struct stat st;  exit(stat("configure/", &st) != 0); }
14785
14786_ACEOF
14787rm -f conftest$ac_exeext
14788if { (ac_try="$ac_link"
14789case "(($ac_try" in
14790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791  *) ac_try_echo=$ac_try;;
14792esac
14793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794$as_echo "$ac_try_echo") >&5
14795  (eval "$ac_link") 2>&5
14796  ac_status=$?
14797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14799  { (case "(($ac_try" in
14800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801  *) ac_try_echo=$ac_try;;
14802esac
14803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804$as_echo "$ac_try_echo") >&5
14805  (eval "$ac_try") 2>&5
14806  ac_status=$?
14807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808  (exit $ac_status); }; }; then
14809
14810      vim_cv_stat_ignores_slash=yes
14811
14812else
14813  $as_echo "$as_me: program exited with status $ac_status" >&5
14814$as_echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817( exit $ac_status )
14818
14819      vim_cv_stat_ignores_slash=no
14820
14821fi
14822rm -rf conftest.dSYM
14823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14824fi
14825
14826
14827
14828fi
14829{ $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14830$as_echo "$vim_cv_stat_ignores_slash" >&6; }
14831
14832if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14833  cat >>confdefs.h <<\_ACEOF
14834#define STAT_IGNORES_SLASH 1
14835_ACEOF
14836
14837fi
14838
14839{ $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14840$as_echo_n "checking for iconv_open()... " >&6; }
14841save_LIBS="$LIBS"
14842LIBS="$LIBS -liconv"
14843cat >conftest.$ac_ext <<_ACEOF
14844/* confdefs.h.  */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
14848/* end confdefs.h.  */
14849
14850#ifdef HAVE_ICONV_H
14851# include <iconv.h>
14852#endif
14853
14854int
14855main ()
14856{
14857iconv_open("fr", "to");
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862rm -f conftest.$ac_objext conftest$ac_exeext
14863if { (ac_try="$ac_link"
14864case "(($ac_try" in
14865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866  *) ac_try_echo=$ac_try;;
14867esac
14868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14869$as_echo "$ac_try_echo") >&5
14870  (eval "$ac_link") 2>conftest.er1
14871  ac_status=$?
14872  grep -v '^ *+' conftest.er1 >conftest.err
14873  rm -f conftest.er1
14874  cat conftest.err >&5
14875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876  (exit $ac_status); } && {
14877	 test -z "$ac_c_werror_flag" ||
14878	 test ! -s conftest.err
14879       } && test -s conftest$ac_exeext && {
14880	 test "$cross_compiling" = yes ||
14881	 $as_test_x conftest$ac_exeext
14882       }; then
14883  { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14884$as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14885#define HAVE_ICONV 1
14886_ACEOF
14887
14888else
14889  $as_echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892	LIBS="$save_LIBS"
14893    cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h.  */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h.  */
14899
14900#ifdef HAVE_ICONV_H
14901# include <iconv.h>
14902#endif
14903
14904int
14905main ()
14906{
14907iconv_open("fr", "to");
14908  ;
14909  return 0;
14910}
14911_ACEOF
14912rm -f conftest.$ac_objext conftest$ac_exeext
14913if { (ac_try="$ac_link"
14914case "(($ac_try" in
14915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916  *) ac_try_echo=$ac_try;;
14917esac
14918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14919$as_echo "$ac_try_echo") >&5
14920  (eval "$ac_link") 2>conftest.er1
14921  ac_status=$?
14922  grep -v '^ *+' conftest.er1 >conftest.err
14923  rm -f conftest.er1
14924  cat conftest.err >&5
14925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926  (exit $ac_status); } && {
14927	 test -z "$ac_c_werror_flag" ||
14928	 test ! -s conftest.err
14929       } && test -s conftest$ac_exeext && {
14930	 test "$cross_compiling" = yes ||
14931	 $as_test_x conftest$ac_exeext
14932       }; then
14933  { $as_echo "$as_me:$LINENO: result: yes" >&5
14934$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14935#define HAVE_ICONV 1
14936_ACEOF
14937
14938else
14939  $as_echo "$as_me: failed program was:" >&5
14940sed 's/^/| /' conftest.$ac_ext >&5
14941
14942	{ $as_echo "$as_me:$LINENO: result: no" >&5
14943$as_echo "no" >&6; }
14944fi
14945
14946rm -rf conftest.dSYM
14947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14948      conftest$ac_exeext conftest.$ac_ext
14949fi
14950
14951rm -rf conftest.dSYM
14952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14953      conftest$ac_exeext conftest.$ac_ext
14954
14955
14956{ $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14957$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14958cat >conftest.$ac_ext <<_ACEOF
14959/* confdefs.h.  */
14960_ACEOF
14961cat confdefs.h >>conftest.$ac_ext
14962cat >>conftest.$ac_ext <<_ACEOF
14963/* end confdefs.h.  */
14964
14965#ifdef HAVE_LANGINFO_H
14966# include <langinfo.h>
14967#endif
14968
14969int
14970main ()
14971{
14972char *cs = nl_langinfo(CODESET);
14973  ;
14974  return 0;
14975}
14976_ACEOF
14977rm -f conftest.$ac_objext conftest$ac_exeext
14978if { (ac_try="$ac_link"
14979case "(($ac_try" in
14980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981  *) ac_try_echo=$ac_try;;
14982esac
14983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984$as_echo "$ac_try_echo") >&5
14985  (eval "$ac_link") 2>conftest.er1
14986  ac_status=$?
14987  grep -v '^ *+' conftest.er1 >conftest.err
14988  rm -f conftest.er1
14989  cat conftest.err >&5
14990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991  (exit $ac_status); } && {
14992	 test -z "$ac_c_werror_flag" ||
14993	 test ! -s conftest.err
14994       } && test -s conftest$ac_exeext && {
14995	 test "$cross_compiling" = yes ||
14996	 $as_test_x conftest$ac_exeext
14997       }; then
14998  { $as_echo "$as_me:$LINENO: result: yes" >&5
14999$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15000#define HAVE_NL_LANGINFO_CODESET 1
15001_ACEOF
15002
15003else
15004  $as_echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007	{ $as_echo "$as_me:$LINENO: result: no" >&5
15008$as_echo "no" >&6; }
15009fi
15010
15011rm -rf conftest.dSYM
15012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013      conftest$ac_exeext conftest.$ac_ext
15014
15015
15016{ $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15017$as_echo_n "checking for strtod in -lm... " >&6; }
15018if test "${ac_cv_lib_m_strtod+set}" = set; then
15019  $as_echo_n "(cached) " >&6
15020else
15021  ac_check_lib_save_LIBS=$LIBS
15022LIBS="-lm  $LIBS"
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h.  */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h.  */
15029
15030/* Override any GCC internal prototype to avoid an error.
15031   Use char because int might match the return type of a GCC
15032   builtin and then its argument prototype would still apply.  */
15033#ifdef __cplusplus
15034extern "C"
15035#endif
15036char strtod ();
15037int
15038main ()
15039{
15040return strtod ();
15041  ;
15042  return 0;
15043}
15044_ACEOF
15045rm -f conftest.$ac_objext conftest$ac_exeext
15046if { (ac_try="$ac_link"
15047case "(($ac_try" in
15048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049  *) ac_try_echo=$ac_try;;
15050esac
15051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052$as_echo "$ac_try_echo") >&5
15053  (eval "$ac_link") 2>conftest.er1
15054  ac_status=$?
15055  grep -v '^ *+' conftest.er1 >conftest.err
15056  rm -f conftest.er1
15057  cat conftest.err >&5
15058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059  (exit $ac_status); } && {
15060	 test -z "$ac_c_werror_flag" ||
15061	 test ! -s conftest.err
15062       } && test -s conftest$ac_exeext && {
15063	 test "$cross_compiling" = yes ||
15064	 $as_test_x conftest$ac_exeext
15065       }; then
15066  ac_cv_lib_m_strtod=yes
15067else
15068  $as_echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071	ac_cv_lib_m_strtod=no
15072fi
15073
15074rm -rf conftest.dSYM
15075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076      conftest$ac_exeext conftest.$ac_ext
15077LIBS=$ac_check_lib_save_LIBS
15078fi
15079{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
15080$as_echo "$ac_cv_lib_m_strtod" >&6; }
15081if test "x$ac_cv_lib_m_strtod" = x""yes; then
15082  cat >>confdefs.h <<_ACEOF
15083#define HAVE_LIBM 1
15084_ACEOF
15085
15086  LIBS="-lm $LIBS"
15087
15088fi
15089
15090{ $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
15091$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15092cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h.  */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h.  */
15098
15099#ifdef HAVE_MATH_H
15100# include <math.h>
15101#endif
15102#if STDC_HEADERS
15103# include <stdlib.h>
15104# include <stddef.h>
15105#endif
15106
15107int
15108main ()
15109{
15110char *s; double d;
15111    d = strtod("1.1", &s);
15112    d = fabs(1.11);
15113    d = ceil(1.11);
15114    d = floor(1.11);
15115    d = log10(1.11);
15116    d = pow(1.11, 2.22);
15117    d = sqrt(1.11);
15118    d = sin(1.11);
15119    d = cos(1.11);
15120    d = atan(1.11);
15121
15122  ;
15123  return 0;
15124}
15125_ACEOF
15126rm -f conftest.$ac_objext conftest$ac_exeext
15127if { (ac_try="$ac_link"
15128case "(($ac_try" in
15129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130  *) ac_try_echo=$ac_try;;
15131esac
15132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133$as_echo "$ac_try_echo") >&5
15134  (eval "$ac_link") 2>conftest.er1
15135  ac_status=$?
15136  grep -v '^ *+' conftest.er1 >conftest.err
15137  rm -f conftest.er1
15138  cat conftest.err >&5
15139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140  (exit $ac_status); } && {
15141	 test -z "$ac_c_werror_flag" ||
15142	 test ! -s conftest.err
15143       } && test -s conftest$ac_exeext && {
15144	 test "$cross_compiling" = yes ||
15145	 $as_test_x conftest$ac_exeext
15146       }; then
15147  { $as_echo "$as_me:$LINENO: result: yes" >&5
15148$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15149#define HAVE_FLOAT_FUNCS 1
15150_ACEOF
15151
15152else
15153  $as_echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156	{ $as_echo "$as_me:$LINENO: result: no" >&5
15157$as_echo "no" >&6; }
15158fi
15159
15160rm -rf conftest.dSYM
15161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15162      conftest$ac_exeext conftest.$ac_ext
15163
15164{ $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15165$as_echo_n "checking --disable-acl argument... " >&6; }
15166# Check whether --enable-acl was given.
15167if test "${enable_acl+set}" = set; then
15168  enableval=$enable_acl;
15169else
15170  enable_acl="yes"
15171fi
15172
15173if test "$enable_acl" = "yes"; then
15174{ $as_echo "$as_me:$LINENO: result: no" >&5
15175$as_echo "no" >&6; }
15176{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
15177$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15178if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
15179  $as_echo_n "(cached) " >&6
15180else
15181  ac_check_lib_save_LIBS=$LIBS
15182LIBS="-lposix1e  $LIBS"
15183cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h.  */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h.  */
15189
15190/* Override any GCC internal prototype to avoid an error.
15191   Use char because int might match the return type of a GCC
15192   builtin and then its argument prototype would still apply.  */
15193#ifdef __cplusplus
15194extern "C"
15195#endif
15196char acl_get_file ();
15197int
15198main ()
15199{
15200return acl_get_file ();
15201  ;
15202  return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext conftest$ac_exeext
15206if { (ac_try="$ac_link"
15207case "(($ac_try" in
15208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209  *) ac_try_echo=$ac_try;;
15210esac
15211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212$as_echo "$ac_try_echo") >&5
15213  (eval "$ac_link") 2>conftest.er1
15214  ac_status=$?
15215  grep -v '^ *+' conftest.er1 >conftest.err
15216  rm -f conftest.er1
15217  cat conftest.err >&5
15218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219  (exit $ac_status); } && {
15220	 test -z "$ac_c_werror_flag" ||
15221	 test ! -s conftest.err
15222       } && test -s conftest$ac_exeext && {
15223	 test "$cross_compiling" = yes ||
15224	 $as_test_x conftest$ac_exeext
15225       }; then
15226  ac_cv_lib_posix1e_acl_get_file=yes
15227else
15228  $as_echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231	ac_cv_lib_posix1e_acl_get_file=no
15232fi
15233
15234rm -rf conftest.dSYM
15235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236      conftest$ac_exeext conftest.$ac_ext
15237LIBS=$ac_check_lib_save_LIBS
15238fi
15239{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15240$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15241if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
15242  LIBS="$LIBS -lposix1e"
15243else
15244  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
15245$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15246if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
15247  $as_echo_n "(cached) " >&6
15248else
15249  ac_check_lib_save_LIBS=$LIBS
15250LIBS="-lacl  $LIBS"
15251cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h.  */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h.  */
15257
15258/* Override any GCC internal prototype to avoid an error.
15259   Use char because int might match the return type of a GCC
15260   builtin and then its argument prototype would still apply.  */
15261#ifdef __cplusplus
15262extern "C"
15263#endif
15264char acl_get_file ();
15265int
15266main ()
15267{
15268return acl_get_file ();
15269  ;
15270  return 0;
15271}
15272_ACEOF
15273rm -f conftest.$ac_objext conftest$ac_exeext
15274if { (ac_try="$ac_link"
15275case "(($ac_try" in
15276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277  *) ac_try_echo=$ac_try;;
15278esac
15279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280$as_echo "$ac_try_echo") >&5
15281  (eval "$ac_link") 2>conftest.er1
15282  ac_status=$?
15283  grep -v '^ *+' conftest.er1 >conftest.err
15284  rm -f conftest.er1
15285  cat conftest.err >&5
15286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287  (exit $ac_status); } && {
15288	 test -z "$ac_c_werror_flag" ||
15289	 test ! -s conftest.err
15290       } && test -s conftest$ac_exeext && {
15291	 test "$cross_compiling" = yes ||
15292	 $as_test_x conftest$ac_exeext
15293       }; then
15294  ac_cv_lib_acl_acl_get_file=yes
15295else
15296  $as_echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299	ac_cv_lib_acl_acl_get_file=no
15300fi
15301
15302rm -rf conftest.dSYM
15303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15304      conftest$ac_exeext conftest.$ac_ext
15305LIBS=$ac_check_lib_save_LIBS
15306fi
15307{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
15308$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15309if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
15310  LIBS="$LIBS -lacl"
15311		  { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
15312$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15313if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
15314  $as_echo_n "(cached) " >&6
15315else
15316  ac_check_lib_save_LIBS=$LIBS
15317LIBS="-lattr  $LIBS"
15318cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h.  */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h.  */
15324
15325/* Override any GCC internal prototype to avoid an error.
15326   Use char because int might match the return type of a GCC
15327   builtin and then its argument prototype would still apply.  */
15328#ifdef __cplusplus
15329extern "C"
15330#endif
15331char fgetxattr ();
15332int
15333main ()
15334{
15335return fgetxattr ();
15336  ;
15337  return 0;
15338}
15339_ACEOF
15340rm -f conftest.$ac_objext conftest$ac_exeext
15341if { (ac_try="$ac_link"
15342case "(($ac_try" in
15343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344  *) ac_try_echo=$ac_try;;
15345esac
15346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15347$as_echo "$ac_try_echo") >&5
15348  (eval "$ac_link") 2>conftest.er1
15349  ac_status=$?
15350  grep -v '^ *+' conftest.er1 >conftest.err
15351  rm -f conftest.er1
15352  cat conftest.err >&5
15353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354  (exit $ac_status); } && {
15355	 test -z "$ac_c_werror_flag" ||
15356	 test ! -s conftest.err
15357       } && test -s conftest$ac_exeext && {
15358	 test "$cross_compiling" = yes ||
15359	 $as_test_x conftest$ac_exeext
15360       }; then
15361  ac_cv_lib_attr_fgetxattr=yes
15362else
15363  $as_echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366	ac_cv_lib_attr_fgetxattr=no
15367fi
15368
15369rm -rf conftest.dSYM
15370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371      conftest$ac_exeext conftest.$ac_ext
15372LIBS=$ac_check_lib_save_LIBS
15373fi
15374{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15375$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15376if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15377  LIBS="$LIBS -lattr"
15378fi
15379
15380fi
15381
15382fi
15383
15384
15385{ $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15386$as_echo_n "checking for POSIX ACL support... " >&6; }
15387cat >conftest.$ac_ext <<_ACEOF
15388/* confdefs.h.  */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h.  */
15393
15394#include <sys/types.h>
15395#ifdef HAVE_SYS_ACL_H
15396# include <sys/acl.h>
15397#endif
15398acl_t acl;
15399int
15400main ()
15401{
15402acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15403	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15404	acl_free(acl);
15405  ;
15406  return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext conftest$ac_exeext
15410if { (ac_try="$ac_link"
15411case "(($ac_try" in
15412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413  *) ac_try_echo=$ac_try;;
15414esac
15415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416$as_echo "$ac_try_echo") >&5
15417  (eval "$ac_link") 2>conftest.er1
15418  ac_status=$?
15419  grep -v '^ *+' conftest.er1 >conftest.err
15420  rm -f conftest.er1
15421  cat conftest.err >&5
15422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423  (exit $ac_status); } && {
15424	 test -z "$ac_c_werror_flag" ||
15425	 test ! -s conftest.err
15426       } && test -s conftest$ac_exeext && {
15427	 test "$cross_compiling" = yes ||
15428	 $as_test_x conftest$ac_exeext
15429       }; then
15430  { $as_echo "$as_me:$LINENO: result: yes" >&5
15431$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15432#define HAVE_POSIX_ACL 1
15433_ACEOF
15434
15435else
15436  $as_echo "$as_me: failed program was:" >&5
15437sed 's/^/| /' conftest.$ac_ext >&5
15438
15439	{ $as_echo "$as_me:$LINENO: result: no" >&5
15440$as_echo "no" >&6; }
15441fi
15442
15443rm -rf conftest.dSYM
15444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15445      conftest$ac_exeext conftest.$ac_ext
15446
15447{ $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15448$as_echo_n "checking for Solaris ACL support... " >&6; }
15449cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h.  */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h.  */
15455
15456#ifdef HAVE_SYS_ACL_H
15457# include <sys/acl.h>
15458#endif
15459int
15460main ()
15461{
15462acl("foo", GETACLCNT, 0, NULL);
15463
15464  ;
15465  return 0;
15466}
15467_ACEOF
15468rm -f conftest.$ac_objext conftest$ac_exeext
15469if { (ac_try="$ac_link"
15470case "(($ac_try" in
15471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472  *) ac_try_echo=$ac_try;;
15473esac
15474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475$as_echo "$ac_try_echo") >&5
15476  (eval "$ac_link") 2>conftest.er1
15477  ac_status=$?
15478  grep -v '^ *+' conftest.er1 >conftest.err
15479  rm -f conftest.er1
15480  cat conftest.err >&5
15481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482  (exit $ac_status); } && {
15483	 test -z "$ac_c_werror_flag" ||
15484	 test ! -s conftest.err
15485       } && test -s conftest$ac_exeext && {
15486	 test "$cross_compiling" = yes ||
15487	 $as_test_x conftest$ac_exeext
15488       }; then
15489  { $as_echo "$as_me:$LINENO: result: yes" >&5
15490$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15491#define HAVE_SOLARIS_ACL 1
15492_ACEOF
15493
15494else
15495  $as_echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498	{ $as_echo "$as_me:$LINENO: result: no" >&5
15499$as_echo "no" >&6; }
15500fi
15501
15502rm -rf conftest.dSYM
15503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504      conftest$ac_exeext conftest.$ac_ext
15505
15506{ $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15507$as_echo_n "checking for AIX ACL support... " >&6; }
15508cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h.  */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h.  */
15514
15515#if STDC_HEADERS
15516# include <stdlib.h>
15517# include <stddef.h>
15518#endif
15519#ifdef HAVE_SYS_ACL_H
15520# include <sys/acl.h>
15521#endif
15522#ifdef HAVE_SYS_ACCESS_H
15523# include <sys/access.h>
15524#endif
15525#define _ALL_SOURCE
15526
15527#include <sys/stat.h>
15528
15529int aclsize;
15530struct acl *aclent;
15531int
15532main ()
15533{
15534aclsize = sizeof(struct acl);
15535	aclent = (void *)malloc(aclsize);
15536	statacl("foo", STX_NORMAL, aclent, aclsize);
15537
15538  ;
15539  return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext conftest$ac_exeext
15543if { (ac_try="$ac_link"
15544case "(($ac_try" in
15545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546  *) ac_try_echo=$ac_try;;
15547esac
15548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549$as_echo "$ac_try_echo") >&5
15550  (eval "$ac_link") 2>conftest.er1
15551  ac_status=$?
15552  grep -v '^ *+' conftest.er1 >conftest.err
15553  rm -f conftest.er1
15554  cat conftest.err >&5
15555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556  (exit $ac_status); } && {
15557	 test -z "$ac_c_werror_flag" ||
15558	 test ! -s conftest.err
15559       } && test -s conftest$ac_exeext && {
15560	 test "$cross_compiling" = yes ||
15561	 $as_test_x conftest$ac_exeext
15562       }; then
15563  { $as_echo "$as_me:$LINENO: result: yes" >&5
15564$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15565#define HAVE_AIX_ACL 1
15566_ACEOF
15567
15568else
15569  $as_echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572	{ $as_echo "$as_me:$LINENO: result: no" >&5
15573$as_echo "no" >&6; }
15574fi
15575
15576rm -rf conftest.dSYM
15577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578      conftest$ac_exeext conftest.$ac_ext
15579else
15580  { $as_echo "$as_me:$LINENO: result: yes" >&5
15581$as_echo "yes" >&6; }
15582fi
15583
15584{ $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15585$as_echo_n "checking --disable-gpm argument... " >&6; }
15586# Check whether --enable-gpm was given.
15587if test "${enable_gpm+set}" = set; then
15588  enableval=$enable_gpm;
15589else
15590  enable_gpm="yes"
15591fi
15592
15593
15594if test "$enable_gpm" = "yes"; then
15595  { $as_echo "$as_me:$LINENO: result: no" >&5
15596$as_echo "no" >&6; }
15597    { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15598$as_echo_n "checking for gpm... " >&6; }
15599if test "${vi_cv_have_gpm+set}" = set; then
15600  $as_echo_n "(cached) " >&6
15601else
15602  olibs="$LIBS" ; LIBS="-lgpm"
15603	cat >conftest.$ac_ext <<_ACEOF
15604/* confdefs.h.  */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h.  */
15609#include <gpm.h>
15610	    #include <linux/keyboard.h>
15611int
15612main ()
15613{
15614Gpm_GetLibVersion(NULL);
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext conftest$ac_exeext
15620if { (ac_try="$ac_link"
15621case "(($ac_try" in
15622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623  *) ac_try_echo=$ac_try;;
15624esac
15625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626$as_echo "$ac_try_echo") >&5
15627  (eval "$ac_link") 2>conftest.er1
15628  ac_status=$?
15629  grep -v '^ *+' conftest.er1 >conftest.err
15630  rm -f conftest.er1
15631  cat conftest.err >&5
15632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633  (exit $ac_status); } && {
15634	 test -z "$ac_c_werror_flag" ||
15635	 test ! -s conftest.err
15636       } && test -s conftest$ac_exeext && {
15637	 test "$cross_compiling" = yes ||
15638	 $as_test_x conftest$ac_exeext
15639       }; then
15640  	    	    vi_cv_have_gpm=yes
15641else
15642  $as_echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645	vi_cv_have_gpm=no
15646fi
15647
15648rm -rf conftest.dSYM
15649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650      conftest$ac_exeext conftest.$ac_ext
15651	LIBS="$olibs"
15652
15653fi
15654{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15655$as_echo "$vi_cv_have_gpm" >&6; }
15656  if test $vi_cv_have_gpm = yes; then
15657    LIBS="$LIBS -lgpm"
15658    cat >>confdefs.h <<\_ACEOF
15659#define HAVE_GPM 1
15660_ACEOF
15661
15662  fi
15663else
15664  { $as_echo "$as_me:$LINENO: result: yes" >&5
15665$as_echo "yes" >&6; }
15666fi
15667
15668{ $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15669$as_echo_n "checking --disable-sysmouse argument... " >&6; }
15670# Check whether --enable-sysmouse was given.
15671if test "${enable_sysmouse+set}" = set; then
15672  enableval=$enable_sysmouse;
15673else
15674  enable_sysmouse="yes"
15675fi
15676
15677
15678if test "$enable_sysmouse" = "yes"; then
15679  { $as_echo "$as_me:$LINENO: result: no" >&5
15680$as_echo "no" >&6; }
15681        { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15682$as_echo_n "checking for sysmouse... " >&6; }
15683if test "${vi_cv_have_sysmouse+set}" = set; then
15684  $as_echo_n "(cached) " >&6
15685else
15686  cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h.  */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h.  */
15692#include <sys/consio.h>
15693	     #include <signal.h>
15694	     #include <sys/fbio.h>
15695int
15696main ()
15697{
15698struct mouse_info   mouse;
15699	     mouse.operation = MOUSE_MODE;
15700	     mouse.operation = MOUSE_SHOW;
15701	     mouse.u.mode.mode = 0;
15702	     mouse.u.mode.signal = SIGUSR2;
15703  ;
15704  return 0;
15705}
15706_ACEOF
15707rm -f conftest.$ac_objext conftest$ac_exeext
15708if { (ac_try="$ac_link"
15709case "(($ac_try" in
15710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711  *) ac_try_echo=$ac_try;;
15712esac
15713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15714$as_echo "$ac_try_echo") >&5
15715  (eval "$ac_link") 2>conftest.er1
15716  ac_status=$?
15717  grep -v '^ *+' conftest.er1 >conftest.err
15718  rm -f conftest.er1
15719  cat conftest.err >&5
15720  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721  (exit $ac_status); } && {
15722	 test -z "$ac_c_werror_flag" ||
15723	 test ! -s conftest.err
15724       } && test -s conftest$ac_exeext && {
15725	 test "$cross_compiling" = yes ||
15726	 $as_test_x conftest$ac_exeext
15727       }; then
15728  vi_cv_have_sysmouse=yes
15729else
15730  $as_echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733	vi_cv_have_sysmouse=no
15734fi
15735
15736rm -rf conftest.dSYM
15737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738      conftest$ac_exeext conftest.$ac_ext
15739
15740fi
15741{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15742$as_echo "$vi_cv_have_sysmouse" >&6; }
15743  if test $vi_cv_have_sysmouse = yes; then
15744    cat >>confdefs.h <<\_ACEOF
15745#define HAVE_SYSMOUSE 1
15746_ACEOF
15747
15748  fi
15749else
15750  { $as_echo "$as_me:$LINENO: result: yes" >&5
15751$as_echo "yes" >&6; }
15752fi
15753
15754{ $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15755$as_echo_n "checking for FD_CLOEXEC... " >&6; }
15756cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h.  */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h.  */
15762#if HAVE_FCNTL_H
15763# include <fcntl.h>
15764#endif
15765int
15766main ()
15767{
15768	int flag = FD_CLOEXEC;
15769  ;
15770  return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext
15774if { (ac_try="$ac_compile"
15775case "(($ac_try" in
15776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777  *) ac_try_echo=$ac_try;;
15778esac
15779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15780$as_echo "$ac_try_echo") >&5
15781  (eval "$ac_compile") 2>conftest.er1
15782  ac_status=$?
15783  grep -v '^ *+' conftest.er1 >conftest.err
15784  rm -f conftest.er1
15785  cat conftest.err >&5
15786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787  (exit $ac_status); } && {
15788	 test -z "$ac_c_werror_flag" ||
15789	 test ! -s conftest.err
15790       } && test -s conftest.$ac_objext; then
15791  { $as_echo "$as_me:$LINENO: result: yes" >&5
15792$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15793#define HAVE_FD_CLOEXEC 1
15794_ACEOF
15795
15796else
15797  $as_echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15801$as_echo "not usable" >&6; }
15802fi
15803
15804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805
15806{ $as_echo "$as_me:$LINENO: checking for rename" >&5
15807$as_echo_n "checking for rename... " >&6; }
15808cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h.  */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h.  */
15814#include <stdio.h>
15815int
15816main ()
15817{
15818rename("this", "that")
15819  ;
15820  return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext conftest$ac_exeext
15824if { (ac_try="$ac_link"
15825case "(($ac_try" in
15826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827  *) ac_try_echo=$ac_try;;
15828esac
15829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830$as_echo "$ac_try_echo") >&5
15831  (eval "$ac_link") 2>conftest.er1
15832  ac_status=$?
15833  grep -v '^ *+' conftest.er1 >conftest.err
15834  rm -f conftest.er1
15835  cat conftest.err >&5
15836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837  (exit $ac_status); } && {
15838	 test -z "$ac_c_werror_flag" ||
15839	 test ! -s conftest.err
15840       } && test -s conftest$ac_exeext && {
15841	 test "$cross_compiling" = yes ||
15842	 $as_test_x conftest$ac_exeext
15843       }; then
15844  { $as_echo "$as_me:$LINENO: result: yes" >&5
15845$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15846#define HAVE_RENAME 1
15847_ACEOF
15848
15849else
15850  $as_echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853	{ $as_echo "$as_me:$LINENO: result: no" >&5
15854$as_echo "no" >&6; }
15855fi
15856
15857rm -rf conftest.dSYM
15858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859      conftest$ac_exeext conftest.$ac_ext
15860
15861{ $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15862$as_echo_n "checking for sysctl... " >&6; }
15863cat >conftest.$ac_ext <<_ACEOF
15864/* confdefs.h.  */
15865_ACEOF
15866cat confdefs.h >>conftest.$ac_ext
15867cat >>conftest.$ac_ext <<_ACEOF
15868/* end confdefs.h.  */
15869#include <sys/types.h>
15870#include <sys/sysctl.h>
15871int
15872main ()
15873{
15874	int mib[2], r;
15875	size_t len;
15876
15877	mib[0] = CTL_HW;
15878	mib[1] = HW_USERMEM;
15879	len = sizeof(r);
15880	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15881
15882  ;
15883  return 0;
15884}
15885_ACEOF
15886rm -f conftest.$ac_objext
15887if { (ac_try="$ac_compile"
15888case "(($ac_try" in
15889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890  *) ac_try_echo=$ac_try;;
15891esac
15892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15893$as_echo "$ac_try_echo") >&5
15894  (eval "$ac_compile") 2>conftest.er1
15895  ac_status=$?
15896  grep -v '^ *+' conftest.er1 >conftest.err
15897  rm -f conftest.er1
15898  cat conftest.err >&5
15899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900  (exit $ac_status); } && {
15901	 test -z "$ac_c_werror_flag" ||
15902	 test ! -s conftest.err
15903       } && test -s conftest.$ac_objext; then
15904  { $as_echo "$as_me:$LINENO: result: yes" >&5
15905$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906#define HAVE_SYSCTL 1
15907_ACEOF
15908
15909else
15910  $as_echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15914$as_echo "not usable" >&6; }
15915fi
15916
15917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918
15919{ $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15920$as_echo_n "checking for sysinfo... " >&6; }
15921cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h.  */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h.  */
15927#include <sys/types.h>
15928#include <sys/sysinfo.h>
15929int
15930main ()
15931{
15932	struct sysinfo sinfo;
15933	int t;
15934
15935	(void)sysinfo(&sinfo);
15936	t = sinfo.totalram;
15937
15938  ;
15939  return 0;
15940}
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (ac_try="$ac_compile"
15944case "(($ac_try" in
15945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946  *) ac_try_echo=$ac_try;;
15947esac
15948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949$as_echo "$ac_try_echo") >&5
15950  (eval "$ac_compile") 2>conftest.er1
15951  ac_status=$?
15952  grep -v '^ *+' conftest.er1 >conftest.err
15953  rm -f conftest.er1
15954  cat conftest.err >&5
15955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956  (exit $ac_status); } && {
15957	 test -z "$ac_c_werror_flag" ||
15958	 test ! -s conftest.err
15959       } && test -s conftest.$ac_objext; then
15960  { $as_echo "$as_me:$LINENO: result: yes" >&5
15961$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15962#define HAVE_SYSINFO 1
15963_ACEOF
15964
15965else
15966  $as_echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15970$as_echo "not usable" >&6; }
15971fi
15972
15973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974
15975{ $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15976$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15977cat >conftest.$ac_ext <<_ACEOF
15978/* confdefs.h.  */
15979_ACEOF
15980cat confdefs.h >>conftest.$ac_ext
15981cat >>conftest.$ac_ext <<_ACEOF
15982/* end confdefs.h.  */
15983#include <sys/types.h>
15984#include <sys/sysinfo.h>
15985int
15986main ()
15987{
15988	struct sysinfo sinfo;
15989 	sinfo.mem_unit = 1;
15990
15991  ;
15992  return 0;
15993}
15994_ACEOF
15995rm -f conftest.$ac_objext
15996if { (ac_try="$ac_compile"
15997case "(($ac_try" in
15998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999  *) ac_try_echo=$ac_try;;
16000esac
16001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002$as_echo "$ac_try_echo") >&5
16003  (eval "$ac_compile") 2>conftest.er1
16004  ac_status=$?
16005  grep -v '^ *+' conftest.er1 >conftest.err
16006  rm -f conftest.er1
16007  cat conftest.err >&5
16008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009  (exit $ac_status); } && {
16010	 test -z "$ac_c_werror_flag" ||
16011	 test ! -s conftest.err
16012       } && test -s conftest.$ac_objext; then
16013  { $as_echo "$as_me:$LINENO: result: yes" >&5
16014$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16015#define HAVE_SYSINFO_MEM_UNIT 1
16016_ACEOF
16017
16018else
16019  $as_echo "$as_me: failed program was:" >&5
16020sed 's/^/| /' conftest.$ac_ext >&5
16021
16022	{ $as_echo "$as_me:$LINENO: result: no" >&5
16023$as_echo "no" >&6; }
16024fi
16025
16026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027
16028{ $as_echo "$as_me:$LINENO: checking for sysconf" >&5
16029$as_echo_n "checking for sysconf... " >&6; }
16030cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h.  */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h.  */
16036#include <unistd.h>
16037int
16038main ()
16039{
16040	(void)sysconf(_SC_PAGESIZE);
16041	(void)sysconf(_SC_PHYS_PAGES);
16042
16043  ;
16044  return 0;
16045}
16046_ACEOF
16047rm -f conftest.$ac_objext
16048if { (ac_try="$ac_compile"
16049case "(($ac_try" in
16050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051  *) ac_try_echo=$ac_try;;
16052esac
16053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054$as_echo "$ac_try_echo") >&5
16055  (eval "$ac_compile") 2>conftest.er1
16056  ac_status=$?
16057  grep -v '^ *+' conftest.er1 >conftest.err
16058  rm -f conftest.er1
16059  cat conftest.err >&5
16060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061  (exit $ac_status); } && {
16062	 test -z "$ac_c_werror_flag" ||
16063	 test ! -s conftest.err
16064       } && test -s conftest.$ac_objext; then
16065  { $as_echo "$as_me:$LINENO: result: yes" >&5
16066$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16067#define HAVE_SYSCONF 1
16068_ACEOF
16069
16070else
16071  $as_echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
16075$as_echo "not usable" >&6; }
16076fi
16077
16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079
16080
16081{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16082$as_echo_n "checking size of int... " >&6; }
16083if test "${ac_cv_sizeof_int+set}" = set; then
16084  $as_echo_n "(cached) " >&6
16085else
16086  if test "$cross_compiling" = yes; then
16087  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
16088$as_echo "$as_me: error: failed to compile test program" >&2;}
16089   { (exit 1); exit 1; }; }
16090else
16091  cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h.  */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h.  */
16097
16098#include <stdio.h>
16099#if STDC_HEADERS
16100# include <stdlib.h>
16101# include <stddef.h>
16102#endif
16103main()
16104{
16105  FILE *f=fopen("conftestval", "w");
16106  if (!f) exit(1);
16107  fprintf(f, "%d\n", (int)sizeof(int));
16108  exit(0);
16109}
16110_ACEOF
16111rm -f conftest$ac_exeext
16112if { (ac_try="$ac_link"
16113case "(($ac_try" in
16114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115  *) ac_try_echo=$ac_try;;
16116esac
16117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118$as_echo "$ac_try_echo") >&5
16119  (eval "$ac_link") 2>&5
16120  ac_status=$?
16121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16123  { (case "(($ac_try" in
16124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125  *) ac_try_echo=$ac_try;;
16126esac
16127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128$as_echo "$ac_try_echo") >&5
16129  (eval "$ac_try") 2>&5
16130  ac_status=$?
16131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132  (exit $ac_status); }; }; then
16133  ac_cv_sizeof_int=`cat conftestval`
16134else
16135  $as_echo "$as_me: program exited with status $ac_status" >&5
16136$as_echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139( exit $ac_status )
16140ac_cv_sizeof_int=0
16141fi
16142rm -rf conftest.dSYM
16143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16144fi
16145
16146
16147fi
16148
16149{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16150$as_echo "$ac_cv_sizeof_int" >&6; }
16151cat >>confdefs.h <<_ACEOF
16152#define SIZEOF_INT $ac_cv_sizeof_int
16153_ACEOF
16154
16155
16156
16157bcopy_test_prog='
16158#include "confdefs.h"
16159#ifdef HAVE_STRING_H
16160# include <string.h>
16161#endif
16162#if STDC_HEADERS
16163# include <stdlib.h>
16164# include <stddef.h>
16165#endif
16166main() {
16167  char buf[10];
16168  strcpy(buf, "abcdefghi");
16169  mch_memmove(buf, buf + 2, 3);
16170  if (strncmp(buf, "ababcf", 6))
16171    exit(1);
16172  strcpy(buf, "abcdefghi");
16173  mch_memmove(buf + 2, buf, 3);
16174  if (strncmp(buf, "cdedef", 6))
16175    exit(1);
16176  exit(0); /* libc version works properly.  */
16177}'
16178
16179{ $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
16180$as_echo_n "checking whether memmove handles overlaps... " >&6; }
16181if test "${vim_cv_memmove_handles_overlap+set}" = set; then
16182  $as_echo_n "(cached) " >&6
16183else
16184
16185    if test "$cross_compiling" = yes; then
16186
16187	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
16188$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
16189   { (exit 1); exit 1; }; }
16190
16191else
16192  cat >conftest.$ac_ext <<_ACEOF
16193#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16194_ACEOF
16195rm -f conftest$ac_exeext
16196if { (ac_try="$ac_link"
16197case "(($ac_try" in
16198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199  *) ac_try_echo=$ac_try;;
16200esac
16201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202$as_echo "$ac_try_echo") >&5
16203  (eval "$ac_link") 2>&5
16204  ac_status=$?
16205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16207  { (case "(($ac_try" in
16208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209  *) ac_try_echo=$ac_try;;
16210esac
16211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16212$as_echo "$ac_try_echo") >&5
16213  (eval "$ac_try") 2>&5
16214  ac_status=$?
16215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216  (exit $ac_status); }; }; then
16217
16218	vim_cv_memmove_handles_overlap=yes
16219
16220else
16221  $as_echo "$as_me: program exited with status $ac_status" >&5
16222$as_echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225( exit $ac_status )
16226
16227	vim_cv_memmove_handles_overlap=no
16228
16229fi
16230rm -rf conftest.dSYM
16231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16232fi
16233
16234
16235
16236fi
16237{ $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16238$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16239
16240if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16241  cat >>confdefs.h <<\_ACEOF
16242#define USEMEMMOVE 1
16243_ACEOF
16244
16245else
16246  { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16247$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16248if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
16249  $as_echo_n "(cached) " >&6
16250else
16251
16252      if test "$cross_compiling" = yes; then
16253
16254	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
16255$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
16256   { (exit 1); exit 1; }; }
16257
16258else
16259  cat >conftest.$ac_ext <<_ACEOF
16260#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16261_ACEOF
16262rm -f conftest$ac_exeext
16263if { (ac_try="$ac_link"
16264case "(($ac_try" in
16265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266  *) ac_try_echo=$ac_try;;
16267esac
16268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269$as_echo "$ac_try_echo") >&5
16270  (eval "$ac_link") 2>&5
16271  ac_status=$?
16272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16274  { (case "(($ac_try" in
16275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276  *) ac_try_echo=$ac_try;;
16277esac
16278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279$as_echo "$ac_try_echo") >&5
16280  (eval "$ac_try") 2>&5
16281  ac_status=$?
16282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283  (exit $ac_status); }; }; then
16284
16285	vim_cv_bcopy_handles_overlap=yes
16286
16287else
16288  $as_echo "$as_me: program exited with status $ac_status" >&5
16289$as_echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292( exit $ac_status )
16293
16294	vim_cv_bcopy_handles_overlap=no
16295
16296fi
16297rm -rf conftest.dSYM
16298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16299fi
16300
16301
16302
16303fi
16304{ $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16305$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16306
16307  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16308    cat >>confdefs.h <<\_ACEOF
16309#define USEBCOPY 1
16310_ACEOF
16311
16312  else
16313    { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
16314$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16315if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
16316  $as_echo_n "(cached) " >&6
16317else
16318
16319	if test "$cross_compiling" = yes; then
16320
16321	    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
16322$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
16323   { (exit 1); exit 1; }; }
16324
16325else
16326  cat >conftest.$ac_ext <<_ACEOF
16327#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16328_ACEOF
16329rm -f conftest$ac_exeext
16330if { (ac_try="$ac_link"
16331case "(($ac_try" in
16332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333  *) ac_try_echo=$ac_try;;
16334esac
16335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336$as_echo "$ac_try_echo") >&5
16337  (eval "$ac_link") 2>&5
16338  ac_status=$?
16339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341  { (case "(($ac_try" in
16342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343  *) ac_try_echo=$ac_try;;
16344esac
16345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16346$as_echo "$ac_try_echo") >&5
16347  (eval "$ac_try") 2>&5
16348  ac_status=$?
16349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350  (exit $ac_status); }; }; then
16351
16352	    vim_cv_memcpy_handles_overlap=yes
16353
16354else
16355  $as_echo "$as_me: program exited with status $ac_status" >&5
16356$as_echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359( exit $ac_status )
16360
16361	    vim_cv_memcpy_handles_overlap=no
16362
16363fi
16364rm -rf conftest.dSYM
16365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16366fi
16367
16368
16369
16370fi
16371{ $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16372$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16373
16374    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16375      cat >>confdefs.h <<\_ACEOF
16376#define USEMEMCPY 1
16377_ACEOF
16378
16379    fi
16380  fi
16381fi
16382
16383
16384
16385if test "$enable_multibyte" = "yes"; then
16386  cflags_save=$CFLAGS
16387  ldflags_save=$LDFLAGS
16388  if test "x$x_includes" != "xNONE" ; then
16389    CFLAGS="$CFLAGS -I$x_includes"
16390    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16391    { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16392$as_echo_n "checking whether X_LOCALE needed... " >&6; }
16393    cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h.  */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h.  */
16399#include <X11/Xlocale.h>
16400int
16401main ()
16402{
16403
16404  ;
16405  return 0;
16406}
16407_ACEOF
16408rm -f conftest.$ac_objext
16409if { (ac_try="$ac_compile"
16410case "(($ac_try" in
16411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412  *) ac_try_echo=$ac_try;;
16413esac
16414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415$as_echo "$ac_try_echo") >&5
16416  (eval "$ac_compile") 2>conftest.er1
16417  ac_status=$?
16418  grep -v '^ *+' conftest.er1 >conftest.err
16419  rm -f conftest.er1
16420  cat conftest.err >&5
16421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422  (exit $ac_status); } && {
16423	 test -z "$ac_c_werror_flag" ||
16424	 test ! -s conftest.err
16425       } && test -s conftest.$ac_objext; then
16426  cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h.  */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h.  */
16432
16433/* Override any GCC internal prototype to avoid an error.
16434   Use char because int might match the return type of a GCC
16435   builtin and then its argument prototype would still apply.  */
16436#ifdef __cplusplus
16437extern "C"
16438#endif
16439char _Xsetlocale ();
16440int
16441main ()
16442{
16443return _Xsetlocale ();
16444  ;
16445  return 0;
16446}
16447_ACEOF
16448rm -f conftest.$ac_objext conftest$ac_exeext
16449if { (ac_try="$ac_link"
16450case "(($ac_try" in
16451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452  *) ac_try_echo=$ac_try;;
16453esac
16454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16455$as_echo "$ac_try_echo") >&5
16456  (eval "$ac_link") 2>conftest.er1
16457  ac_status=$?
16458  grep -v '^ *+' conftest.er1 >conftest.err
16459  rm -f conftest.er1
16460  cat conftest.err >&5
16461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462  (exit $ac_status); } && {
16463	 test -z "$ac_c_werror_flag" ||
16464	 test ! -s conftest.err
16465       } && test -s conftest$ac_exeext && {
16466	 test "$cross_compiling" = yes ||
16467	 $as_test_x conftest$ac_exeext
16468       }; then
16469  { $as_echo "$as_me:$LINENO: result: yes" >&5
16470$as_echo "yes" >&6; }
16471		cat >>confdefs.h <<\_ACEOF
16472#define X_LOCALE 1
16473_ACEOF
16474
16475else
16476  $as_echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479	{ $as_echo "$as_me:$LINENO: result: no" >&5
16480$as_echo "no" >&6; }
16481fi
16482
16483rm -rf conftest.dSYM
16484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16485      conftest$ac_exeext conftest.$ac_ext
16486else
16487  $as_echo "$as_me: failed program was:" >&5
16488sed 's/^/| /' conftest.$ac_ext >&5
16489
16490	{ $as_echo "$as_me:$LINENO: result: no" >&5
16491$as_echo "no" >&6; }
16492fi
16493
16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495  fi
16496  CFLAGS=$cflags_save
16497  LDFLAGS=$ldflags_save
16498fi
16499
16500{ $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16501$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16502if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16503  $as_echo_n "(cached) " >&6
16504else
16505  ac_check_lib_save_LIBS=$LIBS
16506LIBS="-lxpg4  $LIBS"
16507cat >conftest.$ac_ext <<_ACEOF
16508/* confdefs.h.  */
16509_ACEOF
16510cat confdefs.h >>conftest.$ac_ext
16511cat >>conftest.$ac_ext <<_ACEOF
16512/* end confdefs.h.  */
16513
16514/* Override any GCC internal prototype to avoid an error.
16515   Use char because int might match the return type of a GCC
16516   builtin and then its argument prototype would still apply.  */
16517#ifdef __cplusplus
16518extern "C"
16519#endif
16520char _xpg4_setrunelocale ();
16521int
16522main ()
16523{
16524return _xpg4_setrunelocale ();
16525  ;
16526  return 0;
16527}
16528_ACEOF
16529rm -f conftest.$ac_objext conftest$ac_exeext
16530if { (ac_try="$ac_link"
16531case "(($ac_try" in
16532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533  *) ac_try_echo=$ac_try;;
16534esac
16535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16536$as_echo "$ac_try_echo") >&5
16537  (eval "$ac_link") 2>conftest.er1
16538  ac_status=$?
16539  grep -v '^ *+' conftest.er1 >conftest.err
16540  rm -f conftest.er1
16541  cat conftest.err >&5
16542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543  (exit $ac_status); } && {
16544	 test -z "$ac_c_werror_flag" ||
16545	 test ! -s conftest.err
16546       } && test -s conftest$ac_exeext && {
16547	 test "$cross_compiling" = yes ||
16548	 $as_test_x conftest$ac_exeext
16549       }; then
16550  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16551else
16552  $as_echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555	ac_cv_lib_xpg4__xpg4_setrunelocale=no
16556fi
16557
16558rm -rf conftest.dSYM
16559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16560      conftest$ac_exeext conftest.$ac_ext
16561LIBS=$ac_check_lib_save_LIBS
16562fi
16563{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16564$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16565if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16566  LIBS="$LIBS -lxpg4"
16567fi
16568
16569
16570{ $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16571$as_echo_n "checking how to create tags... " >&6; }
16572test -f tags && mv tags tags.save
16573if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16574  TAGPRG="ctags -I INIT+ --fields=+S"
16575else
16576  TAGPRG="ctags"
16577  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16578  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16579  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16580  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16581  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16582  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16583  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16584fi
16585test -f tags.save && mv tags.save tags
16586{ $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16587$as_echo "$TAGPRG" >&6; }
16588
16589{ $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16590$as_echo_n "checking how to run man with a section nr... " >&6; }
16591MANDEF="man"
16592(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16593{ $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16594$as_echo "$MANDEF" >&6; }
16595if test "$MANDEF" = "man -s"; then
16596  cat >>confdefs.h <<\_ACEOF
16597#define USEMAN_S 1
16598_ACEOF
16599
16600fi
16601
16602{ $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16603$as_echo_n "checking --disable-nls argument... " >&6; }
16604# Check whether --enable-nls was given.
16605if test "${enable_nls+set}" = set; then
16606  enableval=$enable_nls;
16607else
16608  enable_nls="yes"
16609fi
16610
16611
16612if test "$enable_nls" = "yes"; then
16613  { $as_echo "$as_me:$LINENO: result: no" >&5
16614$as_echo "no" >&6; }
16615
16616  INSTALL_LANGS=install-languages
16617
16618  INSTALL_TOOL_LANGS=install-tool-languages
16619
16620
16621  # Extract the first word of "msgfmt", so it can be a program name with args.
16622set dummy msgfmt; ac_word=$2
16623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16624$as_echo_n "checking for $ac_word... " >&6; }
16625if test "${ac_cv_prog_MSGFMT+set}" = set; then
16626  $as_echo_n "(cached) " >&6
16627else
16628  if test -n "$MSGFMT"; then
16629  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16630else
16631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632for as_dir in $PATH
16633do
16634  IFS=$as_save_IFS
16635  test -z "$as_dir" && as_dir=.
16636  for ac_exec_ext in '' $ac_executable_extensions; do
16637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638    ac_cv_prog_MSGFMT="msgfmt"
16639    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16640    break 2
16641  fi
16642done
16643done
16644IFS=$as_save_IFS
16645
16646fi
16647fi
16648MSGFMT=$ac_cv_prog_MSGFMT
16649if test -n "$MSGFMT"; then
16650  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16651$as_echo "$MSGFMT" >&6; }
16652else
16653  { $as_echo "$as_me:$LINENO: result: no" >&5
16654$as_echo "no" >&6; }
16655fi
16656
16657
16658  { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16659$as_echo_n "checking for NLS... " >&6; }
16660  if test -f po/Makefile; then
16661    have_gettext="no"
16662    if test -n "$MSGFMT"; then
16663      cat >conftest.$ac_ext <<_ACEOF
16664/* confdefs.h.  */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h.  */
16669#include <libintl.h>
16670int
16671main ()
16672{
16673gettext("Test");
16674  ;
16675  return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext conftest$ac_exeext
16679if { (ac_try="$ac_link"
16680case "(($ac_try" in
16681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682  *) ac_try_echo=$ac_try;;
16683esac
16684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16685$as_echo "$ac_try_echo") >&5
16686  (eval "$ac_link") 2>conftest.er1
16687  ac_status=$?
16688  grep -v '^ *+' conftest.er1 >conftest.err
16689  rm -f conftest.er1
16690  cat conftest.err >&5
16691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692  (exit $ac_status); } && {
16693	 test -z "$ac_c_werror_flag" ||
16694	 test ! -s conftest.err
16695       } && test -s conftest$ac_exeext && {
16696	 test "$cross_compiling" = yes ||
16697	 $as_test_x conftest$ac_exeext
16698       }; then
16699  { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16700$as_echo "gettext() works" >&6; }; have_gettext="yes"
16701else
16702  $as_echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
16705	olibs=$LIBS
16706	  LIBS="$LIBS -lintl"
16707	  cat >conftest.$ac_ext <<_ACEOF
16708/* confdefs.h.  */
16709_ACEOF
16710cat confdefs.h >>conftest.$ac_ext
16711cat >>conftest.$ac_ext <<_ACEOF
16712/* end confdefs.h.  */
16713#include <libintl.h>
16714int
16715main ()
16716{
16717gettext("Test");
16718  ;
16719  return 0;
16720}
16721_ACEOF
16722rm -f conftest.$ac_objext conftest$ac_exeext
16723if { (ac_try="$ac_link"
16724case "(($ac_try" in
16725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726  *) ac_try_echo=$ac_try;;
16727esac
16728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729$as_echo "$ac_try_echo") >&5
16730  (eval "$ac_link") 2>conftest.er1
16731  ac_status=$?
16732  grep -v '^ *+' conftest.er1 >conftest.err
16733  rm -f conftest.er1
16734  cat conftest.err >&5
16735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736  (exit $ac_status); } && {
16737	 test -z "$ac_c_werror_flag" ||
16738	 test ! -s conftest.err
16739       } && test -s conftest$ac_exeext && {
16740	 test "$cross_compiling" = yes ||
16741	 $as_test_x conftest$ac_exeext
16742       }; then
16743  { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16744$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16745else
16746  $as_echo "$as_me: failed program was:" >&5
16747sed 's/^/| /' conftest.$ac_ext >&5
16748
16749	{ $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16750$as_echo "gettext() doesn't work" >&6; };
16751	      LIBS=$olibs
16752fi
16753
16754rm -rf conftest.dSYM
16755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756      conftest$ac_exeext conftest.$ac_ext
16757fi
16758
16759rm -rf conftest.dSYM
16760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761      conftest$ac_exeext conftest.$ac_ext
16762    else
16763      { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16764$as_echo "msgfmt not found - disabled" >&6; };
16765    fi
16766    if test $have_gettext = "yes"; then
16767      cat >>confdefs.h <<\_ACEOF
16768#define HAVE_GETTEXT 1
16769_ACEOF
16770
16771      MAKEMO=yes
16772
16773
16774for ac_func in bind_textdomain_codeset
16775do
16776as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16778$as_echo_n "checking for $ac_func... " >&6; }
16779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16780  $as_echo_n "(cached) " >&6
16781else
16782  cat >conftest.$ac_ext <<_ACEOF
16783/* confdefs.h.  */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h.  */
16788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16790#define $ac_func innocuous_$ac_func
16791
16792/* System header to define __stub macros and hopefully few prototypes,
16793    which can conflict with char $ac_func (); below.
16794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795    <limits.h> exists even on freestanding compilers.  */
16796
16797#ifdef __STDC__
16798# include <limits.h>
16799#else
16800# include <assert.h>
16801#endif
16802
16803#undef $ac_func
16804
16805/* Override any GCC internal prototype to avoid an error.
16806   Use char because int might match the return type of a GCC
16807   builtin and then its argument prototype would still apply.  */
16808#ifdef __cplusplus
16809extern "C"
16810#endif
16811char $ac_func ();
16812/* The GNU C library defines this for functions which it implements
16813    to always fail with ENOSYS.  Some functions are actually named
16814    something starting with __ and the normal name is an alias.  */
16815#if defined __stub_$ac_func || defined __stub___$ac_func
16816choke me
16817#endif
16818
16819int
16820main ()
16821{
16822return $ac_func ();
16823  ;
16824  return 0;
16825}
16826_ACEOF
16827rm -f conftest.$ac_objext conftest$ac_exeext
16828if { (ac_try="$ac_link"
16829case "(($ac_try" in
16830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831  *) ac_try_echo=$ac_try;;
16832esac
16833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16834$as_echo "$ac_try_echo") >&5
16835  (eval "$ac_link") 2>conftest.er1
16836  ac_status=$?
16837  grep -v '^ *+' conftest.er1 >conftest.err
16838  rm -f conftest.er1
16839  cat conftest.err >&5
16840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841  (exit $ac_status); } && {
16842	 test -z "$ac_c_werror_flag" ||
16843	 test ! -s conftest.err
16844       } && test -s conftest$ac_exeext && {
16845	 test "$cross_compiling" = yes ||
16846	 $as_test_x conftest$ac_exeext
16847       }; then
16848  eval "$as_ac_var=yes"
16849else
16850  $as_echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853	eval "$as_ac_var=no"
16854fi
16855
16856rm -rf conftest.dSYM
16857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16858      conftest$ac_exeext conftest.$ac_ext
16859fi
16860ac_res=`eval 'as_val=${'$as_ac_var'}
16861		 $as_echo "$as_val"'`
16862	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16863$as_echo "$ac_res" >&6; }
16864as_val=`eval 'as_val=${'$as_ac_var'}
16865		 $as_echo "$as_val"'`
16866   if test "x$as_val" = x""yes; then
16867  cat >>confdefs.h <<_ACEOF
16868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16869_ACEOF
16870
16871fi
16872done
16873
16874            { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16875$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16876      cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h.  */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h.  */
16882#include <libintl.h>
16883		extern int _nl_msg_cat_cntr;
16884int
16885main ()
16886{
16887++_nl_msg_cat_cntr;
16888  ;
16889  return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (ac_try="$ac_link"
16894case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899$as_echo "$ac_try_echo") >&5
16900  (eval "$ac_link") 2>conftest.er1
16901  ac_status=$?
16902  grep -v '^ *+' conftest.er1 >conftest.err
16903  rm -f conftest.er1
16904  cat conftest.err >&5
16905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906  (exit $ac_status); } && {
16907	 test -z "$ac_c_werror_flag" ||
16908	 test ! -s conftest.err
16909       } && test -s conftest$ac_exeext && {
16910	 test "$cross_compiling" = yes ||
16911	 $as_test_x conftest$ac_exeext
16912       }; then
16913  { $as_echo "$as_me:$LINENO: result: yes" >&5
16914$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16915#define HAVE_NL_MSG_CAT_CNTR 1
16916_ACEOF
16917
16918else
16919  $as_echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922	{ $as_echo "$as_me:$LINENO: result: no" >&5
16923$as_echo "no" >&6; }
16924fi
16925
16926rm -rf conftest.dSYM
16927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16928      conftest$ac_exeext conftest.$ac_ext
16929    fi
16930  else
16931    { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16932$as_echo "no \"po/Makefile\" - disabled" >&6; };
16933  fi
16934else
16935  { $as_echo "$as_me:$LINENO: result: yes" >&5
16936$as_echo "yes" >&6; }
16937fi
16938
16939if test "${ac_cv_header_dlfcn_h+set}" = set; then
16940  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16941$as_echo_n "checking for dlfcn.h... " >&6; }
16942if test "${ac_cv_header_dlfcn_h+set}" = set; then
16943  $as_echo_n "(cached) " >&6
16944fi
16945{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16946$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16947else
16948  # Is the header compilable?
16949{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16950$as_echo_n "checking dlfcn.h usability... " >&6; }
16951cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h.  */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h.  */
16957$ac_includes_default
16958#include <dlfcn.h>
16959_ACEOF
16960rm -f conftest.$ac_objext
16961if { (ac_try="$ac_compile"
16962case "(($ac_try" in
16963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964  *) ac_try_echo=$ac_try;;
16965esac
16966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16967$as_echo "$ac_try_echo") >&5
16968  (eval "$ac_compile") 2>conftest.er1
16969  ac_status=$?
16970  grep -v '^ *+' conftest.er1 >conftest.err
16971  rm -f conftest.er1
16972  cat conftest.err >&5
16973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974  (exit $ac_status); } && {
16975	 test -z "$ac_c_werror_flag" ||
16976	 test ! -s conftest.err
16977       } && test -s conftest.$ac_objext; then
16978  ac_header_compiler=yes
16979else
16980  $as_echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983	ac_header_compiler=no
16984fi
16985
16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16988$as_echo "$ac_header_compiler" >&6; }
16989
16990# Is the header present?
16991{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16992$as_echo_n "checking dlfcn.h presence... " >&6; }
16993cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h.  */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h.  */
16999#include <dlfcn.h>
17000_ACEOF
17001if { (ac_try="$ac_cpp conftest.$ac_ext"
17002case "(($ac_try" in
17003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004  *) ac_try_echo=$ac_try;;
17005esac
17006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007$as_echo "$ac_try_echo") >&5
17008  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17009  ac_status=$?
17010  grep -v '^ *+' conftest.er1 >conftest.err
17011  rm -f conftest.er1
17012  cat conftest.err >&5
17013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014  (exit $ac_status); } >/dev/null && {
17015	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016	 test ! -s conftest.err
17017       }; then
17018  ac_header_preproc=yes
17019else
17020  $as_echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023  ac_header_preproc=no
17024fi
17025
17026rm -f conftest.err conftest.$ac_ext
17027{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17028$as_echo "$ac_header_preproc" >&6; }
17029
17030# So?  What about this header?
17031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17032  yes:no: )
17033    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17034$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17035    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17036$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17037    ac_header_preproc=yes
17038    ;;
17039  no:yes:* )
17040    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17041$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17042    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
17043$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
17044    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17045$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17046    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
17047$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17048    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17049$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17050    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17051$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17052
17053    ;;
17054esac
17055{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17056$as_echo_n "checking for dlfcn.h... " >&6; }
17057if test "${ac_cv_header_dlfcn_h+set}" = set; then
17058  $as_echo_n "(cached) " >&6
17059else
17060  ac_cv_header_dlfcn_h=$ac_header_preproc
17061fi
17062{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17063$as_echo "$ac_cv_header_dlfcn_h" >&6; }
17064
17065fi
17066if test "x$ac_cv_header_dlfcn_h" = x""yes; then
17067  DLL=dlfcn.h
17068else
17069  if test "${ac_cv_header_dl_h+set}" = set; then
17070  { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17071$as_echo_n "checking for dl.h... " >&6; }
17072if test "${ac_cv_header_dl_h+set}" = set; then
17073  $as_echo_n "(cached) " >&6
17074fi
17075{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17076$as_echo "$ac_cv_header_dl_h" >&6; }
17077else
17078  # Is the header compilable?
17079{ $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17080$as_echo_n "checking dl.h usability... " >&6; }
17081cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h.  */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h.  */
17087$ac_includes_default
17088#include <dl.h>
17089_ACEOF
17090rm -f conftest.$ac_objext
17091if { (ac_try="$ac_compile"
17092case "(($ac_try" in
17093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094  *) ac_try_echo=$ac_try;;
17095esac
17096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097$as_echo "$ac_try_echo") >&5
17098  (eval "$ac_compile") 2>conftest.er1
17099  ac_status=$?
17100  grep -v '^ *+' conftest.er1 >conftest.err
17101  rm -f conftest.er1
17102  cat conftest.err >&5
17103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104  (exit $ac_status); } && {
17105	 test -z "$ac_c_werror_flag" ||
17106	 test ! -s conftest.err
17107       } && test -s conftest.$ac_objext; then
17108  ac_header_compiler=yes
17109else
17110  $as_echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113	ac_header_compiler=no
17114fi
17115
17116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17118$as_echo "$ac_header_compiler" >&6; }
17119
17120# Is the header present?
17121{ $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17122$as_echo_n "checking dl.h presence... " >&6; }
17123cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h.  */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h.  */
17129#include <dl.h>
17130_ACEOF
17131if { (ac_try="$ac_cpp conftest.$ac_ext"
17132case "(($ac_try" in
17133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134  *) ac_try_echo=$ac_try;;
17135esac
17136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17137$as_echo "$ac_try_echo") >&5
17138  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17139  ac_status=$?
17140  grep -v '^ *+' conftest.er1 >conftest.err
17141  rm -f conftest.er1
17142  cat conftest.err >&5
17143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144  (exit $ac_status); } >/dev/null && {
17145	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17146	 test ! -s conftest.err
17147       }; then
17148  ac_header_preproc=yes
17149else
17150  $as_echo "$as_me: failed program was:" >&5
17151sed 's/^/| /' conftest.$ac_ext >&5
17152
17153  ac_header_preproc=no
17154fi
17155
17156rm -f conftest.err conftest.$ac_ext
17157{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158$as_echo "$ac_header_preproc" >&6; }
17159
17160# So?  What about this header?
17161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17162  yes:no: )
17163    { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17164$as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17166$as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17167    ac_header_preproc=yes
17168    ;;
17169  no:yes:* )
17170    { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17171$as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17172    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
17173$as_echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
17174    { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17175$as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17176    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
17177$as_echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17178    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17179$as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17180    { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17181$as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17182
17183    ;;
17184esac
17185{ $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17186$as_echo_n "checking for dl.h... " >&6; }
17187if test "${ac_cv_header_dl_h+set}" = set; then
17188  $as_echo_n "(cached) " >&6
17189else
17190  ac_cv_header_dl_h=$ac_header_preproc
17191fi
17192{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17193$as_echo "$ac_cv_header_dl_h" >&6; }
17194
17195fi
17196if test "x$ac_cv_header_dl_h" = x""yes; then
17197  DLL=dl.h
17198fi
17199
17200
17201fi
17202
17203
17204if test x${DLL} = xdlfcn.h; then
17205
17206cat >>confdefs.h <<\_ACEOF
17207#define HAVE_DLFCN_H 1
17208_ACEOF
17209
17210  { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17211$as_echo_n "checking for dlopen()... " >&6; }
17212  cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h.  */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h.  */
17218
17219int
17220main ()
17221{
17222
17223		extern void* dlopen();
17224		dlopen();
17225
17226  ;
17227  return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext conftest$ac_exeext
17231if { (ac_try="$ac_link"
17232case "(($ac_try" in
17233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234  *) ac_try_echo=$ac_try;;
17235esac
17236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17237$as_echo "$ac_try_echo") >&5
17238  (eval "$ac_link") 2>conftest.er1
17239  ac_status=$?
17240  grep -v '^ *+' conftest.er1 >conftest.err
17241  rm -f conftest.er1
17242  cat conftest.err >&5
17243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244  (exit $ac_status); } && {
17245	 test -z "$ac_c_werror_flag" ||
17246	 test ! -s conftest.err
17247       } && test -s conftest$ac_exeext && {
17248	 test "$cross_compiling" = yes ||
17249	 $as_test_x conftest$ac_exeext
17250       }; then
17251  { $as_echo "$as_me:$LINENO: result: yes" >&5
17252$as_echo "yes" >&6; };
17253
17254cat >>confdefs.h <<\_ACEOF
17255#define HAVE_DLOPEN 1
17256_ACEOF
17257
17258else
17259  $as_echo "$as_me: failed program was:" >&5
17260sed 's/^/| /' conftest.$ac_ext >&5
17261
17262	{ $as_echo "$as_me:$LINENO: result: no" >&5
17263$as_echo "no" >&6; };
17264	      { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
17265$as_echo_n "checking for dlopen() in -ldl... " >&6; }
17266	      olibs=$LIBS
17267	      LIBS="$LIBS -ldl"
17268	      cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h.  */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h.  */
17274
17275int
17276main ()
17277{
17278
17279				extern void* dlopen();
17280				dlopen();
17281
17282  ;
17283  return 0;
17284}
17285_ACEOF
17286rm -f conftest.$ac_objext conftest$ac_exeext
17287if { (ac_try="$ac_link"
17288case "(($ac_try" in
17289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290  *) ac_try_echo=$ac_try;;
17291esac
17292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293$as_echo "$ac_try_echo") >&5
17294  (eval "$ac_link") 2>conftest.er1
17295  ac_status=$?
17296  grep -v '^ *+' conftest.er1 >conftest.err
17297  rm -f conftest.er1
17298  cat conftest.err >&5
17299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300  (exit $ac_status); } && {
17301	 test -z "$ac_c_werror_flag" ||
17302	 test ! -s conftest.err
17303       } && test -s conftest$ac_exeext && {
17304	 test "$cross_compiling" = yes ||
17305	 $as_test_x conftest$ac_exeext
17306       }; then
17307  { $as_echo "$as_me:$LINENO: result: yes" >&5
17308$as_echo "yes" >&6; };
17309
17310cat >>confdefs.h <<\_ACEOF
17311#define HAVE_DLOPEN 1
17312_ACEOF
17313
17314else
17315  $as_echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318	{ $as_echo "$as_me:$LINENO: result: no" >&5
17319$as_echo "no" >&6; };
17320			  LIBS=$olibs
17321fi
17322
17323rm -rf conftest.dSYM
17324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325      conftest$ac_exeext conftest.$ac_ext
17326fi
17327
17328rm -rf conftest.dSYM
17329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330      conftest$ac_exeext conftest.$ac_ext
17331      { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17332$as_echo_n "checking for dlsym()... " >&6; }
17333  cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h.  */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h.  */
17339
17340int
17341main ()
17342{
17343
17344		extern void* dlsym();
17345		dlsym();
17346
17347  ;
17348  return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext conftest$ac_exeext
17352if { (ac_try="$ac_link"
17353case "(($ac_try" in
17354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355  *) ac_try_echo=$ac_try;;
17356esac
17357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358$as_echo "$ac_try_echo") >&5
17359  (eval "$ac_link") 2>conftest.er1
17360  ac_status=$?
17361  grep -v '^ *+' conftest.er1 >conftest.err
17362  rm -f conftest.er1
17363  cat conftest.err >&5
17364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365  (exit $ac_status); } && {
17366	 test -z "$ac_c_werror_flag" ||
17367	 test ! -s conftest.err
17368       } && test -s conftest$ac_exeext && {
17369	 test "$cross_compiling" = yes ||
17370	 $as_test_x conftest$ac_exeext
17371       }; then
17372  { $as_echo "$as_me:$LINENO: result: yes" >&5
17373$as_echo "yes" >&6; };
17374
17375cat >>confdefs.h <<\_ACEOF
17376#define HAVE_DLSYM 1
17377_ACEOF
17378
17379else
17380  $as_echo "$as_me: failed program was:" >&5
17381sed 's/^/| /' conftest.$ac_ext >&5
17382
17383	{ $as_echo "$as_me:$LINENO: result: no" >&5
17384$as_echo "no" >&6; };
17385	      { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17386$as_echo_n "checking for dlsym() in -ldl... " >&6; }
17387	      olibs=$LIBS
17388	      LIBS="$LIBS -ldl"
17389	      cat >conftest.$ac_ext <<_ACEOF
17390/* confdefs.h.  */
17391_ACEOF
17392cat confdefs.h >>conftest.$ac_ext
17393cat >>conftest.$ac_ext <<_ACEOF
17394/* end confdefs.h.  */
17395
17396int
17397main ()
17398{
17399
17400				extern void* dlsym();
17401				dlsym();
17402
17403  ;
17404  return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext conftest$ac_exeext
17408if { (ac_try="$ac_link"
17409case "(($ac_try" in
17410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411  *) ac_try_echo=$ac_try;;
17412esac
17413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414$as_echo "$ac_try_echo") >&5
17415  (eval "$ac_link") 2>conftest.er1
17416  ac_status=$?
17417  grep -v '^ *+' conftest.er1 >conftest.err
17418  rm -f conftest.er1
17419  cat conftest.err >&5
17420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421  (exit $ac_status); } && {
17422	 test -z "$ac_c_werror_flag" ||
17423	 test ! -s conftest.err
17424       } && test -s conftest$ac_exeext && {
17425	 test "$cross_compiling" = yes ||
17426	 $as_test_x conftest$ac_exeext
17427       }; then
17428  { $as_echo "$as_me:$LINENO: result: yes" >&5
17429$as_echo "yes" >&6; };
17430
17431cat >>confdefs.h <<\_ACEOF
17432#define HAVE_DLSYM 1
17433_ACEOF
17434
17435else
17436  $as_echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439	{ $as_echo "$as_me:$LINENO: result: no" >&5
17440$as_echo "no" >&6; };
17441			  LIBS=$olibs
17442fi
17443
17444rm -rf conftest.dSYM
17445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446      conftest$ac_exeext conftest.$ac_ext
17447fi
17448
17449rm -rf conftest.dSYM
17450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451      conftest$ac_exeext conftest.$ac_ext
17452elif test x${DLL} = xdl.h; then
17453
17454cat >>confdefs.h <<\_ACEOF
17455#define HAVE_DL_H 1
17456_ACEOF
17457
17458  { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17459$as_echo_n "checking for shl_load()... " >&6; }
17460  cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h.  */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h.  */
17466
17467int
17468main ()
17469{
17470
17471		extern void* shl_load();
17472		shl_load();
17473
17474  ;
17475  return 0;
17476}
17477_ACEOF
17478rm -f conftest.$ac_objext conftest$ac_exeext
17479if { (ac_try="$ac_link"
17480case "(($ac_try" in
17481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482  *) ac_try_echo=$ac_try;;
17483esac
17484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17485$as_echo "$ac_try_echo") >&5
17486  (eval "$ac_link") 2>conftest.er1
17487  ac_status=$?
17488  grep -v '^ *+' conftest.er1 >conftest.err
17489  rm -f conftest.er1
17490  cat conftest.err >&5
17491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492  (exit $ac_status); } && {
17493	 test -z "$ac_c_werror_flag" ||
17494	 test ! -s conftest.err
17495       } && test -s conftest$ac_exeext && {
17496	 test "$cross_compiling" = yes ||
17497	 $as_test_x conftest$ac_exeext
17498       }; then
17499  { $as_echo "$as_me:$LINENO: result: yes" >&5
17500$as_echo "yes" >&6; };
17501
17502cat >>confdefs.h <<\_ACEOF
17503#define HAVE_SHL_LOAD 1
17504_ACEOF
17505
17506else
17507  $as_echo "$as_me: failed program was:" >&5
17508sed 's/^/| /' conftest.$ac_ext >&5
17509
17510	{ $as_echo "$as_me:$LINENO: result: no" >&5
17511$as_echo "no" >&6; };
17512	  { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17513$as_echo_n "checking for shl_load() in -ldld... " >&6; }
17514	  olibs=$LIBS
17515	  LIBS="$LIBS -ldld"
17516	  cat >conftest.$ac_ext <<_ACEOF
17517/* confdefs.h.  */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h.  */
17522
17523int
17524main ()
17525{
17526
17527			extern void* shl_load();
17528			shl_load();
17529
17530  ;
17531  return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext conftest$ac_exeext
17535if { (ac_try="$ac_link"
17536case "(($ac_try" in
17537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538  *) ac_try_echo=$ac_try;;
17539esac
17540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17541$as_echo "$ac_try_echo") >&5
17542  (eval "$ac_link") 2>conftest.er1
17543  ac_status=$?
17544  grep -v '^ *+' conftest.er1 >conftest.err
17545  rm -f conftest.er1
17546  cat conftest.err >&5
17547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548  (exit $ac_status); } && {
17549	 test -z "$ac_c_werror_flag" ||
17550	 test ! -s conftest.err
17551       } && test -s conftest$ac_exeext && {
17552	 test "$cross_compiling" = yes ||
17553	 $as_test_x conftest$ac_exeext
17554       }; then
17555  { $as_echo "$as_me:$LINENO: result: yes" >&5
17556$as_echo "yes" >&6; };
17557
17558cat >>confdefs.h <<\_ACEOF
17559#define HAVE_SHL_LOAD 1
17560_ACEOF
17561
17562else
17563  $as_echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566	{ $as_echo "$as_me:$LINENO: result: no" >&5
17567$as_echo "no" >&6; };
17568		  LIBS=$olibs
17569fi
17570
17571rm -rf conftest.dSYM
17572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573      conftest$ac_exeext conftest.$ac_ext
17574fi
17575
17576rm -rf conftest.dSYM
17577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578      conftest$ac_exeext conftest.$ac_ext
17579fi
17580
17581for ac_header in setjmp.h
17582do
17583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17586$as_echo_n "checking for $ac_header... " >&6; }
17587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17588  $as_echo_n "(cached) " >&6
17589fi
17590ac_res=`eval 'as_val=${'$as_ac_Header'}
17591		 $as_echo "$as_val"'`
17592	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17593$as_echo "$ac_res" >&6; }
17594else
17595  # Is the header compilable?
17596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17597$as_echo_n "checking $ac_header usability... " >&6; }
17598cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h.  */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h.  */
17604$ac_includes_default
17605#include <$ac_header>
17606_ACEOF
17607rm -f conftest.$ac_objext
17608if { (ac_try="$ac_compile"
17609case "(($ac_try" in
17610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611  *) ac_try_echo=$ac_try;;
17612esac
17613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17614$as_echo "$ac_try_echo") >&5
17615  (eval "$ac_compile") 2>conftest.er1
17616  ac_status=$?
17617  grep -v '^ *+' conftest.er1 >conftest.err
17618  rm -f conftest.er1
17619  cat conftest.err >&5
17620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621  (exit $ac_status); } && {
17622	 test -z "$ac_c_werror_flag" ||
17623	 test ! -s conftest.err
17624       } && test -s conftest.$ac_objext; then
17625  ac_header_compiler=yes
17626else
17627  $as_echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630	ac_header_compiler=no
17631fi
17632
17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635$as_echo "$ac_header_compiler" >&6; }
17636
17637# Is the header present?
17638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17639$as_echo_n "checking $ac_header presence... " >&6; }
17640cat >conftest.$ac_ext <<_ACEOF
17641/* confdefs.h.  */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h.  */
17646#include <$ac_header>
17647_ACEOF
17648if { (ac_try="$ac_cpp conftest.$ac_ext"
17649case "(($ac_try" in
17650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651  *) ac_try_echo=$ac_try;;
17652esac
17653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654$as_echo "$ac_try_echo") >&5
17655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656  ac_status=$?
17657  grep -v '^ *+' conftest.er1 >conftest.err
17658  rm -f conftest.er1
17659  cat conftest.err >&5
17660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661  (exit $ac_status); } >/dev/null && {
17662	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663	 test ! -s conftest.err
17664       }; then
17665  ac_header_preproc=yes
17666else
17667  $as_echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670  ac_header_preproc=no
17671fi
17672
17673rm -f conftest.err conftest.$ac_ext
17674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675$as_echo "$ac_header_preproc" >&6; }
17676
17677# So?  What about this header?
17678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679  yes:no: )
17680    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17684    ac_header_preproc=yes
17685    ;;
17686  no:yes:* )
17687    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17689    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17690$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17691    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17693    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17694$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17695    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17697    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17699
17700    ;;
17701esac
17702{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17703$as_echo_n "checking for $ac_header... " >&6; }
17704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705  $as_echo_n "(cached) " >&6
17706else
17707  eval "$as_ac_Header=\$ac_header_preproc"
17708fi
17709ac_res=`eval 'as_val=${'$as_ac_Header'}
17710		 $as_echo "$as_val"'`
17711	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17712$as_echo "$ac_res" >&6; }
17713
17714fi
17715as_val=`eval 'as_val=${'$as_ac_Header'}
17716		 $as_echo "$as_val"'`
17717   if test "x$as_val" = x""yes; then
17718  cat >>confdefs.h <<_ACEOF
17719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17720_ACEOF
17721
17722fi
17723
17724done
17725
17726
17727if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17728    if echo $LIBS | grep -e '-ldl' >/dev/null; then
17729    LIBS=`echo $LIBS | sed s/-ldl//`
17730    PERL_LIBS="$PERL_LIBS -ldl"
17731  fi
17732fi
17733
17734if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17735	&& test "x$GUITYPE" != "xCARBONGUI"; then
17736  { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17737$as_echo_n "checking whether we need -framework Carbon... " >&6; }
17738    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17739	|| test "x$features" = "xhuge"; then
17740    LIBS="$LIBS -framework Carbon"
17741    { $as_echo "$as_me:$LINENO: result: yes" >&5
17742$as_echo "yes" >&6; }
17743  else
17744    { $as_echo "$as_me:$LINENO: result: no" >&5
17745$as_echo "no" >&6; }
17746  fi
17747fi
17748if test "x$MACARCH" = "xboth"; then
17749  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17750fi
17751
17752DEPEND_CFLAGS_FILTER=
17753if test "$GCC" = yes; then
17754  { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17755$as_echo_n "checking for GCC 3 or later... " >&6; }
17756  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17757  if test "$gccmajor" -gt "2"; then
17758    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17759    { $as_echo "$as_me:$LINENO: result: yes" >&5
17760$as_echo "yes" >&6; }
17761  else
17762    { $as_echo "$as_me:$LINENO: result: no" >&5
17763$as_echo "no" >&6; }
17764  fi
17765        { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17766$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17767  if test "$gccmajor" -gt "3"; then
17768    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17769    { $as_echo "$as_me:$LINENO: result: yes" >&5
17770$as_echo "yes" >&6; }
17771  else
17772    { $as_echo "$as_me:$LINENO: result: no" >&5
17773$as_echo "no" >&6; }
17774  fi
17775fi
17776
17777
17778ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17779
17780cat >confcache <<\_ACEOF
17781# This file is a shell script that caches the results of configure
17782# tests run on this system so they can be shared between configure
17783# scripts and configure runs, see configure's option --config-cache.
17784# It is not useful on other systems.  If it contains results you don't
17785# want to keep, you may remove or edit it.
17786#
17787# config.status only pays attention to the cache file if you give it
17788# the --recheck option to rerun configure.
17789#
17790# `ac_cv_env_foo' variables (set or unset) will be overridden when
17791# loading this file, other *unset* `ac_cv_foo' will be assigned the
17792# following values.
17793
17794_ACEOF
17795
17796# The following way of writing the cache mishandles newlines in values,
17797# but we know of no workaround that is simple, portable, and efficient.
17798# So, we kill variables containing newlines.
17799# Ultrix sh set writes to stderr and can't be redirected directly,
17800# and sets the high bit in the cache file unless we assign to the vars.
17801(
17802  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17803    eval ac_val=\$$ac_var
17804    case $ac_val in #(
17805    *${as_nl}*)
17806      case $ac_var in #(
17807      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17808$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17809      esac
17810      case $ac_var in #(
17811      _ | IFS | as_nl) ;; #(
17812      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17813      *) $as_unset $ac_var ;;
17814      esac ;;
17815    esac
17816  done
17817
17818  (set) 2>&1 |
17819    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17820    *${as_nl}ac_space=\ *)
17821      # `set' does not quote correctly, so add quotes (double-quote
17822      # substitution turns \\\\ into \\, and sed turns \\ into \).
17823      sed -n \
17824	"s/'/'\\\\''/g;
17825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17826      ;; #(
17827    *)
17828      # `set' quotes correctly as required by POSIX, so do not add quotes.
17829      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17830      ;;
17831    esac |
17832    sort
17833) |
17834  sed '
17835     /^ac_cv_env_/b end
17836     t clear
17837     :clear
17838     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17839     t end
17840     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17841     :end' >>confcache
17842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17843  if test -w "$cache_file"; then
17844    test "x$cache_file" != "x/dev/null" &&
17845      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17846$as_echo "$as_me: updating cache $cache_file" >&6;}
17847    cat confcache >$cache_file
17848  else
17849    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17850$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17851  fi
17852fi
17853rm -f confcache
17854
17855test "x$prefix" = xNONE && prefix=$ac_default_prefix
17856# Let make expand exec_prefix.
17857test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17858
17859DEFS=-DHAVE_CONFIG_H
17860
17861ac_libobjs=
17862ac_ltlibobjs=
17863for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17864  # 1. Remove the extension, and $U if already installed.
17865  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17866  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17867  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17868  #    will be set to the directory where LIBOBJS objects are built.
17869  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17870  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17871done
17872LIBOBJS=$ac_libobjs
17873
17874LTLIBOBJS=$ac_ltlibobjs
17875
17876
17877
17878: ${CONFIG_STATUS=./config.status}
17879ac_write_fail=0
17880ac_clean_files_save=$ac_clean_files
17881ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17882{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17884cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17885#! $SHELL
17886# Generated by $as_me.
17887# Run this file to recreate the current configuration.
17888# Compiler output produced by configure, useful for debugging
17889# configure, is in config.log if it exists.
17890
17891debug=false
17892ac_cs_recheck=false
17893ac_cs_silent=false
17894SHELL=\${CONFIG_SHELL-$SHELL}
17895_ACEOF
17896
17897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898## --------------------- ##
17899## M4sh Initialization.  ##
17900## --------------------- ##
17901
17902# Be more Bourne compatible
17903DUALCASE=1; export DUALCASE # for MKS sh
17904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17905  emulate sh
17906  NULLCMD=:
17907  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17908  # is contrary to our usage.  Disable this feature.
17909  alias -g '${1+"$@"}'='"$@"'
17910  setopt NO_GLOB_SUBST
17911else
17912  case `(set -o) 2>/dev/null` in
17913  *posix*) set -o posix ;;
17914esac
17915
17916fi
17917
17918
17919
17920
17921# PATH needs CR
17922# Avoid depending upon Character Ranges.
17923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17926as_cr_digits='0123456789'
17927as_cr_alnum=$as_cr_Letters$as_cr_digits
17928
17929as_nl='
17930'
17931export as_nl
17932# Printing a long string crashes Solaris 7 /usr/bin/printf.
17933as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17936if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17937  as_echo='printf %s\n'
17938  as_echo_n='printf %s'
17939else
17940  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17941    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17942    as_echo_n='/usr/ucb/echo -n'
17943  else
17944    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17945    as_echo_n_body='eval
17946      arg=$1;
17947      case $arg in
17948      *"$as_nl"*)
17949	expr "X$arg" : "X\\(.*\\)$as_nl";
17950	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17951      esac;
17952      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17953    '
17954    export as_echo_n_body
17955    as_echo_n='sh -c $as_echo_n_body as_echo'
17956  fi
17957  export as_echo_body
17958  as_echo='sh -c $as_echo_body as_echo'
17959fi
17960
17961# The user is always right.
17962if test "${PATH_SEPARATOR+set}" != set; then
17963  PATH_SEPARATOR=:
17964  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17965    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17966      PATH_SEPARATOR=';'
17967  }
17968fi
17969
17970# Support unset when possible.
17971if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17972  as_unset=unset
17973else
17974  as_unset=false
17975fi
17976
17977
17978# IFS
17979# We need space, tab and new line, in precisely that order.  Quoting is
17980# there to prevent editors from complaining about space-tab.
17981# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17982# splitting by setting IFS to empty value.)
17983IFS=" ""	$as_nl"
17984
17985# Find who we are.  Look in the path if we contain no directory separator.
17986case $0 in
17987  *[\\/]* ) as_myself=$0 ;;
17988  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989for as_dir in $PATH
17990do
17991  IFS=$as_save_IFS
17992  test -z "$as_dir" && as_dir=.
17993  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17994done
17995IFS=$as_save_IFS
17996
17997     ;;
17998esac
17999# We did not find ourselves, most probably we were run as `sh COMMAND'
18000# in which case we are not to be found in the path.
18001if test "x$as_myself" = x; then
18002  as_myself=$0
18003fi
18004if test ! -f "$as_myself"; then
18005  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18006  { (exit 1); exit 1; }
18007fi
18008
18009# Work around bugs in pre-3.0 UWIN ksh.
18010for as_var in ENV MAIL MAILPATH
18011do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18012done
18013PS1='$ '
18014PS2='> '
18015PS4='+ '
18016
18017# NLS nuisances.
18018LC_ALL=C
18019export LC_ALL
18020LANGUAGE=C
18021export LANGUAGE
18022
18023# Required to use basename.
18024if expr a : '\(a\)' >/dev/null 2>&1 &&
18025   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18026  as_expr=expr
18027else
18028  as_expr=false
18029fi
18030
18031if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18032  as_basename=basename
18033else
18034  as_basename=false
18035fi
18036
18037
18038# Name of the executable.
18039as_me=`$as_basename -- "$0" ||
18040$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18041	 X"$0" : 'X\(//\)$' \| \
18042	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18043$as_echo X/"$0" |
18044    sed '/^.*\/\([^/][^/]*\)\/*$/{
18045	    s//\1/
18046	    q
18047	  }
18048	  /^X\/\(\/\/\)$/{
18049	    s//\1/
18050	    q
18051	  }
18052	  /^X\/\(\/\).*/{
18053	    s//\1/
18054	    q
18055	  }
18056	  s/.*/./; q'`
18057
18058# CDPATH.
18059$as_unset CDPATH
18060
18061
18062
18063  as_lineno_1=$LINENO
18064  as_lineno_2=$LINENO
18065  test "x$as_lineno_1" != "x$as_lineno_2" &&
18066  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18067
18068  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18069  # uniformly replaced by the line number.  The first 'sed' inserts a
18070  # line-number line after each line using $LINENO; the second 'sed'
18071  # does the real work.  The second script uses 'N' to pair each
18072  # line-number line with the line containing $LINENO, and appends
18073  # trailing '-' during substitution so that $LINENO is not a special
18074  # case at line end.
18075  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18076  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18077  # E. McMahon (1931-1989) for sed's syntax.  :-)
18078  sed -n '
18079    p
18080    /[$]LINENO/=
18081  ' <$as_myself |
18082    sed '
18083      s/[$]LINENO.*/&-/
18084      t lineno
18085      b
18086      :lineno
18087      N
18088      :loop
18089      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18090      t loop
18091      s/-\n.*//
18092    ' >$as_me.lineno &&
18093  chmod +x "$as_me.lineno" ||
18094    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18095   { (exit 1); exit 1; }; }
18096
18097  # Don't try to exec as it changes $[0], causing all sort of problems
18098  # (the dirname of $[0] is not the place where we might find the
18099  # original and so on.  Autoconf is especially sensitive to this).
18100  . "./$as_me.lineno"
18101  # Exit status is that of the last command.
18102  exit
18103}
18104
18105
18106if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18107  as_dirname=dirname
18108else
18109  as_dirname=false
18110fi
18111
18112ECHO_C= ECHO_N= ECHO_T=
18113case `echo -n x` in
18114-n*)
18115  case `echo 'x\c'` in
18116  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18117  *)   ECHO_C='\c';;
18118  esac;;
18119*)
18120  ECHO_N='-n';;
18121esac
18122if expr a : '\(a\)' >/dev/null 2>&1 &&
18123   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18124  as_expr=expr
18125else
18126  as_expr=false
18127fi
18128
18129rm -f conf$$ conf$$.exe conf$$.file
18130if test -d conf$$.dir; then
18131  rm -f conf$$.dir/conf$$.file
18132else
18133  rm -f conf$$.dir
18134  mkdir conf$$.dir 2>/dev/null
18135fi
18136if (echo >conf$$.file) 2>/dev/null; then
18137  if ln -s conf$$.file conf$$ 2>/dev/null; then
18138    as_ln_s='ln -s'
18139    # ... but there are two gotchas:
18140    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18141    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18142    # In both cases, we have to default to `cp -p'.
18143    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18144      as_ln_s='cp -p'
18145  elif ln conf$$.file conf$$ 2>/dev/null; then
18146    as_ln_s=ln
18147  else
18148    as_ln_s='cp -p'
18149  fi
18150else
18151  as_ln_s='cp -p'
18152fi
18153rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18154rmdir conf$$.dir 2>/dev/null
18155
18156if mkdir -p . 2>/dev/null; then
18157  as_mkdir_p=:
18158else
18159  test -d ./-p && rmdir ./-p
18160  as_mkdir_p=false
18161fi
18162
18163if test -x / >/dev/null 2>&1; then
18164  as_test_x='test -x'
18165else
18166  if ls -dL / >/dev/null 2>&1; then
18167    as_ls_L_option=L
18168  else
18169    as_ls_L_option=
18170  fi
18171  as_test_x='
18172    eval sh -c '\''
18173      if test -d "$1"; then
18174	test -d "$1/.";
18175      else
18176	case $1 in
18177	-*)set "./$1";;
18178	esac;
18179	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18180	???[sx]*):;;*)false;;esac;fi
18181    '\'' sh
18182  '
18183fi
18184as_executable_p=$as_test_x
18185
18186# Sed expression to map a string onto a valid CPP name.
18187as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18188
18189# Sed expression to map a string onto a valid variable name.
18190as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18191
18192
18193exec 6>&1
18194
18195# Save the log message, to keep $[0] and so on meaningful, and to
18196# report actual input values of CONFIG_FILES etc. instead of their
18197# values after options handling.
18198ac_log="
18199This file was extended by $as_me, which was
18200generated by GNU Autoconf 2.63.  Invocation command line was
18201
18202  CONFIG_FILES    = $CONFIG_FILES
18203  CONFIG_HEADERS  = $CONFIG_HEADERS
18204  CONFIG_LINKS    = $CONFIG_LINKS
18205  CONFIG_COMMANDS = $CONFIG_COMMANDS
18206  $ $0 $@
18207
18208on `(hostname || uname -n) 2>/dev/null | sed 1q`
18209"
18210
18211_ACEOF
18212
18213case $ac_config_files in *"
18214"*) set x $ac_config_files; shift; ac_config_files=$*;;
18215esac
18216
18217case $ac_config_headers in *"
18218"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18219esac
18220
18221
18222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223# Files that config.status was made for.
18224config_files="$ac_config_files"
18225config_headers="$ac_config_headers"
18226
18227_ACEOF
18228
18229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230ac_cs_usage="\
18231\`$as_me' instantiates files from templates according to the
18232current configuration.
18233
18234Usage: $0 [OPTION]... [FILE]...
18235
18236  -h, --help       print this help, then exit
18237  -V, --version    print version number and configuration settings, then exit
18238  -q, --quiet, --silent
18239                   do not print progress messages
18240  -d, --debug      don't remove temporary files
18241      --recheck    update $as_me by reconfiguring in the same conditions
18242      --file=FILE[:TEMPLATE]
18243                   instantiate the configuration file FILE
18244      --header=FILE[:TEMPLATE]
18245                   instantiate the configuration header FILE
18246
18247Configuration files:
18248$config_files
18249
18250Configuration headers:
18251$config_headers
18252
18253Report bugs to <[email protected]>."
18254
18255_ACEOF
18256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18257ac_cs_version="\\
18258config.status
18259configured by $0, generated by GNU Autoconf 2.63,
18260  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18261
18262Copyright (C) 2008 Free Software Foundation, Inc.
18263This config.status script is free software; the Free Software Foundation
18264gives unlimited permission to copy, distribute and modify it."
18265
18266ac_pwd='$ac_pwd'
18267srcdir='$srcdir'
18268AWK='$AWK'
18269test -n "\$AWK" || AWK=awk
18270_ACEOF
18271
18272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273# The default lists apply if the user does not specify any file.
18274ac_need_defaults=:
18275while test $# != 0
18276do
18277  case $1 in
18278  --*=*)
18279    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18280    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18281    ac_shift=:
18282    ;;
18283  *)
18284    ac_option=$1
18285    ac_optarg=$2
18286    ac_shift=shift
18287    ;;
18288  esac
18289
18290  case $ac_option in
18291  # Handling of the options.
18292  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18293    ac_cs_recheck=: ;;
18294  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18295    $as_echo "$ac_cs_version"; exit ;;
18296  --debug | --debu | --deb | --de | --d | -d )
18297    debug=: ;;
18298  --file | --fil | --fi | --f )
18299    $ac_shift
18300    case $ac_optarg in
18301    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18302    esac
18303    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18304    ac_need_defaults=false;;
18305  --header | --heade | --head | --hea )
18306    $ac_shift
18307    case $ac_optarg in
18308    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18309    esac
18310    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18311    ac_need_defaults=false;;
18312  --he | --h)
18313    # Conflict between --help and --header
18314    { $as_echo "$as_me: error: ambiguous option: $1
18315Try \`$0 --help' for more information." >&2
18316   { (exit 1); exit 1; }; };;
18317  --help | --hel | -h )
18318    $as_echo "$ac_cs_usage"; exit ;;
18319  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18320  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18321    ac_cs_silent=: ;;
18322
18323  # This is an error.
18324  -*) { $as_echo "$as_me: error: unrecognized option: $1
18325Try \`$0 --help' for more information." >&2
18326   { (exit 1); exit 1; }; } ;;
18327
18328  *) ac_config_targets="$ac_config_targets $1"
18329     ac_need_defaults=false ;;
18330
18331  esac
18332  shift
18333done
18334
18335ac_configure_extra_args=
18336
18337if $ac_cs_silent; then
18338  exec 6>/dev/null
18339  ac_configure_extra_args="$ac_configure_extra_args --silent"
18340fi
18341
18342_ACEOF
18343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18344if \$ac_cs_recheck; then
18345  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18346  shift
18347  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18348  CONFIG_SHELL='$SHELL'
18349  export CONFIG_SHELL
18350  exec "\$@"
18351fi
18352
18353_ACEOF
18354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18355exec 5>>auto/config.log
18356{
18357  echo
18358  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18359## Running $as_me. ##
18360_ASBOX
18361  $as_echo "$ac_log"
18362} >&5
18363
18364_ACEOF
18365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366_ACEOF
18367
18368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18369
18370# Handling of arguments.
18371for ac_config_target in $ac_config_targets
18372do
18373  case $ac_config_target in
18374    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18375    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18376
18377  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18378$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18379   { (exit 1); exit 1; }; };;
18380  esac
18381done
18382
18383
18384# If the user did not use the arguments to specify the items to instantiate,
18385# then the envvar interface is used.  Set only those that are not.
18386# We use the long form for the default assignment because of an extremely
18387# bizarre bug on SunOS 4.1.3.
18388if $ac_need_defaults; then
18389  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18390  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18391fi
18392
18393# Have a temporary directory for convenience.  Make it in the build tree
18394# simply because there is no reason against having it here, and in addition,
18395# creating and moving files from /tmp can sometimes cause problems.
18396# Hook for its removal unless debugging.
18397# Note that there is a small window in which the directory will not be cleaned:
18398# after its creation but before its name has been assigned to `$tmp'.
18399$debug ||
18400{
18401  tmp=
18402  trap 'exit_status=$?
18403  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18404' 0
18405  trap '{ (exit 1); exit 1; }' 1 2 13 15
18406}
18407# Create a (secure) tmp directory for tmp files.
18408
18409{
18410  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18411  test -n "$tmp" && test -d "$tmp"
18412}  ||
18413{
18414  tmp=./conf$$-$RANDOM
18415  (umask 077 && mkdir "$tmp")
18416} ||
18417{
18418   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18419   { (exit 1); exit 1; }
18420}
18421
18422# Set up the scripts for CONFIG_FILES section.
18423# No need to generate them if there are no CONFIG_FILES.
18424# This happens for instance with `./config.status config.h'.
18425if test -n "$CONFIG_FILES"; then
18426
18427
18428ac_cr='
18429'
18430ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18431if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18432  ac_cs_awk_cr='\\r'
18433else
18434  ac_cs_awk_cr=$ac_cr
18435fi
18436
18437echo 'BEGIN {' >"$tmp/subs1.awk" &&
18438_ACEOF
18439
18440
18441{
18442  echo "cat >conf$$subs.awk <<_ACEOF" &&
18443  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18444  echo "_ACEOF"
18445} >conf$$subs.sh ||
18446  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18447$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18448   { (exit 1); exit 1; }; }
18449ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18450ac_delim='%!_!# '
18451for ac_last_try in false false false false false :; do
18452  . ./conf$$subs.sh ||
18453    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18454$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18455   { (exit 1); exit 1; }; }
18456
18457  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18458  if test $ac_delim_n = $ac_delim_num; then
18459    break
18460  elif $ac_last_try; then
18461    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18462$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18463   { (exit 1); exit 1; }; }
18464  else
18465    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18466  fi
18467done
18468rm -f conf$$subs.sh
18469
18470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18471cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18472_ACEOF
18473sed -n '
18474h
18475s/^/S["/; s/!.*/"]=/
18476p
18477g
18478s/^[^!]*!//
18479:repl
18480t repl
18481s/'"$ac_delim"'$//
18482t delim
18483:nl
18484h
18485s/\(.\{148\}\).*/\1/
18486t more1
18487s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18488p
18489n
18490b repl
18491:more1
18492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18493p
18494g
18495s/.\{148\}//
18496t nl
18497:delim
18498h
18499s/\(.\{148\}\).*/\1/
18500t more2
18501s/["\\]/\\&/g; s/^/"/; s/$/"/
18502p
18503b
18504:more2
18505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18506p
18507g
18508s/.\{148\}//
18509t delim
18510' <conf$$subs.awk | sed '
18511/^[^""]/{
18512  N
18513  s/\n//
18514}
18515' >>$CONFIG_STATUS || ac_write_fail=1
18516rm -f conf$$subs.awk
18517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18518_ACAWK
18519cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18520  for (key in S) S_is_set[key] = 1
18521  FS = ""
18522
18523}
18524{
18525  line = $ 0
18526  nfields = split(line, field, "@")
18527  substed = 0
18528  len = length(field[1])
18529  for (i = 2; i < nfields; i++) {
18530    key = field[i]
18531    keylen = length(key)
18532    if (S_is_set[key]) {
18533      value = S[key]
18534      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18535      len += length(value) + length(field[++i])
18536      substed = 1
18537    } else
18538      len += 1 + keylen
18539  }
18540
18541  print line
18542}
18543
18544_ACAWK
18545_ACEOF
18546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18547if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18548  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18549else
18550  cat
18551fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18552  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18553$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18554   { (exit 1); exit 1; }; }
18555_ACEOF
18556
18557# VPATH may cause trouble with some makes, so we remove $(srcdir),
18558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18559# trailing colons and then remove the whole line if VPATH becomes empty
18560# (actually we leave an empty line to preserve line numbers).
18561if test "x$srcdir" = x.; then
18562  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18563s/:*\$(srcdir):*/:/
18564s/:*\${srcdir}:*/:/
18565s/:*@srcdir@:*/:/
18566s/^\([^=]*=[	 ]*\):*/\1/
18567s/:*$//
18568s/^[^=]*=[	 ]*$//
18569}'
18570fi
18571
18572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18573fi # test -n "$CONFIG_FILES"
18574
18575# Set up the scripts for CONFIG_HEADERS section.
18576# No need to generate them if there are no CONFIG_HEADERS.
18577# This happens for instance with `./config.status Makefile'.
18578if test -n "$CONFIG_HEADERS"; then
18579cat >"$tmp/defines.awk" <<\_ACAWK ||
18580BEGIN {
18581_ACEOF
18582
18583# Transform confdefs.h into an awk script `defines.awk', embedded as
18584# here-document in config.status, that substitutes the proper values into
18585# config.h.in to produce config.h.
18586
18587# Create a delimiter string that does not exist in confdefs.h, to ease
18588# handling of long lines.
18589ac_delim='%!_!# '
18590for ac_last_try in false false :; do
18591  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18592  if test -z "$ac_t"; then
18593    break
18594  elif $ac_last_try; then
18595    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18596$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18597   { (exit 1); exit 1; }; }
18598  else
18599    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18600  fi
18601done
18602
18603# For the awk script, D is an array of macro values keyed by name,
18604# likewise P contains macro parameters if any.  Preserve backslash
18605# newline sequences.
18606
18607ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18608sed -n '
18609s/.\{148\}/&'"$ac_delim"'/g
18610t rset
18611:rset
18612s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18613t def
18614d
18615:def
18616s/\\$//
18617t bsnl
18618s/["\\]/\\&/g
18619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18620D["\1"]=" \3"/p
18621s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18622d
18623:bsnl
18624s/["\\]/\\&/g
18625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18626D["\1"]=" \3\\\\\\n"\\/p
18627t cont
18628s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18629t cont
18630d
18631:cont
18632n
18633s/.\{148\}/&'"$ac_delim"'/g
18634t clear
18635:clear
18636s/\\$//
18637t bsnlc
18638s/["\\]/\\&/g; s/^/"/; s/$/"/p
18639d
18640:bsnlc
18641s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18642b cont
18643' <confdefs.h | sed '
18644s/'"$ac_delim"'/"\\\
18645"/g' >>$CONFIG_STATUS || ac_write_fail=1
18646
18647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18648  for (key in D) D_is_set[key] = 1
18649  FS = ""
18650}
18651/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18652  line = \$ 0
18653  split(line, arg, " ")
18654  if (arg[1] == "#") {
18655    defundef = arg[2]
18656    mac1 = arg[3]
18657  } else {
18658    defundef = substr(arg[1], 2)
18659    mac1 = arg[2]
18660  }
18661  split(mac1, mac2, "(") #)
18662  macro = mac2[1]
18663  prefix = substr(line, 1, index(line, defundef) - 1)
18664  if (D_is_set[macro]) {
18665    # Preserve the white space surrounding the "#".
18666    print prefix "define", macro P[macro] D[macro]
18667    next
18668  } else {
18669    # Replace #undef with comments.  This is necessary, for example,
18670    # in the case of _POSIX_SOURCE, which is predefined and required
18671    # on some systems where configure will not decide to define it.
18672    if (defundef == "undef") {
18673      print "/*", prefix defundef, macro, "*/"
18674      next
18675    }
18676  }
18677}
18678{ print }
18679_ACAWK
18680_ACEOF
18681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18682  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18683$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18684   { (exit 1); exit 1; }; }
18685fi # test -n "$CONFIG_HEADERS"
18686
18687
18688eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
18689shift
18690for ac_tag
18691do
18692  case $ac_tag in
18693  :[FHLC]) ac_mode=$ac_tag; continue;;
18694  esac
18695  case $ac_mode$ac_tag in
18696  :[FHL]*:*);;
18697  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18698$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18699   { (exit 1); exit 1; }; };;
18700  :[FH]-) ac_tag=-:-;;
18701  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18702  esac
18703  ac_save_IFS=$IFS
18704  IFS=:
18705  set x $ac_tag
18706  IFS=$ac_save_IFS
18707  shift
18708  ac_file=$1
18709  shift
18710
18711  case $ac_mode in
18712  :L) ac_source=$1;;
18713  :[FH])
18714    ac_file_inputs=
18715    for ac_f
18716    do
18717      case $ac_f in
18718      -) ac_f="$tmp/stdin";;
18719      *) # Look for the file first in the build tree, then in the source tree
18720	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18721	 # because $ac_f cannot contain `:'.
18722	 test -f "$ac_f" ||
18723	   case $ac_f in
18724	   [\\/$]*) false;;
18725	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18726	   esac ||
18727	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18728$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18729   { (exit 1); exit 1; }; };;
18730      esac
18731      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18732      ac_file_inputs="$ac_file_inputs '$ac_f'"
18733    done
18734
18735    # Let's still pretend it is `configure' which instantiates (i.e., don't
18736    # use $as_me), people would be surprised to read:
18737    #    /* config.h.  Generated by config.status.  */
18738    configure_input='Generated from '`
18739	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18740	`' by configure.'
18741    if test x"$ac_file" != x-; then
18742      configure_input="$ac_file.  $configure_input"
18743      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18744$as_echo "$as_me: creating $ac_file" >&6;}
18745    fi
18746    # Neutralize special characters interpreted by sed in replacement strings.
18747    case $configure_input in #(
18748    *\&* | *\|* | *\\* )
18749       ac_sed_conf_input=`$as_echo "$configure_input" |
18750       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18751    *) ac_sed_conf_input=$configure_input;;
18752    esac
18753
18754    case $ac_tag in
18755    *:-:* | *:-) cat >"$tmp/stdin" \
18756      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18757$as_echo "$as_me: error: could not create $ac_file" >&2;}
18758   { (exit 1); exit 1; }; } ;;
18759    esac
18760    ;;
18761  esac
18762
18763  ac_dir=`$as_dirname -- "$ac_file" ||
18764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18765	 X"$ac_file" : 'X\(//\)[^/]' \| \
18766	 X"$ac_file" : 'X\(//\)$' \| \
18767	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18768$as_echo X"$ac_file" |
18769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18770	    s//\1/
18771	    q
18772	  }
18773	  /^X\(\/\/\)[^/].*/{
18774	    s//\1/
18775	    q
18776	  }
18777	  /^X\(\/\/\)$/{
18778	    s//\1/
18779	    q
18780	  }
18781	  /^X\(\/\).*/{
18782	    s//\1/
18783	    q
18784	  }
18785	  s/.*/./; q'`
18786  { as_dir="$ac_dir"
18787  case $as_dir in #(
18788  -*) as_dir=./$as_dir;;
18789  esac
18790  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18791    as_dirs=
18792    while :; do
18793      case $as_dir in #(
18794      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18795      *) as_qdir=$as_dir;;
18796      esac
18797      as_dirs="'$as_qdir' $as_dirs"
18798      as_dir=`$as_dirname -- "$as_dir" ||
18799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18800	 X"$as_dir" : 'X\(//\)[^/]' \| \
18801	 X"$as_dir" : 'X\(//\)$' \| \
18802	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18803$as_echo X"$as_dir" |
18804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18805	    s//\1/
18806	    q
18807	  }
18808	  /^X\(\/\/\)[^/].*/{
18809	    s//\1/
18810	    q
18811	  }
18812	  /^X\(\/\/\)$/{
18813	    s//\1/
18814	    q
18815	  }
18816	  /^X\(\/\).*/{
18817	    s//\1/
18818	    q
18819	  }
18820	  s/.*/./; q'`
18821      test -d "$as_dir" && break
18822    done
18823    test -z "$as_dirs" || eval "mkdir $as_dirs"
18824  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18825$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18826   { (exit 1); exit 1; }; }; }
18827  ac_builddir=.
18828
18829case "$ac_dir" in
18830.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18831*)
18832  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18833  # A ".." for each directory in $ac_dir_suffix.
18834  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18835  case $ac_top_builddir_sub in
18836  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18837  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18838  esac ;;
18839esac
18840ac_abs_top_builddir=$ac_pwd
18841ac_abs_builddir=$ac_pwd$ac_dir_suffix
18842# for backward compatibility:
18843ac_top_builddir=$ac_top_build_prefix
18844
18845case $srcdir in
18846  .)  # We are building in place.
18847    ac_srcdir=.
18848    ac_top_srcdir=$ac_top_builddir_sub
18849    ac_abs_top_srcdir=$ac_pwd ;;
18850  [\\/]* | ?:[\\/]* )  # Absolute name.
18851    ac_srcdir=$srcdir$ac_dir_suffix;
18852    ac_top_srcdir=$srcdir
18853    ac_abs_top_srcdir=$srcdir ;;
18854  *) # Relative name.
18855    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18856    ac_top_srcdir=$ac_top_build_prefix$srcdir
18857    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18858esac
18859ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18860
18861
18862  case $ac_mode in
18863  :F)
18864  #
18865  # CONFIG_FILE
18866  #
18867
18868_ACEOF
18869
18870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18871# If the template does not know about datarootdir, expand it.
18872# FIXME: This hack should be removed a few years after 2.60.
18873ac_datarootdir_hack=; ac_datarootdir_seen=
18874
18875ac_sed_dataroot='
18876/datarootdir/ {
18877  p
18878  q
18879}
18880/@datadir@/p
18881/@docdir@/p
18882/@infodir@/p
18883/@localedir@/p
18884/@mandir@/p
18885'
18886case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18887*datarootdir*) ac_datarootdir_seen=yes;;
18888*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18889  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18890$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18891_ACEOF
18892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18893  ac_datarootdir_hack='
18894  s&@datadir@&$datadir&g
18895  s&@docdir@&$docdir&g
18896  s&@infodir@&$infodir&g
18897  s&@localedir@&$localedir&g
18898  s&@mandir@&$mandir&g
18899    s&\\\${datarootdir}&$datarootdir&g' ;;
18900esac
18901_ACEOF
18902
18903# Neutralize VPATH when `$srcdir' = `.'.
18904# Shell code in configure.ac might set extrasub.
18905# FIXME: do we really want to maintain this feature?
18906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18907ac_sed_extra="$ac_vpsub
18908$extrasub
18909_ACEOF
18910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18911:t
18912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18913s|@configure_input@|$ac_sed_conf_input|;t t
18914s&@top_builddir@&$ac_top_builddir_sub&;t t
18915s&@top_build_prefix@&$ac_top_build_prefix&;t t
18916s&@srcdir@&$ac_srcdir&;t t
18917s&@abs_srcdir@&$ac_abs_srcdir&;t t
18918s&@top_srcdir@&$ac_top_srcdir&;t t
18919s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18920s&@builddir@&$ac_builddir&;t t
18921s&@abs_builddir@&$ac_abs_builddir&;t t
18922s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18923$ac_datarootdir_hack
18924"
18925eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18926  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18927$as_echo "$as_me: error: could not create $ac_file" >&2;}
18928   { (exit 1); exit 1; }; }
18929
18930test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18931  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18932  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18933  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18934which seems to be undefined.  Please make sure it is defined." >&5
18935$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18936which seems to be undefined.  Please make sure it is defined." >&2;}
18937
18938  rm -f "$tmp/stdin"
18939  case $ac_file in
18940  -) cat "$tmp/out" && rm -f "$tmp/out";;
18941  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18942  esac \
18943  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18944$as_echo "$as_me: error: could not create $ac_file" >&2;}
18945   { (exit 1); exit 1; }; }
18946 ;;
18947  :H)
18948  #
18949  # CONFIG_HEADER
18950  #
18951  if test x"$ac_file" != x-; then
18952    {
18953      $as_echo "/* $configure_input  */" \
18954      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18955    } >"$tmp/config.h" \
18956      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18957$as_echo "$as_me: error: could not create $ac_file" >&2;}
18958   { (exit 1); exit 1; }; }
18959    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18960      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18961$as_echo "$as_me: $ac_file is unchanged" >&6;}
18962    else
18963      rm -f "$ac_file"
18964      mv "$tmp/config.h" "$ac_file" \
18965	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18966$as_echo "$as_me: error: could not create $ac_file" >&2;}
18967   { (exit 1); exit 1; }; }
18968    fi
18969  else
18970    $as_echo "/* $configure_input  */" \
18971      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18972      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18973$as_echo "$as_me: error: could not create -" >&2;}
18974   { (exit 1); exit 1; }; }
18975  fi
18976 ;;
18977
18978
18979  esac
18980
18981done # for ac_tag
18982
18983
18984{ (exit 0); exit 0; }
18985_ACEOF
18986chmod +x $CONFIG_STATUS
18987ac_clean_files=$ac_clean_files_save
18988
18989test $ac_write_fail = 0 ||
18990  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18991$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18992   { (exit 1); exit 1; }; }
18993
18994
18995# configure is writing to config.log, and then calls config.status.
18996# config.status does its own redirection, appending to config.log.
18997# Unfortunately, on DOS this fails, as config.log is still kept open
18998# by configure, so config.status won't be able to write to it; its
18999# output is simply discarded.  So we exec the FD to /dev/null,
19000# effectively closing config.log, so it can be properly (re)opened and
19001# appended to by config.status.  When coming back to configure, we
19002# need to make the FD available again.
19003if test "$no_create" != yes; then
19004  ac_cs_success=:
19005  ac_config_status_args=
19006  test "$silent" = yes &&
19007    ac_config_status_args="$ac_config_status_args --quiet"
19008  exec 5>/dev/null
19009  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19010  exec 5>>auto/config.log
19011  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19012  # would make configure fail if this is the last instruction.
19013  $ac_cs_success || { (exit 1); exit 1; }
19014fi
19015if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19016  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19017$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19018fi
19019
19020
19021