1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# 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 Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator.  Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246  UNAME=${UNAME-`uname 2>/dev/null`}
247  case X$UNAME in
248    *-DOS) lt_cv_sys_path_separator=';' ;;
249    *)     lt_cv_sys_path_separator=':' ;;
250  esac
251fi
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case "X$ECHO" in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
298       echo_test_string="`eval $cmd`" &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
318  for dir in $PATH /usr/ucb; do
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running ltconfig again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME=
426PACKAGE_TARNAME=
427PACKAGE_VERSION=
428PACKAGE_STRING=
429PACKAGE_BUGREPORT=
430
431ac_unique_file="src/feature.h"
432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446#  include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451#  include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462#  include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBXVT MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS xvt_int16_typedef xvt_u_int16_typedef xvt_int32_typedef xvt_u_int32_typedef xvt_int64_typedef xvt_u_int64_typedef xvt_intp_define xvt_u_intp_define DEBUG DINCLUDE DLIB OBJLIST LIBOBJLIST XVTNAME include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h lib_multicharset LIBOBJS LTLIBOBJS'
470ac_subst_files='MCOMMON'
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
677  -program-transform-name | --program-transform-name \
678  | --program-transform-nam | --program-transform-na \
679  | --program-transform-n | --program-transform- \
680  | --program-transform | --program-transfor \
681  | --program-transfo | --program-transf \
682  | --program-trans | --program-tran \
683  | --progr-tra | --program-tr | --program-t)
684    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828              localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868         X"$0" : 'X\(//\)[^/]' \| \
869         X"$0" : 'X\(//\)$' \| \
870         X"$0" : 'X\(/\)' \| \
871         .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CC_set=${CC+set}
911ac_env_CC_value=$CC
912ac_cv_env_CC_set=${CC+set}
913ac_cv_env_CC_value=$CC
914ac_env_CFLAGS_set=${CFLAGS+set}
915ac_env_CFLAGS_value=$CFLAGS
916ac_cv_env_CFLAGS_set=${CFLAGS+set}
917ac_cv_env_CFLAGS_value=$CFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CPP_set=${CPP+set}
927ac_env_CPP_value=$CPP
928ac_cv_env_CPP_set=${CPP+set}
929ac_cv_env_CPP_value=$CPP
930
931#
932# Report the --help message.
933#
934if test "$ac_init_help" = "long"; then
935  # Omit some internal or obsolete options to make the list less imposing.
936  # This message is too long to be a string in the A/UX 3.1 sh.
937  cat <<_ACEOF
938\`configure' configures this package to adapt to many kinds of systems.
939
940Usage: $0 [OPTION]... [VAR=VALUE]...
941
942To assign environment variables (e.g., CC, CFLAGS...), specify them as
943VAR=VALUE.  See below for descriptions of some of the useful variables.
944
945Defaults for the options are specified in brackets.
946
947Configuration:
948  -h, --help              display this help and exit
949      --help=short        display options specific to this package
950      --help=recursive    display the short help of all the included packages
951  -V, --version           display version information and exit
952  -q, --quiet, --silent   do not print \`checking...' messages
953      --cache-file=FILE   cache test results in FILE [disabled]
954  -C, --config-cache      alias for \`--cache-file=config.cache'
955  -n, --no-create         do not create output files
956      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
957
958_ACEOF
959
960  cat <<_ACEOF
961Installation directories:
962  --prefix=PREFIX         install architecture-independent files in PREFIX
963                          [$ac_default_prefix]
964  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
965                          [PREFIX]
966
967By default, \`make install' will install all the files in
968\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
969an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970for instance \`--prefix=\$HOME'.
971
972For better control, use the options below.
973
974Fine tuning of the installation directories:
975  --bindir=DIR           user executables [EPREFIX/bin]
976  --sbindir=DIR          system admin executables [EPREFIX/sbin]
977  --libexecdir=DIR       program executables [EPREFIX/libexec]
978  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
979  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
980  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
981  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
982  --libdir=DIR           object code libraries [EPREFIX/lib]
983  --includedir=DIR       C header files [PREFIX/include]
984  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
985  --infodir=DIR          info documentation [PREFIX/info]
986  --mandir=DIR           man documentation [PREFIX/man]
987_ACEOF
988
989  cat <<\_ACEOF
990
991X features:
992  --x-includes=DIR    X include files are in DIR
993  --x-libraries=DIR   X library files are in DIR
994
995Program names:
996  --program-prefix=PREFIX            prepend PREFIX to installed program names
997  --program-suffix=SUFFIX            append SUFFIX to installed program names
998  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
1000System types:
1001  --build=BUILD     configure for building on BUILD [guessed]
1002  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003_ACEOF
1004fi
1005
1006if test -n "$ac_init_help"; then
1007
1008  cat <<\_ACEOF
1009
1010Optional Features:
1011  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1012  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1013  --enable-shared=PKGS  build shared libraries default=no
1014  --enable-static=PKGS  build static libraries default=yes
1015  --enable-fast-install=PKGS  optimize for fast installation default=yes
1016  --disable-libtool-lock  avoid locking (might break parallel builds)
1017  --enable-everything     enable standard non-multichoice features: marked *
1018                     NOTE: this option is order dependent
1019                     NOTE: automatically enabled with --enable-shared
1020  --enable-languages      enable multichar glyph language support
1021  --enable-utmp           enable utmp (utmpx) support                         *
1022  --enable-wtmp           enable wtmp (wtmpx) support (requires --enable-utmp)*
1023  --enable-lastlog        enable lastlog support (requires --enable-utmp)     *
1024  --enable-xpm-background enable XPM background pixmaps                       *
1025  --enable-transparency   enable transparent backgrounds                      *
1026  --enable-menubar        enable menubar                                      *
1027  --enable-graphics       enable xvt own graphics mode (see src/graphics)    *
1028  --enable-xvt-scroll    enable xvt style scrollbar                         *
1029  --enable-next-scroll    enable NeXT style scrollbar                         *
1030  --enable-xterm-scroll   enable Xterm style scrollbar                        *
1031  --enable-half-shadow    use half width/height shadow on xvt scrollbar
1032  --enable-xim            XIM (X Input Method) protocol support               *
1033  --enable-greek          enable greek keyboard support
1034  --enable-ttygid         enable tty setting to group named "tty"
1035  --disable-backspace-key disable handling of the backspace key
1036  --disable-delete-key    disable handling of the delete key
1037  --disable-resources     disable all resource checking
1038  --enable-xgetdefault    enable resources via X instead of our small version
1039  --enable-strings        enable some replacement system functions
1040  --disable-swapscreen    disable swap screen support
1041  --enable-frills         enable support for rarely used features             *
1042  --enable-linespace      enable support for linespace                        *
1043  --enable-24bit          enable support for using 24bit visuals if available *
1044  --enable-keepscrolling  enable continual scrolling on scrollbar arrow press *
1045  --enable-mousewheel     enable scrolling via mouse wheel or buttons 4 & 5   *
1046  --enable-slipwheeling   enable slip wheel scrolling     (requires previous) *
1047  --enable-old-selection  enable v2.20 (& prior) mouse selection style support*
1048  --disable-new-selection disable new mouse (xterm) selection style support
1049  --enable-dmalloc        enable Gray Watson's malloc - for debugging use
1050  --enable-dlmalloc       enable Doug Lea's malloc - for production use
1051                     NOTE: enable only one malloc package
1052  --enable-smart-resize   enable smart growth/shrink behaviour
1053  --enable-256-color      enable 256-color support
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1059  --with-pic              try to use only PIC/non-PIC objects default=use both
1060  --with-encoding=NAME    set language default encoding to NAME (default: sjis)
1061                          (eucj|sjis|big5|gb|kr|noenc)
1062  --with-term=NAME        set the terminal to NAME (default \"xterm\")
1063  --with-terminfo=PATH    set the path to the terminfo tree to PATH
1064  --with-x                use the X Window System
1065  --with-xpm-includes=DIR use XPM includes in DIR
1066  --with-xpm-library=DIR  use XPM library in DIR
1067  --with-xpm              use XPM
1068
1069Some influential environment variables:
1070  CC          C compiler command
1071  CFLAGS      C compiler flags
1072  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1073              nonstandard directory <lib dir>
1074  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075              headers in a nonstandard directory <include dir>
1076  CPP         C preprocessor
1077
1078Use these variables to override the choices made by `configure' or to help
1079it to find libraries and programs with nonstandard names/locations.
1080
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085  # If there are subdirs, report their specific --help.
1086  ac_popdir=`pwd`
1087  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088    test -d $ac_dir || continue
1089    ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093  # A "../" for each directory in $ac_dir_suffix.
1094  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096  ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100  .)  # No --srcdir option.  We are building in place.
1101    ac_srcdir=.
1102    if test -z "$ac_top_builddir"; then
1103       ac_top_srcdir=.
1104    else
1105       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106    fi ;;
1107  [\\/]* | ?:[\\/]* )  # Absolute path.
1108    ac_srcdir=$srcdir$ac_dir_suffix;
1109    ac_top_srcdir=$srcdir ;;
1110  *) # Relative path.
1111    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
1114# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1115# absolute.
1116ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1117ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1118ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1119ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1120
1121    cd $ac_dir
1122    # Check for guested configure; otherwise get Cygnus style configure.
1123    if test -f $ac_srcdir/configure.gnu; then
1124      echo
1125      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1126    elif test -f $ac_srcdir/configure; then
1127      echo
1128      $SHELL $ac_srcdir/configure  --help=recursive
1129    elif test -f $ac_srcdir/configure.ac ||
1130           test -f $ac_srcdir/configure.in; then
1131      echo
1132      $ac_configure --help
1133    else
1134      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135    fi
1136    cd $ac_popdir
1137  done
1138fi
1139
1140test -n "$ac_init_help" && exit 0
1141if $ac_init_version; then
1142  cat <<\_ACEOF
1143
1144Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1145Free Software Foundation, Inc.
1146This configure script is free software; the Free Software Foundation
1147gives unlimited permission to copy, distribute and modify it.
1148_ACEOF
1149  exit 0
1150fi
1151exec 5>config.log
1152cat >&5 <<_ACEOF
1153This file contains any messages produced by compilers while
1154running configure, to aid debugging if configure makes a mistake.
1155
1156It was created by $as_me, which was
1157generated by GNU Autoconf 2.57.  Invocation command line was
1158
1159  $ $0 $@
1160
1161_ACEOF
1162{
1163cat <<_ASUNAME
1164## --------- ##
1165## Platform. ##
1166## --------- ##
1167
1168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1176
1177/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1178/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1181/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1182/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1183/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1184
1185_ASUNAME
1186
1187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188for as_dir in $PATH
1189do
1190  IFS=$as_save_IFS
1191  test -z "$as_dir" && as_dir=.
1192  echo "PATH: $as_dir"
1193done
1194
1195} >&5
1196
1197cat >&5 <<_ACEOF
1198
1199
1200## ----------- ##
1201## Core tests. ##
1202## ----------- ##
1203
1204_ACEOF
1205
1206
1207# Keep a trace of the command line.
1208# Strip out --no-create and --no-recursion so they do not pile up.
1209# Strip out --silent because we don't want to record it for future runs.
1210# Also quote any args containing shell meta-characters.
1211# Make two passes to allow for proper duplicate-argument suppression.
1212ac_configure_args=
1213ac_configure_args0=
1214ac_configure_args1=
1215ac_sep=
1216ac_must_keep_next=false
1217for ac_pass in 1 2
1218do
1219  for ac_arg
1220  do
1221    case $ac_arg in
1222    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224    | -silent | --silent | --silen | --sile | --sil)
1225      continue ;;
1226    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228    esac
1229    case $ac_pass in
1230    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231    2)
1232      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233      if test $ac_must_keep_next = true; then
1234        ac_must_keep_next=false # Got value, back to normal.
1235      else
1236        case $ac_arg in
1237          *=* | --config-cache | -C | -disable-* | --disable-* \
1238          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240          | -with-* | --with-* | -without-* | --without-* | --x)
1241            case "$ac_configure_args0 " in
1242              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243            esac
1244            ;;
1245          -* ) ac_must_keep_next=true ;;
1246        esac
1247      fi
1248      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249      # Get rid of the leading space.
1250      ac_sep=" "
1251      ;;
1252    esac
1253  done
1254done
1255$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258# When interrupted or exit'd, cleanup temporary files, and complete
1259# config.log.  We remove comments because anyway the quotes in there
1260# would cause problems or look ugly.
1261# WARNING: Be sure not to use single quotes in there, as some shells,
1262# such as our DU 5.0 friend, will then `close' the trap.
1263trap 'exit_status=$?
1264  # Save into config.log some information that might help in debugging.
1265  {
1266    echo
1267
1268    cat <<\_ASBOX
1269## ---------------- ##
1270## Cache variables. ##
1271## ---------------- ##
1272_ASBOX
1273    echo
1274    # The following way of writing the cache mishandles newlines in values,
1275{
1276  (set) 2>&1 |
1277    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278    *ac_space=\ *)
1279      sed -n \
1280        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282      ;;
1283    *)
1284      sed -n \
1285        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286      ;;
1287    esac;
1288}
1289    echo
1290
1291    cat <<\_ASBOX
1292## ----------------- ##
1293## Output variables. ##
1294## ----------------- ##
1295_ASBOX
1296    echo
1297    for ac_var in $ac_subst_vars
1298    do
1299      eval ac_val=$`echo $ac_var`
1300      echo "$ac_var='"'"'$ac_val'"'"'"
1301    done | sort
1302    echo
1303
1304    if test -n "$ac_subst_files"; then
1305      cat <<\_ASBOX
1306## ------------- ##
1307## Output files. ##
1308## ------------- ##
1309_ASBOX
1310      echo
1311      for ac_var in $ac_subst_files
1312      do
1313	eval ac_val=$`echo $ac_var`
1314        echo "$ac_var='"'"'$ac_val'"'"'"
1315      done | sort
1316      echo
1317    fi
1318
1319    if test -s confdefs.h; then
1320      cat <<\_ASBOX
1321## ----------- ##
1322## confdefs.h. ##
1323## ----------- ##
1324_ASBOX
1325      echo
1326      sed "/^$/d" confdefs.h | sort
1327      echo
1328    fi
1329    test "$ac_signal" != 0 &&
1330      echo "$as_me: caught signal $ac_signal"
1331    echo "$as_me: exit $exit_status"
1332  } >&5
1333  rm -f core core.* *.core &&
1334  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335    exit $exit_status
1336     ' 0
1337for ac_signal in 1 2 13 15; do
1338  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339done
1340ac_signal=0
1341
1342# confdefs.h avoids OS command line length limits that DEFS can exceed.
1343rm -rf conftest* confdefs.h
1344# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345echo >confdefs.h
1346
1347# Predefined preprocessor variables.
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_NAME "$PACKAGE_NAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_VERSION "$PACKAGE_VERSION"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_STRING "$PACKAGE_STRING"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371_ACEOF
1372
1373
1374# Let the site file select an alternate cache file if it wants to.
1375# Prefer explicitly selected file to automatically selected ones.
1376if test -z "$CONFIG_SITE"; then
1377  if test "x$prefix" != xNONE; then
1378    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379  else
1380    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381  fi
1382fi
1383for ac_site_file in $CONFIG_SITE; do
1384  if test -r "$ac_site_file"; then
1385    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386echo "$as_me: loading site script $ac_site_file" >&6;}
1387    sed 's/^/| /' "$ac_site_file" >&5
1388    . "$ac_site_file"
1389  fi
1390done
1391
1392if test -r "$cache_file"; then
1393  # Some versions of bash will fail to source /dev/null (special
1394  # files actually), so we avoid doing that.
1395  if test -f "$cache_file"; then
1396    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397echo "$as_me: loading cache $cache_file" >&6;}
1398    case $cache_file in
1399      [\\/]* | ?:[\\/]* ) . $cache_file;;
1400      *)                      . ./$cache_file;;
1401    esac
1402  fi
1403else
1404  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405echo "$as_me: creating cache $cache_file" >&6;}
1406  >$cache_file
1407fi
1408
1409# Check that the precious variables saved in the cache have kept the same
1410# value.
1411ac_cache_corrupted=false
1412for ac_var in `(set) 2>&1 |
1413               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415  eval ac_new_set=\$ac_env_${ac_var}_set
1416  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417  eval ac_new_val="\$ac_env_${ac_var}_value"
1418  case $ac_old_set,$ac_new_set in
1419    set,)
1420      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422      ac_cache_corrupted=: ;;
1423    ,set)
1424      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426      ac_cache_corrupted=: ;;
1427    ,);;
1428    *)
1429      if test "x$ac_old_val" != "x$ac_new_val"; then
1430        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1433echo "$as_me:   former value:  $ac_old_val" >&2;}
1434        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1435echo "$as_me:   current value: $ac_new_val" >&2;}
1436        ac_cache_corrupted=:
1437      fi;;
1438  esac
1439  # Pass precious variables to config.status.
1440  if test "$ac_new_set" = set; then
1441    case $ac_new_val in
1442    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444    *) ac_arg=$ac_var=$ac_new_val ;;
1445    esac
1446    case " $ac_configure_args " in
1447      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1448      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449    esac
1450  fi
1451done
1452if $ac_cache_corrupted; then
1453  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457   { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484ac_aux_dir=
1485for ac_dir in autoconf $srcdir/autoconf; do
1486  if test -f $ac_dir/install-sh; then
1487    ac_aux_dir=$ac_dir
1488    ac_install_sh="$ac_aux_dir/install-sh -c"
1489    break
1490  elif test -f $ac_dir/install.sh; then
1491    ac_aux_dir=$ac_dir
1492    ac_install_sh="$ac_aux_dir/install.sh -c"
1493    break
1494  elif test -f $ac_dir/shtool; then
1495    ac_aux_dir=$ac_dir
1496    ac_install_sh="$ac_aux_dir/shtool install -c"
1497    break
1498  fi
1499done
1500if test -z "$ac_aux_dir"; then
1501  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1503   { (exit 1); exit 1; }; }
1504fi
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1508
1509          ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1510
1511
1512VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516echo ""
1517echo "configuring for xvt $VERSION"
1518echo ""
1519
1520
1521ac_ext=c
1522ac_cpp='$CPP $CPPFLAGS'
1523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526if test -n "$ac_tool_prefix"; then
1527  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529echo "$as_me:$LINENO: checking for $ac_word" >&5
1530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531if test "${ac_cv_prog_CC+set}" = set; then
1532  echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534  if test -n "$CC"; then
1535  ac_cv_prog_CC="$CC" # Let the user override the test.
1536else
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540  IFS=$as_save_IFS
1541  test -z "$as_dir" && as_dir=.
1542  for ac_exec_ext in '' $ac_executable_extensions; do
1543  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546    break 2
1547  fi
1548done
1549done
1550
1551fi
1552fi
1553CC=$ac_cv_prog_CC
1554if test -n "$CC"; then
1555  echo "$as_me:$LINENO: result: $CC" >&5
1556echo "${ECHO_T}$CC" >&6
1557else
1558  echo "$as_me:$LINENO: result: no" >&5
1559echo "${ECHO_T}no" >&6
1560fi
1561
1562fi
1563if test -z "$ac_cv_prog_CC"; then
1564  ac_ct_CC=$CC
1565  # Extract the first word of "gcc", so it can be a program name with args.
1566set dummy gcc; ac_word=$2
1567echo "$as_me:$LINENO: checking for $ac_word" >&5
1568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570  echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572  if test -n "$ac_ct_CC"; then
1573  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574else
1575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576for as_dir in $PATH
1577do
1578  IFS=$as_save_IFS
1579  test -z "$as_dir" && as_dir=.
1580  for ac_exec_ext in '' $ac_executable_extensions; do
1581  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582    ac_cv_prog_ac_ct_CC="gcc"
1583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584    break 2
1585  fi
1586done
1587done
1588
1589fi
1590fi
1591ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592if test -n "$ac_ct_CC"; then
1593  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594echo "${ECHO_T}$ac_ct_CC" >&6
1595else
1596  echo "$as_me:$LINENO: result: no" >&5
1597echo "${ECHO_T}no" >&6
1598fi
1599
1600  CC=$ac_ct_CC
1601else
1602  CC="$ac_cv_prog_CC"
1603fi
1604
1605if test -z "$CC"; then
1606  if test -n "$ac_tool_prefix"; then
1607  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}cc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612  echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614  if test -n "$CC"; then
1615  ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620  IFS=$as_save_IFS
1621  test -z "$as_dir" && as_dir=.
1622  for ac_exec_ext in '' $ac_executable_extensions; do
1623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624    ac_cv_prog_CC="${ac_tool_prefix}cc"
1625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626    break 2
1627  fi
1628done
1629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635  echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638  echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644  ac_ct_CC=$CC
1645  # Extract the first word of "cc", so it can be a program name with args.
1646set dummy cc; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650  echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652  if test -n "$ac_ct_CC"; then
1653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658  IFS=$as_save_IFS
1659  test -z "$as_dir" && as_dir=.
1660  for ac_exec_ext in '' $ac_executable_extensions; do
1661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662    ac_cv_prog_ac_ct_CC="cc"
1663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664    break 2
1665  fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680  CC=$ac_ct_CC
1681else
1682  CC="$ac_cv_prog_CC"
1683fi
1684
1685fi
1686if test -z "$CC"; then
1687  # Extract the first word of "cc", so it can be a program name with args.
1688set dummy cc; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692  echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694  if test -n "$CC"; then
1695  ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
1697  ac_prog_rejected=no
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701  IFS=$as_save_IFS
1702  test -z "$as_dir" && as_dir=.
1703  for ac_exec_ext in '' $ac_executable_extensions; do
1704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706       ac_prog_rejected=yes
1707       continue
1708     fi
1709    ac_cv_prog_CC="cc"
1710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711    break 2
1712  fi
1713done
1714done
1715
1716if test $ac_prog_rejected = yes; then
1717  # We found a bogon in the path, so make sure we never use it.
1718  set dummy $ac_cv_prog_CC
1719  shift
1720  if test $# != 0; then
1721    # We chose a different compiler from the bogus one.
1722    # However, it has the same basename, so the bogon will be chosen
1723    # first if we set CC to just the basename; use the full file name.
1724    shift
1725    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726  fi
1727fi
1728fi
1729fi
1730CC=$ac_cv_prog_CC
1731if test -n "$CC"; then
1732  echo "$as_me:$LINENO: result: $CC" >&5
1733echo "${ECHO_T}$CC" >&6
1734else
1735  echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739fi
1740if test -z "$CC"; then
1741  if test -n "$ac_tool_prefix"; then
1742  for ac_prog in cl
1743  do
1744    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_CC+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  if test -n "$CC"; then
1752  ac_cv_prog_CC="$CC" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  for ac_exec_ext in '' $ac_executable_extensions; do
1760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763    break 2
1764  fi
1765done
1766done
1767
1768fi
1769fi
1770CC=$ac_cv_prog_CC
1771if test -n "$CC"; then
1772  echo "$as_me:$LINENO: result: $CC" >&5
1773echo "${ECHO_T}$CC" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779    test -n "$CC" && break
1780  done
1781fi
1782if test -z "$CC"; then
1783  ac_ct_CC=$CC
1784  for ac_prog in cl
1785do
1786  # Extract the first word of "$ac_prog", so it can be a program name with args.
1787set dummy $ac_prog; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791  echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793  if test -n "$ac_ct_CC"; then
1794  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795else
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799  IFS=$as_save_IFS
1800  test -z "$as_dir" && as_dir=.
1801  for ac_exec_ext in '' $ac_executable_extensions; do
1802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803    ac_cv_prog_ac_ct_CC="$ac_prog"
1804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805    break 2
1806  fi
1807done
1808done
1809
1810fi
1811fi
1812ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813if test -n "$ac_ct_CC"; then
1814  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815echo "${ECHO_T}$ac_ct_CC" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821  test -n "$ac_ct_CC" && break
1822done
1823
1824  CC=$ac_ct_CC
1825fi
1826
1827fi
1828
1829
1830test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831See \`config.log' for more details." >&5
1832echo "$as_me: error: no acceptable C compiler found in \$PATH
1833See \`config.log' for more details." >&2;}
1834   { (exit 1); exit 1; }; }
1835
1836# Provide some information about the compiler.
1837echo "$as_me:$LINENO:" \
1838     "checking for C compiler version" >&5
1839ac_compiler=`set X $ac_compile; echo $2`
1840{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841  (eval $ac_compiler --version </dev/null >&5) 2>&5
1842  ac_status=$?
1843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844  (exit $ac_status); }
1845{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846  (eval $ac_compiler -v </dev/null >&5) 2>&5
1847  ac_status=$?
1848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849  (exit $ac_status); }
1850{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851  (eval $ac_compiler -V </dev/null >&5) 2>&5
1852  ac_status=$?
1853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854  (exit $ac_status); }
1855
1856cat >conftest.$ac_ext <<_ACEOF
1857#line $LINENO "configure"
1858/* confdefs.h.  */
1859_ACEOF
1860cat confdefs.h >>conftest.$ac_ext
1861cat >>conftest.$ac_ext <<_ACEOF
1862/* end confdefs.h.  */
1863
1864int
1865main ()
1866{
1867
1868  ;
1869  return 0;
1870}
1871_ACEOF
1872ac_clean_files_save=$ac_clean_files
1873ac_clean_files="$ac_clean_files a.out a.exe b.out"
1874# Try to create an executable without -o first, disregard a.out.
1875# It will help us diagnose broken compilers, and finding out an intuition
1876# of exeext.
1877echo "$as_me:$LINENO: checking for C compiler default output" >&5
1878echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1879ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1880if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1881  (eval $ac_link_default) 2>&5
1882  ac_status=$?
1883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884  (exit $ac_status); }; then
1885  # Find the output, starting from the most likely.  This scheme is
1886# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1887# resort.
1888
1889# Be careful to initialize this variable, since it used to be cached.
1890# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891ac_cv_exeext=
1892# b.out is created by i960 compilers.
1893for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894do
1895  test -f "$ac_file" || continue
1896  case $ac_file in
1897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1898        ;;
1899    conftest.$ac_ext )
1900        # This is the source file.
1901        ;;
1902    [ab].out )
1903        # We found the default executable, but exeext='' is most
1904        # certainly right.
1905        break;;
1906    *.* )
1907        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1908        # FIXME: I believe we export ac_cv_exeext for Libtool,
1909        # but it would be cool to find out if it's true.  Does anybody
1910        # maintain Libtool? --akim.
1911        export ac_cv_exeext
1912        break;;
1913    * )
1914        break;;
1915  esac
1916done
1917else
1918  echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1922See \`config.log' for more details." >&5
1923echo "$as_me: error: C compiler cannot create executables
1924See \`config.log' for more details." >&2;}
1925   { (exit 77); exit 77; }; }
1926fi
1927
1928ac_exeext=$ac_cv_exeext
1929echo "$as_me:$LINENO: result: $ac_file" >&5
1930echo "${ECHO_T}$ac_file" >&6
1931
1932# Check the compiler produces executables we can run.  If not, either
1933# the compiler is broken, or we cross compile.
1934echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1935echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1936# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1937# If not cross compiling, check that we can run a simple program.
1938if test "$cross_compiling" != yes; then
1939  if { ac_try='./$ac_file'
1940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941  (eval $ac_try) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }; }; then
1945    cross_compiling=no
1946  else
1947    if test "$cross_compiling" = maybe; then
1948	cross_compiling=yes
1949    else
1950	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1951If you meant to cross compile, use \`--host'.
1952See \`config.log' for more details." >&5
1953echo "$as_me: error: cannot run C compiled programs.
1954If you meant to cross compile, use \`--host'.
1955See \`config.log' for more details." >&2;}
1956   { (exit 1); exit 1; }; }
1957    fi
1958  fi
1959fi
1960echo "$as_me:$LINENO: result: yes" >&5
1961echo "${ECHO_T}yes" >&6
1962
1963rm -f a.out a.exe conftest$ac_cv_exeext b.out
1964ac_clean_files=$ac_clean_files_save
1965# Check the compiler produces executables we can run.  If not, either
1966# the compiler is broken, or we cross compile.
1967echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1968echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1969echo "$as_me:$LINENO: result: $cross_compiling" >&5
1970echo "${ECHO_T}$cross_compiling" >&6
1971
1972echo "$as_me:$LINENO: checking for suffix of executables" >&5
1973echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1975  (eval $ac_link) 2>&5
1976  ac_status=$?
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); }; then
1979  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1980# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1981# work properly (i.e., refer to `conftest.exe'), while it won't with
1982# `rm'.
1983for ac_file in conftest.exe conftest conftest.*; do
1984  test -f "$ac_file" || continue
1985  case $ac_file in
1986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1987    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988          export ac_cv_exeext
1989          break;;
1990    * ) break;;
1991  esac
1992done
1993else
1994  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1995See \`config.log' for more details." >&5
1996echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1997See \`config.log' for more details." >&2;}
1998   { (exit 1); exit 1; }; }
1999fi
2000
2001rm -f conftest$ac_cv_exeext
2002echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2003echo "${ECHO_T}$ac_cv_exeext" >&6
2004
2005rm -f conftest.$ac_ext
2006EXEEXT=$ac_cv_exeext
2007ac_exeext=$EXEEXT
2008echo "$as_me:$LINENO: checking for suffix of object files" >&5
2009echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2010if test "${ac_cv_objext+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  cat >conftest.$ac_ext <<_ACEOF
2014#line $LINENO "configure"
2015/* confdefs.h.  */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h.  */
2020
2021int
2022main ()
2023{
2024
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029rm -f conftest.o conftest.obj
2030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031  (eval $ac_compile) 2>&5
2032  ac_status=$?
2033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034  (exit $ac_status); }; then
2035  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036  case $ac_file in
2037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039       break;;
2040  esac
2041done
2042else
2043  echo "$as_me: failed program was:" >&5
2044sed 's/^/| /' conftest.$ac_ext >&5
2045
2046{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047See \`config.log' for more details." >&5
2048echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049See \`config.log' for more details." >&2;}
2050   { (exit 1); exit 1; }; }
2051fi
2052
2053rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054fi
2055echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056echo "${ECHO_T}$ac_cv_objext" >&6
2057OBJEXT=$ac_cv_objext
2058ac_objext=$OBJEXT
2059echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  cat >conftest.$ac_ext <<_ACEOF
2065#line $LINENO "configure"
2066/* confdefs.h.  */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h.  */
2071
2072int
2073main ()
2074{
2075#ifndef __GNUC__
2076       choke me
2077#endif
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085  (eval $ac_compile) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); } &&
2089         { ac_try='test -s conftest.$ac_objext'
2090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091  (eval $ac_try) 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }; }; then
2095  ac_compiler_gnu=yes
2096else
2097  echo "$as_me: failed program was:" >&5
2098sed 's/^/| /' conftest.$ac_ext >&5
2099
2100ac_compiler_gnu=no
2101fi
2102rm -f conftest.$ac_objext conftest.$ac_ext
2103ac_cv_c_compiler_gnu=$ac_compiler_gnu
2104
2105fi
2106echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2107echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2108GCC=`test $ac_compiler_gnu = yes && echo yes`
2109ac_test_CFLAGS=${CFLAGS+set}
2110ac_save_CFLAGS=$CFLAGS
2111CFLAGS="-g"
2112echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2113echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2114if test "${ac_cv_prog_cc_g+set}" = set; then
2115  echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117  cat >conftest.$ac_ext <<_ACEOF
2118#line $LINENO "configure"
2119/* confdefs.h.  */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h.  */
2124
2125int
2126main ()
2127{
2128
2129  ;
2130  return 0;
2131}
2132_ACEOF
2133rm -f conftest.$ac_objext
2134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135  (eval $ac_compile) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); } &&
2139         { ac_try='test -s conftest.$ac_objext'
2140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141  (eval $ac_try) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }; }; then
2145  ac_cv_prog_cc_g=yes
2146else
2147  echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150ac_cv_prog_cc_g=no
2151fi
2152rm -f conftest.$ac_objext conftest.$ac_ext
2153fi
2154echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2155echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2156if test "$ac_test_CFLAGS" = set; then
2157  CFLAGS=$ac_save_CFLAGS
2158elif test $ac_cv_prog_cc_g = yes; then
2159  if test "$GCC" = yes; then
2160    CFLAGS="-g -O2"
2161  else
2162    CFLAGS="-g"
2163  fi
2164else
2165  if test "$GCC" = yes; then
2166    CFLAGS="-O2"
2167  else
2168    CFLAGS=
2169  fi
2170fi
2171echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2172echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2173if test "${ac_cv_prog_cc_stdc+set}" = set; then
2174  echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176  ac_cv_prog_cc_stdc=no
2177ac_save_CC=$CC
2178cat >conftest.$ac_ext <<_ACEOF
2179#line $LINENO "configure"
2180/* confdefs.h.  */
2181_ACEOF
2182cat confdefs.h >>conftest.$ac_ext
2183cat >>conftest.$ac_ext <<_ACEOF
2184/* end confdefs.h.  */
2185#include <stdarg.h>
2186#include <stdio.h>
2187#include <sys/types.h>
2188#include <sys/stat.h>
2189/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2190struct buf { int x; };
2191FILE * (*rcsopen) (struct buf *, struct stat *, int);
2192static char *e (p, i)
2193     char **p;
2194     int i;
2195{
2196  return p[i];
2197}
2198static char *f (char * (*g) (char **, int), char **p, ...)
2199{
2200  char *s;
2201  va_list v;
2202  va_start (v,p);
2203  s = g (p, va_arg (v,int));
2204  va_end (v);
2205  return s;
2206}
2207int test (int i, double x);
2208struct s1 {int (*f) (int a);};
2209struct s2 {int (*f) (double a);};
2210int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2211int argc;
2212char **argv;
2213int
2214main ()
2215{
2216return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221# Don't try gcc -ansi; that turns off useful extensions and
2222# breaks some systems' header files.
2223# AIX			-qlanglvl=ansi
2224# Ultrix and OSF/1	-std1
2225# HP-UX 10.20 and later	-Ae
2226# HP-UX older versions	-Aa -D_HPUX_SOURCE
2227# SVR4			-Xc -D__EXTENSIONS__
2228for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2229do
2230  CC="$ac_save_CC $ac_arg"
2231  rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233  (eval $ac_compile) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); } &&
2237         { ac_try='test -s conftest.$ac_objext'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; }; then
2243  ac_cv_prog_cc_stdc=$ac_arg
2244break
2245else
2246  echo "$as_me: failed program was:" >&5
2247sed 's/^/| /' conftest.$ac_ext >&5
2248
2249fi
2250rm -f conftest.$ac_objext
2251done
2252rm -f conftest.$ac_ext conftest.$ac_objext
2253CC=$ac_save_CC
2254
2255fi
2256
2257case "x$ac_cv_prog_cc_stdc" in
2258  x|xno)
2259    echo "$as_me:$LINENO: result: none needed" >&5
2260echo "${ECHO_T}none needed" >&6 ;;
2261  *)
2262    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2263echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2264    CC="$CC $ac_cv_prog_cc_stdc" ;;
2265esac
2266
2267# Some people use a C++ compiler to compile C.  Since we use `exit',
2268# in C++ we need to declare it.  In case someone uses the same compiler
2269# for both compiling C and C++ we need to have the C++ compiler decide
2270# the declaration of exit, since it's the most demanding environment.
2271cat >conftest.$ac_ext <<_ACEOF
2272#ifndef __cplusplus
2273  choke me
2274#endif
2275_ACEOF
2276rm -f conftest.$ac_objext
2277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278  (eval $ac_compile) 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); } &&
2282         { ac_try='test -s conftest.$ac_objext'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; }; then
2288  for ac_declaration in \
2289   ''\
2290   '#include <stdlib.h>' \
2291   'extern "C" void std::exit (int) throw (); using std::exit;' \
2292   'extern "C" void std::exit (int); using std::exit;' \
2293   'extern "C" void exit (int) throw ();' \
2294   'extern "C" void exit (int);' \
2295   'void exit (int);'
2296do
2297  cat >conftest.$ac_ext <<_ACEOF
2298#line $LINENO "configure"
2299/* confdefs.h.  */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h.  */
2304#include <stdlib.h>
2305$ac_declaration
2306int
2307main ()
2308{
2309exit (42);
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316  (eval $ac_compile) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -s conftest.$ac_objext'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; }; then
2326  :
2327else
2328  echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331continue
2332fi
2333rm -f conftest.$ac_objext conftest.$ac_ext
2334  cat >conftest.$ac_ext <<_ACEOF
2335#line $LINENO "configure"
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341$ac_declaration
2342int
2343main ()
2344{
2345exit (42);
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352  (eval $ac_compile) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); } &&
2356         { ac_try='test -s conftest.$ac_objext'
2357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358  (eval $ac_try) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; }; then
2362  break
2363else
2364  echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367fi
2368rm -f conftest.$ac_objext conftest.$ac_ext
2369done
2370rm -f conftest*
2371if test -n "$ac_declaration"; then
2372  echo '#ifdef __cplusplus' >>confdefs.h
2373  echo $ac_declaration      >>confdefs.h
2374  echo '#endif'             >>confdefs.h
2375fi
2376
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.$ac_objext conftest.$ac_ext
2383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2395echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2396# On Suns, sometimes $CPP names a directory.
2397if test -n "$CPP" && test -d "$CPP"; then
2398  CPP=
2399fi
2400if test -z "$CPP"; then
2401  if test "${ac_cv_prog_CPP+set}" = set; then
2402  echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404      # Double quotes because CPP needs to be expanded
2405    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2406    do
2407      ac_preproc_ok=false
2408for ac_c_preproc_warn_flag in '' yes
2409do
2410  # Use a header file that comes with gcc, so configuring glibc
2411  # with a fresh cross-compiler works.
2412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2413  # <limits.h> exists even on freestanding compilers.
2414  # On the NeXT, cc -E runs the code through the compiler's parser,
2415  # not just through cpp. "Syntax error" is here to catch this case.
2416  cat >conftest.$ac_ext <<_ACEOF
2417#line $LINENO "configure"
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423#ifdef __STDC__
2424# include <limits.h>
2425#else
2426# include <assert.h>
2427#endif
2428                     Syntax error
2429_ACEOF
2430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } >/dev/null; then
2438  if test -s conftest.err; then
2439    ac_cpp_err=$ac_c_preproc_warn_flag
2440  else
2441    ac_cpp_err=
2442  fi
2443else
2444  ac_cpp_err=yes
2445fi
2446if test -z "$ac_cpp_err"; then
2447  :
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452  # Broken: fails on valid input.
2453continue
2454fi
2455rm -f conftest.err conftest.$ac_ext
2456
2457  # OK, works on sane cases.  Now check whether non-existent headers
2458  # can be detected and how.
2459  cat >conftest.$ac_ext <<_ACEOF
2460#line $LINENO "configure"
2461/* confdefs.h.  */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h.  */
2466#include <ac_nonexistent.h>
2467_ACEOF
2468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470  ac_status=$?
2471  grep -v '^ *+' conftest.er1 >conftest.err
2472  rm -f conftest.er1
2473  cat conftest.err >&5
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); } >/dev/null; then
2476  if test -s conftest.err; then
2477    ac_cpp_err=$ac_c_preproc_warn_flag
2478  else
2479    ac_cpp_err=
2480  fi
2481else
2482  ac_cpp_err=yes
2483fi
2484if test -z "$ac_cpp_err"; then
2485  # Broken: success on invalid input.
2486continue
2487else
2488  echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491  # Passes both tests.
2492ac_preproc_ok=:
2493break
2494fi
2495rm -f conftest.err conftest.$ac_ext
2496
2497done
2498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2499rm -f conftest.err conftest.$ac_ext
2500if $ac_preproc_ok; then
2501  break
2502fi
2503
2504    done
2505    ac_cv_prog_CPP=$CPP
2506
2507fi
2508  CPP=$ac_cv_prog_CPP
2509else
2510  ac_cv_prog_CPP=$CPP
2511fi
2512echo "$as_me:$LINENO: result: $CPP" >&5
2513echo "${ECHO_T}$CPP" >&6
2514ac_preproc_ok=false
2515for ac_c_preproc_warn_flag in '' yes
2516do
2517  # Use a header file that comes with gcc, so configuring glibc
2518  # with a fresh cross-compiler works.
2519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2520  # <limits.h> exists even on freestanding compilers.
2521  # On the NeXT, cc -E runs the code through the compiler's parser,
2522  # not just through cpp. "Syntax error" is here to catch this case.
2523  cat >conftest.$ac_ext <<_ACEOF
2524#line $LINENO "configure"
2525/* confdefs.h.  */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h.  */
2530#ifdef __STDC__
2531# include <limits.h>
2532#else
2533# include <assert.h>
2534#endif
2535                     Syntax error
2536_ACEOF
2537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } >/dev/null; then
2545  if test -s conftest.err; then
2546    ac_cpp_err=$ac_c_preproc_warn_flag
2547  else
2548    ac_cpp_err=
2549  fi
2550else
2551  ac_cpp_err=yes
2552fi
2553if test -z "$ac_cpp_err"; then
2554  :
2555else
2556  echo "$as_me: failed program was:" >&5
2557sed 's/^/| /' conftest.$ac_ext >&5
2558
2559  # Broken: fails on valid input.
2560continue
2561fi
2562rm -f conftest.err conftest.$ac_ext
2563
2564  # OK, works on sane cases.  Now check whether non-existent headers
2565  # can be detected and how.
2566  cat >conftest.$ac_ext <<_ACEOF
2567#line $LINENO "configure"
2568/* confdefs.h.  */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h.  */
2573#include <ac_nonexistent.h>
2574_ACEOF
2575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2577  ac_status=$?
2578  grep -v '^ *+' conftest.er1 >conftest.err
2579  rm -f conftest.er1
2580  cat conftest.err >&5
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); } >/dev/null; then
2583  if test -s conftest.err; then
2584    ac_cpp_err=$ac_c_preproc_warn_flag
2585  else
2586    ac_cpp_err=
2587  fi
2588else
2589  ac_cpp_err=yes
2590fi
2591if test -z "$ac_cpp_err"; then
2592  # Broken: success on invalid input.
2593continue
2594else
2595  echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598  # Passes both tests.
2599ac_preproc_ok=:
2600break
2601fi
2602rm -f conftest.err conftest.$ac_ext
2603
2604done
2605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2606rm -f conftest.err conftest.$ac_ext
2607if $ac_preproc_ok; then
2608  :
2609else
2610  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2611See \`config.log' for more details." >&5
2612echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2613See \`config.log' for more details." >&2;}
2614   { (exit 1); exit 1; }; }
2615fi
2616
2617ac_ext=c
2618ac_cpp='$CPP $CPPFLAGS'
2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623# Find a good install program.  We prefer a C program (faster),
2624# so one script is as good as another.  But avoid the broken or
2625# incompatible versions:
2626# SysV /etc/install, /usr/sbin/install
2627# SunOS /usr/etc/install
2628# IRIX /sbin/install
2629# AIX /bin/install
2630# AmigaOS /C/install, which installs bootblocks on floppy discs
2631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634# ./install, which can be erroneously created by make from ./install.sh.
2635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2637if test -z "$INSTALL"; then
2638if test "${ac_cv_path_install+set}" = set; then
2639  echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644  IFS=$as_save_IFS
2645  test -z "$as_dir" && as_dir=.
2646  # Account for people who put trailing slashes in PATH elements.
2647case $as_dir/ in
2648  ./ | .// | /cC/* | \
2649  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2650  /usr/ucb/* ) ;;
2651  *)
2652    # OSF1 and SCO ODT 3.0 have their own names for install.
2653    # Don't use installbsd from OSF since it installs stuff as root
2654    # by default.
2655    for ac_prog in ginstall scoinst install; do
2656      for ac_exec_ext in '' $ac_executable_extensions; do
2657        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2658          if test $ac_prog = install &&
2659            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660            # AIX install.  It has an incompatible calling convention.
2661            :
2662          elif test $ac_prog = install &&
2663            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664            # program-specific install script used by HP pwplus--don't use.
2665            :
2666          else
2667            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668            break 3
2669          fi
2670        fi
2671      done
2672    done
2673    ;;
2674esac
2675done
2676
2677
2678fi
2679  if test "${ac_cv_path_install+set}" = set; then
2680    INSTALL=$ac_cv_path_install
2681  else
2682    # As a last resort, use the slow shell script.  We don't cache a
2683    # path for INSTALL within a source directory, because that will
2684    # break other packages using the cache if that directory is
2685    # removed, or if the path is relative.
2686    INSTALL=$ac_install_sh
2687  fi
2688fi
2689echo "$as_me:$LINENO: result: $INSTALL" >&5
2690echo "${ECHO_T}$INSTALL" >&6
2691
2692# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2693# It thinks the first close brace ends the variable substitution.
2694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695
2696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697
2698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2699
2700for ac_prog in gawk mawk nawk awk
2701do
2702  # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
2704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  if test -n "$AWK"; then
2710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for ac_exec_ext in '' $ac_executable_extensions; do
2718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_AWK="$ac_prog"
2720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724done
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
2730  echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
2732else
2733  echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735fi
2736
2737  test -n "$AWK" && break
2738done
2739
2740
2741
2742
2743echo "$as_me:$LINENO: checking for egrep" >&5
2744echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2745if test "${ac_cv_prog_egrep+set}" = set; then
2746  echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2749    then ac_cv_prog_egrep='grep -E'
2750    else ac_cv_prog_egrep='egrep'
2751    fi
2752fi
2753echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2754echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2755 EGREP=$ac_cv_prog_egrep
2756
2757
2758
2759echo "$as_me:$LINENO: checking for AIX" >&5
2760echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2761cat >conftest.$ac_ext <<_ACEOF
2762#line $LINENO "configure"
2763/* confdefs.h.  */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h.  */
2768#ifdef _AIX
2769  yes
2770#endif
2771
2772_ACEOF
2773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774  $EGREP "yes" >/dev/null 2>&1; then
2775  echo "$as_me:$LINENO: result: yes" >&5
2776echo "${ECHO_T}yes" >&6
2777cat >>confdefs.h <<\_ACEOF
2778#define _ALL_SOURCE 1
2779_ACEOF
2780
2781else
2782  echo "$as_me:$LINENO: result: no" >&5
2783echo "${ECHO_T}no" >&6
2784fi
2785rm -f conftest*
2786
2787
2788echo "$as_me:$LINENO: checking for library containing strerror" >&5
2789echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2790if test "${ac_cv_search_strerror+set}" = set; then
2791  echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793  ac_func_search_save_LIBS=$LIBS
2794ac_cv_search_strerror=no
2795cat >conftest.$ac_ext <<_ACEOF
2796#line $LINENO "configure"
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803/* Override any gcc2 internal prototype to avoid an error.  */
2804#ifdef __cplusplus
2805extern "C"
2806#endif
2807/* We use char because int might match the return type of a gcc2
2808   builtin and then its argument prototype would still apply.  */
2809char strerror ();
2810int
2811main ()
2812{
2813strerror ();
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext conftest$ac_exeext
2819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820  (eval $ac_link) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } &&
2824         { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  ac_cv_search_strerror="none required"
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835fi
2836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2837if test "$ac_cv_search_strerror" = no; then
2838  for ac_lib in cposix; do
2839    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2840    cat >conftest.$ac_ext <<_ACEOF
2841#line $LINENO "configure"
2842/* confdefs.h.  */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h.  */
2847
2848/* Override any gcc2 internal prototype to avoid an error.  */
2849#ifdef __cplusplus
2850extern "C"
2851#endif
2852/* We use char because int might match the return type of a gcc2
2853   builtin and then its argument prototype would still apply.  */
2854char strerror ();
2855int
2856main ()
2857{
2858strerror ();
2859  ;
2860  return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext conftest$ac_exeext
2864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2865  (eval $ac_link) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); } &&
2869         { ac_try='test -s conftest$ac_exeext'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; }; then
2875  ac_cv_search_strerror="-l$ac_lib"
2876break
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881fi
2882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2883  done
2884fi
2885LIBS=$ac_func_search_save_LIBS
2886fi
2887echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2888echo "${ECHO_T}$ac_cv_search_strerror" >&6
2889if test "$ac_cv_search_strerror" != no; then
2890  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2891
2892fi
2893
2894
2895# Check whether --enable-shared or --disable-shared was given.
2896if test "${enable_shared+set}" = set; then
2897  enableval="$enable_shared"
2898  p=${PACKAGE-default}
2899case "$enableval" in
2900yes) enable_shared=yes ;;
2901no) enable_shared=no ;;
2902*)
2903  enable_shared=no
2904  # Look at the argument we got.  We use all the common list separators.
2905  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2906  for pkg in $enableval; do
2907    if test "X$pkg" = "X$p"; then
2908      enable_shared=yes
2909    fi
2910  done
2911  IFS="$ac_save_ifs"
2912  ;;
2913esac
2914else
2915  enable_shared=no
2916fi; # Check whether --enable-static or --disable-static was given.
2917if test "${enable_static+set}" = set; then
2918  enableval="$enable_static"
2919  p=${PACKAGE-default}
2920case "$enableval" in
2921yes) enable_static=yes ;;
2922no) enable_static=no ;;
2923*)
2924  enable_static=no
2925  # Look at the argument we got.  We use all the common list separators.
2926  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2927  for pkg in $enableval; do
2928    if test "X$pkg" = "X$p"; then
2929      enable_static=yes
2930    fi
2931  done
2932  IFS="$ac_save_ifs"
2933  ;;
2934esac
2935else
2936  enable_static=yes
2937fi; # Check whether --enable-fast-install or --disable-fast-install was given.
2938if test "${enable_fast_install+set}" = set; then
2939  enableval="$enable_fast_install"
2940  p=${PACKAGE-default}
2941case "$enableval" in
2942yes) enable_fast_install=yes ;;
2943no) enable_fast_install=no ;;
2944*)
2945  enable_fast_install=no
2946  # Look at the argument we got.  We use all the common list separators.
2947  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2948  for pkg in $enableval; do
2949    if test "X$pkg" = "X$p"; then
2950      enable_fast_install=yes
2951    fi
2952  done
2953  IFS="$ac_save_ifs"
2954  ;;
2955esac
2956else
2957  enable_fast_install=yes
2958fi;
2959# Make sure we can run config.sub.
2960$ac_config_sub sun4 >/dev/null 2>&1 ||
2961  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2962echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2963   { (exit 1); exit 1; }; }
2964
2965echo "$as_me:$LINENO: checking build system type" >&5
2966echo $ECHO_N "checking build system type... $ECHO_C" >&6
2967if test "${ac_cv_build+set}" = set; then
2968  echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970  ac_cv_build_alias=$build_alias
2971test -z "$ac_cv_build_alias" &&
2972  ac_cv_build_alias=`$ac_config_guess`
2973test -z "$ac_cv_build_alias" &&
2974  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2975echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2976   { (exit 1); exit 1; }; }
2977ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2978  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2979echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2980   { (exit 1); exit 1; }; }
2981
2982fi
2983echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2984echo "${ECHO_T}$ac_cv_build" >&6
2985build=$ac_cv_build
2986build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2987build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2988build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2989
2990
2991echo "$as_me:$LINENO: checking host system type" >&5
2992echo $ECHO_N "checking host system type... $ECHO_C" >&6
2993if test "${ac_cv_host+set}" = set; then
2994  echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996  ac_cv_host_alias=$host_alias
2997test -z "$ac_cv_host_alias" &&
2998  ac_cv_host_alias=$ac_cv_build_alias
2999ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3000  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3001echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3002   { (exit 1); exit 1; }; }
3003
3004fi
3005echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3006echo "${ECHO_T}$ac_cv_host" >&6
3007host=$ac_cv_host
3008host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3009host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3010host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3011
3012
3013
3014# Check whether --with-gnu-ld or --without-gnu-ld was given.
3015if test "${with_gnu_ld+set}" = set; then
3016  withval="$with_gnu_ld"
3017  test "$withval" = no || with_gnu_ld=yes
3018else
3019  with_gnu_ld=no
3020fi;
3021ac_prog=ld
3022if test "$GCC" = yes; then
3023  # Check if gcc -print-prog-name=ld gives a path.
3024  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3025echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3026  case $host in
3027  *-*-mingw*)
3028    # gcc leaves a trailing carriage return which upsets mingw
3029    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3030  *)
3031    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3032  esac
3033  case "$ac_prog" in
3034    # Accept absolute paths.
3035    [\\/]* | [A-Za-z]:[\\/]*)
3036      re_direlt='/[^/][^/]*/\.\./'
3037      # Canonicalize the path of ld
3038      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3039      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3040	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3041      done
3042      test -z "$LD" && LD="$ac_prog"
3043      ;;
3044  "")
3045    # If it fails, then pretend we aren't using GCC.
3046    ac_prog=ld
3047    ;;
3048  *)
3049    # If it is relative, then search for the first ld in PATH.
3050    with_gnu_ld=unknown
3051    ;;
3052  esac
3053elif test "$with_gnu_ld" = yes; then
3054  echo "$as_me:$LINENO: checking for GNU ld" >&5
3055echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3056else
3057  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3058echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3059fi
3060if test "${lt_cv_path_LD+set}" = set; then
3061  echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063  if test -z "$LD"; then
3064  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3065  for ac_dir in $PATH; do
3066    test -z "$ac_dir" && ac_dir=.
3067    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3068      lt_cv_path_LD="$ac_dir/$ac_prog"
3069      # Check to see if the program is GNU ld.  I'd rather use --version,
3070      # but apparently some GNU ld's only accept -v.
3071      # Break only if it was the GNU/non-GNU ld that we prefer.
3072      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3073	test "$with_gnu_ld" != no && break
3074      else
3075	test "$with_gnu_ld" != yes && break
3076      fi
3077    fi
3078  done
3079  IFS="$ac_save_ifs"
3080else
3081  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3082fi
3083fi
3084
3085LD="$lt_cv_path_LD"
3086if test -n "$LD"; then
3087  echo "$as_me:$LINENO: result: $LD" >&5
3088echo "${ECHO_T}$LD" >&6
3089else
3090  echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
3092fi
3093test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3094echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3095   { (exit 1); exit 1; }; }
3096echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3097echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3098if test "${lt_cv_prog_gnu_ld+set}" = set; then
3099  echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3102if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3103  lt_cv_prog_gnu_ld=yes
3104else
3105  lt_cv_prog_gnu_ld=no
3106fi
3107fi
3108echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3109echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3110with_gnu_ld=$lt_cv_prog_gnu_ld
3111
3112
3113echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3114echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3115if test "${lt_cv_ld_reload_flag+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118  lt_cv_ld_reload_flag='-r'
3119fi
3120echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3121echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3122reload_flag=$lt_cv_ld_reload_flag
3123test -n "$reload_flag" && reload_flag=" $reload_flag"
3124
3125echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3126echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3127if test "${lt_cv_path_NM+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  if test -n "$NM"; then
3131  # Let the user override the test.
3132  lt_cv_path_NM="$NM"
3133else
3134  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3135  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3136    test -z "$ac_dir" && ac_dir=.
3137    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3138    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3139      # Check to see if the nm accepts a BSD-compat flag.
3140      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3141      #   nm: unknown option "B" ignored
3142      # Tru64's nm complains that /dev/null is an invalid object file
3143      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3144	lt_cv_path_NM="$tmp_nm -B"
3145	break
3146      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3147	lt_cv_path_NM="$tmp_nm -p"
3148	break
3149      else
3150	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3151	continue # so that we can try to find one that supports BSD flags
3152      fi
3153    fi
3154  done
3155  IFS="$ac_save_ifs"
3156  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3157fi
3158fi
3159
3160NM="$lt_cv_path_NM"
3161echo "$as_me:$LINENO: result: $NM" >&5
3162echo "${ECHO_T}$NM" >&6
3163
3164echo "$as_me:$LINENO: checking whether ln -s works" >&5
3165echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3166LN_S=$as_ln_s
3167if test "$LN_S" = "ln -s"; then
3168  echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
3170else
3171  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3172echo "${ECHO_T}no, using $LN_S" >&6
3173fi
3174
3175echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3176echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3177if test "${lt_cv_deplibs_check_method+set}" = set; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  lt_cv_file_magic_cmd='$MAGIC_CMD'
3181lt_cv_file_magic_test_file=
3182lt_cv_deplibs_check_method='unknown'
3183# Need to set the preceding variable on all platforms that support
3184# interlibrary dependencies.
3185# 'none' -- dependencies not supported.
3186# `unknown' -- same as none, but documents that we really don't know.
3187# 'pass_all' -- all dependencies passed with no checks.
3188# 'test_compile' -- check by making test program.
3189# ['file_magic [regex]'] -- check by looking for files in library path
3190# which responds to the $file_magic_cmd with a given egrep regex.
3191# If you have `file' or equivalent on your system and you're not sure
3192# whether `pass_all' will *always* work, you probably want this one.
3193
3194case "$host_os" in
3195aix4*)
3196  lt_cv_deplibs_check_method=pass_all
3197  ;;
3198
3199beos*)
3200  lt_cv_deplibs_check_method=pass_all
3201  ;;
3202
3203bsdi4*)
3204  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3205  lt_cv_file_magic_cmd='/usr/bin/file -L'
3206  lt_cv_file_magic_test_file=/shlib/libc.so
3207  ;;
3208
3209cygwin* | mingw* | pw32*)
3210  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3211  lt_cv_file_magic_cmd='$OBJDUMP -f'
3212  ;;
3213
3214darwin*|rhapsody*)
3215  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3216  lt_cv_file_magiic_cmd=/usr/bin/file
3217  lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3218  ;;
3219
3220freebsd*)
3221  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3222    case "$host_cpu" in
3223    i*86 )
3224      # Not sure whether the presence of OpenBSD here was a mistake.
3225      # Let's accept both of them until this is cleared up.
3226      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3227      lt_cv_file_magic_cmd=/usr/bin/file
3228      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3229      ;;
3230    esac
3231  else
3232    lt_cv_deplibs_check_method=pass_all
3233  fi
3234  ;;
3235
3236gnu*)
3237  lt_cv_deplibs_check_method=pass_all
3238  ;;
3239
3240hpux10.20*|hpux11*)
3241  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3242  lt_cv_file_magic_cmd=/usr/bin/file
3243  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3244  ;;
3245
3246irix5* | irix6*)
3247  case "$host_os" in
3248  irix5*)
3249    # this will be overridden with pass_all, but let us keep it just in case
3250    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3251    ;;
3252  *)
3253    case "$LD" in
3254    *-32|*"-32 ") libmagic=32-bit;;
3255    *-n32|*"-n32 ") libmagic=N32;;
3256    *-64|*"-64 ") libmagic=64-bit;;
3257    *) libmagic=never-match;;
3258    esac
3259    # this will be overridden with pass_all, but let us keep it just in case
3260    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3261    ;;
3262  esac
3263  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3264  lt_cv_deplibs_check_method=pass_all
3265  ;;
3266
3267# This must be Linux ELF.
3268linux-gnu*)
3269  case "$host_cpu" in
3270  alpha* | i*86 | powerpc* | sparc* | ia64* )
3271    lt_cv_deplibs_check_method=pass_all ;;
3272  *)
3273    # glibc up to 2.1.1 does not perform some relocations on ARM
3274    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3275  esac
3276  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3277  ;;
3278
3279netbsd*)
3280  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3281    lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
3282  else
3283    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3284  fi
3285  lt_cv_file_magic_cmd='/usr/bin/file -L'
3286  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3287  ;;
3288
3289newos6*)
3290  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3291  lt_cv_file_magic_cmd=/usr/bin/file
3292  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3293  ;;
3294
3295osf3* | osf4* | osf5*)
3296  # this will be overridden with pass_all, but let us keep it just in case
3297  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3298  lt_cv_file_magic_test_file=/shlib/libc.so
3299  lt_cv_deplibs_check_method=pass_all
3300  ;;
3301
3302sco3.2v5*)
3303  lt_cv_deplibs_check_method=pass_all
3304  ;;
3305
3306solaris*)
3307  lt_cv_deplibs_check_method=pass_all
3308  lt_cv_file_magic_test_file=/lib/libc.so
3309  ;;
3310
3311sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3312  case "$host_vendor" in
3313  motorola)
3314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3315    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3316    ;;
3317  ncr)
3318    lt_cv_deplibs_check_method=pass_all
3319    ;;
3320  sequent)
3321    lt_cv_file_magic_cmd='/bin/file'
3322    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3323    ;;
3324  sni)
3325    lt_cv_file_magic_cmd='/bin/file'
3326    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3327    lt_cv_file_magic_test_file=/lib/libc.so
3328    ;;
3329  esac
3330  ;;
3331esac
3332
3333fi
3334echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3335echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3336file_magic_cmd=$lt_cv_file_magic_cmd
3337deplibs_check_method=$lt_cv_deplibs_check_method
3338
3339
3340
3341
3342
3343
3344
3345# Check for command to grab the raw symbol name followed by C symbol from nm.
3346echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3347echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3348if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3349  echo $ECHO_N "(cached) $ECHO_C" >&6
3350else
3351
3352# These are sane defaults that work on at least a few old systems.
3353# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3354
3355# Character class describing NM global symbol codes.
3356symcode='[BCDEGRST]'
3357
3358# Regexp to match symbols that can be accessed directly from C.
3359sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3360
3361# Transform the above into a raw symbol and a C symbol.
3362symxfrm='\1 \2\3 \3'
3363
3364# Transform an extracted symbol line into a proper C declaration
3365lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3366
3367# Define system-specific variables.
3368case "$host_os" in
3369aix*)
3370  symcode='[BCDT]'
3371  ;;
3372cygwin* | mingw* | pw32*)
3373  symcode='[ABCDGISTW]'
3374  ;;
3375hpux*) # Its linker distinguishes data from code symbols
3376  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
3377  ;;
3378irix*)
3379  symcode='[BCDEGRST]'
3380  ;;
3381solaris* | sysv5*)
3382  symcode='[BDT]'
3383  ;;
3384sysv4)
3385  symcode='[DFNSTU]'
3386  ;;
3387esac
3388
3389# Handle CRLF in mingw tool chain
3390opt_cr=
3391case "$host_os" in
3392mingw*)
3393  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3394  ;;
3395esac
3396
3397# If we're using GNU nm, then use its standard symbol codes.
3398if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3399  symcode='[ABCDGISTW]'
3400fi
3401
3402# Try without a prefix undercore, then with it.
3403for ac_symprfx in "" "_"; do
3404
3405  # Write the raw and C identifiers.
3406lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3407
3408  # Check to see that the pipe works correctly.
3409  pipe_works=no
3410  rm -f conftest*
3411  cat > conftest.$ac_ext <<EOF
3412#ifdef __cplusplus
3413extern "C" {
3414#endif
3415char nm_test_var;
3416void nm_test_func(){}
3417#ifdef __cplusplus
3418}
3419#endif
3420main(){nm_test_var='a';nm_test_func();return(0);}
3421EOF
3422
3423  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424  (eval $ac_compile) 2>&5
3425  ac_status=$?
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); }; then
3428    # Now try to grab the symbols.
3429    nlist=conftest.nm
3430    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3431  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3432  ac_status=$?
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } && test -s "$nlist"; then
3435      # Try sorting and uniquifying the output.
3436      if sort "$nlist" | uniq > "$nlist"T; then
3437	mv -f "$nlist"T "$nlist"
3438      else
3439	rm -f "$nlist"T
3440      fi
3441
3442      # Make sure that we snagged all the symbols we need.
3443      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3444	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3445	  cat <<EOF > conftest.$ac_ext
3446#ifdef __cplusplus
3447extern "C" {
3448#endif
3449
3450EOF
3451	  # Now generate the symbol file.
3452	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3453
3454	  cat <<EOF >> conftest.$ac_ext
3455#if defined (__STDC__) && __STDC__
3456# define lt_ptr_t void *
3457#else
3458# define lt_ptr_t char *
3459# define const
3460#endif
3461
3462/* The mapping between symbol names and symbols. */
3463const struct {
3464  const char *name;
3465  lt_ptr_t address;
3466}
3467lt_preloaded_symbols[] =
3468{
3469EOF
3470	  sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
3471	  cat <<\EOF >> conftest.$ac_ext
3472  {0, (lt_ptr_t) 0}
3473};
3474
3475#ifdef __cplusplus
3476}
3477#endif
3478EOF
3479	  # Now try linking the two files.
3480	  mv conftest.$ac_objext conftstm.$ac_objext
3481	  save_LIBS="$LIBS"
3482	  save_CFLAGS="$CFLAGS"
3483	  LIBS="conftstm.$ac_objext"
3484	  CFLAGS="$CFLAGS$no_builtin_flag"
3485	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486  (eval $ac_link) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); } && test -s conftest; then
3490	    pipe_works=yes
3491	  fi
3492	  LIBS="$save_LIBS"
3493	  CFLAGS="$save_CFLAGS"
3494	else
3495	  echo "cannot find nm_test_func in $nlist" >&5
3496	fi
3497      else
3498	echo "cannot find nm_test_var in $nlist" >&5
3499      fi
3500    else
3501      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3502    fi
3503  else
3504    echo "$progname: failed program was:" >&5
3505    cat conftest.$ac_ext >&5
3506  fi
3507  rm -f conftest* conftst*
3508
3509  # Do not use the global_symbol_pipe unless it works.
3510  if test "$pipe_works" = yes; then
3511    break
3512  else
3513    lt_cv_sys_global_symbol_pipe=
3514  fi
3515done
3516
3517fi
3518
3519global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3520if test -z "$lt_cv_sys_global_symbol_pipe"; then
3521  global_symbol_to_cdecl=
3522else
3523  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3524fi
3525if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3526  echo "$as_me:$LINENO: result: failed" >&5
3527echo "${ECHO_T}failed" >&6
3528else
3529  echo "$as_me:$LINENO: result: ok" >&5
3530echo "${ECHO_T}ok" >&6
3531fi
3532
3533echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3534echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3535if test "${ac_cv_header_stdc+set}" = set; then
3536  echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538  cat >conftest.$ac_ext <<_ACEOF
3539#line $LINENO "configure"
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#include <stdlib.h>
3546#include <stdarg.h>
3547#include <string.h>
3548#include <float.h>
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560  (eval $ac_compile) 2>&5
3561  ac_status=$?
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); } &&
3564         { ac_try='test -s conftest.$ac_objext'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; }; then
3570  ac_cv_header_stdc=yes
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575ac_cv_header_stdc=no
3576fi
3577rm -f conftest.$ac_objext conftest.$ac_ext
3578
3579if test $ac_cv_header_stdc = yes; then
3580  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3581  cat >conftest.$ac_ext <<_ACEOF
3582#line $LINENO "configure"
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <string.h>
3589
3590_ACEOF
3591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3592  $EGREP "memchr" >/dev/null 2>&1; then
3593  :
3594else
3595  ac_cv_header_stdc=no
3596fi
3597rm -f conftest*
3598
3599fi
3600
3601if test $ac_cv_header_stdc = yes; then
3602  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3603  cat >conftest.$ac_ext <<_ACEOF
3604#line $LINENO "configure"
3605/* confdefs.h.  */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h.  */
3610#include <stdlib.h>
3611
3612_ACEOF
3613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614  $EGREP "free" >/dev/null 2>&1; then
3615  :
3616else
3617  ac_cv_header_stdc=no
3618fi
3619rm -f conftest*
3620
3621fi
3622
3623if test $ac_cv_header_stdc = yes; then
3624  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3625  if test "$cross_compiling" = yes; then
3626  :
3627else
3628  cat >conftest.$ac_ext <<_ACEOF
3629#line $LINENO "configure"
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635#include <ctype.h>
3636#if ((' ' & 0x0FF) == 0x020)
3637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3639#else
3640# define ISLOWER(c) \
3641                   (('a' <= (c) && (c) <= 'i') \
3642                     || ('j' <= (c) && (c) <= 'r') \
3643                     || ('s' <= (c) && (c) <= 'z'))
3644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3645#endif
3646
3647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648int
3649main ()
3650{
3651  int i;
3652  for (i = 0; i < 256; i++)
3653    if (XOR (islower (i), ISLOWER (i))
3654        || toupper (i) != TOUPPER (i))
3655      exit(2);
3656  exit (0);
3657}
3658_ACEOF
3659rm -f conftest$ac_exeext
3660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661  (eval $ac_link) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; }; then
3670  :
3671else
3672  echo "$as_me: program exited with status $ac_status" >&5
3673echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676( exit $ac_status )
3677ac_cv_header_stdc=no
3678fi
3679rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3680fi
3681fi
3682fi
3683echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3684echo "${ECHO_T}$ac_cv_header_stdc" >&6
3685if test $ac_cv_header_stdc = yes; then
3686
3687cat >>confdefs.h <<\_ACEOF
3688#define STDC_HEADERS 1
3689_ACEOF
3690
3691fi
3692
3693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3704                  inttypes.h stdint.h unistd.h
3705do
3706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707echo "$as_me:$LINENO: checking for $ac_header" >&5
3708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3709if eval "test \"\${$as_ac_Header+set}\" = set"; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  cat >conftest.$ac_ext <<_ACEOF
3713#line $LINENO "configure"
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719$ac_includes_default
3720
3721#include <$ac_header>
3722_ACEOF
3723rm -f conftest.$ac_objext
3724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725  (eval $ac_compile) 2>&5
3726  ac_status=$?
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); } &&
3729         { ac_try='test -s conftest.$ac_objext'
3730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731  (eval $ac_try) 2>&5
3732  ac_status=$?
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); }; }; then
3735  eval "$as_ac_Header=yes"
3736else
3737  echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740eval "$as_ac_Header=no"
3741fi
3742rm -f conftest.$ac_objext conftest.$ac_ext
3743fi
3744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3746if test `eval echo '${'$as_ac_Header'}'` = yes; then
3747  cat >>confdefs.h <<_ACEOF
3748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3749_ACEOF
3750
3751fi
3752
3753done
3754
3755
3756
3757for ac_header in dlfcn.h
3758do
3759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761  echo "$as_me:$LINENO: checking for $ac_header" >&5
3762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764  echo $ECHO_N "(cached) $ECHO_C" >&6
3765fi
3766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3768else
3769  # Is the header compilable?
3770echo "$as_me:$LINENO: checking $ac_header usability" >&5
3771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3772cat >conftest.$ac_ext <<_ACEOF
3773#line $LINENO "configure"
3774/* confdefs.h.  */
3775_ACEOF
3776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h.  */
3779$ac_includes_default
3780#include <$ac_header>
3781_ACEOF
3782rm -f conftest.$ac_objext
3783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784  (eval $ac_compile) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); } &&
3788         { ac_try='test -s conftest.$ac_objext'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; }; then
3794  ac_header_compiler=yes
3795else
3796  echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799ac_header_compiler=no
3800fi
3801rm -f conftest.$ac_objext conftest.$ac_ext
3802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3803echo "${ECHO_T}$ac_header_compiler" >&6
3804
3805# Is the header present?
3806echo "$as_me:$LINENO: checking $ac_header presence" >&5
3807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3808cat >conftest.$ac_ext <<_ACEOF
3809#line $LINENO "configure"
3810/* confdefs.h.  */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h.  */
3815#include <$ac_header>
3816_ACEOF
3817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } >/dev/null; then
3825  if test -s conftest.err; then
3826    ac_cpp_err=$ac_c_preproc_warn_flag
3827  else
3828    ac_cpp_err=
3829  fi
3830else
3831  ac_cpp_err=yes
3832fi
3833if test -z "$ac_cpp_err"; then
3834  ac_header_preproc=yes
3835else
3836  echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839  ac_header_preproc=no
3840fi
3841rm -f conftest.err conftest.$ac_ext
3842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3843echo "${ECHO_T}$ac_header_preproc" >&6
3844
3845# So?  What about this header?
3846case $ac_header_compiler:$ac_header_preproc in
3847  yes:no )
3848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3852    (
3853      cat <<\_ASBOX
3854## ------------------------------------ ##
3855## Report this to bug-autoconf@gnu.org. ##
3856## ------------------------------------ ##
3857_ASBOX
3858    ) |
3859      sed "s/^/$as_me: WARNING:     /" >&2
3860    ;;
3861  no:yes )
3862    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3864    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3868    (
3869      cat <<\_ASBOX
3870## ------------------------------------ ##
3871## Report this to bug-autoconf@gnu.org. ##
3872## ------------------------------------ ##
3873_ASBOX
3874    ) |
3875      sed "s/^/$as_me: WARNING:     /" >&2
3876    ;;
3877esac
3878echo "$as_me:$LINENO: checking for $ac_header" >&5
3879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3880if eval "test \"\${$as_ac_Header+set}\" = set"; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883  eval "$as_ac_Header=$ac_header_preproc"
3884fi
3885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3887
3888fi
3889if test `eval echo '${'$as_ac_Header'}'` = yes; then
3890  cat >>confdefs.h <<_ACEOF
3891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3892_ACEOF
3893
3894fi
3895
3896done
3897
3898
3899
3900
3901
3902# Only perform the check for file, if the check method requires it
3903case "$deplibs_check_method" in
3904file_magic*)
3905  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3906    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3907echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3908if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3909  echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911  case "$MAGIC_CMD" in
3912  /*)
3913  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3914  ;;
3915  ?:/*)
3916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3917  ;;
3918  *)
3919  ac_save_MAGIC_CMD="$MAGIC_CMD"
3920  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3921  ac_dummy="/usr/bin:$PATH"
3922  for ac_dir in $ac_dummy; do
3923    test -z "$ac_dir" && ac_dir=.
3924    if test -f $ac_dir/${ac_tool_prefix}file; then
3925      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3926      if test -n "$file_magic_test_file"; then
3927	case "$deplibs_check_method" in
3928	"file_magic "*)
3929	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3930	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3931	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3932	    egrep "$file_magic_regex" > /dev/null; then
3933	    :
3934	  else
3935	    cat <<EOF 1>&2
3936
3937*** Warning: the command libtool uses to detect shared libraries,
3938*** $file_magic_cmd, produces output that libtool cannot recognize.
3939*** The result is that libtool may fail to recognize shared libraries
3940*** as such.  This will affect the creation of libtool libraries that
3941*** depend on shared libraries, but programs linked with such libtool
3942*** libraries will work regardless of this problem.  Nevertheless, you
3943*** may want to report the problem to your system manager and/or to
3944*** bug-libtool@gnu.org
3945
3946EOF
3947	  fi ;;
3948	esac
3949      fi
3950      break
3951    fi
3952  done
3953  IFS="$ac_save_ifs"
3954  MAGIC_CMD="$ac_save_MAGIC_CMD"
3955  ;;
3956esac
3957fi
3958
3959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3960if test -n "$MAGIC_CMD"; then
3961  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3962echo "${ECHO_T}$MAGIC_CMD" >&6
3963else
3964  echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
3966fi
3967
3968if test -z "$lt_cv_path_MAGIC_CMD"; then
3969  if test -n "$ac_tool_prefix"; then
3970    echo "$as_me:$LINENO: checking for file" >&5
3971echo $ECHO_N "checking for file... $ECHO_C" >&6
3972if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3973  echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975  case "$MAGIC_CMD" in
3976  /*)
3977  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3978  ;;
3979  ?:/*)
3980  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3981  ;;
3982  *)
3983  ac_save_MAGIC_CMD="$MAGIC_CMD"
3984  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3985  ac_dummy="/usr/bin:$PATH"
3986  for ac_dir in $ac_dummy; do
3987    test -z "$ac_dir" && ac_dir=.
3988    if test -f $ac_dir/file; then
3989      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3990      if test -n "$file_magic_test_file"; then
3991	case "$deplibs_check_method" in
3992	"file_magic "*)
3993	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3994	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3995	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3996	    egrep "$file_magic_regex" > /dev/null; then
3997	    :
3998	  else
3999	    cat <<EOF 1>&2
4000
4001*** Warning: the command libtool uses to detect shared libraries,
4002*** $file_magic_cmd, produces output that libtool cannot recognize.
4003*** The result is that libtool may fail to recognize shared libraries
4004*** as such.  This will affect the creation of libtool libraries that
4005*** depend on shared libraries, but programs linked with such libtool
4006*** libraries will work regardless of this problem.  Nevertheless, you
4007*** may want to report the problem to your system manager and/or to
4008*** bug-libtool@gnu.org
4009
4010EOF
4011	  fi ;;
4012	esac
4013      fi
4014      break
4015    fi
4016  done
4017  IFS="$ac_save_ifs"
4018  MAGIC_CMD="$ac_save_MAGIC_CMD"
4019  ;;
4020esac
4021fi
4022
4023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4024if test -n "$MAGIC_CMD"; then
4025  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4026echo "${ECHO_T}$MAGIC_CMD" >&6
4027else
4028  echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
4030fi
4031
4032  else
4033    MAGIC_CMD=:
4034  fi
4035fi
4036
4037  fi
4038  ;;
4039esac
4040
4041if test -n "$ac_tool_prefix"; then
4042  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4043set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4044echo "$as_me:$LINENO: checking for $ac_word" >&5
4045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046if test "${ac_cv_prog_RANLIB+set}" = set; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049  if test -n "$RANLIB"; then
4050  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055  IFS=$as_save_IFS
4056  test -z "$as_dir" && as_dir=.
4057  for ac_exec_ext in '' $ac_executable_extensions; do
4058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061    break 2
4062  fi
4063done
4064done
4065
4066fi
4067fi
4068RANLIB=$ac_cv_prog_RANLIB
4069if test -n "$RANLIB"; then
4070  echo "$as_me:$LINENO: result: $RANLIB" >&5
4071echo "${ECHO_T}$RANLIB" >&6
4072else
4073  echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075fi
4076
4077fi
4078if test -z "$ac_cv_prog_RANLIB"; then
4079  ac_ct_RANLIB=$RANLIB
4080  # Extract the first word of "ranlib", so it can be a program name with args.
4081set dummy ranlib; ac_word=$2
4082echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  if test -n "$ac_ct_RANLIB"; then
4088  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095  for ac_exec_ext in '' $ac_executable_extensions; do
4096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097    ac_cv_prog_ac_ct_RANLIB="ranlib"
4098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102done
4103
4104  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4105fi
4106fi
4107ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4108if test -n "$ac_ct_RANLIB"; then
4109  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4110echo "${ECHO_T}$ac_ct_RANLIB" >&6
4111else
4112  echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114fi
4115
4116  RANLIB=$ac_ct_RANLIB
4117else
4118  RANLIB="$ac_cv_prog_RANLIB"
4119fi
4120
4121if test -n "$ac_tool_prefix"; then
4122  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4123set dummy ${ac_tool_prefix}strip; ac_word=$2
4124echo "$as_me:$LINENO: checking for $ac_word" >&5
4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126if test "${ac_cv_prog_STRIP+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  if test -n "$STRIP"; then
4130  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4131else
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135  IFS=$as_save_IFS
4136  test -z "$as_dir" && as_dir=.
4137  for ac_exec_ext in '' $ac_executable_extensions; do
4138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141    break 2
4142  fi
4143done
4144done
4145
4146fi
4147fi
4148STRIP=$ac_cv_prog_STRIP
4149if test -n "$STRIP"; then
4150  echo "$as_me:$LINENO: result: $STRIP" >&5
4151echo "${ECHO_T}$STRIP" >&6
4152else
4153  echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156
4157fi
4158if test -z "$ac_cv_prog_STRIP"; then
4159  ac_ct_STRIP=$STRIP
4160  # Extract the first word of "strip", so it can be a program name with args.
4161set dummy strip; ac_word=$2
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4165  echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167  if test -n "$ac_ct_STRIP"; then
4168  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175  for ac_exec_ext in '' $ac_executable_extensions; do
4176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177    ac_cv_prog_ac_ct_STRIP="strip"
4178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182done
4183
4184  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4185fi
4186fi
4187ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4188if test -n "$ac_ct_STRIP"; then
4189  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4190echo "${ECHO_T}$ac_ct_STRIP" >&6
4191else
4192  echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194fi
4195
4196  STRIP=$ac_ct_STRIP
4197else
4198  STRIP="$ac_cv_prog_STRIP"
4199fi
4200
4201
4202enable_dlopen=no
4203enable_win32_dll=no
4204
4205# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4206if test "${enable_libtool_lock+set}" = set; then
4207  enableval="$enable_libtool_lock"
4208
4209fi;
4210test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4211
4212# Some flags need to be propagated to the compiler or linker for good
4213# libtool support.
4214case "$host" in
4215*-*-irix6*)
4216  # Find out which ABI we are using.
4217  echo '#line 4217 "configure"' > conftest.$ac_ext
4218  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219  (eval $ac_compile) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }; then
4223    case "`/usr/bin/file conftest.$ac_objext`" in
4224    *32-bit*)
4225      LD="${LD-ld} -32"
4226      ;;
4227    *N32*)
4228      LD="${LD-ld} -n32"
4229      ;;
4230    *64-bit*)
4231      LD="${LD-ld} -64"
4232      ;;
4233    esac
4234  fi
4235  rm -rf conftest*
4236  ;;
4237
4238*-*-sco3.2v5*)
4239  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4240  SAVE_CFLAGS="$CFLAGS"
4241  CFLAGS="$CFLAGS -belf"
4242  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4243echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4244if test "${lt_cv_cc_needs_belf+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247
4248
4249     ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255     cat >conftest.$ac_ext <<_ACEOF
4256#line $LINENO "configure"
4257/* confdefs.h.  */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h.  */
4262
4263int
4264main ()
4265{
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext conftest$ac_exeext
4272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273  (eval $ac_link) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } &&
4277         { ac_try='test -s conftest$ac_exeext'
4278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279  (eval $ac_try) 2>&5
4280  ac_status=$?
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); }; }; then
4283  lt_cv_cc_needs_belf=yes
4284else
4285  echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288lt_cv_cc_needs_belf=no
4289fi
4290rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4291     ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297fi
4298echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4299echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4300  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4301    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4302    CFLAGS="$SAVE_CFLAGS"
4303  fi
4304  ;;
4305
4306
4307esac
4308
4309# Sed substitution that helps us do robust quoting.  It backslashifies
4310# metacharacters that are still active within double-quoted strings.
4311Xsed='sed -e s/^X//'
4312sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4313
4314# Same as above, but do not quote variable references.
4315double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4316
4317# Sed substitution to delay expansion of an escaped shell variable in a
4318# double_quote_subst'ed string.
4319delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4320
4321# Constants:
4322rm="rm -f"
4323
4324# Global variables:
4325default_ofile=libtool
4326can_build_shared=yes
4327
4328# All known linkers require a `.a' archive for static linking (except M$VC,
4329# which needs '.lib').
4330libext=a
4331ltmain="$ac_aux_dir/ltmain.sh"
4332ofile="$default_ofile"
4333with_gnu_ld="$lt_cv_prog_gnu_ld"
4334need_locks="$enable_libtool_lock"
4335
4336old_CC="$CC"
4337old_CFLAGS="$CFLAGS"
4338
4339# Set sane defaults for various variables
4340test -z "$AR" && AR=ar
4341test -z "$AR_FLAGS" && AR_FLAGS=cru
4342test -z "$AS" && AS=as
4343test -z "$CC" && CC=cc
4344test -z "$DLLTOOL" && DLLTOOL=dlltool
4345test -z "$LD" && LD=ld
4346test -z "$LN_S" && LN_S="ln -s"
4347test -z "$MAGIC_CMD" && MAGIC_CMD=file
4348test -z "$NM" && NM=nm
4349test -z "$OBJDUMP" && OBJDUMP=objdump
4350test -z "$RANLIB" && RANLIB=:
4351test -z "$STRIP" && STRIP=:
4352test -z "$ac_objext" && ac_objext=o
4353
4354if test x"$host" != x"$build"; then
4355  ac_tool_prefix=${host_alias}-
4356else
4357  ac_tool_prefix=
4358fi
4359
4360# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4361case "$host_os" in
4362linux-gnu*) ;;
4363linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4364esac
4365
4366case "$host_os" in
4367aix3*)
4368  # AIX sometimes has problems with the GCC collect2 program.  For some
4369  # reason, if we set the COLLECT_NAMES environment variable, the problems
4370  # vanish in a puff of smoke.
4371  if test "X${COLLECT_NAMES+set}" != Xset; then
4372    COLLECT_NAMES=
4373    export COLLECT_NAMES
4374  fi
4375  ;;
4376esac
4377
4378# Determine commands to create old-style static archives.
4379old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4380old_postinstall_cmds='chmod 644 $oldlib'
4381old_postuninstall_cmds=
4382
4383if test -n "$RANLIB"; then
4384  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4385  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4386fi
4387
4388# Allow CC to be a program name with arguments.
4389set dummy $CC
4390compiler="$2"
4391
4392## FIXME: this should be a separate macro
4393##
4394echo "$as_me:$LINENO: checking for objdir" >&5
4395echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4396rm -f .libs 2>/dev/null
4397mkdir .libs 2>/dev/null
4398if test -d .libs; then
4399  objdir=.libs
4400else
4401  # MS-DOS does not allow filenames that begin with a dot.
4402  objdir=_libs
4403fi
4404rmdir .libs 2>/dev/null
4405echo "$as_me:$LINENO: result: $objdir" >&5
4406echo "${ECHO_T}$objdir" >&6
4407##
4408## END FIXME
4409
4410
4411## FIXME: this should be a separate macro
4412##
4413
4414# Check whether --with-pic or --without-pic was given.
4415if test "${with_pic+set}" = set; then
4416  withval="$with_pic"
4417  pic_mode="$withval"
4418else
4419  pic_mode=default
4420fi;
4421test -z "$pic_mode" && pic_mode=default
4422
4423# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4424# in isolation, and that seeing it set (from the cache) indicates that
4425# the associated values are set (in the cache) correctly too.
4426echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4427echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4428if test "${lt_cv_prog_cc_pic+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431   lt_cv_prog_cc_pic=
4432  lt_cv_prog_cc_shlib=
4433  lt_cv_prog_cc_wl=
4434  lt_cv_prog_cc_static=
4435  lt_cv_prog_cc_no_builtin=
4436  lt_cv_prog_cc_can_build_shared=$can_build_shared
4437
4438  if test "$GCC" = yes; then
4439    lt_cv_prog_cc_wl='-Wl,'
4440    lt_cv_prog_cc_static='-static'
4441
4442    case "$host_os" in
4443    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4444      # PIC is the default for these OSes.
4445      ;;
4446    aix*)
4447      # Below there is a dirty hack to force normal static linking with -ldl
4448      # The problem is because libdl dynamically linked with both libc and
4449      # libC (AIX C++ library), which obviously doesn't included in libraries
4450      # list by gcc. This cause undefined symbols with -static flags.
4451      # This hack allows C programs to be linked with "-static -ldl", but
4452      # we not sure about C++ programs.
4453      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4454      ;;
4455    cygwin* | mingw* | pw32* | os2*)
4456      # This hack is so that the source file can tell whether it is being
4457      # built for inclusion in a dll (and should export symbols for example).
4458      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4459      ;;
4460    amigaos*)
4461      # FIXME: we need at least 68020 code to build shared libraries, but
4462      # adding the `-m68020' flag to GCC prevents building anything better,
4463      # like `-m68040'.
4464      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4465      ;;
4466    sysv4*MP*)
4467      if test -d /usr/nec; then
4468	 lt_cv_prog_cc_pic=-Kconform_pic
4469      fi
4470      ;;
4471    *)
4472      lt_cv_prog_cc_pic='-fPIC'
4473      ;;
4474    esac
4475  else
4476    # PORTME Check for PIC flags for the system compiler.
4477    case "$host_os" in
4478    aix3* | aix4*)
4479     # All AIX code is PIC.
4480      lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4481      ;;
4482
4483    hpux9* | hpux10* | hpux11*)
4484      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4485      lt_cv_prog_cc_wl='-Wl,'
4486      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4487      lt_cv_prog_cc_pic='+Z'
4488      ;;
4489
4490    irix5* | irix6*)
4491      lt_cv_prog_cc_wl='-Wl,'
4492      lt_cv_prog_cc_static='-non_shared'
4493      # PIC (with -KPIC) is the default.
4494      ;;
4495
4496    cygwin* | mingw* | pw32* | os2*)
4497      # This hack is so that the source file can tell whether it is being
4498      # built for inclusion in a dll (and should export symbols for example).
4499      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4500      ;;
4501
4502    newsos6)
4503      lt_cv_prog_cc_pic='-KPIC'
4504      lt_cv_prog_cc_static='-Bstatic'
4505      ;;
4506
4507    osf3* | osf4* | osf5*)
4508      # All OSF/1 code is PIC.
4509      lt_cv_prog_cc_wl='-Wl,'
4510      lt_cv_prog_cc_static='-non_shared'
4511      ;;
4512
4513    sco3.2v5*)
4514      lt_cv_prog_cc_pic='-Kpic'
4515      lt_cv_prog_cc_static='-dn'
4516      lt_cv_prog_cc_shlib='-belf'
4517      ;;
4518
4519    solaris*)
4520      lt_cv_prog_cc_pic='-KPIC'
4521      lt_cv_prog_cc_static='-Bstatic'
4522      lt_cv_prog_cc_wl='-Wl,'
4523      ;;
4524
4525    sunos4*)
4526      lt_cv_prog_cc_pic='-PIC'
4527      lt_cv_prog_cc_static='-Bstatic'
4528      lt_cv_prog_cc_wl='-Qoption ld '
4529      ;;
4530
4531    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4532      lt_cv_prog_cc_pic='-KPIC'
4533      lt_cv_prog_cc_static='-Bstatic'
4534      if test "x$host_vendor" = xsni; then
4535        lt_cv_prog_cc_wl='-LD'
4536      else
4537        lt_cv_prog_cc_wl='-Wl,'
4538      fi
4539      ;;
4540
4541    uts4*)
4542      lt_cv_prog_cc_pic='-pic'
4543      lt_cv_prog_cc_static='-Bstatic'
4544      ;;
4545
4546    sysv4*MP*)
4547      if test -d /usr/nec ;then
4548	lt_cv_prog_cc_pic='-Kconform_pic'
4549	lt_cv_prog_cc_static='-Bstatic'
4550      fi
4551      ;;
4552
4553    *)
4554      lt_cv_prog_cc_can_build_shared=no
4555      ;;
4556    esac
4557  fi
4558
4559fi
4560
4561if test -z "$lt_cv_prog_cc_pic"; then
4562  echo "$as_me:$LINENO: result: none" >&5
4563echo "${ECHO_T}none" >&6
4564else
4565  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4566echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4567
4568  # Check to make sure the pic_flag actually works.
4569  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4570echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4571  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574      save_CFLAGS="$CFLAGS"
4575    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4576    cat >conftest.$ac_ext <<_ACEOF
4577#line $LINENO "configure"
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583
4584int
4585main ()
4586{
4587
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594  (eval $ac_compile) 2>&5
4595  ac_status=$?
4596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597  (exit $ac_status); } &&
4598         { ac_try='test -s conftest.$ac_objext'
4599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600  (eval $ac_try) 2>&5
4601  ac_status=$?
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); }; }; then
4604        case "$host_os" in
4605      hpux9* | hpux10* | hpux11*)
4606	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4607	# they create non-PIC objects.  So, if there were any warnings, we
4608	# assume that PIC is not supported.
4609	if test -s conftest.err; then
4610	  lt_cv_prog_cc_pic_works=no
4611	else
4612	  lt_cv_prog_cc_pic_works=yes
4613	fi
4614	;;
4615      *)
4616	lt_cv_prog_cc_pic_works=yes
4617	;;
4618      esac
4619
4620else
4621  echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624      lt_cv_prog_cc_pic_works=no
4625
4626fi
4627rm -f conftest.$ac_objext conftest.$ac_ext
4628    CFLAGS="$save_CFLAGS"
4629
4630fi
4631
4632
4633  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4634    lt_cv_prog_cc_pic=
4635    lt_cv_prog_cc_can_build_shared=no
4636  else
4637    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4638  fi
4639
4640  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4641echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4642fi
4643##
4644## END FIXME
4645
4646# Check for any special shared library compilation flags.
4647if test -n "$lt_cv_prog_cc_shlib"; then
4648  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4649echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4650  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4651  else
4652   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4653echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4654    lt_cv_prog_cc_can_build_shared=no
4655  fi
4656fi
4657
4658## FIXME: this should be a separate macro
4659##
4660echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4661echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4662if test "${lt_cv_prog_cc_static_works+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665    lt_cv_prog_cc_static_works=no
4666  save_LDFLAGS="$LDFLAGS"
4667  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4668  cat >conftest.$ac_ext <<_ACEOF
4669#line $LINENO "configure"
4670/* confdefs.h.  */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h.  */
4675
4676int
4677main ()
4678{
4679
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext conftest$ac_exeext
4685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686  (eval $ac_link) 2>&5
4687  ac_status=$?
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } &&
4690         { ac_try='test -s conftest$ac_exeext'
4691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692  (eval $ac_try) 2>&5
4693  ac_status=$?
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); }; }; then
4696  lt_cv_prog_cc_static_works=yes
4697else
4698  echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701fi
4702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4703  LDFLAGS="$save_LDFLAGS"
4704
4705fi
4706
4707
4708# Belt *and* braces to stop my trousers falling down:
4709test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4710echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4711echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4712
4713pic_flag="$lt_cv_prog_cc_pic"
4714special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4715wl="$lt_cv_prog_cc_wl"
4716link_static_flag="$lt_cv_prog_cc_static"
4717no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4718can_build_shared="$lt_cv_prog_cc_can_build_shared"
4719##
4720## END FIXME
4721
4722
4723## FIXME: this should be a separate macro
4724##
4725# Check to see if options -o and -c are simultaneously supported by compiler
4726echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4727echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4728$rm -r conftest 2>/dev/null
4729mkdir conftest
4730cd conftest
4731echo "int some_variable = 0;" > conftest.$ac_ext
4732mkdir out
4733# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4734# that will create temporary files in the current directory regardless of
4735# the output directory.  Thus, making CWD read-only will cause this test
4736# to fail, enabling locking or at least warning the user not to do parallel
4737# builds.
4738chmod -w .
4739save_CFLAGS="$CFLAGS"
4740CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4741compiler_c_o=no
4742if { (eval echo configure:4742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4743  # The compiler can only warn and ignore the option if not recognized
4744  # So say no if there are warnings
4745  if test -s out/conftest.err; then
4746    compiler_c_o=no
4747  else
4748    compiler_c_o=yes
4749  fi
4750else
4751  # Append any errors to the config.log.
4752  cat out/conftest.err 1>&5
4753  compiler_c_o=no
4754fi
4755echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4756echo "${ECHO_T}$compiler_c_o" >&6
4757CFLAGS="$save_CFLAGS"
4758chmod u+w .
4759$rm conftest* out/*
4760rmdir out
4761cd ..
4762rmdir conftest
4763$rm -r conftest 2>/dev/null
4764
4765if test x"$compiler_c_o" = x"yes"; then
4766  # Check to see if we can write to a .lo
4767  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4768echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4769  compiler_o_lo=no
4770  save_CFLAGS="$CFLAGS"
4771  CFLAGS="$CFLAGS -c -o conftest.lo"
4772  cat >conftest.$ac_ext <<_ACEOF
4773#line $LINENO "configure"
4774/* confdefs.h.  */
4775_ACEOF
4776cat confdefs.h >>conftest.$ac_ext
4777cat >>conftest.$ac_ext <<_ACEOF
4778/* end confdefs.h.  */
4779
4780int
4781main ()
4782{
4783int some_variable = 0;
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788rm -f conftest.$ac_objext
4789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790  (eval $ac_compile) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); } &&
4794         { ac_try='test -s conftest.$ac_objext'
4795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796  (eval $ac_try) 2>&5
4797  ac_status=$?
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); }; }; then
4800      # The compiler can only warn and ignore the option if not recognized
4801    # So say no if there are warnings
4802    if test -s conftest.err; then
4803      compiler_o_lo=no
4804    else
4805      compiler_o_lo=yes
4806    fi
4807
4808else
4809  echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812fi
4813rm -f conftest.$ac_objext conftest.$ac_ext
4814  echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4815echo "${ECHO_T}$compiler_c_o" >&6
4816  CFLAGS="$save_CFLAGS"
4817else
4818  compiler_o_lo=no
4819fi
4820##
4821## END FIXME
4822
4823## FIXME: this should be a separate macro
4824##
4825# Check to see if we can do hard links to lock some files if needed
4826hard_links="nottested"
4827if test "$compiler_c_o" = no && test "$need_locks" != no; then
4828  # do not overwrite the value of need_locks provided by the user
4829  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4830echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4831  hard_links=yes
4832  $rm conftest*
4833  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4834  touch conftest.a
4835  ln conftest.a conftest.b 2>&5 || hard_links=no
4836  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4837  echo "$as_me:$LINENO: result: $hard_links" >&5
4838echo "${ECHO_T}$hard_links" >&6
4839  if test "$hard_links" = no; then
4840    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4841echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4842    need_locks=warn
4843  fi
4844else
4845  need_locks=no
4846fi
4847##
4848## END FIXME
4849
4850## FIXME: this should be a separate macro
4851##
4852if test "$GCC" = yes; then
4853  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4854  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4855echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4856  echo "int some_variable = 0;" > conftest.$ac_ext
4857  save_CFLAGS="$CFLAGS"
4858  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4859  compiler_rtti_exceptions=no
4860  cat >conftest.$ac_ext <<_ACEOF
4861#line $LINENO "configure"
4862/* confdefs.h.  */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h.  */
4867
4868int
4869main ()
4870{
4871int some_variable = 0;
4872  ;
4873  return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext
4877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878  (eval $ac_compile) 2>&5
4879  ac_status=$?
4880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881  (exit $ac_status); } &&
4882         { ac_try='test -s conftest.$ac_objext'
4883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884  (eval $ac_try) 2>&5
4885  ac_status=$?
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); }; }; then
4888      # The compiler can only warn and ignore the option if not recognized
4889    # So say no if there are warnings
4890    if test -s conftest.err; then
4891      compiler_rtti_exceptions=no
4892    else
4893      compiler_rtti_exceptions=yes
4894    fi
4895
4896else
4897  echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900fi
4901rm -f conftest.$ac_objext conftest.$ac_ext
4902  CFLAGS="$save_CFLAGS"
4903  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4904echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4905
4906  if test "$compiler_rtti_exceptions" = "yes"; then
4907    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4908  else
4909    no_builtin_flag=' -fno-builtin'
4910  fi
4911fi
4912##
4913## END FIXME
4914
4915## FIXME: this should be a separate macro
4916##
4917# See if the linker supports building shared libraries.
4918echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4919echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4920
4921allow_undefined_flag=
4922no_undefined_flag=
4923need_lib_prefix=unknown
4924need_version=unknown
4925# when you set need_version to no, make sure it does not cause -set_version
4926# flags to be left without arguments
4927archive_cmds=
4928archive_expsym_cmds=
4929old_archive_from_new_cmds=
4930old_archive_from_expsyms_cmds=
4931export_dynamic_flag_spec=
4932whole_archive_flag_spec=
4933thread_safe_flag_spec=
4934hardcode_into_libs=no
4935hardcode_libdir_flag_spec=
4936hardcode_libdir_separator=
4937hardcode_direct=no
4938hardcode_minus_L=no
4939hardcode_shlibpath_var=unsupported
4940runpath_var=
4941link_all_deplibs=unknown
4942always_export_symbols=no
4943export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4944# include_expsyms should be a list of space-separated symbols to be *always*
4945# included in the symbol list
4946include_expsyms=
4947# exclude_expsyms can be an egrep regular expression of symbols to exclude
4948# it will be wrapped by ` (' and `)$', so one must not match beginning or
4949# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4950# as well as any symbol that contains `d'.
4951exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4952# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4953# platforms (ab)use it in PIC code, but their linkers get confused if
4954# the symbol is explicitly referenced.  Since portable code cannot
4955# rely on this symbol name, it's probably fine to never include it in
4956# preloaded symbol tables.
4957extract_expsyms_cmds=
4958
4959case "$host_os" in
4960cygwin* | mingw* | pw32* )
4961  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4962  # When not using gcc, we currently assume that we are using
4963  # Microsoft Visual C++.
4964  if test "$GCC" != yes; then
4965    with_gnu_ld=no
4966  fi
4967  ;;
4968
4969esac
4970
4971ld_shlibs=yes
4972if test "$with_gnu_ld" = yes; then
4973  # If archive_cmds runs LD, not CC, wlarc should be empty
4974  wlarc='${wl}'
4975
4976  # See if GNU ld supports shared libraries.
4977  case "$host_os" in
4978  aix3* | aix4*)
4979    # On AIX, the GNU linker is very broken
4980    ld_shlibs=no
4981    cat <<EOF 1>&2
4982
4983*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4984*** to be unable to reliably create shared libraries on AIX.
4985*** Therefore, libtool is disabling shared libraries support.  If you
4986*** really care for shared libraries, you may want to modify your PATH
4987*** so that a non-GNU linker is found, and then restart.
4988
4989EOF
4990    ;;
4991
4992  amigaos*)
4993    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4994    hardcode_libdir_flag_spec='-L$libdir'
4995    hardcode_minus_L=yes
4996
4997    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4998    # that the semantics of dynamic libraries on AmigaOS, at least up
4999    # to version 4, is to share data among multiple programs linked
5000    # with the same dynamic library.  Since this doesn't match the
5001    # behavior of shared libraries on other platforms, we can use
5002    # them.
5003    ld_shlibs=no
5004    ;;
5005
5006  beos*)
5007    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5008      allow_undefined_flag=unsupported
5009      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5010      # support --undefined.  This deserves some investigation.  FIXME
5011      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5012    else
5013      ld_shlibs=no
5014    fi
5015    ;;
5016
5017  cygwin* | mingw* | pw32*)
5018    # hardcode_libdir_flag_spec is actually meaningless, as there is
5019    # no search path for DLLs.
5020    hardcode_libdir_flag_spec='-L$libdir'
5021    allow_undefined_flag=unsupported
5022    always_export_symbols=yes
5023
5024    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5025      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5026      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5027      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5028      else $CC -o impgen impgen.c ; fi)~
5029      $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5030
5031    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5032
5033    # cygwin and mingw dlls have different entry points and sets of symbols
5034    # to exclude.
5035    # FIXME: what about values for MSVC?
5036    dll_entry=__cygwin_dll_entry@12
5037    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5038    case "$host_os" in
5039    mingw*)
5040      # mingw values
5041      dll_entry=_DllMainCRTStartup@12
5042      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5043      ;;
5044    esac
5045
5046    # mingw and cygwin differ, and it's simplest to just exclude the union
5047    # of the two symbol sets.
5048    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5049
5050    # recent cygwin and mingw systems supply a stub DllMain which the user
5051    # can override, but on older systems we have to supply one (in ltdll.c)
5052    if test "x$lt_cv_need_dllmain" = "xyes"; then
5053      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5054      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
5055	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5056    else
5057      ltdll_obj=
5058      ltdll_cmds=
5059    fi
5060
5061    # Extract the symbol export list from an `--export-all' def file,
5062    # then regenerate the def file from the symbol export list, so that
5063    # the compiled dll only exports the symbol export list.
5064    # Be careful not to strip the DATA tag left be newer dlltools.
5065    export_symbols_cmds="$ltdll_cmds"'
5066      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5067      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5068
5069    # If DATA tags from a recent dlltool are present, honour them!
5070    archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5071      _lt_hint=1;
5072      cat $export_symbols | while read symbol; do
5073	set dummy \$symbol;
5074	case \$# in
5075	  2) echo "	\$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5076	  *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5077	esac;
5078	_lt_hint=`expr 1 + \$_lt_hint`;
5079      done~
5080      '"$ltdll_cmds"'
5081      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5082      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5083      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5084      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5085      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5086    ;;
5087
5088  netbsd*)
5089    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5090      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5091      wlarc=
5092    else
5093      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5094      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5095    fi
5096    ;;
5097
5098  solaris* | sysv5*)
5099    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5100      ld_shlibs=no
5101      cat <<EOF 1>&2
5102
5103*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5104*** create shared libraries on Solaris systems.  Therefore, libtool
5105*** is disabling shared libraries support.  We urge you to upgrade GNU
5106*** binutils to release 2.9.1 or newer.  Another option is to modify
5107*** your PATH or compiler configuration so that the native linker is
5108*** used, and then restart.
5109
5110EOF
5111    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5112      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5113      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5114    else
5115      ld_shlibs=no
5116    fi
5117    ;;
5118
5119  sunos4*)
5120    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5121    wlarc=
5122    hardcode_direct=yes
5123    hardcode_shlibpath_var=no
5124    ;;
5125
5126  *)
5127    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5128      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5129      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5130    else
5131      ld_shlibs=no
5132    fi
5133    ;;
5134  esac
5135
5136  if test "$ld_shlibs" = yes; then
5137    runpath_var=LD_RUN_PATH
5138    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5139    export_dynamic_flag_spec='${wl}--export-dynamic'
5140    case $host_os in
5141    cygwin* | mingw* | pw32*)
5142      # dlltool doesn't understand --whole-archive et. al.
5143      whole_archive_flag_spec=
5144      ;;
5145    *)
5146      # ancient GNU ld didn't support --whole-archive et. al.
5147      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5148	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5149      else
5150	whole_archive_flag_spec=
5151      fi
5152      ;;
5153    esac
5154  fi
5155else
5156  # PORTME fill in a description of your system's linker (not GNU ld)
5157  case "$host_os" in
5158  aix3*)
5159    allow_undefined_flag=unsupported
5160    always_export_symbols=yes
5161    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5162    # Note: this linker hardcodes the directories in LIBPATH if there
5163    # are no directories specified by -L.
5164    hardcode_minus_L=yes
5165    if test "$GCC" = yes && test -z "$link_static_flag"; then
5166      # Neither direct hardcoding nor static linking is supported with a
5167      # broken collect2.
5168      hardcode_direct=unsupported
5169    fi
5170    ;;
5171
5172  aix4*)
5173    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
5174    hardcode_libdir_separator=':'
5175    if test "$GCC" = yes; then
5176      collect2name=`${CC} -print-prog-name=collect2`
5177      if test -f "$collect2name" && \
5178	 strings "$collect2name" | grep resolve_lib_name >/dev/null
5179      then
5180	# We have reworked collect2
5181	hardcode_direct=yes
5182      else
5183	# We have old collect2
5184	hardcode_direct=unsupported
5185	# It fails to find uninstalled libraries when the uninstalled
5186	# path is not listed in the libpath.  Setting hardcode_minus_L
5187	# to unsupported forces relinking
5188	hardcode_minus_L=yes
5189	hardcode_libdir_flag_spec='-L$libdir'
5190	hardcode_libdir_separator=
5191      fi
5192      shared_flag='-shared'
5193    else
5194      shared_flag='${wl}-bM:SRE'
5195      hardcode_direct=yes
5196    fi
5197    allow_undefined_flag=' ${wl}-berok'
5198    archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
5199    archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
5200    case "$host_os" in aix4.[01]|aix4.[01].*)
5201      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
5202      always_export_symbols=yes ;;
5203    esac
5204
5205    # We don't want to build shared libraries on unknown CPU types.
5206    case $host_cpu in
5207    powerpc | rs6000) ;;
5208    *) ld_shlibs=no ;;
5209    esac
5210   ;;
5211
5212  amigaos*)
5213    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5214    hardcode_libdir_flag_spec='-L$libdir'
5215    hardcode_minus_L=yes
5216    # see comment about different semantics on the GNU ld section
5217    ld_shlibs=no
5218    ;;
5219
5220  cygwin* | mingw* | pw32*)
5221    # When not using gcc, we currently assume that we are using
5222    # Microsoft Visual C++.
5223    # hardcode_libdir_flag_spec is actually meaningless, as there is
5224    # no search path for DLLs.
5225    hardcode_libdir_flag_spec=' '
5226    allow_undefined_flag=unsupported
5227    # Tell ltmain to make .lib files, not .a files.
5228    libext=lib
5229    # FIXME: Setting linknames here is a bad hack.
5230    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5231    # The linker will automatically build a .lib file if we build a DLL.
5232    old_archive_from_new_cmds='true'
5233    # FIXME: Should let the user specify the lib program.
5234    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5235    fix_srcfile_path='`cygpath -w "$srcfile"`'
5236    ;;
5237
5238  darwin* | rhapsody*)
5239    allow_undefined_flag='-undefined warning'
5240    archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
5241      echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
5242    archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5243    ## What we need is to hardcode the path to the library, not the search path
5244    #hardcode_direct=yes
5245    #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
5246    hardcode_shlibpath_var=no
5247    whole_archive_flag_spec='-all_load'
5248    ;;
5249
5250  freebsd1*)
5251    ld_shlibs=no
5252    ;;
5253
5254  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5255  # support.  Future versions do this automatically, but an explicit c++rt0.o
5256  # does not break anything, and helps significantly (at the cost of a little
5257  # extra space).
5258  freebsd2.2*)
5259    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5260    hardcode_libdir_flag_spec='-R$libdir'
5261    hardcode_direct=yes
5262    hardcode_shlibpath_var=no
5263    ;;
5264
5265  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5266  freebsd2*)
5267    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5268    hardcode_direct=yes
5269    hardcode_minus_L=yes
5270    hardcode_shlibpath_var=no
5271    ;;
5272
5273  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5274  freebsd*)
5275    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5276    hardcode_libdir_flag_spec='-R$libdir'
5277    hardcode_direct=yes
5278    hardcode_shlibpath_var=no
5279    ;;
5280
5281  hpux9* | hpux10* | hpux11*)
5282    case "$host_os" in
5283    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5284    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5285    esac
5286    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5287    hardcode_libdir_separator=:
5288    hardcode_direct=yes
5289    hardcode_minus_L=yes # Not in the search PATH, but as the default
5290			 # location of the library.
5291    export_dynamic_flag_spec='${wl}-E'
5292    ;;
5293
5294  irix5* | irix6*)
5295    if test "$GCC" = yes; then
5296      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5297    else
5298      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5299    fi
5300    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5301    hardcode_libdir_separator=:
5302    link_all_deplibs=yes
5303    ;;
5304
5305  netbsd*)
5306    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5307      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5308    else
5309      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5310    fi
5311    hardcode_libdir_flag_spec='-R$libdir'
5312    hardcode_direct=yes
5313    hardcode_shlibpath_var=no
5314    ;;
5315
5316  newsos6)
5317    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5318    hardcode_direct=yes
5319    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5320    hardcode_libdir_separator=:
5321    hardcode_shlibpath_var=no
5322    ;;
5323
5324  openbsd*)
5325    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5326    hardcode_libdir_flag_spec='-R$libdir'
5327    hardcode_direct=yes
5328    hardcode_shlibpath_var=no
5329    ;;
5330
5331  os2*)
5332    hardcode_libdir_flag_spec='-L$libdir'
5333    hardcode_minus_L=yes
5334    allow_undefined_flag=unsupported
5335    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5336    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5337    ;;
5338
5339  osf3*)
5340    if test "$GCC" = yes; then
5341      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5342      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5343    else
5344      allow_undefined_flag=' -expect_unresolved \*'
5345      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5346    fi
5347    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5348    hardcode_libdir_separator=:
5349    ;;
5350
5351  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5352    if test "$GCC" = yes; then
5353      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5354      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5355    else
5356      allow_undefined_flag=' -expect_unresolved \*'
5357      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5358      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5359      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5360    fi
5361#Both c and cxx compiler support -rpath directly
5362    hardcode_libdir_flag_spec='-rpath $libdir'
5363    hardcode_libdir_separator=:
5364    ;;
5365
5366  sco3.2v5*)
5367    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5368    hardcode_shlibpath_var=no
5369    runpath_var=LD_RUN_PATH
5370    hardcode_runpath_var=yes
5371    ;;
5372
5373  solaris*)
5374    no_undefined_flag=' -z text'
5375    # $CC -shared without GNU ld will not create a library from C++
5376    # object files and a static libstdc++, better avoid it by now
5377    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5378    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5379		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5380    hardcode_libdir_flag_spec='-R$libdir'
5381    hardcode_shlibpath_var=no
5382    case "$host_os" in
5383    solaris2.[0-5] | solaris2.[0-5].*) ;;
5384    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5385      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5386    esac
5387    link_all_deplibs=yes
5388    ;;
5389
5390  sunos4*)
5391    if test "x$host_vendor" = xsequent; then
5392      # Use $CC to link under sequent, because it throws in some extra .o
5393      # files that make .init and .fini sections work.
5394      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5395    else
5396      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5397    fi
5398    hardcode_libdir_flag_spec='-L$libdir'
5399    hardcode_direct=yes
5400    hardcode_minus_L=yes
5401    hardcode_shlibpath_var=no
5402    ;;
5403
5404  sysv4)
5405    if test "x$host_vendor" = xsno; then
5406      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5407      hardcode_direct=yes # is this really true???
5408    else
5409      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5410      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5411    fi
5412    runpath_var='LD_RUN_PATH'
5413    hardcode_shlibpath_var=no
5414    ;;
5415
5416  sysv4.3*)
5417    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5418    hardcode_shlibpath_var=no
5419    export_dynamic_flag_spec='-Bexport'
5420    ;;
5421
5422  sysv5*)
5423    no_undefined_flag=' -z text'
5424    # $CC -shared without GNU ld will not create a library from C++
5425    # object files and a static libstdc++, better avoid it by now
5426    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5427    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5428		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5429    hardcode_libdir_flag_spec=
5430    hardcode_shlibpath_var=no
5431    runpath_var='LD_RUN_PATH'
5432    ;;
5433
5434  uts4*)
5435    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5436    hardcode_libdir_flag_spec='-L$libdir'
5437    hardcode_shlibpath_var=no
5438    ;;
5439
5440  dgux*)
5441    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5442    hardcode_libdir_flag_spec='-L$libdir'
5443    hardcode_shlibpath_var=no
5444    ;;
5445
5446  sysv4*MP*)
5447    if test -d /usr/nec; then
5448      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5449      hardcode_shlibpath_var=no
5450      runpath_var=LD_RUN_PATH
5451      hardcode_runpath_var=yes
5452      ld_shlibs=yes
5453    fi
5454    ;;
5455
5456  sysv4.2uw2*)
5457    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5458    hardcode_direct=yes
5459    hardcode_minus_L=no
5460    hardcode_shlibpath_var=no
5461    hardcode_runpath_var=yes
5462    runpath_var=LD_RUN_PATH
5463    ;;
5464
5465  unixware7*)
5466    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5467    runpath_var='LD_RUN_PATH'
5468    hardcode_shlibpath_var=no
5469    ;;
5470
5471  *)
5472    ld_shlibs=no
5473    ;;
5474  esac
5475fi
5476echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5477echo "${ECHO_T}$ld_shlibs" >&6
5478test "$ld_shlibs" = no && can_build_shared=no
5479##
5480## END FIXME
5481
5482## FIXME: this should be a separate macro
5483##
5484# Check hardcoding attributes.
5485echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5486echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5487hardcode_action=
5488if test -n "$hardcode_libdir_flag_spec" || \
5489   test -n "$runpath_var"; then
5490
5491  # We can hardcode non-existant directories.
5492  if test "$hardcode_direct" != no &&
5493     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5494     # have to relink, otherwise we might link with an installed library
5495     # when we should be linking with a yet-to-be-installed one
5496     ## test "$hardcode_shlibpath_var" != no &&
5497     test "$hardcode_minus_L" != no; then
5498    # Linking always hardcodes the temporary library directory.
5499    hardcode_action=relink
5500  else
5501    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5502    hardcode_action=immediate
5503  fi
5504else
5505  # We cannot hardcode anything, or else we can only hardcode existing
5506  # directories.
5507  hardcode_action=unsupported
5508fi
5509echo "$as_me:$LINENO: result: $hardcode_action" >&5
5510echo "${ECHO_T}$hardcode_action" >&6
5511##
5512## END FIXME
5513
5514## FIXME: this should be a separate macro
5515##
5516striplib=
5517old_striplib=
5518echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5519echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5520if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5521  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5522  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5523  echo "$as_me:$LINENO: result: yes" >&5
5524echo "${ECHO_T}yes" >&6
5525else
5526  echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529##
5530## END FIXME
5531
5532reload_cmds='$LD$reload_flag -o $output$reload_objs'
5533test -z "$deplibs_check_method" && deplibs_check_method=unknown
5534
5535## FIXME: this should be a separate macro
5536##
5537# PORTME Fill in your ld.so characteristics
5538echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5539echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5540library_names_spec=
5541libname_spec='lib$name'
5542soname_spec=
5543postinstall_cmds=
5544postuninstall_cmds=
5545finish_cmds=
5546finish_eval=
5547shlibpath_var=
5548shlibpath_overrides_runpath=unknown
5549version_type=none
5550dynamic_linker="$host_os ld.so"
5551sys_lib_dlsearch_path_spec="/lib /usr/lib"
5552sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5553
5554case "$host_os" in
5555aix3*)
5556  version_type=linux
5557  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5558  shlibpath_var=LIBPATH
5559
5560  # AIX has no versioning support, so we append a major version to the name.
5561  soname_spec='${libname}${release}.so$major'
5562  ;;
5563
5564aix4*)
5565  version_type=linux
5566  # AIX has no versioning support, so currently we can not hardcode correct
5567  # soname into executable. Probably we can add versioning support to
5568  # collect2, so additional links can be useful in future.
5569  # We preserve .a as extension for shared libraries though AIX4.2
5570  # and later linker supports .so
5571  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
5572  shlibpath_var=LIBPATH
5573  ;;
5574
5575amigaos*)
5576  library_names_spec='$libname.ixlibrary $libname.a'
5577  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5578  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5579  ;;
5580
5581beos*)
5582  library_names_spec='${libname}.so'
5583  dynamic_linker="$host_os ld.so"
5584  shlibpath_var=LIBRARY_PATH
5585  ;;
5586
5587bsdi4*)
5588  version_type=linux
5589  need_version=no
5590  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5591  soname_spec='${libname}${release}.so$major'
5592  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5593  shlibpath_var=LD_LIBRARY_PATH
5594  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5595  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5596  export_dynamic_flag_spec=-rdynamic
5597  # the default ld.so.conf also contains /usr/contrib/lib and
5598  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5599  # libtool to hard-code these into programs
5600  ;;
5601
5602cygwin* | mingw* | pw32*)
5603  version_type=windows
5604  need_version=no
5605  need_lib_prefix=no
5606  if test "$GCC" = yes; then
5607    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5608  else
5609    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5610  fi
5611  dynamic_linker='Win32 ld.exe'
5612  # FIXME: first we should search . and the directory the executable is in
5613  shlibpath_var=PATH
5614  ;;
5615
5616darwin* | rhapsody*)
5617  need_lib_prefix=no
5618  need_version=no
5619  library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
5620  shlibpath_overrides_runpath=yes
5621  shlibpath_var=DYLD_LIBRARY_PATH
5622  postinstall_cmds='chmod +x $lib'
5623  ;;
5624
5625freebsd1*)
5626  dynamic_linker=no
5627  ;;
5628
5629freebsd*)
5630  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5631  version_type=freebsd-$objformat
5632  case "$version_type" in
5633    freebsd-elf*)
5634      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5635      need_version=no
5636      need_lib_prefix=no
5637      ;;
5638    freebsd-*)
5639      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5640      need_version=yes
5641      ;;
5642  esac
5643  shlibpath_var=LD_LIBRARY_PATH
5644  case "$host_os" in
5645  freebsd2*)
5646    shlibpath_overrides_runpath=yes
5647    ;;
5648  *)
5649    shlibpath_overrides_runpath=no
5650    hardcode_into_libs=yes
5651    ;;
5652  esac
5653  ;;
5654
5655gnu*)
5656  version_type=linux
5657  need_lib_prefix=no
5658  need_version=no
5659  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5660  soname_spec='${libname}${release}.so$major'
5661  shlibpath_var=LD_LIBRARY_PATH
5662  hardcode_into_libs=yes
5663  ;;
5664
5665hpux9* | hpux10* | hpux11*)
5666  # Give a soname corresponding to the major version so that dld.sl refuses to
5667  # link against other versions.
5668  dynamic_linker="$host_os dld.sl"
5669  version_type=sunos
5670  need_lib_prefix=no
5671  need_version=no
5672  shlibpath_var=SHLIB_PATH
5673  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5674  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5675  soname_spec='${libname}${release}.sl$major'
5676  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5677  postinstall_cmds='chmod 555 $lib'
5678  ;;
5679
5680irix5* | irix6*)
5681  version_type=irix
5682  need_lib_prefix=no
5683  need_version=no
5684  soname_spec='${libname}${release}.so$major'
5685  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5686  case "$host_os" in
5687  irix5*)
5688    libsuff= shlibsuff=
5689    ;;
5690  *)
5691    case "$LD" in # libtool.m4 will add one of these switches to LD
5692    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5693    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5694    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5695    *) libsuff= shlibsuff= libmagic=never-match;;
5696    esac
5697    ;;
5698  esac
5699  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5700  shlibpath_overrides_runpath=no
5701  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5702  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5703  ;;
5704
5705# No shared lib support for Linux oldld, aout, or coff.
5706linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5707  dynamic_linker=no
5708  ;;
5709
5710# This must be Linux ELF.
5711linux-gnu*)
5712  version_type=linux
5713  need_lib_prefix=no
5714  need_version=no
5715  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5716  soname_spec='${libname}${release}.so$major'
5717  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5718  shlibpath_var=LD_LIBRARY_PATH
5719  shlibpath_overrides_runpath=no
5720  # This implies no fast_install, which is unacceptable.
5721  # Some rework will be needed to allow for fast_install
5722  # before this can be enabled.
5723  hardcode_into_libs=yes
5724
5725  # We used to test for /lib/ld.so.1 and disable shared libraries on
5726  # powerpc, because MkLinux only supported shared libraries with the
5727  # GNU dynamic linker.  Since this was broken with cross compilers,
5728  # most powerpc-linux boxes support dynamic linking these days and
5729  # people can always --disable-shared, the test was removed, and we
5730  # assume the GNU/Linux dynamic linker is in use.
5731  dynamic_linker='GNU/Linux ld.so'
5732  ;;
5733
5734netbsd*)
5735  version_type=sunos
5736  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5737    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5738    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5739    dynamic_linker='NetBSD (a.out) ld.so'
5740  else
5741    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5742    soname_spec='${libname}${release}.so$major'
5743    dynamic_linker='NetBSD ld.elf_so'
5744  fi
5745  shlibpath_var=LD_LIBRARY_PATH
5746  shlibpath_overrides_runpath=yes
5747  hardcode_into_libs=yes
5748  ;;
5749
5750newsos6)
5751  version_type=linux
5752  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5753  shlibpath_var=LD_LIBRARY_PATH
5754  shlibpath_overrides_runpath=yes
5755  ;;
5756
5757openbsd*)
5758  version_type=sunos
5759  if test "$with_gnu_ld" = yes; then
5760    need_lib_prefix=no
5761    need_version=no
5762  fi
5763  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5764  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5765  shlibpath_var=LD_LIBRARY_PATH
5766  ;;
5767
5768os2*)
5769  libname_spec='$name'
5770  need_lib_prefix=no
5771  library_names_spec='$libname.dll $libname.a'
5772  dynamic_linker='OS/2 ld.exe'
5773  shlibpath_var=LIBPATH
5774  ;;
5775
5776osf3* | osf4* | osf5*)
5777  version_type=osf
5778  need_version=no
5779  soname_spec='${libname}${release}.so'
5780  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5781  shlibpath_var=LD_LIBRARY_PATH
5782  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5783  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5784  ;;
5785
5786sco3.2v5*)
5787  version_type=osf
5788  soname_spec='${libname}${release}.so$major'
5789  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5790  shlibpath_var=LD_LIBRARY_PATH
5791  ;;
5792
5793solaris*)
5794  version_type=linux
5795  need_lib_prefix=no
5796  need_version=no
5797  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5798  soname_spec='${libname}${release}.so$major'
5799  shlibpath_var=LD_LIBRARY_PATH
5800  shlibpath_overrides_runpath=yes
5801  hardcode_into_libs=yes
5802  # ldd complains unless libraries are executable
5803  postinstall_cmds='chmod +x $lib'
5804  ;;
5805
5806sunos4*)
5807  version_type=sunos
5808  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5809  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5810  shlibpath_var=LD_LIBRARY_PATH
5811  shlibpath_overrides_runpath=yes
5812  if test "$with_gnu_ld" = yes; then
5813    need_lib_prefix=no
5814  fi
5815  need_version=yes
5816  ;;
5817
5818sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5819  version_type=linux
5820  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5821  soname_spec='${libname}${release}.so$major'
5822  shlibpath_var=LD_LIBRARY_PATH
5823  case "$host_vendor" in
5824    sni)
5825      shlibpath_overrides_runpath=no
5826      ;;
5827    motorola)
5828      need_lib_prefix=no
5829      need_version=no
5830      shlibpath_overrides_runpath=no
5831      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5832      ;;
5833  esac
5834  ;;
5835
5836uts4*)
5837  version_type=linux
5838  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5839  soname_spec='${libname}${release}.so$major'
5840  shlibpath_var=LD_LIBRARY_PATH
5841  ;;
5842
5843dgux*)
5844  version_type=linux
5845  need_lib_prefix=no
5846  need_version=no
5847  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5848  soname_spec='${libname}${release}.so$major'
5849  shlibpath_var=LD_LIBRARY_PATH
5850  ;;
5851
5852sysv4*MP*)
5853  if test -d /usr/nec ;then
5854    version_type=linux
5855    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5856    soname_spec='$libname.so.$major'
5857    shlibpath_var=LD_LIBRARY_PATH
5858  fi
5859  ;;
5860
5861*)
5862  dynamic_linker=no
5863  ;;
5864esac
5865echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5866echo "${ECHO_T}$dynamic_linker" >&6
5867test "$dynamic_linker" = no && can_build_shared=no
5868##
5869## END FIXME
5870
5871## FIXME: this should be a separate macro
5872##
5873# Report the final consequences.
5874echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5875echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5876echo "$as_me:$LINENO: result: $can_build_shared" >&5
5877echo "${ECHO_T}$can_build_shared" >&6
5878##
5879## END FIXME
5880
5881if test "$hardcode_action" = relink; then
5882  # Fast installation is not supported
5883  enable_fast_install=no
5884elif test "$shlibpath_overrides_runpath" = yes ||
5885     test "$enable_shared" = no; then
5886  # Fast installation is not necessary
5887  enable_fast_install=needless
5888fi
5889
5890variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5891if test "$GCC" = yes; then
5892  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5893fi
5894
5895if test "x$enable_dlopen" != xyes; then
5896  enable_dlopen=unknown
5897  enable_dlopen_self=unknown
5898  enable_dlopen_self_static=unknown
5899else
5900  lt_cv_dlopen=no
5901  lt_cv_dlopen_libs=
5902
5903  case "$host_os" in
5904  beos*)
5905    lt_cv_dlopen="load_add_on"
5906    lt_cv_dlopen_libs=
5907    lt_cv_dlopen_self=yes
5908    ;;
5909
5910  cygwin* | mingw* | pw32*)
5911    lt_cv_dlopen="LoadLibrary"
5912    lt_cv_dlopen_libs=
5913   ;;
5914
5915  *)
5916    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5917echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5918if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921  ac_check_lib_save_LIBS=$LIBS
5922LIBS="-ldl  $LIBS"
5923cat >conftest.$ac_ext <<_ACEOF
5924#line $LINENO "configure"
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930
5931/* Override any gcc2 internal prototype to avoid an error.  */
5932#ifdef __cplusplus
5933extern "C"
5934#endif
5935/* We use char because int might match the return type of a gcc2
5936   builtin and then its argument prototype would still apply.  */
5937char dlopen ();
5938int
5939main ()
5940{
5941dlopen ();
5942  ;
5943  return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext conftest$ac_exeext
5947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948  (eval $ac_link) 2>&5
5949  ac_status=$?
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); } &&
5952         { ac_try='test -s conftest$ac_exeext'
5953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954  (eval $ac_try) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }; }; then
5958  ac_cv_lib_dl_dlopen=yes
5959else
5960  echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963ac_cv_lib_dl_dlopen=no
5964fi
5965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966LIBS=$ac_check_lib_save_LIBS
5967fi
5968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5970if test $ac_cv_lib_dl_dlopen = yes; then
5971  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5972else
5973  echo "$as_me:$LINENO: checking for dlopen" >&5
5974echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5975if test "${ac_cv_func_dlopen+set}" = set; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978  cat >conftest.$ac_ext <<_ACEOF
5979#line $LINENO "configure"
5980/* confdefs.h.  */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h.  */
5985/* System header to define __stub macros and hopefully few prototypes,
5986    which can conflict with char dlopen (); below.
5987    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988    <limits.h> exists even on freestanding compilers.  */
5989#ifdef __STDC__
5990# include <limits.h>
5991#else
5992# include <assert.h>
5993#endif
5994/* Override any gcc2 internal prototype to avoid an error.  */
5995#ifdef __cplusplus
5996extern "C"
5997{
5998#endif
5999/* We use char because int might match the return type of a gcc2
6000   builtin and then its argument prototype would still apply.  */
6001char dlopen ();
6002/* The GNU C library defines this for functions which it implements
6003    to always fail with ENOSYS.  Some functions are actually named
6004    something starting with __ and the normal name is an alias.  */
6005#if defined (__stub_dlopen) || defined (__stub___dlopen)
6006choke me
6007#else
6008char (*f) () = dlopen;
6009#endif
6010#ifdef __cplusplus
6011}
6012#endif
6013
6014int
6015main ()
6016{
6017return f != dlopen;
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022rm -f conftest.$ac_objext conftest$ac_exeext
6023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024  (eval $ac_link) 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } &&
6028         { ac_try='test -s conftest$ac_exeext'
6029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030  (eval $ac_try) 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; }; then
6034  ac_cv_func_dlopen=yes
6035else
6036  echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039ac_cv_func_dlopen=no
6040fi
6041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6042fi
6043echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6044echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6045if test $ac_cv_func_dlopen = yes; then
6046  lt_cv_dlopen="dlopen"
6047else
6048  echo "$as_me:$LINENO: checking for shl_load" >&5
6049echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6050if test "${ac_cv_func_shl_load+set}" = set; then
6051  echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053  cat >conftest.$ac_ext <<_ACEOF
6054#line $LINENO "configure"
6055/* confdefs.h.  */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h.  */
6060/* System header to define __stub macros and hopefully few prototypes,
6061    which can conflict with char shl_load (); below.
6062    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063    <limits.h> exists even on freestanding compilers.  */
6064#ifdef __STDC__
6065# include <limits.h>
6066#else
6067# include <assert.h>
6068#endif
6069/* Override any gcc2 internal prototype to avoid an error.  */
6070#ifdef __cplusplus
6071extern "C"
6072{
6073#endif
6074/* We use char because int might match the return type of a gcc2
6075   builtin and then its argument prototype would still apply.  */
6076char shl_load ();
6077/* The GNU C library defines this for functions which it implements
6078    to always fail with ENOSYS.  Some functions are actually named
6079    something starting with __ and the normal name is an alias.  */
6080#if defined (__stub_shl_load) || defined (__stub___shl_load)
6081choke me
6082#else
6083char (*f) () = shl_load;
6084#endif
6085#ifdef __cplusplus
6086}
6087#endif
6088
6089int
6090main ()
6091{
6092return f != shl_load;
6093  ;
6094  return 0;
6095}
6096_ACEOF
6097rm -f conftest.$ac_objext conftest$ac_exeext
6098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6099  (eval $ac_link) 2>&5
6100  ac_status=$?
6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); } &&
6103         { ac_try='test -s conftest$ac_exeext'
6104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105  (eval $ac_try) 2>&5
6106  ac_status=$?
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); }; }; then
6109  ac_cv_func_shl_load=yes
6110else
6111  echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114ac_cv_func_shl_load=no
6115fi
6116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6117fi
6118echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6119echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6120if test $ac_cv_func_shl_load = yes; then
6121  lt_cv_dlopen="shl_load"
6122else
6123  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6124echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6125if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  ac_check_lib_save_LIBS=$LIBS
6129LIBS="-lsvld  $LIBS"
6130cat >conftest.$ac_ext <<_ACEOF
6131#line $LINENO "configure"
6132/* confdefs.h.  */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h.  */
6137
6138/* Override any gcc2 internal prototype to avoid an error.  */
6139#ifdef __cplusplus
6140extern "C"
6141#endif
6142/* We use char because int might match the return type of a gcc2
6143   builtin and then its argument prototype would still apply.  */
6144char dlopen ();
6145int
6146main ()
6147{
6148dlopen ();
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext conftest$ac_exeext
6154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155  (eval $ac_link) 2>&5
6156  ac_status=$?
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); } &&
6159         { ac_try='test -s conftest$ac_exeext'
6160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161  (eval $ac_try) 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }; }; then
6165  ac_cv_lib_svld_dlopen=yes
6166else
6167  echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170ac_cv_lib_svld_dlopen=no
6171fi
6172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6173LIBS=$ac_check_lib_save_LIBS
6174fi
6175echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6176echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6177if test $ac_cv_lib_svld_dlopen = yes; then
6178  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6179else
6180  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6181echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6182if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  ac_check_lib_save_LIBS=$LIBS
6186LIBS="-ldld  $LIBS"
6187cat >conftest.$ac_ext <<_ACEOF
6188#line $LINENO "configure"
6189/* confdefs.h.  */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h.  */
6194
6195/* Override any gcc2 internal prototype to avoid an error.  */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200   builtin and then its argument prototype would still apply.  */
6201char shl_load ();
6202int
6203main ()
6204{
6205shl_load ();
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext conftest$ac_exeext
6211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212  (eval $ac_link) 2>&5
6213  ac_status=$?
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); } &&
6216         { ac_try='test -s conftest$ac_exeext'
6217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218  (eval $ac_try) 2>&5
6219  ac_status=$?
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); }; }; then
6222  ac_cv_lib_dld_shl_load=yes
6223else
6224  echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227ac_cv_lib_dld_shl_load=no
6228fi
6229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230LIBS=$ac_check_lib_save_LIBS
6231fi
6232echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6233echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6234if test $ac_cv_lib_dld_shl_load = yes; then
6235  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6236fi
6237
6238
6239fi
6240
6241
6242fi
6243
6244
6245fi
6246
6247
6248fi
6249
6250    ;;
6251  esac
6252
6253  if test "x$lt_cv_dlopen" != xno; then
6254    enable_dlopen=yes
6255  else
6256    enable_dlopen=no
6257  fi
6258
6259  case "$lt_cv_dlopen" in
6260  dlopen)
6261    save_CPPFLAGS="$CPP_FLAGS"
6262        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6263
6264    save_LDFLAGS="$LDFLAGS"
6265    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6266
6267    save_LIBS="$LIBS"
6268    LIBS="$lt_cv_dlopen_libs $LIBS"
6269
6270    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6271echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6272if test "${lt_cv_dlopen_self+set}" = set; then
6273  echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275  	  if test "$cross_compiling" = yes; then :
6276  lt_cv_dlopen_self=cross
6277else
6278    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6279  lt_status=$lt_dlunknown
6280  cat > conftest.$ac_ext <<EOF
6281#line 6281 "configure"
6282#include "confdefs.h"
6283
6284#if HAVE_DLFCN_H
6285#include <dlfcn.h>
6286#endif
6287
6288#include <stdio.h>
6289
6290#ifdef RTLD_GLOBAL
6291#  define LT_DLGLOBAL		RTLD_GLOBAL
6292#else
6293#  ifdef DL_GLOBAL
6294#    define LT_DLGLOBAL		DL_GLOBAL
6295#  else
6296#    define LT_DLGLOBAL		0
6297#  endif
6298#endif
6299
6300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6301   find out it does not work in some platform. */
6302#ifndef LT_DLLAZY_OR_NOW
6303#  ifdef RTLD_LAZY
6304#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6305#  else
6306#    ifdef DL_LAZY
6307#      define LT_DLLAZY_OR_NOW		DL_LAZY
6308#    else
6309#      ifdef RTLD_NOW
6310#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6311#      else
6312#        ifdef DL_NOW
6313#          define LT_DLLAZY_OR_NOW	DL_NOW
6314#        else
6315#          define LT_DLLAZY_OR_NOW	0
6316#        endif
6317#      endif
6318#    endif
6319#  endif
6320#endif
6321
6322#ifdef __cplusplus
6323extern "C" void exit (int);
6324#endif
6325
6326fnord() { int i=42;}
6327main ()
6328{
6329  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6330  int status = $lt_dlunknown;
6331
6332  if (self)
6333    {
6334      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6335      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6336      /* dlclose (self); */
6337    }
6338
6339    exit (status);
6340}
6341EOF
6342  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343  (eval $ac_link) 2>&5
6344  ac_status=$?
6345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6347    (./conftest; exit; ) 2>/dev/null
6348    lt_status=$?
6349    case x$lt_status in
6350      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6351      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6352      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6353    esac
6354  else :
6355    # compilation failed
6356    lt_cv_dlopen_self=no
6357  fi
6358fi
6359rm -fr conftest*
6360
6361
6362fi
6363echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6364echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6365
6366    if test "x$lt_cv_dlopen_self" = xyes; then
6367      LDFLAGS="$LDFLAGS $link_static_flag"
6368      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6369echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6370if test "${lt_cv_dlopen_self_static+set}" = set; then
6371  echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373  	  if test "$cross_compiling" = yes; then :
6374  lt_cv_dlopen_self_static=cross
6375else
6376    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6377  lt_status=$lt_dlunknown
6378  cat > conftest.$ac_ext <<EOF
6379#line 6379 "configure"
6380#include "confdefs.h"
6381
6382#if HAVE_DLFCN_H
6383#include <dlfcn.h>
6384#endif
6385
6386#include <stdio.h>
6387
6388#ifdef RTLD_GLOBAL
6389#  define LT_DLGLOBAL		RTLD_GLOBAL
6390#else
6391#  ifdef DL_GLOBAL
6392#    define LT_DLGLOBAL		DL_GLOBAL
6393#  else
6394#    define LT_DLGLOBAL		0
6395#  endif
6396#endif
6397
6398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6399   find out it does not work in some platform. */
6400#ifndef LT_DLLAZY_OR_NOW
6401#  ifdef RTLD_LAZY
6402#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6403#  else
6404#    ifdef DL_LAZY
6405#      define LT_DLLAZY_OR_NOW		DL_LAZY
6406#    else
6407#      ifdef RTLD_NOW
6408#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6409#      else
6410#        ifdef DL_NOW
6411#          define LT_DLLAZY_OR_NOW	DL_NOW
6412#        else
6413#          define LT_DLLAZY_OR_NOW	0
6414#        endif
6415#      endif
6416#    endif
6417#  endif
6418#endif
6419
6420#ifdef __cplusplus
6421extern "C" void exit (int);
6422#endif
6423
6424fnord() { int i=42;}
6425main ()
6426{
6427  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6428  int status = $lt_dlunknown;
6429
6430  if (self)
6431    {
6432      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6433      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6434      /* dlclose (self); */
6435    }
6436
6437    exit (status);
6438}
6439EOF
6440  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441  (eval $ac_link) 2>&5
6442  ac_status=$?
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6445    (./conftest; exit; ) 2>/dev/null
6446    lt_status=$?
6447    case x$lt_status in
6448      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6449      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6450      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6451    esac
6452  else :
6453    # compilation failed
6454    lt_cv_dlopen_self_static=no
6455  fi
6456fi
6457rm -fr conftest*
6458
6459
6460fi
6461echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6462echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6463    fi
6464
6465    CPPFLAGS="$save_CPPFLAGS"
6466    LDFLAGS="$save_LDFLAGS"
6467    LIBS="$save_LIBS"
6468    ;;
6469  esac
6470
6471  case "$lt_cv_dlopen_self" in
6472  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6473  *) enable_dlopen_self=unknown ;;
6474  esac
6475
6476  case "$lt_cv_dlopen_self_static" in
6477  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6478  *) enable_dlopen_self_static=unknown ;;
6479  esac
6480fi
6481
6482
6483## FIXME: this should be a separate macro
6484##
6485if test "$enable_shared" = yes && test "$GCC" = yes; then
6486  case "$archive_cmds" in
6487  *'~'*)
6488    # FIXME: we may have to deal with multi-command sequences.
6489    ;;
6490  '$CC '*)
6491    # Test whether the compiler implicitly links with -lc since on some
6492    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6493    # to ld, don't add -lc before -lgcc.
6494    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6495echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6496    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499  $rm conftest*
6500    echo 'static int dummy;' > conftest.$ac_ext
6501
6502    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503  (eval $ac_compile) 2>&5
6504  ac_status=$?
6505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506  (exit $ac_status); }; then
6507      soname=conftest
6508      lib=conftest
6509      libobjs=conftest.$ac_objext
6510      deplibs=
6511      wl=$lt_cv_prog_cc_wl
6512      compiler_flags=-v
6513      linker_flags=-v
6514      verstring=
6515      output_objdir=.
6516      libname=conftest
6517      save_allow_undefined_flag=$allow_undefined_flag
6518      allow_undefined_flag=
6519      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6520  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6521  ac_status=$?
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); }
6524      then
6525	lt_cv_archive_cmds_need_lc=no
6526      else
6527	lt_cv_archive_cmds_need_lc=yes
6528      fi
6529      allow_undefined_flag=$save_allow_undefined_flag
6530    else
6531      cat conftest.err 1>&5
6532    fi
6533fi
6534
6535    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6536echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6537    ;;
6538  esac
6539fi
6540need_lc=${lt_cv_archive_cmds_need_lc-yes}
6541##
6542## END FIXME
6543
6544## FIXME: this should be a separate macro
6545##
6546# The second clause should only fire when bootstrapping the
6547# libtool distribution, otherwise you forgot to ship ltmain.sh
6548# with your package, and you will get complaints that there are
6549# no rules to generate ltmain.sh.
6550if test -f "$ltmain"; then
6551  :
6552else
6553  # If there is no Makefile yet, we rely on a make rule to execute
6554  # `config.status --recheck' to rerun these tests and create the
6555  # libtool script then.
6556  test -f Makefile && make "$ltmain"
6557fi
6558
6559if test -f "$ltmain"; then
6560  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6561  $rm -f "${ofile}T"
6562
6563  echo creating $ofile
6564
6565  # Now quote all the things that may contain metacharacters while being
6566  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6567  # variables and quote the copies for generation of the libtool script.
6568  for var in echo old_CC old_CFLAGS \
6569    AR AR_FLAGS CC LD LN_S NM SHELL \
6570    reload_flag reload_cmds wl \
6571    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6572    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6573    library_names_spec soname_spec \
6574    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6575    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6576    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6577    old_striplib striplib file_magic_cmd export_symbols_cmds \
6578    deplibs_check_method allow_undefined_flag no_undefined_flag \
6579    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6580    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6581    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6582    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6583
6584    case "$var" in
6585    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6586    old_postinstall_cmds | old_postuninstall_cmds | \
6587    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6588    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6589    postinstall_cmds | postuninstall_cmds | \
6590    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6591      # Double-quote double-evaled strings.
6592      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6593      ;;
6594    *)
6595      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6596      ;;
6597    esac
6598  done
6599
6600  cat <<__EOF__ > "${ofile}T"
6601#! $SHELL
6602
6603# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6604# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6605# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6606#
6607# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6608# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6609#
6610# This program is free software; you can redistribute it and/or modify
6611# it under the terms of the GNU General Public License as published by
6612# the Free Software Foundation; either version 2 of the License, or
6613# (at your option) any later version.
6614#
6615# This program is distributed in the hope that it will be useful, but
6616# WITHOUT ANY WARRANTY; without even the implied warranty of
6617# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6618# General Public License for more details.
6619#
6620# You should have received a copy of the GNU General Public License
6621# along with this program; if not, write to the Free Software
6622# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6623#
6624# As a special exception to the GNU General Public License, if you
6625# distribute this file as part of a program that contains a
6626# configuration script generated by Autoconf, you may include it under
6627# the same distribution terms that you use for the rest of that program.
6628
6629# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6630Xsed="sed -e s/^X//"
6631
6632# The HP-UX ksh and POSIX shell print the target directory to stdout
6633# if CDPATH is set.
6634if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6635
6636# ### BEGIN LIBTOOL CONFIG
6637
6638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6639
6640# Shell to use when invoking shell scripts.
6641SHELL=$lt_SHELL
6642
6643# Whether or not to build shared libraries.
6644build_libtool_libs=$enable_shared
6645
6646# Whether or not to add -lc for building shared libraries.
6647build_libtool_need_lc=$need_lc
6648
6649# Whether or not to build static libraries.
6650build_old_libs=$enable_static
6651
6652# Whether or not to optimize for fast installation.
6653fast_install=$enable_fast_install
6654
6655# The host system.
6656host_alias=$host_alias
6657host=$host
6658
6659# An echo program that does not interpret backslashes.
6660echo=$lt_echo
6661
6662# The archiver.
6663AR=$lt_AR
6664AR_FLAGS=$lt_AR_FLAGS
6665
6666# The default C compiler.
6667CC=$lt_CC
6668
6669# Is the compiler the GNU C compiler?
6670with_gcc=$GCC
6671
6672# The linker used to build libraries.
6673LD=$lt_LD
6674
6675# Whether we need hard or soft links.
6676LN_S=$lt_LN_S
6677
6678# A BSD-compatible nm program.
6679NM=$lt_NM
6680
6681# A symbol stripping program
6682STRIP=$STRIP
6683
6684# Used to examine libraries when file_magic_cmd begins "file"
6685MAGIC_CMD=$MAGIC_CMD
6686
6687# Used on cygwin: DLL creation program.
6688DLLTOOL="$DLLTOOL"
6689
6690# Used on cygwin: object dumper.
6691OBJDUMP="$OBJDUMP"
6692
6693# Used on cygwin: assembler.
6694AS="$AS"
6695
6696# The name of the directory that contains temporary libtool files.
6697objdir=$objdir
6698
6699# How to create reloadable object files.
6700reload_flag=$lt_reload_flag
6701reload_cmds=$lt_reload_cmds
6702
6703# How to pass a linker flag through the compiler.
6704wl=$lt_wl
6705
6706# Object file suffix (normally "o").
6707objext="$ac_objext"
6708
6709# Old archive suffix (normally "a").
6710libext="$libext"
6711
6712# Executable file suffix (normally "").
6713exeext="$exeext"
6714
6715# Additional compiler flags for building library objects.
6716pic_flag=$lt_pic_flag
6717pic_mode=$pic_mode
6718
6719# Does compiler simultaneously support -c and -o options?
6720compiler_c_o=$lt_compiler_c_o
6721
6722# Can we write directly to a .lo ?
6723compiler_o_lo=$lt_compiler_o_lo
6724
6725# Must we lock files when doing compilation ?
6726need_locks=$lt_need_locks
6727
6728# Do we need the lib prefix for modules?
6729need_lib_prefix=$need_lib_prefix
6730
6731# Do we need a version for libraries?
6732need_version=$need_version
6733
6734# Whether dlopen is supported.
6735dlopen_support=$enable_dlopen
6736
6737# Whether dlopen of programs is supported.
6738dlopen_self=$enable_dlopen_self
6739
6740# Whether dlopen of statically linked programs is supported.
6741dlopen_self_static=$enable_dlopen_self_static
6742
6743# Compiler flag to prevent dynamic linking.
6744link_static_flag=$lt_link_static_flag
6745
6746# Compiler flag to turn off builtin functions.
6747no_builtin_flag=$lt_no_builtin_flag
6748
6749# Compiler flag to allow reflexive dlopens.
6750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6751
6752# Compiler flag to generate shared objects directly from archives.
6753whole_archive_flag_spec=$lt_whole_archive_flag_spec
6754
6755# Compiler flag to generate thread-safe objects.
6756thread_safe_flag_spec=$lt_thread_safe_flag_spec
6757
6758# Library versioning type.
6759version_type=$version_type
6760
6761# Format of library name prefix.
6762libname_spec=$lt_libname_spec
6763
6764# List of archive names.  First name is the real one, the rest are links.
6765# The last name is the one that the linker finds with -lNAME.
6766library_names_spec=$lt_library_names_spec
6767
6768# The coded name of the library, if different from the real name.
6769soname_spec=$lt_soname_spec
6770
6771# Commands used to build and install an old-style archive.
6772RANLIB=$lt_RANLIB
6773old_archive_cmds=$lt_old_archive_cmds
6774old_postinstall_cmds=$lt_old_postinstall_cmds
6775old_postuninstall_cmds=$lt_old_postuninstall_cmds
6776
6777# Create an old-style archive from a shared archive.
6778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6779
6780# Create a temporary old-style archive to link instead of a shared archive.
6781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6782
6783# Commands used to build and install a shared archive.
6784archive_cmds=$lt_archive_cmds
6785archive_expsym_cmds=$lt_archive_expsym_cmds
6786postinstall_cmds=$lt_postinstall_cmds
6787postuninstall_cmds=$lt_postuninstall_cmds
6788
6789# Commands to strip libraries.
6790old_striplib=$lt_old_striplib
6791striplib=$lt_striplib
6792
6793# Method to check whether dependent libraries are shared objects.
6794deplibs_check_method=$lt_deplibs_check_method
6795
6796# Command to use when deplibs_check_method == file_magic.
6797file_magic_cmd=$lt_file_magic_cmd
6798
6799# Flag that allows shared libraries with undefined symbols to be built.
6800allow_undefined_flag=$lt_allow_undefined_flag
6801
6802# Flag that forces no undefined symbols.
6803no_undefined_flag=$lt_no_undefined_flag
6804
6805# Commands used to finish a libtool library installation in a directory.
6806finish_cmds=$lt_finish_cmds
6807
6808# Same as above, but a single script fragment to be evaled but not shown.
6809finish_eval=$lt_finish_eval
6810
6811# Take the output of nm and produce a listing of raw symbols and C names.
6812global_symbol_pipe=$lt_global_symbol_pipe
6813
6814# Transform the output of nm in a proper C declaration
6815global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6816
6817# This is the shared library runtime path variable.
6818runpath_var=$runpath_var
6819
6820# This is the shared library path variable.
6821shlibpath_var=$shlibpath_var
6822
6823# Is shlibpath searched before the hard-coded library search path?
6824shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6825
6826# How to hardcode a shared library path into an executable.
6827hardcode_action=$hardcode_action
6828
6829# Whether we should hardcode library paths into libraries.
6830hardcode_into_libs=$hardcode_into_libs
6831
6832# Flag to hardcode \$libdir into a binary during linking.
6833# This must work even if \$libdir does not exist.
6834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6835
6836# Whether we need a single -rpath flag with a separated argument.
6837hardcode_libdir_separator=$lt_hardcode_libdir_separator
6838
6839# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6840# resulting binary.
6841hardcode_direct=$hardcode_direct
6842
6843# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6844# resulting binary.
6845hardcode_minus_L=$hardcode_minus_L
6846
6847# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6848# the resulting binary.
6849hardcode_shlibpath_var=$hardcode_shlibpath_var
6850
6851# Variables whose values should be saved in libtool wrapper scripts and
6852# restored at relink time.
6853variables_saved_for_relink="$variables_saved_for_relink"
6854
6855# Whether libtool must link a program against all its dependency libraries.
6856link_all_deplibs=$link_all_deplibs
6857
6858# Compile-time system search path for libraries
6859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6860
6861# Run-time system search path for libraries
6862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6863
6864# Fix the shell variable \$srcfile for the compiler.
6865fix_srcfile_path="$fix_srcfile_path"
6866
6867# Set to yes if exported symbols are required.
6868always_export_symbols=$always_export_symbols
6869
6870# The commands to list exported symbols.
6871export_symbols_cmds=$lt_export_symbols_cmds
6872
6873# The commands to extract the exported symbol list from a shared archive.
6874extract_expsyms_cmds=$lt_extract_expsyms_cmds
6875
6876# Symbols that should not be listed in the preloaded symbols.
6877exclude_expsyms=$lt_exclude_expsyms
6878
6879# Symbols that must always be exported.
6880include_expsyms=$lt_include_expsyms
6881
6882# ### END LIBTOOL CONFIG
6883
6884__EOF__
6885
6886  case "$host_os" in
6887  aix3*)
6888    cat <<\EOF >> "${ofile}T"
6889
6890# AIX sometimes has problems with the GCC collect2 program.  For some
6891# reason, if we set the COLLECT_NAMES environment variable, the problems
6892# vanish in a puff of smoke.
6893if test "X${COLLECT_NAMES+set}" != Xset; then
6894  COLLECT_NAMES=
6895  export COLLECT_NAMES
6896fi
6897EOF
6898    ;;
6899  esac
6900
6901  case "$host_os" in
6902  cygwin* | mingw* | pw32* | os2*)
6903    cat <<'EOF' >> "${ofile}T"
6904      # This is a source program that is used to create dlls on Windows
6905      # Don't remove nor modify the starting and closing comments
6906# /* ltdll.c starts here */
6907# #define WIN32_LEAN_AND_MEAN
6908# #include <windows.h>
6909# #undef WIN32_LEAN_AND_MEAN
6910# #include <stdio.h>
6911#
6912# #ifndef __CYGWIN__
6913# #  ifdef __CYGWIN32__
6914# #    define __CYGWIN__ __CYGWIN32__
6915# #  endif
6916# #endif
6917#
6918# #ifdef __cplusplus
6919# extern "C" {
6920# #endif
6921# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6922# #ifdef __cplusplus
6923# }
6924# #endif
6925#
6926# #ifdef __CYGWIN__
6927# #include <cygwin/cygwin_dll.h>
6928# DECLARE_CYGWIN_DLL( DllMain );
6929# #endif
6930# HINSTANCE __hDllInstance_base;
6931#
6932# BOOL APIENTRY
6933# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6934# {
6935#   __hDllInstance_base = hInst;
6936#   return TRUE;
6937# }
6938# /* ltdll.c ends here */
6939        # This is a source program that is used to create import libraries
6940        # on Windows for dlls which lack them. Don't remove nor modify the
6941        # starting and closing comments
6942# /* impgen.c starts here */
6943# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6944#
6945#  This file is part of GNU libtool.
6946#
6947#  This program is free software; you can redistribute it and/or modify
6948#  it under the terms of the GNU General Public License as published by
6949#  the Free Software Foundation; either version 2 of the License, or
6950#  (at your option) any later version.
6951#
6952#  This program is distributed in the hope that it will be useful,
6953#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6954#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6955#  GNU General Public License for more details.
6956#
6957#  You should have received a copy of the GNU General Public License
6958#  along with this program; if not, write to the Free Software
6959#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6960#  */
6961#
6962# #include <stdio.h>		/* for printf() */
6963# #include <unistd.h>		/* for open(), lseek(), read() */
6964# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
6965# #include <string.h>		/* for strdup() */
6966#
6967# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6968# #ifndef O_BINARY
6969# #define O_BINARY 0
6970# #endif
6971#
6972# static unsigned int
6973# pe_get16 (fd, offset)
6974#      int fd;
6975#      int offset;
6976# {
6977#   unsigned char b[2];
6978#   lseek (fd, offset, SEEK_SET);
6979#   read (fd, b, 2);
6980#   return b[0] + (b[1]<<8);
6981# }
6982#
6983# static unsigned int
6984# pe_get32 (fd, offset)
6985#     int fd;
6986#     int offset;
6987# {
6988#   unsigned char b[4];
6989#   lseek (fd, offset, SEEK_SET);
6990#   read (fd, b, 4);
6991#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6992# }
6993#
6994# static unsigned int
6995# pe_as32 (ptr)
6996#      void *ptr;
6997# {
6998#   unsigned char *b = ptr;
6999#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7000# }
7001#
7002# int
7003# main (argc, argv)
7004#     int argc;
7005#     char *argv[];
7006# {
7007#     int dll;
7008#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7009#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7010#     unsigned long name_rvas, nexp;
7011#     unsigned char *expdata, *erva;
7012#     char *filename, *dll_name;
7013#
7014#     filename = argv[1];
7015#
7016#     dll = open(filename, O_RDONLY|O_BINARY);
7017#     if (!dll)
7018# 	return 1;
7019#
7020#     dll_name = filename;
7021#
7022#     for (i=0; filename[i]; i++)
7023# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7024# 	    dll_name = filename + i +1;
7025#
7026#     pe_header_offset = pe_get32 (dll, 0x3c);
7027#     opthdr_ofs = pe_header_offset + 4 + 20;
7028#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7029#
7030#     if (num_entries < 1) /* no exports */
7031# 	return 1;
7032#
7033#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7034#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7035#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7036#     secptr = (pe_header_offset + 4 + 20 +
7037# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7038#
7039#     expptr = 0;
7040#     for (i = 0; i < nsections; i++)
7041#     {
7042# 	char sname[8];
7043# 	unsigned long secptr1 = secptr + 40 * i;
7044# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7045# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7046# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7047# 	lseek(dll, secptr1, SEEK_SET);
7048# 	read(dll, sname, 8);
7049# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7050# 	{
7051# 	    expptr = fptr + (export_rva - vaddr);
7052# 	    if (export_rva + export_size > vaddr + vsize)
7053# 		export_size = vsize - (export_rva - vaddr);
7054# 	    break;
7055# 	}
7056#     }
7057#
7058#     expdata = (unsigned char*)malloc(export_size);
7059#     lseek (dll, expptr, SEEK_SET);
7060#     read (dll, expdata, export_size);
7061#     erva = expdata - export_rva;
7062#
7063#     nexp = pe_as32 (expdata+24);
7064#     name_rvas = pe_as32 (expdata+32);
7065#
7066#     printf ("EXPORTS\n");
7067#     for (i = 0; i<nexp; i++)
7068#     {
7069# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7070# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7071#     }
7072#
7073#     return 0;
7074# }
7075# /* impgen.c ends here */
7076
7077EOF
7078    ;;
7079  esac
7080
7081  # We use sed instead of cat because bash on DJGPP gets confused if
7082  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7083  # text mode, it properly converts lines to CR/LF.  This bash problem
7084  # is reportedly fixed, but why not run on old versions too?
7085  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7086
7087  mv -f "${ofile}T" "$ofile" || \
7088    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7089  chmod +x "$ofile"
7090fi
7091##
7092## END FIXME
7093
7094
7095
7096
7097
7098# This can be used to rebuild libtool when needed
7099LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7100
7101# Always use our own libtool.
7102LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7103
7104# Prevent multiple expansion
7105
7106
7107MALLOC_TYPE=S
7108support_addstrings=no
7109support_frills=no
7110support_linespace=no
7111support_graphics=no
7112support_inheritpixmap=no
7113support_keepscrolling=no
7114support_menubar=no
7115support_mousewheel=no
7116support_mouseslipwheel=no
7117support_oldselection=no
7118support_utmp=no
7119support_wtmp=no
7120support_lastlog=no
7121support_xim=no
7122support_xpm=no
7123support_scroll_xvt=no
7124support_scroll_next=no
7125support_scroll_xterm=no
7126multichar_set=no
7127
7128
7129if test "x$enable_shared" = xyes; then
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define LIBXVT 1
7133_ACEOF
7134
7135    INSTALL_LIBXVT=yes
7136fi
7137
7138
7139# Check whether --enable-everything or --disable-everything was given.
7140if test "${enable_everything+set}" = set; then
7141  enableval="$enable_everything"
7142  if test x$enableval = xyes; then
7143    support_24bit=yes
7144    support_frills=yes
7145    support_linespace=yes
7146    support_graphics=yes
7147    support_inheritpixmap=yes
7148    support_keepscrolling=yes
7149    support_lastlog=yes
7150    support_menubar=yes
7151    support_mousewheel=yes
7152    support_mouseslipwheel=yes
7153    support_oldselection=yes
7154    support_scroll_xvt=yes
7155    support_scroll_next=yes
7156    support_scroll_xterm=yes
7157    support_utmp=yes
7158    support_wtmp=yes
7159    support_xim=yes
7160    support_xpm=yes
7161  fi
7162fi;
7163
7164# Check whether --enable-languages or --disable-languages was given.
7165if test "${enable_languages+set}" = set; then
7166  enableval="$enable_languages"
7167  if test x$enableval = xyes; then
7168
7169cat >>confdefs.h <<\_ACEOF
7170#define MULTICHAR_SET 1
7171_ACEOF
7172 multichar_set=yes
7173  fi
7174fi;
7175
7176
7177# Check whether --with-encoding or --without-encoding was given.
7178if test "${with_encoding+set}" = set; then
7179  withval="$with_encoding"
7180  if test x$enableval = xyes; then
7181    withval=`echo $withval | tr 'a-z' 'A-Z'`
7182
7183cat >>confdefs.h <<_ACEOF
7184#define MULTICHAR_ENCODING $withval
7185_ACEOF
7186
7187  fi
7188fi;
7189
7190# Check whether --enable-utmp or --disable-utmp was given.
7191if test "${enable_utmp+set}" = set; then
7192  enableval="$enable_utmp"
7193  if test x$enableval = xyes -o x$enableval = xno; then
7194    support_utmp=$enableval
7195  fi
7196fi;
7197
7198# Check whether --enable-wtmp or --disable-wtmp was given.
7199if test "${enable_wtmp+set}" = set; then
7200  enableval="$enable_wtmp"
7201  if test x$enableval = xyes -o x$enableval = xno; then
7202    support_wtmp=$enableval
7203  fi
7204fi;
7205
7206# Check whether --enable-lastlog or --disable-lastlog was given.
7207if test "${enable_lastlog+set}" = set; then
7208  enableval="$enable_lastlog"
7209  if test x$enableval = xyes -o x$enableval = xno; then
7210    support_lastlog=$enableval
7211  fi
7212fi;
7213
7214# Check whether --enable-xpm-background or --disable-xpm-background was given.
7215if test "${enable_xpm_background+set}" = set; then
7216  enableval="$enable_xpm_background"
7217  if test x$enableval = xyes -o x$enableval = xno; then
7218    support_xpm=$enableval
7219  fi
7220fi;
7221
7222# Check whether --enable-transparency or --disable-transparency was given.
7223if test "${enable_transparency+set}" = set; then
7224  enableval="$enable_transparency"
7225  if test x$enableval = xyes -o x$enableval = xno; then
7226    support_inheritpixmap=$enableval
7227  fi
7228fi;
7229
7230# Check whether --enable-menubar or --disable-menubar was given.
7231if test "${enable_menubar+set}" = set; then
7232  enableval="$enable_menubar"
7233  if test x$enableval = xyes -o x$enableval = xno; then
7234    support_menubar=$enableval
7235  fi
7236fi;
7237
7238# Check whether --enable-graphics or --disable-graphics was given.
7239if test "${enable_graphics+set}" = set; then
7240  enableval="$enable_graphics"
7241  if test x$enableval = xyes -o x$enableval = xno; then
7242    support_graphics=$enableval
7243  fi
7244fi;
7245
7246# Check whether --enable-xvt-scroll or --disable-xvt-scroll was given.
7247if test "${enable_xvt_scroll+set}" = set; then
7248  enableval="$enable_xvt_scroll"
7249  if test x$enableval = xyes; then
7250    support_scroll_xvt=yes
7251  fi
7252fi;
7253
7254# Check whether --enable-next-scroll or --disable-next-scroll was given.
7255if test "${enable_next_scroll+set}" = set; then
7256  enableval="$enable_next_scroll"
7257  if test x$enableval = xyes; then
7258    support_scroll_next=yes
7259  fi
7260fi;
7261
7262# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
7263if test "${enable_xterm_scroll+set}" = set; then
7264  enableval="$enable_xterm_scroll"
7265  if test x$enableval = xyes; then
7266    support_scroll_xterm=yes
7267  fi
7268fi;
7269
7270# Check whether --enable-half-shadow or --disable-half-shadow was given.
7271if test "${enable_half_shadow+set}" = set; then
7272  enableval="$enable_half_shadow"
7273  if test x$enableval = xyes; then
7274
7275cat >>confdefs.h <<\_ACEOF
7276#define HALFSHADOW 1
7277_ACEOF
7278
7279  fi
7280fi;
7281
7282# Check whether --enable-xim or --disable-xim was given.
7283if test "${enable_xim+set}" = set; then
7284  enableval="$enable_xim"
7285  if test x$enableval = xyes -o x$enableval = xno; then
7286    support_xim=$enableval
7287  fi
7288fi;
7289
7290# Check whether --enable-greek or --disable-greek was given.
7291if test "${enable_greek+set}" = set; then
7292  enableval="$enable_greek"
7293  if test x$enableval = xyes; then
7294
7295cat >>confdefs.h <<\_ACEOF
7296#define GREEK_SUPPORT 1
7297_ACEOF
7298
7299    OBJGRKELOT="grkelot.o"
7300  fi
7301fi;
7302
7303# Check whether --enable-ttygid or --disable-ttygid was given.
7304if test "${enable_ttygid+set}" = set; then
7305  enableval="$enable_ttygid"
7306  if test x$enableval = xyes; then
7307
7308cat >>confdefs.h <<\_ACEOF
7309#define TTY_GID_SUPPORT 1
7310_ACEOF
7311
7312  fi
7313fi;
7314
7315# Check whether --enable-backspace-key or --disable-backspace-key was given.
7316if test "${enable_backspace_key+set}" = set; then
7317  enableval="$enable_backspace_key"
7318  if test x$enableval = xno; then
7319
7320cat >>confdefs.h <<\_ACEOF
7321#define NO_BACKSPACE_KEY 1
7322_ACEOF
7323
7324  fi
7325fi;
7326
7327# Check whether --enable-delete-key or --disable-delete-key was given.
7328if test "${enable_delete_key+set}" = set; then
7329  enableval="$enable_delete_key"
7330  if test x$enableval = xno; then
7331
7332cat >>confdefs.h <<\_ACEOF
7333#define NO_DELETE_KEY 1
7334_ACEOF
7335
7336  fi
7337fi;
7338
7339# Check whether --enable-resources or --disable-resources was given.
7340if test "${enable_resources+set}" = set; then
7341  enableval="$enable_resources"
7342  if test x$enableval = xno; then
7343
7344cat >>confdefs.h <<\_ACEOF
7345#define NO_RESOURCES 1
7346_ACEOF
7347
7348  fi
7349fi;
7350
7351# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
7352if test "${enable_xgetdefault+set}" = set; then
7353  enableval="$enable_xgetdefault"
7354  if test x$enableval = xyes; then
7355
7356cat >>confdefs.h <<\_ACEOF
7357#define USE_XGETDEFAULT 1
7358_ACEOF
7359
7360  fi
7361fi;
7362
7363# Check whether --enable-strings or --disable-strings was given.
7364if test "${enable_strings+set}" = set; then
7365  enableval="$enable_strings"
7366  if test x$enableval = xyes -o x$enableval = xno; then
7367    support_addstrings=$enableval
7368  fi
7369fi;
7370
7371# Check whether --enable-swapscreen or --disable-swapscreen was given.
7372if test "${enable_swapscreen+set}" = set; then
7373  enableval="$enable_swapscreen"
7374  if test x$enableval = xno; then
7375
7376cat >>confdefs.h <<\_ACEOF
7377#define NO_SECONDARY_SCREEN 1
7378_ACEOF
7379
7380  fi
7381fi;
7382
7383# Check whether --enable-frills or --disable-frills was given.
7384if test "${enable_frills+set}" = set; then
7385  enableval="$enable_frills"
7386  if test x$enableval = xyes -o x$enableval = xno; then
7387    support_frills=$enableval
7388  fi
7389fi;
7390
7391# Check whether --enable-linespace or --disable-linespace was given.
7392if test "${enable_linespace+set}" = set; then
7393  enableval="$enable_linespace"
7394  if test x$enableval = xyes -o x$enableval = xno; then
7395    support_linespace=$enableval
7396  fi
7397fi;
7398
7399# Check whether --enable-24bit or --disable-24bit was given.
7400if test "${enable_24bit+set}" = set; then
7401  enableval="$enable_24bit"
7402  if test x$enableval = xyes -o x$enableval = xno; then
7403    support_24bit=$enableval
7404  fi
7405fi;
7406
7407# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
7408if test "${enable_keepscrolling+set}" = set; then
7409  enableval="$enable_keepscrolling"
7410  if test x$enableval = xyes -o x$enableval = xno; then
7411    support_keepscrolling=$enableval
7412  fi
7413fi;
7414
7415# Check whether --enable-mousewheel or --disable-mousewheel was given.
7416if test "${enable_mousewheel+set}" = set; then
7417  enableval="$enable_mousewheel"
7418  if test x$enableval = xyes -o x$enableval = xno; then
7419    support_mousewheel=$enableval
7420  fi
7421fi;
7422
7423# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
7424if test "${enable_slipwheeling+set}" = set; then
7425  enableval="$enable_slipwheeling"
7426  if test x$enableval = xyes -o x$enableval = xno; then
7427    support_mouseslipwheel=$enableval
7428  fi
7429fi;
7430
7431# Check whether --enable-old-selection or --disable-old-selection was given.
7432if test "${enable_old_selection+set}" = set; then
7433  enableval="$enable_old_selection"
7434  if test x$enableval = xyes -o x$enableval = xno; then
7435    support_oldselection=$enableval
7436  fi
7437fi;
7438
7439# Check whether --enable-new-selection or --disable-new-selection was given.
7440if test "${enable_new_selection+set}" = set; then
7441  enableval="$enable_new_selection"
7442  if test x$enableval = xno; then
7443
7444cat >>confdefs.h <<\_ACEOF
7445#define NO_NEW_SELECTION 1
7446_ACEOF
7447
7448  fi
7449fi;
7450
7451# Check whether --enable-dmalloc or --disable-dmalloc was given.
7452if test "${enable_dmalloc+set}" = set; then
7453  enableval="$enable_dmalloc"
7454  if test x$enableval = xyes; then
7455    MALLOC_TYPE=G
7456    DEBUG=-DDEBUG_MALLOC
7457    DLIB="-L/usr/local/lib -ldmalloc"
7458    DINCLUDE=-I/usr/local/include
7459  fi
7460fi;
7461
7462# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
7463if test "${enable_dlmalloc+set}" = set; then
7464  enableval="$enable_dlmalloc"
7465  if test x$enableval = xyes; then
7466    MALLOC_TYPE=D
7467    DEBUG=
7468    DLIB="-L/usr/local/lib -ldlmalloc"
7469    DINCLUDE=
7470  fi
7471fi;
7472
7473# Check whether --enable-smart-resize or --disable-smart-resize was given.
7474if test "${enable_smart_resize+set}" = set; then
7475  enableval="$enable_smart_resize"
7476  if test x$enableval = xyes; then
7477
7478cat >>confdefs.h <<\_ACEOF
7479#define SMART_RESIZE 1
7480_ACEOF
7481
7482  fi
7483fi;
7484
7485# Check whether --enable-256-color or --disable-256-color was given.
7486if test "${enable_256_color+set}" = set; then
7487  enableval="$enable_256_color"
7488  if test x$enableval = xyes; then
7489
7490cat >>confdefs.h <<\_ACEOF
7491#define TTY_256COLOR 1
7492_ACEOF
7493
7494  fi
7495fi;
7496
7497
7498# Check whether --with-term or --without-term was given.
7499if test "${with_term+set}" = set; then
7500  withval="$with_term"
7501  if test x$withval != x; then
7502
7503cat >>confdefs.h <<_ACEOF
7504#define TERMENV "$withval"
7505_ACEOF
7506 term="$withval"
7507  fi
7508fi;
7509
7510
7511# Check whether --with-terminfo or --without-terminfo was given.
7512if test "${with_terminfo+set}" = set; then
7513  withval="$with_terminfo"
7514  if test x$withval != x; then
7515
7516cat >>confdefs.h <<_ACEOF
7517#define XVT_TERMINFO "$withval"
7518_ACEOF
7519 terminfo="$withval"
7520  fi
7521fi;
7522
7523
7524
7525cat >>confdefs.h <<\_ACEOF
7526#define PROTOTYPES 1
7527_ACEOF
7528
7529
7530if test -z "$CFLAGS"; then
7531    if test -z "$CCOPTS"; then
7532	CCOPTS='-O'
7533    fi
7534    CFLAGS="$CCOPTS"
7535fi
7536
7537# Extract the first word of "mv", so it can be a program name with args.
7538set dummy mv; ac_word=$2
7539echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541if test "${ac_cv_path_MV+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  case $MV in
7545  [\\/]* | ?:[\\/]*)
7546  ac_cv_path_MV="$MV" # Let the user override the test with a path.
7547  ;;
7548  *)
7549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552  IFS=$as_save_IFS
7553  test -z "$as_dir" && as_dir=.
7554  for ac_exec_ext in '' $ac_executable_extensions; do
7555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558    break 2
7559  fi
7560done
7561done
7562
7563  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7564  ;;
7565esac
7566fi
7567MV=$ac_cv_path_MV
7568
7569if test -n "$MV"; then
7570  echo "$as_me:$LINENO: result: $MV" >&5
7571echo "${ECHO_T}$MV" >&6
7572else
7573  echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
7575fi
7576
7577# Extract the first word of "rm", so it can be a program name with args.
7578set dummy rm; ac_word=$2
7579echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581if test "${ac_cv_path_RM+set}" = set; then
7582  echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584  case $RM in
7585  [\\/]* | ?:[\\/]*)
7586  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7587  ;;
7588  *)
7589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602
7603  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7604  ;;
7605esac
7606fi
7607RM=$ac_cv_path_RM
7608
7609if test -n "$RM"; then
7610  echo "$as_me:$LINENO: result: $RM" >&5
7611echo "${ECHO_T}$RM" >&6
7612else
7613  echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615fi
7616
7617# Extract the first word of "cp", so it can be a program name with args.
7618set dummy cp; ac_word=$2
7619echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621if test "${ac_cv_path_CP+set}" = set; then
7622  echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624  case $CP in
7625  [\\/]* | ?:[\\/]*)
7626  ac_cv_path_CP="$CP" # Let the user override the test with a path.
7627  ;;
7628  *)
7629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634  for ac_exec_ext in '' $ac_executable_extensions; do
7635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
7637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641done
7642
7643  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
7644  ;;
7645esac
7646fi
7647CP=$ac_cv_path_CP
7648
7649if test -n "$CP"; then
7650  echo "$as_me:$LINENO: result: $CP" >&5
7651echo "${ECHO_T}$CP" >&6
7652else
7653  echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
7655fi
7656
7657# Extract the first word of "ln", so it can be a program name with args.
7658set dummy ln; ac_word=$2
7659echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7661if test "${ac_cv_path_LN+set}" = set; then
7662  echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664  case $LN in
7665  [\\/]* | ?:[\\/]*)
7666  ac_cv_path_LN="$LN" # Let the user override the test with a path.
7667  ;;
7668  *)
7669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674  for ac_exec_ext in '' $ac_executable_extensions; do
7675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681done
7682
7683  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
7684  ;;
7685esac
7686fi
7687LN=$ac_cv_path_LN
7688
7689if test -n "$LN"; then
7690  echo "$as_me:$LINENO: result: $LN" >&5
7691echo "${ECHO_T}$LN" >&6
7692else
7693  echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
7695fi
7696
7697# Extract the first word of "sed", so it can be a program name with args.
7698set dummy sed; ac_word=$2
7699echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701if test "${ac_cv_path_SED+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  case $SED in
7705  [\\/]* | ?:[\\/]*)
7706  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7707  ;;
7708  *)
7709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714  for ac_exec_ext in '' $ac_executable_extensions; do
7715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721done
7722
7723  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7724  ;;
7725esac
7726fi
7727SED=$ac_cv_path_SED
7728
7729if test -n "$SED"; then
7730  echo "$as_me:$LINENO: result: $SED" >&5
7731echo "${ECHO_T}$SED" >&6
7732else
7733  echo "$as_me:$LINENO: result: no" >&5
7734echo "${ECHO_T}no" >&6
7735fi
7736
7737# Extract the first word of "echo", so it can be a program name with args.
7738set dummy echo; ac_word=$2
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_path_ECHO+set}" = set; then
7742  echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744  case $ECHO in
7745  [\\/]* | ?:[\\/]*)
7746  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7747  ;;
7748  *)
7749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754  for ac_exec_ext in '' $ac_executable_extensions; do
7755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761done
7762
7763  test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
7764  ;;
7765esac
7766fi
7767ECHO=$ac_cv_path_ECHO
7768
7769if test -n "$ECHO"; then
7770  echo "$as_me:$LINENO: result: $ECHO" >&5
7771echo "${ECHO_T}$ECHO" >&6
7772else
7773  echo "$as_me:$LINENO: result: no" >&5
7774echo "${ECHO_T}no" >&6
7775fi
7776
7777# Extract the first word of "cmp", so it can be a program name with args.
7778set dummy cmp; ac_word=$2
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_path_CMP+set}" = set; then
7782  echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784  case $CMP in
7785  [\\/]* | ?:[\\/]*)
7786  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
7787  ;;
7788  *)
7789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794  for ac_exec_ext in '' $ac_executable_extensions; do
7795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
7797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801done
7802
7803  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
7804  ;;
7805esac
7806fi
7807CMP=$ac_cv_path_CMP
7808
7809if test -n "$CMP"; then
7810  echo "$as_me:$LINENO: result: $CMP" >&5
7811echo "${ECHO_T}$CMP" >&6
7812else
7813  echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
7815fi
7816
7817# Extract the first word of "tbl", so it can be a program name with args.
7818set dummy tbl; ac_word=$2
7819echo "$as_me:$LINENO: checking for $ac_word" >&5
7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821if test "${ac_cv_path_TBL+set}" = set; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824  case $TBL in
7825  [\\/]* | ?:[\\/]*)
7826  ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
7827  ;;
7828  *)
7829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832  IFS=$as_save_IFS
7833  test -z "$as_dir" && as_dir=.
7834  for ac_exec_ext in '' $ac_executable_extensions; do
7835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836    ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
7837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838    break 2
7839  fi
7840done
7841done
7842
7843  ;;
7844esac
7845fi
7846TBL=$ac_cv_path_TBL
7847
7848if test -n "$TBL"; then
7849  echo "$as_me:$LINENO: result: $TBL" >&5
7850echo "${ECHO_T}$TBL" >&6
7851else
7852  echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
7854fi
7855
7856
7857
7858
7859echo "$as_me:$LINENO: checking for X" >&5
7860echo $ECHO_N "checking for X... $ECHO_C" >&6
7861
7862
7863# Check whether --with-x or --without-x was given.
7864if test "${with_x+set}" = set; then
7865  withval="$with_x"
7866
7867fi;
7868# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7869if test "x$with_x" = xno; then
7870  # The user explicitly disabled X.
7871  have_x=disabled
7872else
7873  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7874    # Both variables are already set.
7875    have_x=yes
7876  else
7877    if test "${ac_cv_have_x+set}" = set; then
7878  echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880  # One or both of the vars are not set, and there is no cached value.
7881ac_x_includes=no ac_x_libraries=no
7882rm -fr conftest.dir
7883if mkdir conftest.dir; then
7884  cd conftest.dir
7885  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7886  cat >Imakefile <<'_ACEOF'
7887acfindx:
7888	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7889_ACEOF
7890  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7891    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7892    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7893    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7894    for ac_extension in a so sl; do
7895      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7896         test -f $ac_im_libdir/libX11.$ac_extension; then
7897        ac_im_usrlibdir=$ac_im_libdir; break
7898      fi
7899    done
7900    # Screen out bogus values from the imake configuration.  They are
7901    # bogus both because they are the default anyway, and because
7902    # using them would break gcc on systems where it needs fixed includes.
7903    case $ac_im_incroot in
7904	/usr/include) ;;
7905	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7906    esac
7907    case $ac_im_usrlibdir in
7908	/usr/lib | /lib) ;;
7909	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7910    esac
7911  fi
7912  cd ..
7913  rm -fr conftest.dir
7914fi
7915
7916# Standard set of common directories for X headers.
7917# Check X11 before X11Rn because it is often a symlink to the current release.
7918ac_x_header_dirs='
7919/usr/X11/include
7920/usr/X11R6/include
7921/usr/X11R5/include
7922/usr/X11R4/include
7923
7924/usr/include/X11
7925/usr/include/X11R6
7926/usr/include/X11R5
7927/usr/include/X11R4
7928
7929/usr/local/X11/include
7930/usr/local/X11R6/include
7931/usr/local/X11R5/include
7932/usr/local/X11R4/include
7933
7934/usr/local/include/X11
7935/usr/local/include/X11R6
7936/usr/local/include/X11R5
7937/usr/local/include/X11R4
7938
7939/usr/X386/include
7940/usr/x386/include
7941/usr/XFree86/include/X11
7942
7943/usr/include
7944/usr/local/include
7945/usr/unsupported/include
7946/usr/athena/include
7947/usr/local/x11r5/include
7948/usr/lpp/Xamples/include
7949
7950/usr/openwin/include
7951/usr/openwin/share/include'
7952
7953if test "$ac_x_includes" = no; then
7954  # Guess where to find include files, by looking for Intrinsic.h.
7955  # First, try using that file with no special directory specified.
7956  cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958/* confdefs.h.  */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h.  */
7963#include <X11/Intrinsic.h>
7964_ACEOF
7965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7967  ac_status=$?
7968  grep -v '^ *+' conftest.er1 >conftest.err
7969  rm -f conftest.er1
7970  cat conftest.err >&5
7971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972  (exit $ac_status); } >/dev/null; then
7973  if test -s conftest.err; then
7974    ac_cpp_err=$ac_c_preproc_warn_flag
7975  else
7976    ac_cpp_err=
7977  fi
7978else
7979  ac_cpp_err=yes
7980fi
7981if test -z "$ac_cpp_err"; then
7982  # We can compile using X headers with no special include directory.
7983ac_x_includes=
7984else
7985  echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988  for ac_dir in $ac_x_header_dirs; do
7989  if test -r "$ac_dir/X11/Intrinsic.h"; then
7990    ac_x_includes=$ac_dir
7991    break
7992  fi
7993done
7994fi
7995rm -f conftest.err conftest.$ac_ext
7996fi # $ac_x_includes = no
7997
7998if test "$ac_x_libraries" = no; then
7999  # Check for the libraries.
8000  # See if we find them without any special options.
8001  # Don't add to $LIBS permanently.
8002  ac_save_LIBS=$LIBS
8003  LIBS="-lXt $LIBS"
8004  cat >conftest.$ac_ext <<_ACEOF
8005#line $LINENO "configure"
8006/* confdefs.h.  */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h.  */
8011#include <X11/Intrinsic.h>
8012int
8013main ()
8014{
8015XtMalloc (0)
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022  (eval $ac_link) 2>&5
8023  ac_status=$?
8024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025  (exit $ac_status); } &&
8026         { ac_try='test -s conftest$ac_exeext'
8027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028  (eval $ac_try) 2>&5
8029  ac_status=$?
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); }; }; then
8032  LIBS=$ac_save_LIBS
8033# We can link X programs with no special library path.
8034ac_x_libraries=
8035else
8036  echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
8039LIBS=$ac_save_LIBS
8040for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8041do
8042  # Don't even attempt the hair of trying to link an X program!
8043  for ac_extension in a so sl; do
8044    if test -r $ac_dir/libXt.$ac_extension; then
8045      ac_x_libraries=$ac_dir
8046      break 2
8047    fi
8048  done
8049done
8050fi
8051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8052fi # $ac_x_libraries = no
8053
8054if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8055  # Didn't find X anywhere.  Cache the known absence of X.
8056  ac_cv_have_x="have_x=no"
8057else
8058  # Record where we found X for the cache.
8059  ac_cv_have_x="have_x=yes \
8060	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8061fi
8062fi
8063
8064  fi
8065  eval "$ac_cv_have_x"
8066fi # $with_x != no
8067
8068if test "$have_x" != yes; then
8069  echo "$as_me:$LINENO: result: $have_x" >&5
8070echo "${ECHO_T}$have_x" >&6
8071  no_x=yes
8072else
8073  # If each of the values was on the command line, it overrides each guess.
8074  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8075  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8076  # Update the cache value to reflect the command line values.
8077  ac_cv_have_x="have_x=yes \
8078		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8079  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8080echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8081fi
8082
8083if test "$no_x" = yes; then
8084  # Not all programs may use this symbol, but it does not hurt to define it.
8085
8086cat >>confdefs.h <<\_ACEOF
8087#define X_DISPLAY_MISSING 1
8088_ACEOF
8089
8090  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8091else
8092  if test -n "$x_includes"; then
8093    X_CFLAGS="$X_CFLAGS -I$x_includes"
8094  fi
8095
8096  # It would also be nice to do this for all -L options, not just this one.
8097  if test -n "$x_libraries"; then
8098    X_LIBS="$X_LIBS -L$x_libraries"
8099    # For Solaris; some versions of Sun CC require a space after -R and
8100    # others require no space.  Words are not sufficient . . . .
8101    case `(uname -sr) 2>/dev/null` in
8102    "SunOS 5"*)
8103      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8104echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8105      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8106      cat >conftest.$ac_ext <<_ACEOF
8107#line $LINENO "configure"
8108/* confdefs.h.  */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h.  */
8113
8114int
8115main ()
8116{
8117
8118  ;
8119  return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124  (eval $ac_link) 2>&5
8125  ac_status=$?
8126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127  (exit $ac_status); } &&
8128         { ac_try='test -s conftest$ac_exeext'
8129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130  (eval $ac_try) 2>&5
8131  ac_status=$?
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); }; }; then
8134  ac_R_nospace=yes
8135else
8136  echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139ac_R_nospace=no
8140fi
8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142      if test $ac_R_nospace = yes; then
8143	echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
8145	X_LIBS="$X_LIBS -R$x_libraries"
8146      else
8147	LIBS="$ac_xsave_LIBS -R $x_libraries"
8148	cat >conftest.$ac_ext <<_ACEOF
8149#line $LINENO "configure"
8150/* confdefs.h.  */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h.  */
8155
8156int
8157main ()
8158{
8159
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166  (eval $ac_link) 2>&5
8167  ac_status=$?
8168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169  (exit $ac_status); } &&
8170         { ac_try='test -s conftest$ac_exeext'
8171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172  (eval $ac_try) 2>&5
8173  ac_status=$?
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); }; }; then
8176  ac_R_space=yes
8177else
8178  echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181ac_R_space=no
8182fi
8183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184	if test $ac_R_space = yes; then
8185	  echo "$as_me:$LINENO: result: yes" >&5
8186echo "${ECHO_T}yes" >&6
8187	  X_LIBS="$X_LIBS -R $x_libraries"
8188	else
8189	  echo "$as_me:$LINENO: result: neither works" >&5
8190echo "${ECHO_T}neither works" >&6
8191	fi
8192      fi
8193      LIBS=$ac_xsave_LIBS
8194    esac
8195  fi
8196
8197  # Check for system-dependent libraries X programs must link with.
8198  # Do this before checking for the system-independent R6 libraries
8199  # (-lICE), since we may need -lsocket or whatever for X linking.
8200
8201  if test "$ISC" = yes; then
8202    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8203  else
8204    # Martyn Johnson says this is needed for Ultrix, if the X
8205    # libraries were built with DECnet support.  And Karl Berry says
8206    # the Alpha needs dnet_stub (dnet does not exist).
8207    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8208    cat >conftest.$ac_ext <<_ACEOF
8209#line $LINENO "configure"
8210/* confdefs.h.  */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h.  */
8215
8216/* Override any gcc2 internal prototype to avoid an error.  */
8217#ifdef __cplusplus
8218extern "C"
8219#endif
8220/* We use char because int might match the return type of a gcc2
8221   builtin and then its argument prototype would still apply.  */
8222char XOpenDisplay ();
8223int
8224main ()
8225{
8226XOpenDisplay ();
8227  ;
8228  return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233  (eval $ac_link) 2>&5
8234  ac_status=$?
8235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236  (exit $ac_status); } &&
8237         { ac_try='test -s conftest$ac_exeext'
8238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239  (eval $ac_try) 2>&5
8240  ac_status=$?
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); }; }; then
8243  :
8244else
8245  echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8249echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8250if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8251  echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253  ac_check_lib_save_LIBS=$LIBS
8254LIBS="-ldnet  $LIBS"
8255cat >conftest.$ac_ext <<_ACEOF
8256#line $LINENO "configure"
8257/* confdefs.h.  */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h.  */
8262
8263/* Override any gcc2 internal prototype to avoid an error.  */
8264#ifdef __cplusplus
8265extern "C"
8266#endif
8267/* We use char because int might match the return type of a gcc2
8268   builtin and then its argument prototype would still apply.  */
8269char dnet_ntoa ();
8270int
8271main ()
8272{
8273dnet_ntoa ();
8274  ;
8275  return 0;
8276}
8277_ACEOF
8278rm -f conftest.$ac_objext conftest$ac_exeext
8279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280  (eval $ac_link) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); } &&
8284         { ac_try='test -s conftest$ac_exeext'
8285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286  (eval $ac_try) 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; }; then
8290  ac_cv_lib_dnet_dnet_ntoa=yes
8291else
8292  echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295ac_cv_lib_dnet_dnet_ntoa=no
8296fi
8297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298LIBS=$ac_check_lib_save_LIBS
8299fi
8300echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8301echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8302if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8303  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8304fi
8305
8306    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8307      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8308echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8309if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8310  echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312  ac_check_lib_save_LIBS=$LIBS
8313LIBS="-ldnet_stub  $LIBS"
8314cat >conftest.$ac_ext <<_ACEOF
8315#line $LINENO "configure"
8316/* confdefs.h.  */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h.  */
8321
8322/* Override any gcc2 internal prototype to avoid an error.  */
8323#ifdef __cplusplus
8324extern "C"
8325#endif
8326/* We use char because int might match the return type of a gcc2
8327   builtin and then its argument prototype would still apply.  */
8328char dnet_ntoa ();
8329int
8330main ()
8331{
8332dnet_ntoa ();
8333  ;
8334  return 0;
8335}
8336_ACEOF
8337rm -f conftest.$ac_objext conftest$ac_exeext
8338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339  (eval $ac_link) 2>&5
8340  ac_status=$?
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); } &&
8343         { ac_try='test -s conftest$ac_exeext'
8344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345  (eval $ac_try) 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; }; then
8349  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_lib_dnet_stub_dnet_ntoa=no
8355fi
8356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8357LIBS=$ac_check_lib_save_LIBS
8358fi
8359echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8360echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8361if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8362  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8363fi
8364
8365    fi
8366fi
8367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368    LIBS="$ac_xsave_LIBS"
8369
8370    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8371    # to get the SysV transport functions.
8372    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8373    # needs -lnsl.
8374    # The nsl library prevents programs from opening the X display
8375    # on Irix 5.2, according to T.E. Dickey.
8376    # The functions gethostbyname, getservbyname, and inet_addr are
8377    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8378    echo "$as_me:$LINENO: checking for gethostbyname" >&5
8379echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8380if test "${ac_cv_func_gethostbyname+set}" = set; then
8381  echo $ECHO_N "(cached) $ECHO_C" >&6
8382else
8383  cat >conftest.$ac_ext <<_ACEOF
8384#line $LINENO "configure"
8385/* confdefs.h.  */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h.  */
8390/* System header to define __stub macros and hopefully few prototypes,
8391    which can conflict with char gethostbyname (); below.
8392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393    <limits.h> exists even on freestanding compilers.  */
8394#ifdef __STDC__
8395# include <limits.h>
8396#else
8397# include <assert.h>
8398#endif
8399/* Override any gcc2 internal prototype to avoid an error.  */
8400#ifdef __cplusplus
8401extern "C"
8402{
8403#endif
8404/* We use char because int might match the return type of a gcc2
8405   builtin and then its argument prototype would still apply.  */
8406char gethostbyname ();
8407/* The GNU C library defines this for functions which it implements
8408    to always fail with ENOSYS.  Some functions are actually named
8409    something starting with __ and the normal name is an alias.  */
8410#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8411choke me
8412#else
8413char (*f) () = gethostbyname;
8414#endif
8415#ifdef __cplusplus
8416}
8417#endif
8418
8419int
8420main ()
8421{
8422return f != gethostbyname;
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429  (eval $ac_link) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); } &&
8433         { ac_try='test -s conftest$ac_exeext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_func_gethostbyname=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_func_gethostbyname=no
8445fi
8446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8449echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8450
8451    if test $ac_cv_func_gethostbyname = no; then
8452      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8453echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8454if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8455  echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457  ac_check_lib_save_LIBS=$LIBS
8458LIBS="-lnsl  $LIBS"
8459cat >conftest.$ac_ext <<_ACEOF
8460#line $LINENO "configure"
8461/* confdefs.h.  */
8462_ACEOF
8463cat confdefs.h >>conftest.$ac_ext
8464cat >>conftest.$ac_ext <<_ACEOF
8465/* end confdefs.h.  */
8466
8467/* Override any gcc2 internal prototype to avoid an error.  */
8468#ifdef __cplusplus
8469extern "C"
8470#endif
8471/* We use char because int might match the return type of a gcc2
8472   builtin and then its argument prototype would still apply.  */
8473char gethostbyname ();
8474int
8475main ()
8476{
8477gethostbyname ();
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482rm -f conftest.$ac_objext conftest$ac_exeext
8483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484  (eval $ac_link) 2>&5
8485  ac_status=$?
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); } &&
8488         { ac_try='test -s conftest$ac_exeext'
8489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490  (eval $ac_try) 2>&5
8491  ac_status=$?
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); }; }; then
8494  ac_cv_lib_nsl_gethostbyname=yes
8495else
8496  echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499ac_cv_lib_nsl_gethostbyname=no
8500fi
8501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8502LIBS=$ac_check_lib_save_LIBS
8503fi
8504echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8505echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8506if test $ac_cv_lib_nsl_gethostbyname = yes; then
8507  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8508fi
8509
8510      if test $ac_cv_lib_nsl_gethostbyname = no; then
8511        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8512echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8513if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8514  echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516  ac_check_lib_save_LIBS=$LIBS
8517LIBS="-lbsd  $LIBS"
8518cat >conftest.$ac_ext <<_ACEOF
8519#line $LINENO "configure"
8520/* confdefs.h.  */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h.  */
8525
8526/* Override any gcc2 internal prototype to avoid an error.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531   builtin and then its argument prototype would still apply.  */
8532char gethostbyname ();
8533int
8534main ()
8535{
8536gethostbyname ();
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543  (eval $ac_link) 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } &&
8547         { ac_try='test -s conftest$ac_exeext'
8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549  (eval $ac_try) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); }; }; then
8553  ac_cv_lib_bsd_gethostbyname=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_lib_bsd_gethostbyname=no
8559fi
8560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8561LIBS=$ac_check_lib_save_LIBS
8562fi
8563echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8564echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8565if test $ac_cv_lib_bsd_gethostbyname = yes; then
8566  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8567fi
8568
8569      fi
8570    fi
8571
8572    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8573    # socket/setsockopt and other routines are undefined under SCO ODT
8574    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8575    # on later versions), says Simon Leinen: it contains gethostby*
8576    # variants that don't use the name server (or something).  -lsocket
8577    # must be given before -lnsl if both are needed.  We assume that
8578    # if connect needs -lnsl, so does gethostbyname.
8579    echo "$as_me:$LINENO: checking for connect" >&5
8580echo $ECHO_N "checking for connect... $ECHO_C" >&6
8581if test "${ac_cv_func_connect+set}" = set; then
8582  echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584  cat >conftest.$ac_ext <<_ACEOF
8585#line $LINENO "configure"
8586/* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591/* System header to define __stub macros and hopefully few prototypes,
8592    which can conflict with char connect (); below.
8593    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594    <limits.h> exists even on freestanding compilers.  */
8595#ifdef __STDC__
8596# include <limits.h>
8597#else
8598# include <assert.h>
8599#endif
8600/* Override any gcc2 internal prototype to avoid an error.  */
8601#ifdef __cplusplus
8602extern "C"
8603{
8604#endif
8605/* We use char because int might match the return type of a gcc2
8606   builtin and then its argument prototype would still apply.  */
8607char connect ();
8608/* The GNU C library defines this for functions which it implements
8609    to always fail with ENOSYS.  Some functions are actually named
8610    something starting with __ and the normal name is an alias.  */
8611#if defined (__stub_connect) || defined (__stub___connect)
8612choke me
8613#else
8614char (*f) () = connect;
8615#endif
8616#ifdef __cplusplus
8617}
8618#endif
8619
8620int
8621main ()
8622{
8623return f != connect;
8624  ;
8625  return 0;
8626}
8627_ACEOF
8628rm -f conftest.$ac_objext conftest$ac_exeext
8629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630  (eval $ac_link) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); } &&
8634         { ac_try='test -s conftest$ac_exeext'
8635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636  (eval $ac_try) 2>&5
8637  ac_status=$?
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); }; }; then
8640  ac_cv_func_connect=yes
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645ac_cv_func_connect=no
8646fi
8647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648fi
8649echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8650echo "${ECHO_T}$ac_cv_func_connect" >&6
8651
8652    if test $ac_cv_func_connect = no; then
8653      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8654echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8655if test "${ac_cv_lib_socket_connect+set}" = set; then
8656  echo $ECHO_N "(cached) $ECHO_C" >&6
8657else
8658  ac_check_lib_save_LIBS=$LIBS
8659LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8660cat >conftest.$ac_ext <<_ACEOF
8661#line $LINENO "configure"
8662/* confdefs.h.  */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h.  */
8667
8668/* Override any gcc2 internal prototype to avoid an error.  */
8669#ifdef __cplusplus
8670extern "C"
8671#endif
8672/* We use char because int might match the return type of a gcc2
8673   builtin and then its argument prototype would still apply.  */
8674char connect ();
8675int
8676main ()
8677{
8678connect ();
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext conftest$ac_exeext
8684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685  (eval $ac_link) 2>&5
8686  ac_status=$?
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); } &&
8689         { ac_try='test -s conftest$ac_exeext'
8690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691  (eval $ac_try) 2>&5
8692  ac_status=$?
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); }; }; then
8695  ac_cv_lib_socket_connect=yes
8696else
8697  echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
8700ac_cv_lib_socket_connect=no
8701fi
8702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8703LIBS=$ac_check_lib_save_LIBS
8704fi
8705echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8706echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8707if test $ac_cv_lib_socket_connect = yes; then
8708  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8709fi
8710
8711    fi
8712
8713    # Guillermo Gomez says -lposix is necessary on A/UX.
8714    echo "$as_me:$LINENO: checking for remove" >&5
8715echo $ECHO_N "checking for remove... $ECHO_C" >&6
8716if test "${ac_cv_func_remove+set}" = set; then
8717  echo $ECHO_N "(cached) $ECHO_C" >&6
8718else
8719  cat >conftest.$ac_ext <<_ACEOF
8720#line $LINENO "configure"
8721/* confdefs.h.  */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h.  */
8726/* System header to define __stub macros and hopefully few prototypes,
8727    which can conflict with char remove (); below.
8728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729    <limits.h> exists even on freestanding compilers.  */
8730#ifdef __STDC__
8731# include <limits.h>
8732#else
8733# include <assert.h>
8734#endif
8735/* Override any gcc2 internal prototype to avoid an error.  */
8736#ifdef __cplusplus
8737extern "C"
8738{
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741   builtin and then its argument prototype would still apply.  */
8742char remove ();
8743/* The GNU C library defines this for functions which it implements
8744    to always fail with ENOSYS.  Some functions are actually named
8745    something starting with __ and the normal name is an alias.  */
8746#if defined (__stub_remove) || defined (__stub___remove)
8747choke me
8748#else
8749char (*f) () = remove;
8750#endif
8751#ifdef __cplusplus
8752}
8753#endif
8754
8755int
8756main ()
8757{
8758return f != remove;
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765  (eval $ac_link) 2>&5
8766  ac_status=$?
8767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768  (exit $ac_status); } &&
8769         { ac_try='test -s conftest$ac_exeext'
8770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771  (eval $ac_try) 2>&5
8772  ac_status=$?
8773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774  (exit $ac_status); }; }; then
8775  ac_cv_func_remove=yes
8776else
8777  echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780ac_cv_func_remove=no
8781fi
8782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8783fi
8784echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8785echo "${ECHO_T}$ac_cv_func_remove" >&6
8786
8787    if test $ac_cv_func_remove = no; then
8788      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8789echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8790if test "${ac_cv_lib_posix_remove+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  ac_check_lib_save_LIBS=$LIBS
8794LIBS="-lposix  $LIBS"
8795cat >conftest.$ac_ext <<_ACEOF
8796#line $LINENO "configure"
8797/* confdefs.h.  */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h.  */
8802
8803/* Override any gcc2 internal prototype to avoid an error.  */
8804#ifdef __cplusplus
8805extern "C"
8806#endif
8807/* We use char because int might match the return type of a gcc2
8808   builtin and then its argument prototype would still apply.  */
8809char remove ();
8810int
8811main ()
8812{
8813remove ();
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820  (eval $ac_link) 2>&5
8821  ac_status=$?
8822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823  (exit $ac_status); } &&
8824         { ac_try='test -s conftest$ac_exeext'
8825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826  (eval $ac_try) 2>&5
8827  ac_status=$?
8828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829  (exit $ac_status); }; }; then
8830  ac_cv_lib_posix_remove=yes
8831else
8832  echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835ac_cv_lib_posix_remove=no
8836fi
8837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8838LIBS=$ac_check_lib_save_LIBS
8839fi
8840echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8841echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8842if test $ac_cv_lib_posix_remove = yes; then
8843  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8844fi
8845
8846    fi
8847
8848    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8849    echo "$as_me:$LINENO: checking for shmat" >&5
8850echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8851if test "${ac_cv_func_shmat+set}" = set; then
8852  echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854  cat >conftest.$ac_ext <<_ACEOF
8855#line $LINENO "configure"
8856/* confdefs.h.  */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h.  */
8861/* System header to define __stub macros and hopefully few prototypes,
8862    which can conflict with char shmat (); below.
8863    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864    <limits.h> exists even on freestanding compilers.  */
8865#ifdef __STDC__
8866# include <limits.h>
8867#else
8868# include <assert.h>
8869#endif
8870/* Override any gcc2 internal prototype to avoid an error.  */
8871#ifdef __cplusplus
8872extern "C"
8873{
8874#endif
8875/* We use char because int might match the return type of a gcc2
8876   builtin and then its argument prototype would still apply.  */
8877char shmat ();
8878/* The GNU C library defines this for functions which it implements
8879    to always fail with ENOSYS.  Some functions are actually named
8880    something starting with __ and the normal name is an alias.  */
8881#if defined (__stub_shmat) || defined (__stub___shmat)
8882choke me
8883#else
8884char (*f) () = shmat;
8885#endif
8886#ifdef __cplusplus
8887}
8888#endif
8889
8890int
8891main ()
8892{
8893return f != shmat;
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898rm -f conftest.$ac_objext conftest$ac_exeext
8899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900  (eval $ac_link) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); } &&
8904         { ac_try='test -s conftest$ac_exeext'
8905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906  (eval $ac_try) 2>&5
8907  ac_status=$?
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); }; }; then
8910  ac_cv_func_shmat=yes
8911else
8912  echo "$as_me: failed program was:" >&5
8913sed 's/^/| /' conftest.$ac_ext >&5
8914
8915ac_cv_func_shmat=no
8916fi
8917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8918fi
8919echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8920echo "${ECHO_T}$ac_cv_func_shmat" >&6
8921
8922    if test $ac_cv_func_shmat = no; then
8923      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8924echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8925if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8926  echo $ECHO_N "(cached) $ECHO_C" >&6
8927else
8928  ac_check_lib_save_LIBS=$LIBS
8929LIBS="-lipc  $LIBS"
8930cat >conftest.$ac_ext <<_ACEOF
8931#line $LINENO "configure"
8932/* confdefs.h.  */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h.  */
8937
8938/* Override any gcc2 internal prototype to avoid an error.  */
8939#ifdef __cplusplus
8940extern "C"
8941#endif
8942/* We use char because int might match the return type of a gcc2
8943   builtin and then its argument prototype would still apply.  */
8944char shmat ();
8945int
8946main ()
8947{
8948shmat ();
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953rm -f conftest.$ac_objext conftest$ac_exeext
8954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955  (eval $ac_link) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); } &&
8959         { ac_try='test -s conftest$ac_exeext'
8960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961  (eval $ac_try) 2>&5
8962  ac_status=$?
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); }; }; then
8965  ac_cv_lib_ipc_shmat=yes
8966else
8967  echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
8969
8970ac_cv_lib_ipc_shmat=no
8971fi
8972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8973LIBS=$ac_check_lib_save_LIBS
8974fi
8975echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8976echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8977if test $ac_cv_lib_ipc_shmat = yes; then
8978  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8979fi
8980
8981    fi
8982  fi
8983
8984  # Check for libraries that X11R6 Xt/Xaw programs need.
8985  ac_save_LDFLAGS=$LDFLAGS
8986  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8987  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8988  # check for ICE first), but we must link in the order -lSM -lICE or
8989  # we get undefined symbols.  So assume we have SM if we have ICE.
8990  # These have to be linked with before -lX11, unlike the other
8991  # libraries we check for below, so use a different variable.
8992  # John Interrante, Karl Berry
8993  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8994echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8995if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998  ac_check_lib_save_LIBS=$LIBS
8999LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9000cat >conftest.$ac_ext <<_ACEOF
9001#line $LINENO "configure"
9002/* confdefs.h.  */
9003_ACEOF
9004cat confdefs.h >>conftest.$ac_ext
9005cat >>conftest.$ac_ext <<_ACEOF
9006/* end confdefs.h.  */
9007
9008/* Override any gcc2 internal prototype to avoid an error.  */
9009#ifdef __cplusplus
9010extern "C"
9011#endif
9012/* We use char because int might match the return type of a gcc2
9013   builtin and then its argument prototype would still apply.  */
9014char IceConnectionNumber ();
9015int
9016main ()
9017{
9018IceConnectionNumber ();
9019  ;
9020  return 0;
9021}
9022_ACEOF
9023rm -f conftest.$ac_objext conftest$ac_exeext
9024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025  (eval $ac_link) 2>&5
9026  ac_status=$?
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } &&
9029         { ac_try='test -s conftest$ac_exeext'
9030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031  (eval $ac_try) 2>&5
9032  ac_status=$?
9033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034  (exit $ac_status); }; }; then
9035  ac_cv_lib_ICE_IceConnectionNumber=yes
9036else
9037  echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040ac_cv_lib_ICE_IceConnectionNumber=no
9041fi
9042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9043LIBS=$ac_check_lib_save_LIBS
9044fi
9045echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9046echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9047if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9048  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9049fi
9050
9051  LDFLAGS=$ac_save_LDFLAGS
9052
9053fi
9054
9055
9056
9057if test x$support_xpm = xyes; then
9058
9059
9060
9061# Initialize some more variables set by options.
9062# The variables have the same names as the options, with
9063# dashes changed to underlines.
9064
9065# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
9066# paths, otherwise set no_xpm=yes.
9067# Uses ac_ vars as temps to allow command line to override cache and checks.
9068echo "$as_me:$LINENO: checking for libXpm" >&5
9069echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
9070
9071
9072# Check whether --with-xpm_includes or --without-xpm_includes was given.
9073if test "${with_xpm_includes+set}" = set; then
9074  withval="$with_xpm_includes"
9075  xpm_includes="$withval"
9076else
9077  xpm_includes=NO
9078fi;
9079
9080# Check whether --with-xpm_library or --without-xpm_library was given.
9081if test "${with_xpm_library+set}" = set; then
9082  withval="$with_xpm_library"
9083  xpm_libraries="$withval"
9084else
9085  xpm_libraries=NO
9086fi;
9087
9088# --without-xpm overrides everything else, but does not touch the cache.
9089
9090# Check whether --with-xpm or --without-xpm was given.
9091if test "${with_xpm+set}" = set; then
9092  withval="$with_xpm"
9093
9094fi;
9095if test "$with_xpm" = no; then
9096  have_xpm=disabled
9097else
9098  if test "${ac_cv_have_xpm+set}" = set; then
9099  echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101
9102  vt_xpm_include_X11=no
9103  if test -n "$xpm_includes"; then
9104    vt_xpm_includes=$xpm_includes
9105  else
9106    vt_xpm_includes=NO
9107  fi
9108  if test -n "$xpm_libraries"; then
9109    vt_xpm_libraries=$xpm_libraries
9110  else
9111    vt_xpm_libraries=NO
9112  fi
9113
9114  if test "$vt_xpm_includes" = NO; then
9115  # Guess where to find xpm.h
9116
9117ac_save_CPPFLAGS="$CPPFLAGS"
9118CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9119
9120  # First, try using that file with no special directory specified.
9121cat >conftest.$ac_ext <<_ACEOF
9122#line $LINENO "configure"
9123/* confdefs.h.  */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h.  */
9128#include <X11/xpm.h>
9129_ACEOF
9130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9132  ac_status=$?
9133  grep -v '^ *+' conftest.er1 >conftest.err
9134  rm -f conftest.er1
9135  cat conftest.err >&5
9136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137  (exit $ac_status); } >/dev/null; then
9138  if test -s conftest.err; then
9139    ac_cpp_err=$ac_c_preproc_warn_flag
9140  else
9141    ac_cpp_err=
9142  fi
9143else
9144  ac_cpp_err=yes
9145fi
9146if test -z "$ac_cpp_err"; then
9147  # We can compile using X headers with no special include directory.
9148vt_xpm_includes=
9149vt_xpm_include_X11=yes
9150else
9151  echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154  CPPFLAGS="$ac_save_CPPFLAGS"
9155# Look for the header file in a standard set of common directories.
9156  for ac_dir in               \
9157    /usr/X11/include          \
9158    /usr/X11R6/include        \
9159    /usr/X11R5/include        \
9160    /usr/X11R4/include        \
9161                              \
9162    /usr/include/X11          \
9163    /usr/include/X11R6        \
9164    /usr/include/X11R5        \
9165    /usr/include/X11R4        \
9166                              \
9167    /usr/local/X11/include    \
9168    /usr/local/X11R6/include  \
9169    /usr/local/X11R5/include  \
9170    /usr/local/X11R4/include  \
9171                              \
9172    /usr/local/include/X11    \
9173    /usr/local/include/X11R6  \
9174    /usr/local/include/X11R5  \
9175    /usr/local/include/X11R4  \
9176                              \
9177    /usr/X386/include         \
9178    /usr/x386/include         \
9179    /usr/XFree86/include/X11  \
9180                              \
9181    /usr/include              \
9182    /usr/local/include        \
9183    /usr/unsupported/include  \
9184    /usr/athena/include       \
9185    /usr/local/x11r5/include  \
9186    /usr/lpp/Xamples/include  \
9187                              \
9188    /usr/openwin/include      \
9189    /usr/openwin/share/include \
9190    ; \
9191  do
9192    if test -r "$ac_dir/X11/xpm.h"; then
9193      vt_xpm_includes="$ac_dir"
9194      vt_xpm_include_X11=yes
9195      break
9196    else
9197      if test -r "$ac_dir/xpm.h"; then
9198        vt_xpm_includes=$ac_dir
9199        break
9200      fi
9201    fi
9202  done
9203fi
9204rm -f conftest.err conftest.$ac_ext
9205fi
9206
9207if test "$vt_xpm_libraries" = NO; then
9208  # Check for the libraries.
9209
9210  # See if we find them without any special options.
9211  # Don't add to $LIBS permanently.
9212  ac_save_LIBS="$LIBS"
9213  LIBS="$LIBS $X_LIBS -lXpm -lX11"
9214cat >conftest.$ac_ext <<_ACEOF
9215#line $LINENO "configure"
9216/* confdefs.h.  */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h.  */
9221
9222int
9223main ()
9224{
9225XpmReadFileToPixmap()
9226  ;
9227  return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext conftest$ac_exeext
9231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232  (eval $ac_link) 2>&5
9233  ac_status=$?
9234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235  (exit $ac_status); } &&
9236         { ac_try='test -s conftest$ac_exeext'
9237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238  (eval $ac_try) 2>&5
9239  ac_status=$?
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); }; }; then
9242  LIBS="$ac_save_LIBS"
9243# We can link libXpm with no special library path.
9244vt_xpm_libraries=
9245else
9246  echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249LIBS="$ac_save_LIBS"
9250# First see if replacing the include by lib works.
9251for ac_dir in \
9252    `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
9253    /usr/X11/lib          \
9254    /usr/X11R6/lib        \
9255    /usr/X11R5/lib        \
9256    /usr/X11R4/lib        \
9257                          \
9258    /usr/lib/X11          \
9259    /usr/lib/X11R6        \
9260    /usr/lib/X11R5        \
9261    /usr/lib/X11R4        \
9262                          \
9263    /usr/local/X11/lib    \
9264    /usr/local/X11R6/lib  \
9265    /usr/local/X11R5/lib  \
9266    /usr/local/X11R4/lib  \
9267                          \
9268    /usr/local/lib/X11    \
9269    /usr/local/lib/X11R6  \
9270    /usr/local/lib/X11R5  \
9271    /usr/local/lib/X11R4  \
9272                          \
9273    /usr/X386/lib         \
9274    /usr/x386/lib         \
9275    /usr/XFree86/lib/X11  \
9276                          \
9277    /usr/lib              \
9278    /usr/local/lib        \
9279    /usr/unsupported/lib  \
9280    /usr/athena/lib       \
9281    /usr/local/x11r5/lib  \
9282    /usr/lpp/Xamples/lib  \
9283                          \
9284    /usr/openwin/lib      \
9285    /usr/openwin/share/lib \
9286    ; \
9287do
9288  for ac_extension in a so sl; do
9289    if test -r $ac_dir/libXpm.$ac_extension; then
9290      vt_xpm_libraries=$ac_dir
9291      break 2
9292    fi
9293  done
9294done
9295fi
9296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9297fi
9298
9299
9300  if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
9301    ac_cv_have_xpm="have_xpm=no"
9302  else
9303    ac_cv_have_xpm="have_xpm=yes \
9304        vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
9305	vt_xpm_include_X11=$vt_xpm_include_X11"
9306  fi
9307fi
9308  eval "$ac_cv_have_xpm"
9309fi
9310
9311if test "$have_xpm" != yes; then
9312  echo "$as_me:$LINENO: result: $have_xpm" >&5
9313echo "${ECHO_T}$have_xpm" >&6
9314  no_xpm=yes
9315else
9316  if test "$xpm_includes" != NO; then
9317    if test "$xpm_includes" = "$vt_xpm_includes"; then
9318      if test -r "$xpm_includes/X11/xpm.h"; then
9319	vt_xpm_include_X11=yes
9320      fi
9321    else
9322      vt_xpm_include_X11=no
9323      if test -z "$xpm_includes"; then
9324	cat >conftest.$ac_ext <<_ACEOF
9325#line $LINENO "configure"
9326/* confdefs.h.  */
9327_ACEOF
9328cat confdefs.h >>conftest.$ac_ext
9329cat >>conftest.$ac_ext <<_ACEOF
9330/* end confdefs.h.  */
9331#include <X11/xpm.h>
9332_ACEOF
9333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9335  ac_status=$?
9336  grep -v '^ *+' conftest.er1 >conftest.err
9337  rm -f conftest.er1
9338  cat conftest.err >&5
9339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340  (exit $ac_status); } >/dev/null; then
9341  if test -s conftest.err; then
9342    ac_cpp_err=$ac_c_preproc_warn_flag
9343  else
9344    ac_cpp_err=
9345  fi
9346else
9347  ac_cpp_err=yes
9348fi
9349if test -z "$ac_cpp_err"; then
9350  vt_xpm_include_X11=yes
9351else
9352  echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
9355
9356fi
9357rm -f conftest.err conftest.$ac_ext
9358      else
9359        if test -r "$xpm_includes/X11/xpm.h"; then
9360	  vt_xpm_include_X11=yes
9361        fi
9362      fi
9363    fi
9364    vt_xpm_includes=$xpm_includes
9365  fi
9366  if test "x$xpm_libraries" != xNO; then
9367    vt_xpm_libraries=$xpm_libraries
9368  fi
9369  # Update the cache value to reflect the command line values.
9370  ac_cv_have_xpm="have_xpm=yes \
9371	vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
9372	vt_xpm_include_X11=$vt_xpm_include_X11"
9373  eval "$ac_cv_have_xpm"
9374  echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
9375echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
9376  if test -n "$vt_xpm_includes"; then
9377    XPM_CPPFLAGS="-DHAVE_LIBXPM"
9378  fi
9379  if test -n "$vt_xpm_includes"; then
9380    XPM_CFLAGS="-I$vt_xpm_includes"
9381  fi
9382  XPM_LIBS="-lXpm"
9383  if test -n "$vt_xpm_libraries"; then
9384    XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
9385  fi
9386  if test "x$vt_xpm_include_X11" = xyes; then
9387
9388cat >>confdefs.h <<\_ACEOF
9389#define XPM_INC_X11 1
9390_ACEOF
9391
9392  fi
9393fi
9394
9395
9396
9397
9398
9399  if test x$no_xpm = xyes; then
9400    support_xpm=needsmanualspecification
9401  fi
9402fi
9403
9404echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9405echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9406if test "${ac_cv_header_sys_wait_h+set}" = set; then
9407  echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409  cat >conftest.$ac_ext <<_ACEOF
9410#line $LINENO "configure"
9411/* confdefs.h.  */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h.  */
9416#include <sys/types.h>
9417#include <sys/wait.h>
9418#ifndef WEXITSTATUS
9419# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9420#endif
9421#ifndef WIFEXITED
9422# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9423#endif
9424
9425int
9426main ()
9427{
9428  int s;
9429  wait (&s);
9430  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9431  ;
9432  return 0;
9433}
9434_ACEOF
9435rm -f conftest.$ac_objext
9436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437  (eval $ac_compile) 2>&5
9438  ac_status=$?
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); } &&
9441         { ac_try='test -s conftest.$ac_objext'
9442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443  (eval $ac_try) 2>&5
9444  ac_status=$?
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); }; }; then
9447  ac_cv_header_sys_wait_h=yes
9448else
9449  echo "$as_me: failed program was:" >&5
9450sed 's/^/| /' conftest.$ac_ext >&5
9451
9452ac_cv_header_sys_wait_h=no
9453fi
9454rm -f conftest.$ac_objext conftest.$ac_ext
9455fi
9456echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9457echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9458if test $ac_cv_header_sys_wait_h = yes; then
9459
9460cat >>confdefs.h <<\_ACEOF
9461#define HAVE_SYS_WAIT_H 1
9462_ACEOF
9463
9464fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484for ac_header in \
9485	assert.h \
9486	fcntl.h \
9487	grp.h \
9488	libc.h \
9489	lastlog.h \
9490	stdarg.h \
9491	stdlib.h \
9492	string.h \
9493	termios.h \
9494	unistd.h \
9495	sys/byteorder.h \
9496	sys/ioctl.h \
9497	sys/select.h \
9498	sys/sockio.h \
9499	sys/strredir.h \
9500	sys/time.h \
9501	utmp.h \
9502	utmpx.h \
9503
9504do
9505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9506if eval "test \"\${$as_ac_Header+set}\" = set"; then
9507  echo "$as_me:$LINENO: checking for $ac_header" >&5
9508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9509if eval "test \"\${$as_ac_Header+set}\" = set"; then
9510  echo $ECHO_N "(cached) $ECHO_C" >&6
9511fi
9512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9514else
9515  # Is the header compilable?
9516echo "$as_me:$LINENO: checking $ac_header usability" >&5
9517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9518cat >conftest.$ac_ext <<_ACEOF
9519#line $LINENO "configure"
9520/* confdefs.h.  */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h.  */
9525$ac_includes_default
9526#include <$ac_header>
9527_ACEOF
9528rm -f conftest.$ac_objext
9529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530  (eval $ac_compile) 2>&5
9531  ac_status=$?
9532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533  (exit $ac_status); } &&
9534         { ac_try='test -s conftest.$ac_objext'
9535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536  (eval $ac_try) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); }; }; then
9540  ac_header_compiler=yes
9541else
9542  echo "$as_me: failed program was:" >&5
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
9545ac_header_compiler=no
9546fi
9547rm -f conftest.$ac_objext conftest.$ac_ext
9548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9549echo "${ECHO_T}$ac_header_compiler" >&6
9550
9551# Is the header present?
9552echo "$as_me:$LINENO: checking $ac_header presence" >&5
9553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9554cat >conftest.$ac_ext <<_ACEOF
9555#line $LINENO "configure"
9556/* confdefs.h.  */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h.  */
9561#include <$ac_header>
9562_ACEOF
9563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9565  ac_status=$?
9566  grep -v '^ *+' conftest.er1 >conftest.err
9567  rm -f conftest.er1
9568  cat conftest.err >&5
9569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570  (exit $ac_status); } >/dev/null; then
9571  if test -s conftest.err; then
9572    ac_cpp_err=$ac_c_preproc_warn_flag
9573  else
9574    ac_cpp_err=
9575  fi
9576else
9577  ac_cpp_err=yes
9578fi
9579if test -z "$ac_cpp_err"; then
9580  ac_header_preproc=yes
9581else
9582  echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
9585  ac_header_preproc=no
9586fi
9587rm -f conftest.err conftest.$ac_ext
9588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9589echo "${ECHO_T}$ac_header_preproc" >&6
9590
9591# So?  What about this header?
9592case $ac_header_compiler:$ac_header_preproc in
9593  yes:no )
9594    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9596    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598    (
9599      cat <<\_ASBOX
9600## ------------------------------------ ##
9601## Report this to bug-autoconf@gnu.org. ##
9602## ------------------------------------ ##
9603_ASBOX
9604    ) |
9605      sed "s/^/$as_me: WARNING:     /" >&2
9606    ;;
9607  no:yes )
9608    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9610    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9614    (
9615      cat <<\_ASBOX
9616## ------------------------------------ ##
9617## Report this to bug-autoconf@gnu.org. ##
9618## ------------------------------------ ##
9619_ASBOX
9620    ) |
9621      sed "s/^/$as_me: WARNING:     /" >&2
9622    ;;
9623esac
9624echo "$as_me:$LINENO: checking for $ac_header" >&5
9625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9626if eval "test \"\${$as_ac_Header+set}\" = set"; then
9627  echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
9629  eval "$as_ac_Header=$ac_header_preproc"
9630fi
9631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9633
9634fi
9635if test `eval echo '${'$as_ac_Header'}'` = yes; then
9636  cat >>confdefs.h <<_ACEOF
9637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9638_ACEOF
9639
9640fi
9641
9642done
9643
9644
9645echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9646echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9647if test "${ac_cv_header_time+set}" = set; then
9648  echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650  cat >conftest.$ac_ext <<_ACEOF
9651#line $LINENO "configure"
9652/* confdefs.h.  */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h.  */
9657#include <sys/types.h>
9658#include <sys/time.h>
9659#include <time.h>
9660
9661int
9662main ()
9663{
9664if ((struct tm *) 0)
9665return 0;
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670rm -f conftest.$ac_objext
9671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672  (eval $ac_compile) 2>&5
9673  ac_status=$?
9674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675  (exit $ac_status); } &&
9676         { ac_try='test -s conftest.$ac_objext'
9677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678  (eval $ac_try) 2>&5
9679  ac_status=$?
9680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681  (exit $ac_status); }; }; then
9682  ac_cv_header_time=yes
9683else
9684  echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687ac_cv_header_time=no
9688fi
9689rm -f conftest.$ac_objext conftest.$ac_ext
9690fi
9691echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9692echo "${ECHO_T}$ac_cv_header_time" >&6
9693if test $ac_cv_header_time = yes; then
9694
9695cat >>confdefs.h <<\_ACEOF
9696#define TIME_WITH_SYS_TIME 1
9697_ACEOF
9698
9699fi
9700
9701
9702echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
9703echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
9704if test "${xvt_cv_header_sysioctl+set}" = set; then
9705  echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707  cat >conftest.$ac_ext <<_ACEOF
9708#line $LINENO "configure"
9709/* confdefs.h.  */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h.  */
9714#include <stdio.h>
9715#include <sys/ioctl.h>
9716#ifdef HAVE_TERMIOS_H
9717#include <termios.h>
9718#endif
9719int
9720main ()
9721{
9722int a = ECHO;
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext
9728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9729  (eval $ac_compile) 2>&5
9730  ac_status=$?
9731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732  (exit $ac_status); } &&
9733         { ac_try='test -s conftest.$ac_objext'
9734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735  (eval $ac_try) 2>&5
9736  ac_status=$?
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); }; }; then
9739  xvt_cv_header_sysioctl=yes
9740else
9741  echo "$as_me: failed program was:" >&5
9742sed 's/^/| /' conftest.$ac_ext >&5
9743
9744xvt_cv_header_sysioctl=no
9745fi
9746rm -f conftest.$ac_objext conftest.$ac_ext
9747fi
9748echo "$as_me:$LINENO: result: $xvt_cv_header_sysioctl" >&5
9749echo "${ECHO_T}$xvt_cv_header_sysioctl" >&6
9750
9751if test -n "$GCC"; then
9752  LDARG="-Wl,"
9753else
9754  LDARG=""
9755fi
9756R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
9757
9758ac_save_CFLAGS=$CFLAGS
9759ac_save_LIBS=$LIBS
9760CFLAGS="$CFLAGS $X_CFLAGS"
9761LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
9762echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
9763echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
9764if test "${xvt_cv_rpath+set}" = set; then
9765  echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767  if test "$cross_compiling" = yes; then
9768    { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
9769echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
9770else
9771  cat >conftest.$ac_ext <<_ACEOF
9772#line $LINENO "configure"
9773/* confdefs.h.  */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h.  */
9778
9779main()
9780{
9781    exit(0);
9782    (void) XOpenDisplay("foobar");
9783}
9784_ACEOF
9785rm -f conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787  (eval $ac_link) 2>&5
9788  ac_status=$?
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792  (eval $ac_try) 2>&5
9793  ac_status=$?
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); }; }; then
9796  xvt_cv_rpath=yes
9797else
9798  echo "$as_me: program exited with status $ac_status" >&5
9799echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
9802( exit $ac_status )
9803xvt_cv_rpath=no
9804fi
9805rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9806fi
9807fi
9808echo "$as_me:$LINENO: result: $xvt_cv_rpath" >&5
9809echo "${ECHO_T}$xvt_cv_rpath" >&6
9810if test x$xvt_cv_rpath != xyes; then
9811    R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
9812    LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
9813  echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
9814echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
9815if test "${xvt_cv_R+set}" = set; then
9816  echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818  if test "$cross_compiling" = yes; then
9819  xvt_cv_R=no
9820else
9821  cat >conftest.$ac_ext <<_ACEOF
9822#line $LINENO "configure"
9823/* confdefs.h.  */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h.  */
9828
9829main()
9830{
9831    exit(0);
9832    (void) XOpenDisplay("foobar");
9833}
9834_ACEOF
9835rm -f conftest$ac_exeext
9836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837  (eval $ac_link) 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842  (eval $ac_try) 2>&5
9843  ac_status=$?
9844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845  (exit $ac_status); }; }; then
9846  xvt_cv_R=yes
9847else
9848  echo "$as_me: program exited with status $ac_status" >&5
9849echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852( exit $ac_status )
9853xvt_cv_R=no
9854fi
9855rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9856fi
9857fi
9858echo "$as_me:$LINENO: result: $xvt_cv_R" >&5
9859echo "${ECHO_T}$xvt_cv_R" >&6
9860  if test x$xvt_cv_R != xyes; then
9861    LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9862  fi
9863fi
9864
9865echo "$as_me:$LINENO: checking for XPointer" >&5
9866echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
9867if test "${xvt_cv_xpointer+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  cat >conftest.$ac_ext <<_ACEOF
9871#line $LINENO "configure"
9872/* confdefs.h.  */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h.  */
9877#include <X11/Xlib.h>
9878int
9879main ()
9880{
9881XPointer dummy;
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext
9887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888  (eval $ac_compile) 2>&5
9889  ac_status=$?
9890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891  (exit $ac_status); } &&
9892         { ac_try='test -s conftest.$ac_objext'
9893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894  (eval $ac_try) 2>&5
9895  ac_status=$?
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); }; }; then
9898  xvt_cv_xpointer=yes
9899else
9900  echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903xvt_cv_xpointer=no
9904fi
9905rm -f conftest.$ac_objext conftest.$ac_ext
9906fi
9907echo "$as_me:$LINENO: result: $xvt_cv_xpointer" >&5
9908echo "${ECHO_T}$xvt_cv_xpointer" >&6
9909if test x$xvt_cv_xpointer = xyes; then
9910
9911cat >>confdefs.h <<\_ACEOF
9912#define HAVE_XPOINTER 1
9913_ACEOF
9914
9915fi
9916LIBS=$ac_save_LIBS
9917CFLAGS=$ac_save_CFLAGS
9918
9919
9920echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9921echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9922if test "${ac_cv_c_const+set}" = set; then
9923  echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925  cat >conftest.$ac_ext <<_ACEOF
9926#line $LINENO "configure"
9927/* confdefs.h.  */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h.  */
9932
9933int
9934main ()
9935{
9936/* FIXME: Include the comments suggested by Paul. */
9937#ifndef __cplusplus
9938  /* Ultrix mips cc rejects this.  */
9939  typedef int charset[2];
9940  const charset x;
9941  /* SunOS 4.1.1 cc rejects this.  */
9942  char const *const *ccp;
9943  char **p;
9944  /* NEC SVR4.0.2 mips cc rejects this.  */
9945  struct point {int x, y;};
9946  static struct point const zero = {0,0};
9947  /* AIX XL C 1.02.0.0 rejects this.
9948     It does not let you subtract one const X* pointer from another in
9949     an arm of an if-expression whose if-part is not a constant
9950     expression */
9951  const char *g = "string";
9952  ccp = &g + (g ? g-g : 0);
9953  /* HPUX 7.0 cc rejects these. */
9954  ++ccp;
9955  p = (char**) ccp;
9956  ccp = (char const *const *) p;
9957  { /* SCO 3.2v4 cc rejects this.  */
9958    char *t;
9959    char const *s = 0 ? (char *) 0 : (char const *) 0;
9960
9961    *t++ = 0;
9962  }
9963  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9964    int x[] = {25, 17};
9965    const int *foo = &x[0];
9966    ++foo;
9967  }
9968  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9969    typedef const int *iptr;
9970    iptr p = 0;
9971    ++p;
9972  }
9973  { /* AIX XL C 1.02.0.0 rejects this saying
9974       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9975    struct s { int j; const int *ap[3]; };
9976    struct s *b; b->j = 5;
9977  }
9978  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9979    const int foo = 10;
9980  }
9981#endif
9982
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext
9988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989  (eval $ac_compile) 2>&5
9990  ac_status=$?
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); } &&
9993         { ac_try='test -s conftest.$ac_objext'
9994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995  (eval $ac_try) 2>&5
9996  ac_status=$?
9997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998  (exit $ac_status); }; }; then
9999  ac_cv_c_const=yes
10000else
10001  echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
10004ac_cv_c_const=no
10005fi
10006rm -f conftest.$ac_objext conftest.$ac_ext
10007fi
10008echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10009echo "${ECHO_T}$ac_cv_c_const" >&6
10010if test $ac_cv_c_const = no; then
10011
10012cat >>confdefs.h <<\_ACEOF
10013#define const
10014_ACEOF
10015
10016fi
10017
10018echo "$as_me:$LINENO: checking for inline" >&5
10019echo $ECHO_N "checking for inline... $ECHO_C" >&6
10020if test "${ac_cv_c_inline+set}" = set; then
10021  echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023  ac_cv_c_inline=no
10024for ac_kw in inline __inline__ __inline; do
10025  cat >conftest.$ac_ext <<_ACEOF
10026#line $LINENO "configure"
10027/* confdefs.h.  */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h.  */
10032#ifndef __cplusplus
10033typedef int foo_t;
10034static $ac_kw foo_t static_foo () {return 0; }
10035$ac_kw foo_t foo () {return 0; }
10036#endif
10037
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041  (eval $ac_compile) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); } &&
10045         { ac_try='test -s conftest.$ac_objext'
10046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047  (eval $ac_try) 2>&5
10048  ac_status=$?
10049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); }; }; then
10051  ac_cv_c_inline=$ac_kw; break
10052else
10053  echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056fi
10057rm -f conftest.$ac_objext conftest.$ac_ext
10058done
10059
10060fi
10061echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10062echo "${ECHO_T}$ac_cv_c_inline" >&6
10063case $ac_cv_c_inline in
10064  inline | yes) ;;
10065  no)
10066cat >>confdefs.h <<\_ACEOF
10067#define inline
10068_ACEOF
10069 ;;
10070  *)  cat >>confdefs.h <<_ACEOF
10071#define inline $ac_cv_c_inline
10072_ACEOF
10073 ;;
10074esac
10075
10076
10077
10078echo "$as_me:$LINENO: checking for mode_t" >&5
10079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10080if test "${ac_cv_type_mode_t+set}" = set; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  cat >conftest.$ac_ext <<_ACEOF
10084#line $LINENO "configure"
10085/* confdefs.h.  */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h.  */
10090$ac_includes_default
10091int
10092main ()
10093{
10094if ((mode_t *) 0)
10095  return 0;
10096if (sizeof (mode_t))
10097  return 0;
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext
10103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104  (eval $ac_compile) 2>&5
10105  ac_status=$?
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); } &&
10108         { ac_try='test -s conftest.$ac_objext'
10109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110  (eval $ac_try) 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; }; then
10114  ac_cv_type_mode_t=yes
10115else
10116  echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119ac_cv_type_mode_t=no
10120fi
10121rm -f conftest.$ac_objext conftest.$ac_ext
10122fi
10123echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10124echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10125if test $ac_cv_type_mode_t = yes; then
10126  :
10127else
10128
10129cat >>confdefs.h <<_ACEOF
10130#define mode_t int
10131_ACEOF
10132
10133fi
10134
10135echo "$as_me:$LINENO: checking for pid_t" >&5
10136echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10137if test "${ac_cv_type_pid_t+set}" = set; then
10138  echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140  cat >conftest.$ac_ext <<_ACEOF
10141#line $LINENO "configure"
10142/* confdefs.h.  */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
10146/* end confdefs.h.  */
10147$ac_includes_default
10148int
10149main ()
10150{
10151if ((pid_t *) 0)
10152  return 0;
10153if (sizeof (pid_t))
10154  return 0;
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159rm -f conftest.$ac_objext
10160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161  (eval $ac_compile) 2>&5
10162  ac_status=$?
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); } &&
10165         { ac_try='test -s conftest.$ac_objext'
10166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167  (eval $ac_try) 2>&5
10168  ac_status=$?
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); }; }; then
10171  ac_cv_type_pid_t=yes
10172else
10173  echo "$as_me: failed program was:" >&5
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
10176ac_cv_type_pid_t=no
10177fi
10178rm -f conftest.$ac_objext conftest.$ac_ext
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10181echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10182if test $ac_cv_type_pid_t = yes; then
10183  :
10184else
10185
10186cat >>confdefs.h <<_ACEOF
10187#define pid_t int
10188_ACEOF
10189
10190fi
10191
10192echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10193echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10194if test "${ac_cv_type_uid_t+set}" = set; then
10195  echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197  cat >conftest.$ac_ext <<_ACEOF
10198#line $LINENO "configure"
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204#include <sys/types.h>
10205
10206_ACEOF
10207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208  $EGREP "uid_t" >/dev/null 2>&1; then
10209  ac_cv_type_uid_t=yes
10210else
10211  ac_cv_type_uid_t=no
10212fi
10213rm -f conftest*
10214
10215fi
10216echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10217echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10218if test $ac_cv_type_uid_t = no; then
10219
10220cat >>confdefs.h <<\_ACEOF
10221#define uid_t int
10222_ACEOF
10223
10224
10225cat >>confdefs.h <<\_ACEOF
10226#define gid_t int
10227_ACEOF
10228
10229fi
10230
10231
10232
10233echo "$as_me:$LINENO: checking for char" >&5
10234echo $ECHO_N "checking for char... $ECHO_C" >&6
10235if test "${ac_cv_type_char+set}" = set; then
10236  echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238  cat >conftest.$ac_ext <<_ACEOF
10239#line $LINENO "configure"
10240/* confdefs.h.  */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h.  */
10245$ac_includes_default
10246int
10247main ()
10248{
10249if ((char *) 0)
10250  return 0;
10251if (sizeof (char))
10252  return 0;
10253  ;
10254  return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259  (eval $ac_compile) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); } &&
10263         { ac_try='test -s conftest.$ac_objext'
10264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265  (eval $ac_try) 2>&5
10266  ac_status=$?
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); }; }; then
10269  ac_cv_type_char=yes
10270else
10271  echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274ac_cv_type_char=no
10275fi
10276rm -f conftest.$ac_objext conftest.$ac_ext
10277fi
10278echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10279echo "${ECHO_T}$ac_cv_type_char" >&6
10280
10281echo "$as_me:$LINENO: checking size of char" >&5
10282echo $ECHO_N "checking size of char... $ECHO_C" >&6
10283if test "${ac_cv_sizeof_char+set}" = set; then
10284  echo $ECHO_N "(cached) $ECHO_C" >&6
10285else
10286  if test "$ac_cv_type_char" = yes; then
10287  # The cast to unsigned long works around a bug in the HP C Compiler
10288  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10289  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10290  # This bug is HP SR number 8606223364.
10291  if test "$cross_compiling" = yes; then
10292  # Depending upon the size, compute the lo and hi bounds.
10293cat >conftest.$ac_ext <<_ACEOF
10294#line $LINENO "configure"
10295/* confdefs.h.  */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h.  */
10300$ac_includes_default
10301int
10302main ()
10303{
10304static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
10305test_array [0] = 0
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313  (eval $ac_compile) 2>&5
10314  ac_status=$?
10315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316  (exit $ac_status); } &&
10317         { ac_try='test -s conftest.$ac_objext'
10318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319  (eval $ac_try) 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; }; then
10323  ac_lo=0 ac_mid=0
10324  while :; do
10325    cat >conftest.$ac_ext <<_ACEOF
10326#line $LINENO "configure"
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332$ac_includes_default
10333int
10334main ()
10335{
10336static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10337test_array [0] = 0
10338
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext
10344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345  (eval $ac_compile) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); } &&
10349         { ac_try='test -s conftest.$ac_objext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355  ac_hi=$ac_mid; break
10356else
10357  echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360ac_lo=`expr $ac_mid + 1`
10361                    if test $ac_lo -le $ac_mid; then
10362                      ac_lo= ac_hi=
10363                      break
10364                    fi
10365                    ac_mid=`expr 2 '*' $ac_mid + 1`
10366fi
10367rm -f conftest.$ac_objext conftest.$ac_ext
10368  done
10369else
10370  echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373cat >conftest.$ac_ext <<_ACEOF
10374#line $LINENO "configure"
10375/* confdefs.h.  */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h.  */
10380$ac_includes_default
10381int
10382main ()
10383{
10384static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10385test_array [0] = 0
10386
10387  ;
10388  return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext
10392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393  (eval $ac_compile) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); } &&
10397         { ac_try='test -s conftest.$ac_objext'
10398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399  (eval $ac_try) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; }; then
10403  ac_hi=-1 ac_mid=-1
10404  while :; do
10405    cat >conftest.$ac_ext <<_ACEOF
10406#line $LINENO "configure"
10407/* confdefs.h.  */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h.  */
10412$ac_includes_default
10413int
10414main ()
10415{
10416static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
10417test_array [0] = 0
10418
10419  ;
10420  return 0;
10421}
10422_ACEOF
10423rm -f conftest.$ac_objext
10424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425  (eval $ac_compile) 2>&5
10426  ac_status=$?
10427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428  (exit $ac_status); } &&
10429         { ac_try='test -s conftest.$ac_objext'
10430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431  (eval $ac_try) 2>&5
10432  ac_status=$?
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); }; }; then
10435  ac_lo=$ac_mid; break
10436else
10437  echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440ac_hi=`expr '(' $ac_mid ')' - 1`
10441                       if test $ac_mid -le $ac_hi; then
10442                         ac_lo= ac_hi=
10443                         break
10444                       fi
10445                       ac_mid=`expr 2 '*' $ac_mid`
10446fi
10447rm -f conftest.$ac_objext conftest.$ac_ext
10448  done
10449else
10450  echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453ac_lo= ac_hi=
10454fi
10455rm -f conftest.$ac_objext conftest.$ac_ext
10456fi
10457rm -f conftest.$ac_objext conftest.$ac_ext
10458# Binary search between lo and hi bounds.
10459while test "x$ac_lo" != "x$ac_hi"; do
10460  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10461  cat >conftest.$ac_ext <<_ACEOF
10462#line $LINENO "configure"
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468$ac_includes_default
10469int
10470main ()
10471{
10472static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10473test_array [0] = 0
10474
10475  ;
10476  return 0;
10477}
10478_ACEOF
10479rm -f conftest.$ac_objext
10480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481  (eval $ac_compile) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); } &&
10485         { ac_try='test -s conftest.$ac_objext'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; }; then
10491  ac_hi=$ac_mid
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496ac_lo=`expr '(' $ac_mid ')' + 1`
10497fi
10498rm -f conftest.$ac_objext conftest.$ac_ext
10499done
10500case $ac_lo in
10501?*) ac_cv_sizeof_char=$ac_lo;;
10502'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10503See \`config.log' for more details." >&5
10504echo "$as_me: error: cannot compute sizeof (char), 77
10505See \`config.log' for more details." >&2;}
10506   { (exit 1); exit 1; }; } ;;
10507esac
10508else
10509  if test "$cross_compiling" = yes; then
10510  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10511See \`config.log' for more details." >&5
10512echo "$as_me: error: cannot run test program while cross compiling
10513See \`config.log' for more details." >&2;}
10514   { (exit 1); exit 1; }; }
10515else
10516  cat >conftest.$ac_ext <<_ACEOF
10517#line $LINENO "configure"
10518/* confdefs.h.  */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h.  */
10523$ac_includes_default
10524long longval () { return (long) (sizeof (char)); }
10525unsigned long ulongval () { return (long) (sizeof (char)); }
10526#include <stdio.h>
10527#include <stdlib.h>
10528int
10529main ()
10530{
10531
10532  FILE *f = fopen ("conftest.val", "w");
10533  if (! f)
10534    exit (1);
10535  if (((long) (sizeof (char))) < 0)
10536    {
10537      long i = longval ();
10538      if (i != ((long) (sizeof (char))))
10539	exit (1);
10540      fprintf (f, "%ld\n", i);
10541    }
10542  else
10543    {
10544      unsigned long i = ulongval ();
10545      if (i != ((long) (sizeof (char))))
10546	exit (1);
10547      fprintf (f, "%lu\n", i);
10548    }
10549  exit (ferror (f) || fclose (f) != 0);
10550
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555rm -f conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557  (eval $ac_link) 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562  (eval $ac_try) 2>&5
10563  ac_status=$?
10564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); }; }; then
10566  ac_cv_sizeof_char=`cat conftest.val`
10567else
10568  echo "$as_me: program exited with status $ac_status" >&5
10569echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572( exit $ac_status )
10573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10574See \`config.log' for more details." >&5
10575echo "$as_me: error: cannot compute sizeof (char), 77
10576See \`config.log' for more details." >&2;}
10577   { (exit 1); exit 1; }; }
10578fi
10579rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10580fi
10581fi
10582rm -f conftest.val
10583else
10584  ac_cv_sizeof_char=0
10585fi
10586fi
10587echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10588echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10589cat >>confdefs.h <<_ACEOF
10590#define SIZEOF_CHAR $ac_cv_sizeof_char
10591_ACEOF
10592
10593
10594echo "$as_me:$LINENO: checking for short" >&5
10595echo $ECHO_N "checking for short... $ECHO_C" >&6
10596if test "${ac_cv_type_short+set}" = set; then
10597  echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599  cat >conftest.$ac_ext <<_ACEOF
10600#line $LINENO "configure"
10601/* confdefs.h.  */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h.  */
10606$ac_includes_default
10607int
10608main ()
10609{
10610if ((short *) 0)
10611  return 0;
10612if (sizeof (short))
10613  return 0;
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext
10619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620  (eval $ac_compile) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); } &&
10624         { ac_try='test -s conftest.$ac_objext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630  ac_cv_type_short=yes
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_cv_type_short=no
10636fi
10637rm -f conftest.$ac_objext conftest.$ac_ext
10638fi
10639echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10640echo "${ECHO_T}$ac_cv_type_short" >&6
10641
10642echo "$as_me:$LINENO: checking size of short" >&5
10643echo $ECHO_N "checking size of short... $ECHO_C" >&6
10644if test "${ac_cv_sizeof_short+set}" = set; then
10645  echo $ECHO_N "(cached) $ECHO_C" >&6
10646else
10647  if test "$ac_cv_type_short" = yes; then
10648  # The cast to unsigned long works around a bug in the HP C Compiler
10649  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10650  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10651  # This bug is HP SR number 8606223364.
10652  if test "$cross_compiling" = yes; then
10653  # Depending upon the size, compute the lo and hi bounds.
10654cat >conftest.$ac_ext <<_ACEOF
10655#line $LINENO "configure"
10656/* confdefs.h.  */
10657_ACEOF
10658cat confdefs.h >>conftest.$ac_ext
10659cat >>conftest.$ac_ext <<_ACEOF
10660/* end confdefs.h.  */
10661$ac_includes_default
10662int
10663main ()
10664{
10665static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
10666test_array [0] = 0
10667
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext
10673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10674  (eval $ac_compile) 2>&5
10675  ac_status=$?
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); } &&
10678         { ac_try='test -s conftest.$ac_objext'
10679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680  (eval $ac_try) 2>&5
10681  ac_status=$?
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); }; }; then
10684  ac_lo=0 ac_mid=0
10685  while :; do
10686    cat >conftest.$ac_ext <<_ACEOF
10687#line $LINENO "configure"
10688/* confdefs.h.  */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h.  */
10693$ac_includes_default
10694int
10695main ()
10696{
10697static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10698test_array [0] = 0
10699
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706  (eval $ac_compile) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); } &&
10710         { ac_try='test -s conftest.$ac_objext'
10711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712  (eval $ac_try) 2>&5
10713  ac_status=$?
10714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); }; }; then
10716  ac_hi=$ac_mid; break
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_lo=`expr $ac_mid + 1`
10722                    if test $ac_lo -le $ac_mid; then
10723                      ac_lo= ac_hi=
10724                      break
10725                    fi
10726                    ac_mid=`expr 2 '*' $ac_mid + 1`
10727fi
10728rm -f conftest.$ac_objext conftest.$ac_ext
10729  done
10730else
10731  echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734cat >conftest.$ac_ext <<_ACEOF
10735#line $LINENO "configure"
10736/* confdefs.h.  */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h.  */
10741$ac_includes_default
10742int
10743main ()
10744{
10745static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
10746test_array [0] = 0
10747
10748  ;
10749  return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754  (eval $ac_compile) 2>&5
10755  ac_status=$?
10756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757  (exit $ac_status); } &&
10758         { ac_try='test -s conftest.$ac_objext'
10759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760  (eval $ac_try) 2>&5
10761  ac_status=$?
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); }; }; then
10764  ac_hi=-1 ac_mid=-1
10765  while :; do
10766    cat >conftest.$ac_ext <<_ACEOF
10767#line $LINENO "configure"
10768/* confdefs.h.  */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h.  */
10773$ac_includes_default
10774int
10775main ()
10776{
10777static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
10778test_array [0] = 0
10779
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext
10785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786  (eval $ac_compile) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); } &&
10790         { ac_try='test -s conftest.$ac_objext'
10791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792  (eval $ac_try) 2>&5
10793  ac_status=$?
10794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795  (exit $ac_status); }; }; then
10796  ac_lo=$ac_mid; break
10797else
10798  echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
10801ac_hi=`expr '(' $ac_mid ')' - 1`
10802                       if test $ac_mid -le $ac_hi; then
10803                         ac_lo= ac_hi=
10804                         break
10805                       fi
10806                       ac_mid=`expr 2 '*' $ac_mid`
10807fi
10808rm -f conftest.$ac_objext conftest.$ac_ext
10809  done
10810else
10811  echo "$as_me: failed program was:" >&5
10812sed 's/^/| /' conftest.$ac_ext >&5
10813
10814ac_lo= ac_hi=
10815fi
10816rm -f conftest.$ac_objext conftest.$ac_ext
10817fi
10818rm -f conftest.$ac_objext conftest.$ac_ext
10819# Binary search between lo and hi bounds.
10820while test "x$ac_lo" != "x$ac_hi"; do
10821  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10822  cat >conftest.$ac_ext <<_ACEOF
10823#line $LINENO "configure"
10824/* confdefs.h.  */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h.  */
10829$ac_includes_default
10830int
10831main ()
10832{
10833static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10834test_array [0] = 0
10835
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
10841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842  (eval $ac_compile) 2>&5
10843  ac_status=$?
10844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845  (exit $ac_status); } &&
10846         { ac_try='test -s conftest.$ac_objext'
10847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848  (eval $ac_try) 2>&5
10849  ac_status=$?
10850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851  (exit $ac_status); }; }; then
10852  ac_hi=$ac_mid
10853else
10854  echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857ac_lo=`expr '(' $ac_mid ')' + 1`
10858fi
10859rm -f conftest.$ac_objext conftest.$ac_ext
10860done
10861case $ac_lo in
10862?*) ac_cv_sizeof_short=$ac_lo;;
10863'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10864See \`config.log' for more details." >&5
10865echo "$as_me: error: cannot compute sizeof (short), 77
10866See \`config.log' for more details." >&2;}
10867   { (exit 1); exit 1; }; } ;;
10868esac
10869else
10870  if test "$cross_compiling" = yes; then
10871  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10872See \`config.log' for more details." >&5
10873echo "$as_me: error: cannot run test program while cross compiling
10874See \`config.log' for more details." >&2;}
10875   { (exit 1); exit 1; }; }
10876else
10877  cat >conftest.$ac_ext <<_ACEOF
10878#line $LINENO "configure"
10879/* confdefs.h.  */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h.  */
10884$ac_includes_default
10885long longval () { return (long) (sizeof (short)); }
10886unsigned long ulongval () { return (long) (sizeof (short)); }
10887#include <stdio.h>
10888#include <stdlib.h>
10889int
10890main ()
10891{
10892
10893  FILE *f = fopen ("conftest.val", "w");
10894  if (! f)
10895    exit (1);
10896  if (((long) (sizeof (short))) < 0)
10897    {
10898      long i = longval ();
10899      if (i != ((long) (sizeof (short))))
10900	exit (1);
10901      fprintf (f, "%ld\n", i);
10902    }
10903  else
10904    {
10905      unsigned long i = ulongval ();
10906      if (i != ((long) (sizeof (short))))
10907	exit (1);
10908      fprintf (f, "%lu\n", i);
10909    }
10910  exit (ferror (f) || fclose (f) != 0);
10911
10912  ;
10913  return 0;
10914}
10915_ACEOF
10916rm -f conftest$ac_exeext
10917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918  (eval $ac_link) 2>&5
10919  ac_status=$?
10920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923  (eval $ac_try) 2>&5
10924  ac_status=$?
10925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926  (exit $ac_status); }; }; then
10927  ac_cv_sizeof_short=`cat conftest.val`
10928else
10929  echo "$as_me: program exited with status $ac_status" >&5
10930echo "$as_me: failed program was:" >&5
10931sed 's/^/| /' conftest.$ac_ext >&5
10932
10933( exit $ac_status )
10934{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10935See \`config.log' for more details." >&5
10936echo "$as_me: error: cannot compute sizeof (short), 77
10937See \`config.log' for more details." >&2;}
10938   { (exit 1); exit 1; }; }
10939fi
10940rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10941fi
10942fi
10943rm -f conftest.val
10944else
10945  ac_cv_sizeof_short=0
10946fi
10947fi
10948echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10949echo "${ECHO_T}$ac_cv_sizeof_short" >&6
10950cat >>confdefs.h <<_ACEOF
10951#define SIZEOF_SHORT $ac_cv_sizeof_short
10952_ACEOF
10953
10954
10955echo "$as_me:$LINENO: checking for int" >&5
10956echo $ECHO_N "checking for int... $ECHO_C" >&6
10957if test "${ac_cv_type_int+set}" = set; then
10958  echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960  cat >conftest.$ac_ext <<_ACEOF
10961#line $LINENO "configure"
10962/* confdefs.h.  */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h.  */
10967$ac_includes_default
10968int
10969main ()
10970{
10971if ((int *) 0)
10972  return 0;
10973if (sizeof (int))
10974  return 0;
10975  ;
10976  return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext
10980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10981  (eval $ac_compile) 2>&5
10982  ac_status=$?
10983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984  (exit $ac_status); } &&
10985         { ac_try='test -s conftest.$ac_objext'
10986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987  (eval $ac_try) 2>&5
10988  ac_status=$?
10989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990  (exit $ac_status); }; }; then
10991  ac_cv_type_int=yes
10992else
10993  echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
10996ac_cv_type_int=no
10997fi
10998rm -f conftest.$ac_objext conftest.$ac_ext
10999fi
11000echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11001echo "${ECHO_T}$ac_cv_type_int" >&6
11002
11003echo "$as_me:$LINENO: checking size of int" >&5
11004echo $ECHO_N "checking size of int... $ECHO_C" >&6
11005if test "${ac_cv_sizeof_int+set}" = set; then
11006  echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008  if test "$ac_cv_type_int" = yes; then
11009  # The cast to unsigned long works around a bug in the HP C Compiler
11010  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11011  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11012  # This bug is HP SR number 8606223364.
11013  if test "$cross_compiling" = yes; then
11014  # Depending upon the size, compute the lo and hi bounds.
11015cat >conftest.$ac_ext <<_ACEOF
11016#line $LINENO "configure"
11017/* confdefs.h.  */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h.  */
11022$ac_includes_default
11023int
11024main ()
11025{
11026static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11027test_array [0] = 0
11028
11029  ;
11030  return 0;
11031}
11032_ACEOF
11033rm -f conftest.$ac_objext
11034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035  (eval $ac_compile) 2>&5
11036  ac_status=$?
11037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038  (exit $ac_status); } &&
11039         { ac_try='test -s conftest.$ac_objext'
11040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041  (eval $ac_try) 2>&5
11042  ac_status=$?
11043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044  (exit $ac_status); }; }; then
11045  ac_lo=0 ac_mid=0
11046  while :; do
11047    cat >conftest.$ac_ext <<_ACEOF
11048#line $LINENO "configure"
11049/* confdefs.h.  */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h.  */
11054$ac_includes_default
11055int
11056main ()
11057{
11058static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11059test_array [0] = 0
11060
11061  ;
11062  return 0;
11063}
11064_ACEOF
11065rm -f conftest.$ac_objext
11066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11067  (eval $ac_compile) 2>&5
11068  ac_status=$?
11069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070  (exit $ac_status); } &&
11071         { ac_try='test -s conftest.$ac_objext'
11072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073  (eval $ac_try) 2>&5
11074  ac_status=$?
11075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); }; }; then
11077  ac_hi=$ac_mid; break
11078else
11079  echo "$as_me: failed program was:" >&5
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
11082ac_lo=`expr $ac_mid + 1`
11083                    if test $ac_lo -le $ac_mid; then
11084                      ac_lo= ac_hi=
11085                      break
11086                    fi
11087                    ac_mid=`expr 2 '*' $ac_mid + 1`
11088fi
11089rm -f conftest.$ac_objext conftest.$ac_ext
11090  done
11091else
11092  echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095cat >conftest.$ac_ext <<_ACEOF
11096#line $LINENO "configure"
11097/* confdefs.h.  */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h.  */
11102$ac_includes_default
11103int
11104main ()
11105{
11106static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11107test_array [0] = 0
11108
11109  ;
11110  return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext
11114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115  (eval $ac_compile) 2>&5
11116  ac_status=$?
11117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118  (exit $ac_status); } &&
11119         { ac_try='test -s conftest.$ac_objext'
11120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121  (eval $ac_try) 2>&5
11122  ac_status=$?
11123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124  (exit $ac_status); }; }; then
11125  ac_hi=-1 ac_mid=-1
11126  while :; do
11127    cat >conftest.$ac_ext <<_ACEOF
11128#line $LINENO "configure"
11129/* confdefs.h.  */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h.  */
11134$ac_includes_default
11135int
11136main ()
11137{
11138static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11139test_array [0] = 0
11140
11141  ;
11142  return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147  (eval $ac_compile) 2>&5
11148  ac_status=$?
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); } &&
11151         { ac_try='test -s conftest.$ac_objext'
11152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153  (eval $ac_try) 2>&5
11154  ac_status=$?
11155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156  (exit $ac_status); }; }; then
11157  ac_lo=$ac_mid; break
11158else
11159  echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
11162ac_hi=`expr '(' $ac_mid ')' - 1`
11163                       if test $ac_mid -le $ac_hi; then
11164                         ac_lo= ac_hi=
11165                         break
11166                       fi
11167                       ac_mid=`expr 2 '*' $ac_mid`
11168fi
11169rm -f conftest.$ac_objext conftest.$ac_ext
11170  done
11171else
11172  echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175ac_lo= ac_hi=
11176fi
11177rm -f conftest.$ac_objext conftest.$ac_ext
11178fi
11179rm -f conftest.$ac_objext conftest.$ac_ext
11180# Binary search between lo and hi bounds.
11181while test "x$ac_lo" != "x$ac_hi"; do
11182  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11183  cat >conftest.$ac_ext <<_ACEOF
11184#line $LINENO "configure"
11185/* confdefs.h.  */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h.  */
11190$ac_includes_default
11191int
11192main ()
11193{
11194static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11195test_array [0] = 0
11196
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201rm -f conftest.$ac_objext
11202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203  (eval $ac_compile) 2>&5
11204  ac_status=$?
11205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); } &&
11207         { ac_try='test -s conftest.$ac_objext'
11208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209  (eval $ac_try) 2>&5
11210  ac_status=$?
11211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212  (exit $ac_status); }; }; then
11213  ac_hi=$ac_mid
11214else
11215  echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218ac_lo=`expr '(' $ac_mid ')' + 1`
11219fi
11220rm -f conftest.$ac_objext conftest.$ac_ext
11221done
11222case $ac_lo in
11223?*) ac_cv_sizeof_int=$ac_lo;;
11224'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11225See \`config.log' for more details." >&5
11226echo "$as_me: error: cannot compute sizeof (int), 77
11227See \`config.log' for more details." >&2;}
11228   { (exit 1); exit 1; }; } ;;
11229esac
11230else
11231  if test "$cross_compiling" = yes; then
11232  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11233See \`config.log' for more details." >&5
11234echo "$as_me: error: cannot run test program while cross compiling
11235See \`config.log' for more details." >&2;}
11236   { (exit 1); exit 1; }; }
11237else
11238  cat >conftest.$ac_ext <<_ACEOF
11239#line $LINENO "configure"
11240/* confdefs.h.  */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h.  */
11245$ac_includes_default
11246long longval () { return (long) (sizeof (int)); }
11247unsigned long ulongval () { return (long) (sizeof (int)); }
11248#include <stdio.h>
11249#include <stdlib.h>
11250int
11251main ()
11252{
11253
11254  FILE *f = fopen ("conftest.val", "w");
11255  if (! f)
11256    exit (1);
11257  if (((long) (sizeof (int))) < 0)
11258    {
11259      long i = longval ();
11260      if (i != ((long) (sizeof (int))))
11261	exit (1);
11262      fprintf (f, "%ld\n", i);
11263    }
11264  else
11265    {
11266      unsigned long i = ulongval ();
11267      if (i != ((long) (sizeof (int))))
11268	exit (1);
11269      fprintf (f, "%lu\n", i);
11270    }
11271  exit (ferror (f) || fclose (f) != 0);
11272
11273  ;
11274  return 0;
11275}
11276_ACEOF
11277rm -f conftest$ac_exeext
11278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279  (eval $ac_link) 2>&5
11280  ac_status=$?
11281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284  (eval $ac_try) 2>&5
11285  ac_status=$?
11286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287  (exit $ac_status); }; }; then
11288  ac_cv_sizeof_int=`cat conftest.val`
11289else
11290  echo "$as_me: program exited with status $ac_status" >&5
11291echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294( exit $ac_status )
11295{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11296See \`config.log' for more details." >&5
11297echo "$as_me: error: cannot compute sizeof (int), 77
11298See \`config.log' for more details." >&2;}
11299   { (exit 1); exit 1; }; }
11300fi
11301rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11302fi
11303fi
11304rm -f conftest.val
11305else
11306  ac_cv_sizeof_int=0
11307fi
11308fi
11309echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11310echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11311cat >>confdefs.h <<_ACEOF
11312#define SIZEOF_INT $ac_cv_sizeof_int
11313_ACEOF
11314
11315
11316echo "$as_me:$LINENO: checking for long" >&5
11317echo $ECHO_N "checking for long... $ECHO_C" >&6
11318if test "${ac_cv_type_long+set}" = set; then
11319  echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321  cat >conftest.$ac_ext <<_ACEOF
11322#line $LINENO "configure"
11323/* confdefs.h.  */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h.  */
11328$ac_includes_default
11329int
11330main ()
11331{
11332if ((long *) 0)
11333  return 0;
11334if (sizeof (long))
11335  return 0;
11336  ;
11337  return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342  (eval $ac_compile) 2>&5
11343  ac_status=$?
11344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345  (exit $ac_status); } &&
11346         { ac_try='test -s conftest.$ac_objext'
11347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348  (eval $ac_try) 2>&5
11349  ac_status=$?
11350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351  (exit $ac_status); }; }; then
11352  ac_cv_type_long=yes
11353else
11354  echo "$as_me: failed program was:" >&5
11355sed 's/^/| /' conftest.$ac_ext >&5
11356
11357ac_cv_type_long=no
11358fi
11359rm -f conftest.$ac_objext conftest.$ac_ext
11360fi
11361echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11362echo "${ECHO_T}$ac_cv_type_long" >&6
11363
11364echo "$as_me:$LINENO: checking size of long" >&5
11365echo $ECHO_N "checking size of long... $ECHO_C" >&6
11366if test "${ac_cv_sizeof_long+set}" = set; then
11367  echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369  if test "$ac_cv_type_long" = yes; then
11370  # The cast to unsigned long works around a bug in the HP C Compiler
11371  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11372  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11373  # This bug is HP SR number 8606223364.
11374  if test "$cross_compiling" = yes; then
11375  # Depending upon the size, compute the lo and hi bounds.
11376cat >conftest.$ac_ext <<_ACEOF
11377#line $LINENO "configure"
11378/* confdefs.h.  */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h.  */
11383$ac_includes_default
11384int
11385main ()
11386{
11387static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11388test_array [0] = 0
11389
11390  ;
11391  return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
11395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396  (eval $ac_compile) 2>&5
11397  ac_status=$?
11398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399  (exit $ac_status); } &&
11400         { ac_try='test -s conftest.$ac_objext'
11401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402  (eval $ac_try) 2>&5
11403  ac_status=$?
11404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405  (exit $ac_status); }; }; then
11406  ac_lo=0 ac_mid=0
11407  while :; do
11408    cat >conftest.$ac_ext <<_ACEOF
11409#line $LINENO "configure"
11410/* confdefs.h.  */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h.  */
11415$ac_includes_default
11416int
11417main ()
11418{
11419static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11420test_array [0] = 0
11421
11422  ;
11423  return 0;
11424}
11425_ACEOF
11426rm -f conftest.$ac_objext
11427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428  (eval $ac_compile) 2>&5
11429  ac_status=$?
11430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431  (exit $ac_status); } &&
11432         { ac_try='test -s conftest.$ac_objext'
11433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434  (eval $ac_try) 2>&5
11435  ac_status=$?
11436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437  (exit $ac_status); }; }; then
11438  ac_hi=$ac_mid; break
11439else
11440  echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
11443ac_lo=`expr $ac_mid + 1`
11444                    if test $ac_lo -le $ac_mid; then
11445                      ac_lo= ac_hi=
11446                      break
11447                    fi
11448                    ac_mid=`expr 2 '*' $ac_mid + 1`
11449fi
11450rm -f conftest.$ac_objext conftest.$ac_ext
11451  done
11452else
11453  echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456cat >conftest.$ac_ext <<_ACEOF
11457#line $LINENO "configure"
11458/* confdefs.h.  */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h.  */
11463$ac_includes_default
11464int
11465main ()
11466{
11467static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11468test_array [0] = 0
11469
11470  ;
11471  return 0;
11472}
11473_ACEOF
11474rm -f conftest.$ac_objext
11475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476  (eval $ac_compile) 2>&5
11477  ac_status=$?
11478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479  (exit $ac_status); } &&
11480         { ac_try='test -s conftest.$ac_objext'
11481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482  (eval $ac_try) 2>&5
11483  ac_status=$?
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); }; }; then
11486  ac_hi=-1 ac_mid=-1
11487  while :; do
11488    cat >conftest.$ac_ext <<_ACEOF
11489#line $LINENO "configure"
11490/* confdefs.h.  */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h.  */
11495$ac_includes_default
11496int
11497main ()
11498{
11499static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11500test_array [0] = 0
11501
11502  ;
11503  return 0;
11504}
11505_ACEOF
11506rm -f conftest.$ac_objext
11507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508  (eval $ac_compile) 2>&5
11509  ac_status=$?
11510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511  (exit $ac_status); } &&
11512         { ac_try='test -s conftest.$ac_objext'
11513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514  (eval $ac_try) 2>&5
11515  ac_status=$?
11516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517  (exit $ac_status); }; }; then
11518  ac_lo=$ac_mid; break
11519else
11520  echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523ac_hi=`expr '(' $ac_mid ')' - 1`
11524                       if test $ac_mid -le $ac_hi; then
11525                         ac_lo= ac_hi=
11526                         break
11527                       fi
11528                       ac_mid=`expr 2 '*' $ac_mid`
11529fi
11530rm -f conftest.$ac_objext conftest.$ac_ext
11531  done
11532else
11533  echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536ac_lo= ac_hi=
11537fi
11538rm -f conftest.$ac_objext conftest.$ac_ext
11539fi
11540rm -f conftest.$ac_objext conftest.$ac_ext
11541# Binary search between lo and hi bounds.
11542while test "x$ac_lo" != "x$ac_hi"; do
11543  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11544  cat >conftest.$ac_ext <<_ACEOF
11545#line $LINENO "configure"
11546/* confdefs.h.  */
11547_ACEOF
11548cat confdefs.h >>conftest.$ac_ext
11549cat >>conftest.$ac_ext <<_ACEOF
11550/* end confdefs.h.  */
11551$ac_includes_default
11552int
11553main ()
11554{
11555static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11556test_array [0] = 0
11557
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext
11563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564  (eval $ac_compile) 2>&5
11565  ac_status=$?
11566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567  (exit $ac_status); } &&
11568         { ac_try='test -s conftest.$ac_objext'
11569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570  (eval $ac_try) 2>&5
11571  ac_status=$?
11572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573  (exit $ac_status); }; }; then
11574  ac_hi=$ac_mid
11575else
11576  echo "$as_me: failed program was:" >&5
11577sed 's/^/| /' conftest.$ac_ext >&5
11578
11579ac_lo=`expr '(' $ac_mid ')' + 1`
11580fi
11581rm -f conftest.$ac_objext conftest.$ac_ext
11582done
11583case $ac_lo in
11584?*) ac_cv_sizeof_long=$ac_lo;;
11585'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11586See \`config.log' for more details." >&5
11587echo "$as_me: error: cannot compute sizeof (long), 77
11588See \`config.log' for more details." >&2;}
11589   { (exit 1); exit 1; }; } ;;
11590esac
11591else
11592  if test "$cross_compiling" = yes; then
11593  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11594See \`config.log' for more details." >&5
11595echo "$as_me: error: cannot run test program while cross compiling
11596See \`config.log' for more details." >&2;}
11597   { (exit 1); exit 1; }; }
11598else
11599  cat >conftest.$ac_ext <<_ACEOF
11600#line $LINENO "configure"
11601/* confdefs.h.  */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h.  */
11606$ac_includes_default
11607long longval () { return (long) (sizeof (long)); }
11608unsigned long ulongval () { return (long) (sizeof (long)); }
11609#include <stdio.h>
11610#include <stdlib.h>
11611int
11612main ()
11613{
11614
11615  FILE *f = fopen ("conftest.val", "w");
11616  if (! f)
11617    exit (1);
11618  if (((long) (sizeof (long))) < 0)
11619    {
11620      long i = longval ();
11621      if (i != ((long) (sizeof (long))))
11622	exit (1);
11623      fprintf (f, "%ld\n", i);
11624    }
11625  else
11626    {
11627      unsigned long i = ulongval ();
11628      if (i != ((long) (sizeof (long))))
11629	exit (1);
11630      fprintf (f, "%lu\n", i);
11631    }
11632  exit (ferror (f) || fclose (f) != 0);
11633
11634  ;
11635  return 0;
11636}
11637_ACEOF
11638rm -f conftest$ac_exeext
11639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640  (eval $ac_link) 2>&5
11641  ac_status=$?
11642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645  (eval $ac_try) 2>&5
11646  ac_status=$?
11647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648  (exit $ac_status); }; }; then
11649  ac_cv_sizeof_long=`cat conftest.val`
11650else
11651  echo "$as_me: program exited with status $ac_status" >&5
11652echo "$as_me: failed program was:" >&5
11653sed 's/^/| /' conftest.$ac_ext >&5
11654
11655( exit $ac_status )
11656{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11657See \`config.log' for more details." >&5
11658echo "$as_me: error: cannot compute sizeof (long), 77
11659See \`config.log' for more details." >&2;}
11660   { (exit 1); exit 1; }; }
11661fi
11662rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11663fi
11664fi
11665rm -f conftest.val
11666else
11667  ac_cv_sizeof_long=0
11668fi
11669fi
11670echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11671echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11672cat >>confdefs.h <<_ACEOF
11673#define SIZEOF_LONG $ac_cv_sizeof_long
11674_ACEOF
11675
11676
11677echo "$as_me:$LINENO: checking for long long" >&5
11678echo $ECHO_N "checking for long long... $ECHO_C" >&6
11679if test "${ac_cv_type_long_long+set}" = set; then
11680  echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682  cat >conftest.$ac_ext <<_ACEOF
11683#line $LINENO "configure"
11684/* confdefs.h.  */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h.  */
11689$ac_includes_default
11690int
11691main ()
11692{
11693if ((long long *) 0)
11694  return 0;
11695if (sizeof (long long))
11696  return 0;
11697  ;
11698  return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext
11702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703  (eval $ac_compile) 2>&5
11704  ac_status=$?
11705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706  (exit $ac_status); } &&
11707         { ac_try='test -s conftest.$ac_objext'
11708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709  (eval $ac_try) 2>&5
11710  ac_status=$?
11711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712  (exit $ac_status); }; }; then
11713  ac_cv_type_long_long=yes
11714else
11715  echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718ac_cv_type_long_long=no
11719fi
11720rm -f conftest.$ac_objext conftest.$ac_ext
11721fi
11722echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11723echo "${ECHO_T}$ac_cv_type_long_long" >&6
11724
11725echo "$as_me:$LINENO: checking size of long long" >&5
11726echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11727if test "${ac_cv_sizeof_long_long+set}" = set; then
11728  echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730  if test "$ac_cv_type_long_long" = yes; then
11731  # The cast to unsigned long works around a bug in the HP C Compiler
11732  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11733  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11734  # This bug is HP SR number 8606223364.
11735  if test "$cross_compiling" = yes; then
11736  # Depending upon the size, compute the lo and hi bounds.
11737cat >conftest.$ac_ext <<_ACEOF
11738#line $LINENO "configure"
11739/* confdefs.h.  */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h.  */
11744$ac_includes_default
11745int
11746main ()
11747{
11748static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11749test_array [0] = 0
11750
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757  (eval $ac_compile) 2>&5
11758  ac_status=$?
11759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760  (exit $ac_status); } &&
11761         { ac_try='test -s conftest.$ac_objext'
11762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763  (eval $ac_try) 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); }; }; then
11767  ac_lo=0 ac_mid=0
11768  while :; do
11769    cat >conftest.$ac_ext <<_ACEOF
11770#line $LINENO "configure"
11771/* confdefs.h.  */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h.  */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783  ;
11784  return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789  (eval $ac_compile) 2>&5
11790  ac_status=$?
11791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792  (exit $ac_status); } &&
11793         { ac_try='test -s conftest.$ac_objext'
11794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795  (eval $ac_try) 2>&5
11796  ac_status=$?
11797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798  (exit $ac_status); }; }; then
11799  ac_hi=$ac_mid; break
11800else
11801  echo "$as_me: failed program was:" >&5
11802sed 's/^/| /' conftest.$ac_ext >&5
11803
11804ac_lo=`expr $ac_mid + 1`
11805                    if test $ac_lo -le $ac_mid; then
11806                      ac_lo= ac_hi=
11807                      break
11808                    fi
11809                    ac_mid=`expr 2 '*' $ac_mid + 1`
11810fi
11811rm -f conftest.$ac_objext conftest.$ac_ext
11812  done
11813else
11814  echo "$as_me: failed program was:" >&5
11815sed 's/^/| /' conftest.$ac_ext >&5
11816
11817cat >conftest.$ac_ext <<_ACEOF
11818#line $LINENO "configure"
11819/* confdefs.h.  */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h.  */
11824$ac_includes_default
11825int
11826main ()
11827{
11828static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11829test_array [0] = 0
11830
11831  ;
11832  return 0;
11833}
11834_ACEOF
11835rm -f conftest.$ac_objext
11836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837  (eval $ac_compile) 2>&5
11838  ac_status=$?
11839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); } &&
11841         { ac_try='test -s conftest.$ac_objext'
11842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843  (eval $ac_try) 2>&5
11844  ac_status=$?
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); }; }; then
11847  ac_hi=-1 ac_mid=-1
11848  while :; do
11849    cat >conftest.$ac_ext <<_ACEOF
11850#line $LINENO "configure"
11851/* confdefs.h.  */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h.  */
11856$ac_includes_default
11857int
11858main ()
11859{
11860static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11861test_array [0] = 0
11862
11863  ;
11864  return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext
11868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869  (eval $ac_compile) 2>&5
11870  ac_status=$?
11871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872  (exit $ac_status); } &&
11873         { ac_try='test -s conftest.$ac_objext'
11874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875  (eval $ac_try) 2>&5
11876  ac_status=$?
11877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878  (exit $ac_status); }; }; then
11879  ac_lo=$ac_mid; break
11880else
11881  echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884ac_hi=`expr '(' $ac_mid ')' - 1`
11885                       if test $ac_mid -le $ac_hi; then
11886                         ac_lo= ac_hi=
11887                         break
11888                       fi
11889                       ac_mid=`expr 2 '*' $ac_mid`
11890fi
11891rm -f conftest.$ac_objext conftest.$ac_ext
11892  done
11893else
11894  echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897ac_lo= ac_hi=
11898fi
11899rm -f conftest.$ac_objext conftest.$ac_ext
11900fi
11901rm -f conftest.$ac_objext conftest.$ac_ext
11902# Binary search between lo and hi bounds.
11903while test "x$ac_lo" != "x$ac_hi"; do
11904  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11905  cat >conftest.$ac_ext <<_ACEOF
11906#line $LINENO "configure"
11907/* confdefs.h.  */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h.  */
11912$ac_includes_default
11913int
11914main ()
11915{
11916static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11917test_array [0] = 0
11918
11919  ;
11920  return 0;
11921}
11922_ACEOF
11923rm -f conftest.$ac_objext
11924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925  (eval $ac_compile) 2>&5
11926  ac_status=$?
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } &&
11929         { ac_try='test -s conftest.$ac_objext'
11930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931  (eval $ac_try) 2>&5
11932  ac_status=$?
11933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); }; }; then
11935  ac_hi=$ac_mid
11936else
11937  echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
11940ac_lo=`expr '(' $ac_mid ')' + 1`
11941fi
11942rm -f conftest.$ac_objext conftest.$ac_ext
11943done
11944case $ac_lo in
11945?*) ac_cv_sizeof_long_long=$ac_lo;;
11946'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11947See \`config.log' for more details." >&5
11948echo "$as_me: error: cannot compute sizeof (long long), 77
11949See \`config.log' for more details." >&2;}
11950   { (exit 1); exit 1; }; } ;;
11951esac
11952else
11953  if test "$cross_compiling" = yes; then
11954  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11955See \`config.log' for more details." >&5
11956echo "$as_me: error: cannot run test program while cross compiling
11957See \`config.log' for more details." >&2;}
11958   { (exit 1); exit 1; }; }
11959else
11960  cat >conftest.$ac_ext <<_ACEOF
11961#line $LINENO "configure"
11962/* confdefs.h.  */
11963_ACEOF
11964cat confdefs.h >>conftest.$ac_ext
11965cat >>conftest.$ac_ext <<_ACEOF
11966/* end confdefs.h.  */
11967$ac_includes_default
11968long longval () { return (long) (sizeof (long long)); }
11969unsigned long ulongval () { return (long) (sizeof (long long)); }
11970#include <stdio.h>
11971#include <stdlib.h>
11972int
11973main ()
11974{
11975
11976  FILE *f = fopen ("conftest.val", "w");
11977  if (! f)
11978    exit (1);
11979  if (((long) (sizeof (long long))) < 0)
11980    {
11981      long i = longval ();
11982      if (i != ((long) (sizeof (long long))))
11983	exit (1);
11984      fprintf (f, "%ld\n", i);
11985    }
11986  else
11987    {
11988      unsigned long i = ulongval ();
11989      if (i != ((long) (sizeof (long long))))
11990	exit (1);
11991      fprintf (f, "%lu\n", i);
11992    }
11993  exit (ferror (f) || fclose (f) != 0);
11994
11995  ;
11996  return 0;
11997}
11998_ACEOF
11999rm -f conftest$ac_exeext
12000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001  (eval $ac_link) 2>&5
12002  ac_status=$?
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006  (eval $ac_try) 2>&5
12007  ac_status=$?
12008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009  (exit $ac_status); }; }; then
12010  ac_cv_sizeof_long_long=`cat conftest.val`
12011else
12012  echo "$as_me: program exited with status $ac_status" >&5
12013echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016( exit $ac_status )
12017{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12018See \`config.log' for more details." >&5
12019echo "$as_me: error: cannot compute sizeof (long long), 77
12020See \`config.log' for more details." >&2;}
12021   { (exit 1); exit 1; }; }
12022fi
12023rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024fi
12025fi
12026rm -f conftest.val
12027else
12028  ac_cv_sizeof_long_long=0
12029fi
12030fi
12031echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12032echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12033cat >>confdefs.h <<_ACEOF
12034#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12035_ACEOF
12036
12037
12038echo "$as_me:$LINENO: checking for int *" >&5
12039echo $ECHO_N "checking for int *... $ECHO_C" >&6
12040if test "${ac_cv_type_int_p+set}" = set; then
12041  echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043  cat >conftest.$ac_ext <<_ACEOF
12044#line $LINENO "configure"
12045/* confdefs.h.  */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h.  */
12050$ac_includes_default
12051int
12052main ()
12053{
12054if ((int * *) 0)
12055  return 0;
12056if (sizeof (int *))
12057  return 0;
12058  ;
12059  return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext
12063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064  (eval $ac_compile) 2>&5
12065  ac_status=$?
12066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067  (exit $ac_status); } &&
12068         { ac_try='test -s conftest.$ac_objext'
12069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070  (eval $ac_try) 2>&5
12071  ac_status=$?
12072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073  (exit $ac_status); }; }; then
12074  ac_cv_type_int_p=yes
12075else
12076  echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079ac_cv_type_int_p=no
12080fi
12081rm -f conftest.$ac_objext conftest.$ac_ext
12082fi
12083echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
12084echo "${ECHO_T}$ac_cv_type_int_p" >&6
12085
12086echo "$as_me:$LINENO: checking size of int *" >&5
12087echo $ECHO_N "checking size of int *... $ECHO_C" >&6
12088if test "${ac_cv_sizeof_int_p+set}" = set; then
12089  echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091  if test "$ac_cv_type_int_p" = yes; then
12092  # The cast to unsigned long works around a bug in the HP C Compiler
12093  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12094  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12095  # This bug is HP SR number 8606223364.
12096  if test "$cross_compiling" = yes; then
12097  # Depending upon the size, compute the lo and hi bounds.
12098cat >conftest.$ac_ext <<_ACEOF
12099#line $LINENO "configure"
12100/* confdefs.h.  */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h.  */
12105$ac_includes_default
12106int
12107main ()
12108{
12109static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
12110test_array [0] = 0
12111
12112  ;
12113  return 0;
12114}
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118  (eval $ac_compile) 2>&5
12119  ac_status=$?
12120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121  (exit $ac_status); } &&
12122         { ac_try='test -s conftest.$ac_objext'
12123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124  (eval $ac_try) 2>&5
12125  ac_status=$?
12126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127  (exit $ac_status); }; }; then
12128  ac_lo=0 ac_mid=0
12129  while :; do
12130    cat >conftest.$ac_ext <<_ACEOF
12131#line $LINENO "configure"
12132/* confdefs.h.  */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h.  */
12137$ac_includes_default
12138int
12139main ()
12140{
12141static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
12142test_array [0] = 0
12143
12144  ;
12145  return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext
12149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12150  (eval $ac_compile) 2>&5
12151  ac_status=$?
12152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153  (exit $ac_status); } &&
12154         { ac_try='test -s conftest.$ac_objext'
12155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156  (eval $ac_try) 2>&5
12157  ac_status=$?
12158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159  (exit $ac_status); }; }; then
12160  ac_hi=$ac_mid; break
12161else
12162  echo "$as_me: failed program was:" >&5
12163sed 's/^/| /' conftest.$ac_ext >&5
12164
12165ac_lo=`expr $ac_mid + 1`
12166                    if test $ac_lo -le $ac_mid; then
12167                      ac_lo= ac_hi=
12168                      break
12169                    fi
12170                    ac_mid=`expr 2 '*' $ac_mid + 1`
12171fi
12172rm -f conftest.$ac_objext conftest.$ac_ext
12173  done
12174else
12175  echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178cat >conftest.$ac_ext <<_ACEOF
12179#line $LINENO "configure"
12180/* confdefs.h.  */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h.  */
12185$ac_includes_default
12186int
12187main ()
12188{
12189static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
12190test_array [0] = 0
12191
12192  ;
12193  return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198  (eval $ac_compile) 2>&5
12199  ac_status=$?
12200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201  (exit $ac_status); } &&
12202         { ac_try='test -s conftest.$ac_objext'
12203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204  (eval $ac_try) 2>&5
12205  ac_status=$?
12206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207  (exit $ac_status); }; }; then
12208  ac_hi=-1 ac_mid=-1
12209  while :; do
12210    cat >conftest.$ac_ext <<_ACEOF
12211#line $LINENO "configure"
12212/* confdefs.h.  */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h.  */
12217$ac_includes_default
12218int
12219main ()
12220{
12221static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
12222test_array [0] = 0
12223
12224  ;
12225  return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext
12229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230  (eval $ac_compile) 2>&5
12231  ac_status=$?
12232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233  (exit $ac_status); } &&
12234         { ac_try='test -s conftest.$ac_objext'
12235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236  (eval $ac_try) 2>&5
12237  ac_status=$?
12238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239  (exit $ac_status); }; }; then
12240  ac_lo=$ac_mid; break
12241else
12242  echo "$as_me: failed program was:" >&5
12243sed 's/^/| /' conftest.$ac_ext >&5
12244
12245ac_hi=`expr '(' $ac_mid ')' - 1`
12246                       if test $ac_mid -le $ac_hi; then
12247                         ac_lo= ac_hi=
12248                         break
12249                       fi
12250                       ac_mid=`expr 2 '*' $ac_mid`
12251fi
12252rm -f conftest.$ac_objext conftest.$ac_ext
12253  done
12254else
12255  echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258ac_lo= ac_hi=
12259fi
12260rm -f conftest.$ac_objext conftest.$ac_ext
12261fi
12262rm -f conftest.$ac_objext conftest.$ac_ext
12263# Binary search between lo and hi bounds.
12264while test "x$ac_lo" != "x$ac_hi"; do
12265  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12266  cat >conftest.$ac_ext <<_ACEOF
12267#line $LINENO "configure"
12268/* confdefs.h.  */
12269_ACEOF
12270cat confdefs.h >>conftest.$ac_ext
12271cat >>conftest.$ac_ext <<_ACEOF
12272/* end confdefs.h.  */
12273$ac_includes_default
12274int
12275main ()
12276{
12277static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
12278test_array [0] = 0
12279
12280  ;
12281  return 0;
12282}
12283_ACEOF
12284rm -f conftest.$ac_objext
12285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286  (eval $ac_compile) 2>&5
12287  ac_status=$?
12288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289  (exit $ac_status); } &&
12290         { ac_try='test -s conftest.$ac_objext'
12291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292  (eval $ac_try) 2>&5
12293  ac_status=$?
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); }; }; then
12296  ac_hi=$ac_mid
12297else
12298  echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301ac_lo=`expr '(' $ac_mid ')' + 1`
12302fi
12303rm -f conftest.$ac_objext conftest.$ac_ext
12304done
12305case $ac_lo in
12306?*) ac_cv_sizeof_int_p=$ac_lo;;
12307'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
12308See \`config.log' for more details." >&5
12309echo "$as_me: error: cannot compute sizeof (int *), 77
12310See \`config.log' for more details." >&2;}
12311   { (exit 1); exit 1; }; } ;;
12312esac
12313else
12314  if test "$cross_compiling" = yes; then
12315  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12316See \`config.log' for more details." >&5
12317echo "$as_me: error: cannot run test program while cross compiling
12318See \`config.log' for more details." >&2;}
12319   { (exit 1); exit 1; }; }
12320else
12321  cat >conftest.$ac_ext <<_ACEOF
12322#line $LINENO "configure"
12323/* confdefs.h.  */
12324_ACEOF
12325cat confdefs.h >>conftest.$ac_ext
12326cat >>conftest.$ac_ext <<_ACEOF
12327/* end confdefs.h.  */
12328$ac_includes_default
12329long longval () { return (long) (sizeof (int *)); }
12330unsigned long ulongval () { return (long) (sizeof (int *)); }
12331#include <stdio.h>
12332#include <stdlib.h>
12333int
12334main ()
12335{
12336
12337  FILE *f = fopen ("conftest.val", "w");
12338  if (! f)
12339    exit (1);
12340  if (((long) (sizeof (int *))) < 0)
12341    {
12342      long i = longval ();
12343      if (i != ((long) (sizeof (int *))))
12344	exit (1);
12345      fprintf (f, "%ld\n", i);
12346    }
12347  else
12348    {
12349      unsigned long i = ulongval ();
12350      if (i != ((long) (sizeof (int *))))
12351	exit (1);
12352      fprintf (f, "%lu\n", i);
12353    }
12354  exit (ferror (f) || fclose (f) != 0);
12355
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360rm -f conftest$ac_exeext
12361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362  (eval $ac_link) 2>&5
12363  ac_status=$?
12364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367  (eval $ac_try) 2>&5
12368  ac_status=$?
12369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370  (exit $ac_status); }; }; then
12371  ac_cv_sizeof_int_p=`cat conftest.val`
12372else
12373  echo "$as_me: program exited with status $ac_status" >&5
12374echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377( exit $ac_status )
12378{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
12379See \`config.log' for more details." >&5
12380echo "$as_me: error: cannot compute sizeof (int *), 77
12381See \`config.log' for more details." >&2;}
12382   { (exit 1); exit 1; }; }
12383fi
12384rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12385fi
12386fi
12387rm -f conftest.val
12388else
12389  ac_cv_sizeof_int_p=0
12390fi
12391fi
12392echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
12393echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
12394cat >>confdefs.h <<_ACEOF
12395#define SIZEOF_INT_P $ac_cv_sizeof_int_p
12396_ACEOF
12397
12398
12399
12400
12401echo "$as_me:$LINENO: checking for int16_t" >&5
12402echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
12403if test "${xvt_cv_int16_t+set}" = set; then
12404  echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406  cat >conftest.$ac_ext <<_ACEOF
12407#line $LINENO "configure"
12408/* confdefs.h.  */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h.  */
12413#include <sys/types.h>
12414int
12415main ()
12416{
12417int16_t dummy;
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext
12423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424  (eval $ac_compile) 2>&5
12425  ac_status=$?
12426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427  (exit $ac_status); } &&
12428         { ac_try='test -s conftest.$ac_objext'
12429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430  (eval $ac_try) 2>&5
12431  ac_status=$?
12432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433  (exit $ac_status); }; }; then
12434  xvt_cv_int16_t=yes
12435else
12436  echo "$as_me: failed program was:" >&5
12437sed 's/^/| /' conftest.$ac_ext >&5
12438
12439if test $ac_cv_sizeof_char -ge 2; then
12440  xvt_cv_int16_t=" char"
12441else
12442  if test $ac_cv_sizeof_short -ge 2; then
12443    xvt_cv_int16_t=" short"
12444  else
12445    if test $ac_cv_sizeof_int -ge 2; then
12446      xvt_cv_int16_t=" int"
12447    else
12448      if test $ac_cv_sizeof_long -ge 2; then
12449        xvt_cv_int16_t=" long"
12450      else
12451        if test $ac_cv_sizeof_long_long -ge 2; then
12452          xvt_cv_int16_t=" long long"
12453        else
12454          xvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
12455        fi
12456      fi
12457    fi
12458  fi
12459fi
12460fi
12461rm -f conftest.$ac_objext conftest.$ac_ext
12462fi
12463echo "$as_me:$LINENO: result: $xvt_cv_int16_t" >&5
12464echo "${ECHO_T}$xvt_cv_int16_t" >&6
12465if test x"$xvt_cv_int16_t" != xyes; then
12466  xvt_int16_typedef="typedef $xvt_cv_int16_t int16_t;"
12467else
12468  if test x"" = x; then
12469    xvt_int16_typedef="/* typedef short int16_t; */"
12470  else
12471    xvt_int16_typedef="/* typedef  short int16_t; */"
12472  fi
12473fi
12474
12475echo "$as_me:$LINENO: checking for u_int16_t" >&5
12476echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
12477if test "${xvt_cv_u_int16_t+set}" = set; then
12478  echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480  cat >conftest.$ac_ext <<_ACEOF
12481#line $LINENO "configure"
12482/* confdefs.h.  */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h.  */
12487#include <sys/types.h>
12488int
12489main ()
12490{
12491u_int16_t dummy;
12492  ;
12493  return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext
12497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498  (eval $ac_compile) 2>&5
12499  ac_status=$?
12500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501  (exit $ac_status); } &&
12502         { ac_try='test -s conftest.$ac_objext'
12503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504  (eval $ac_try) 2>&5
12505  ac_status=$?
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); }; }; then
12508  xvt_cv_u_int16_t=yes
12509else
12510  echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513if test $ac_cv_sizeof_char -ge 2; then
12514  xvt_cv_u_int16_t="unsigned char"
12515else
12516  if test $ac_cv_sizeof_short -ge 2; then
12517    xvt_cv_u_int16_t="unsigned short"
12518  else
12519    if test $ac_cv_sizeof_int -ge 2; then
12520      xvt_cv_u_int16_t="unsigned int"
12521    else
12522      if test $ac_cv_sizeof_long -ge 2; then
12523        xvt_cv_u_int16_t="unsigned long"
12524      else
12525        if test $ac_cv_sizeof_long_long -ge 2; then
12526          xvt_cv_u_int16_t="unsigned long long"
12527        else
12528          xvt_cv_u_int16_t="unsigned short" # we _must_ have a (possibly wrong) default
12529        fi
12530      fi
12531    fi
12532  fi
12533fi
12534fi
12535rm -f conftest.$ac_objext conftest.$ac_ext
12536fi
12537echo "$as_me:$LINENO: result: $xvt_cv_u_int16_t" >&5
12538echo "${ECHO_T}$xvt_cv_u_int16_t" >&6
12539if test x"$xvt_cv_u_int16_t" != xyes; then
12540  xvt_u_int16_typedef="typedef $xvt_cv_u_int16_t u_int16_t;"
12541else
12542  if test x"unsigned" = x; then
12543    xvt_u_int16_typedef="/* typedef short u_int16_t; */"
12544  else
12545    xvt_u_int16_typedef="/* typedef unsigned short u_int16_t; */"
12546  fi
12547fi
12548
12549echo "$as_me:$LINENO: checking for int32_t" >&5
12550echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
12551if test "${xvt_cv_int32_t+set}" = set; then
12552  echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554  cat >conftest.$ac_ext <<_ACEOF
12555#line $LINENO "configure"
12556/* confdefs.h.  */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h.  */
12561#include <sys/types.h>
12562int
12563main ()
12564{
12565int32_t dummy;
12566  ;
12567  return 0;
12568}
12569_ACEOF
12570rm -f conftest.$ac_objext
12571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572  (eval $ac_compile) 2>&5
12573  ac_status=$?
12574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); } &&
12576         { ac_try='test -s conftest.$ac_objext'
12577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578  (eval $ac_try) 2>&5
12579  ac_status=$?
12580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581  (exit $ac_status); }; }; then
12582  xvt_cv_int32_t=yes
12583else
12584  echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587if test $ac_cv_sizeof_char -ge 4; then
12588  xvt_cv_int32_t=" char"
12589else
12590  if test $ac_cv_sizeof_short -ge 4; then
12591    xvt_cv_int32_t=" short"
12592  else
12593    if test $ac_cv_sizeof_int -ge 4; then
12594      xvt_cv_int32_t=" int"
12595    else
12596      if test $ac_cv_sizeof_long -ge 4; then
12597        xvt_cv_int32_t=" long"
12598      else
12599        if test $ac_cv_sizeof_long_long -ge 4; then
12600          xvt_cv_int32_t=" long long"
12601        else
12602          xvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
12603        fi
12604      fi
12605    fi
12606  fi
12607fi
12608fi
12609rm -f conftest.$ac_objext conftest.$ac_ext
12610fi
12611echo "$as_me:$LINENO: result: $xvt_cv_int32_t" >&5
12612echo "${ECHO_T}$xvt_cv_int32_t" >&6
12613if test x"$xvt_cv_int32_t" != xyes; then
12614  xvt_int32_typedef="typedef $xvt_cv_int32_t int32_t;"
12615else
12616  if test x"" = x; then
12617    xvt_int32_typedef="/* typedef int int32_t; */"
12618  else
12619    xvt_int32_typedef="/* typedef  int int32_t; */"
12620  fi
12621fi
12622
12623echo "$as_me:$LINENO: checking for u_int32_t" >&5
12624echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12625if test "${xvt_cv_u_int32_t+set}" = set; then
12626  echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628  cat >conftest.$ac_ext <<_ACEOF
12629#line $LINENO "configure"
12630/* confdefs.h.  */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h.  */
12635#include <sys/types.h>
12636int
12637main ()
12638{
12639u_int32_t dummy;
12640  ;
12641  return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext
12645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12646  (eval $ac_compile) 2>&5
12647  ac_status=$?
12648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649  (exit $ac_status); } &&
12650         { ac_try='test -s conftest.$ac_objext'
12651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652  (eval $ac_try) 2>&5
12653  ac_status=$?
12654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655  (exit $ac_status); }; }; then
12656  xvt_cv_u_int32_t=yes
12657else
12658  echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661if test $ac_cv_sizeof_char -ge 4; then
12662  xvt_cv_u_int32_t="unsigned char"
12663else
12664  if test $ac_cv_sizeof_short -ge 4; then
12665    xvt_cv_u_int32_t="unsigned short"
12666  else
12667    if test $ac_cv_sizeof_int -ge 4; then
12668      xvt_cv_u_int32_t="unsigned int"
12669    else
12670      if test $ac_cv_sizeof_long -ge 4; then
12671        xvt_cv_u_int32_t="unsigned long"
12672      else
12673        if test $ac_cv_sizeof_long_long -ge 4; then
12674          xvt_cv_u_int32_t="unsigned long long"
12675        else
12676          xvt_cv_u_int32_t="unsigned int" # we _must_ have a (possibly wrong) default
12677        fi
12678      fi
12679    fi
12680  fi
12681fi
12682fi
12683rm -f conftest.$ac_objext conftest.$ac_ext
12684fi
12685echo "$as_me:$LINENO: result: $xvt_cv_u_int32_t" >&5
12686echo "${ECHO_T}$xvt_cv_u_int32_t" >&6
12687if test x"$xvt_cv_u_int32_t" != xyes; then
12688  xvt_u_int32_typedef="typedef $xvt_cv_u_int32_t u_int32_t;"
12689else
12690  if test x"unsigned" = x; then
12691    xvt_u_int32_typedef="/* typedef int u_int32_t; */"
12692  else
12693    xvt_u_int32_typedef="/* typedef unsigned int u_int32_t; */"
12694  fi
12695fi
12696
12697echo "$as_me:$LINENO: checking for int64_t" >&5
12698echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
12699if test "${xvt_cv_int64_t+set}" = set; then
12700  echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702  cat >conftest.$ac_ext <<_ACEOF
12703#line $LINENO "configure"
12704/* confdefs.h.  */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h.  */
12709#include <sys/types.h>
12710int
12711main ()
12712{
12713int64_t dummy;
12714  ;
12715  return 0;
12716}
12717_ACEOF
12718rm -f conftest.$ac_objext
12719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720  (eval $ac_compile) 2>&5
12721  ac_status=$?
12722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723  (exit $ac_status); } &&
12724         { ac_try='test -s conftest.$ac_objext'
12725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726  (eval $ac_try) 2>&5
12727  ac_status=$?
12728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729  (exit $ac_status); }; }; then
12730  xvt_cv_int64_t=yes
12731else
12732  echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
12735if test $ac_cv_sizeof_char -ge 8; then
12736  xvt_cv_int64_t=" char"
12737else
12738  if test $ac_cv_sizeof_short -ge 8; then
12739    xvt_cv_int64_t=" short"
12740  else
12741    if test $ac_cv_sizeof_int -ge 8; then
12742      xvt_cv_int64_t=" int"
12743    else
12744      if test $ac_cv_sizeof_long -ge 8; then
12745        xvt_cv_int64_t=" long"
12746      else
12747        if test $ac_cv_sizeof_long_long -ge 8; then
12748          xvt_cv_int64_t=" long long"
12749        else
12750          xvt_cv_int64_t=" long long" # we _must_ have a (possibly wrong) default
12751        fi
12752      fi
12753    fi
12754  fi
12755fi
12756fi
12757rm -f conftest.$ac_objext conftest.$ac_ext
12758fi
12759echo "$as_me:$LINENO: result: $xvt_cv_int64_t" >&5
12760echo "${ECHO_T}$xvt_cv_int64_t" >&6
12761if test x"$xvt_cv_int64_t" != xyes; then
12762  xvt_int64_typedef="typedef $xvt_cv_int64_t int64_t;"
12763else
12764  if test x"" = x; then
12765    xvt_int64_typedef="/* typedef long long int64_t; */"
12766  else
12767    xvt_int64_typedef="/* typedef  long long int64_t; */"
12768  fi
12769fi
12770
12771echo "$as_me:$LINENO: checking for u_int64_t" >&5
12772echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12773if test "${xvt_cv_u_int64_t+set}" = set; then
12774  echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776  cat >conftest.$ac_ext <<_ACEOF
12777#line $LINENO "configure"
12778/* confdefs.h.  */
12779_ACEOF
12780cat confdefs.h >>conftest.$ac_ext
12781cat >>conftest.$ac_ext <<_ACEOF
12782/* end confdefs.h.  */
12783#include <sys/types.h>
12784int
12785main ()
12786{
12787u_int64_t dummy;
12788  ;
12789  return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794  (eval $ac_compile) 2>&5
12795  ac_status=$?
12796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797  (exit $ac_status); } &&
12798         { ac_try='test -s conftest.$ac_objext'
12799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800  (eval $ac_try) 2>&5
12801  ac_status=$?
12802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803  (exit $ac_status); }; }; then
12804  xvt_cv_u_int64_t=yes
12805else
12806  echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809if test $ac_cv_sizeof_char -ge 8; then
12810  xvt_cv_u_int64_t="unsigned char"
12811else
12812  if test $ac_cv_sizeof_short -ge 8; then
12813    xvt_cv_u_int64_t="unsigned short"
12814  else
12815    if test $ac_cv_sizeof_int -ge 8; then
12816      xvt_cv_u_int64_t="unsigned int"
12817    else
12818      if test $ac_cv_sizeof_long -ge 8; then
12819        xvt_cv_u_int64_t="unsigned long"
12820      else
12821        if test $ac_cv_sizeof_long_long -ge 8; then
12822          xvt_cv_u_int64_t="unsigned long long"
12823        else
12824          xvt_cv_u_int64_t="unsigned long long" # we _must_ have a (possibly wrong) default
12825        fi
12826      fi
12827    fi
12828  fi
12829fi
12830fi
12831rm -f conftest.$ac_objext conftest.$ac_ext
12832fi
12833echo "$as_me:$LINENO: result: $xvt_cv_u_int64_t" >&5
12834echo "${ECHO_T}$xvt_cv_u_int64_t" >&6
12835if test x"$xvt_cv_u_int64_t" != xyes; then
12836  xvt_u_int64_typedef="typedef $xvt_cv_u_int64_t u_int64_t;"
12837else
12838  if test x"unsigned" = x; then
12839    xvt_u_int64_typedef="/* typedef long long u_int64_t; */"
12840  else
12841    xvt_u_int64_typedef="/* typedef unsigned long long u_int64_t; */"
12842  fi
12843fi
12844
12845if test $ac_cv_sizeof_int_p -eq 8; then
12846  xvt_intp_define="#define intp_t int64_t"
12847  xvt_u_intp_define="#define u_intp_t u_int64_t"
12848else
12849  if test $ac_cv_sizeof_int_p -eq 4; then
12850    xvt_intp_define="#define intp_t int32_t"
12851    xvt_u_intp_define="#define u_intp_t u_int32_t"
12852  else
12853    if test $ac_cv_sizeof_int_p -eq 2; then
12854      xvt_intp_define="#define intp_t int16_t"
12855      xvt_u_intp_define="#define u_intp_t u_int16_t"
12856    else
12857      xvt_intp_define="#error set intp_t"
12858      xvt_u_intp_define="#error set u_intp_t"
12859    fi
12860  fi
12861fi
12862
12863
12864
12865echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12866echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12867if test "${ac_cv_type_signal+set}" = set; then
12868  echo $ECHO_N "(cached) $ECHO_C" >&6
12869else
12870  cat >conftest.$ac_ext <<_ACEOF
12871#line $LINENO "configure"
12872/* confdefs.h.  */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h.  */
12877#include <sys/types.h>
12878#include <signal.h>
12879#ifdef signal
12880# undef signal
12881#endif
12882#ifdef __cplusplus
12883extern "C" void (*signal (int, void (*)(int)))(int);
12884#else
12885void (*signal ()) ();
12886#endif
12887
12888int
12889main ()
12890{
12891int i;
12892  ;
12893  return 0;
12894}
12895_ACEOF
12896rm -f conftest.$ac_objext
12897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898  (eval $ac_compile) 2>&5
12899  ac_status=$?
12900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901  (exit $ac_status); } &&
12902         { ac_try='test -s conftest.$ac_objext'
12903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904  (eval $ac_try) 2>&5
12905  ac_status=$?
12906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907  (exit $ac_status); }; }; then
12908  ac_cv_type_signal=void
12909else
12910  echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
12913ac_cv_type_signal=int
12914fi
12915rm -f conftest.$ac_objext conftest.$ac_ext
12916fi
12917echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12918echo "${ECHO_T}$ac_cv_type_signal" >&6
12919
12920cat >>confdefs.h <<_ACEOF
12921#define RETSIGTYPE $ac_cv_type_signal
12922_ACEOF
12923
12924
12925
12926case "$host_alias" in
12927    *ultrix) ac_cv_func_setsid='no' ;;
12928    *) break;;
12929esac
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949for ac_func in \
12950	atexit \
12951	revoke \
12952	unsetenv \
12953	setutent \
12954	seteuid \
12955	setreuid \
12956	setsid \
12957	setpgrp \
12958	setpgid \
12959	openpty \
12960	_getpty \
12961	grantpt \
12962	unlockpt \
12963	isastream \
12964	on_exit \
12965	nanosleep \
12966	updwtmp \
12967	ttyslot \
12968
12969do
12970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971echo "$as_me:$LINENO: checking for $ac_func" >&5
12972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12973if eval "test \"\${$as_ac_var+set}\" = set"; then
12974  echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976  cat >conftest.$ac_ext <<_ACEOF
12977#line $LINENO "configure"
12978/* confdefs.h.  */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h.  */
12983/* System header to define __stub macros and hopefully few prototypes,
12984    which can conflict with char $ac_func (); below.
12985    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986    <limits.h> exists even on freestanding compilers.  */
12987#ifdef __STDC__
12988# include <limits.h>
12989#else
12990# include <assert.h>
12991#endif
12992/* Override any gcc2 internal prototype to avoid an error.  */
12993#ifdef __cplusplus
12994extern "C"
12995{
12996#endif
12997/* We use char because int might match the return type of a gcc2
12998   builtin and then its argument prototype would still apply.  */
12999char $ac_func ();
13000/* The GNU C library defines this for functions which it implements
13001    to always fail with ENOSYS.  Some functions are actually named
13002    something starting with __ and the normal name is an alias.  */
13003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13004choke me
13005#else
13006char (*f) () = $ac_func;
13007#endif
13008#ifdef __cplusplus
13009}
13010#endif
13011
13012int
13013main ()
13014{
13015return f != $ac_func;
13016  ;
13017  return 0;
13018}
13019_ACEOF
13020rm -f conftest.$ac_objext conftest$ac_exeext
13021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022  (eval $ac_link) 2>&5
13023  ac_status=$?
13024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025  (exit $ac_status); } &&
13026         { ac_try='test -s conftest$ac_exeext'
13027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028  (eval $ac_try) 2>&5
13029  ac_status=$?
13030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031  (exit $ac_status); }; }; then
13032  eval "$as_ac_var=yes"
13033else
13034  echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
13037eval "$as_ac_var=no"
13038fi
13039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13040fi
13041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13043if test `eval echo '${'$as_ac_var'}'` = yes; then
13044  cat >>confdefs.h <<_ACEOF
13045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13046_ACEOF
13047
13048fi
13049done
13050
13051
13052
13053if test "${ac_cv_header_utmp_h+set}" = set; then
13054  echo "$as_me:$LINENO: checking for utmp.h" >&5
13055echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
13056if test "${ac_cv_header_utmp_h+set}" = set; then
13057  echo $ECHO_N "(cached) $ECHO_C" >&6
13058fi
13059echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
13060echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
13061else
13062  # Is the header compilable?
13063echo "$as_me:$LINENO: checking utmp.h usability" >&5
13064echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
13065cat >conftest.$ac_ext <<_ACEOF
13066#line $LINENO "configure"
13067/* confdefs.h.  */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h.  */
13072$ac_includes_default
13073#include <utmp.h>
13074_ACEOF
13075rm -f conftest.$ac_objext
13076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077  (eval $ac_compile) 2>&5
13078  ac_status=$?
13079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080  (exit $ac_status); } &&
13081         { ac_try='test -s conftest.$ac_objext'
13082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083  (eval $ac_try) 2>&5
13084  ac_status=$?
13085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086  (exit $ac_status); }; }; then
13087  ac_header_compiler=yes
13088else
13089  echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
13091
13092ac_header_compiler=no
13093fi
13094rm -f conftest.$ac_objext conftest.$ac_ext
13095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13096echo "${ECHO_T}$ac_header_compiler" >&6
13097
13098# Is the header present?
13099echo "$as_me:$LINENO: checking utmp.h presence" >&5
13100echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
13101cat >conftest.$ac_ext <<_ACEOF
13102#line $LINENO "configure"
13103/* confdefs.h.  */
13104_ACEOF
13105cat confdefs.h >>conftest.$ac_ext
13106cat >>conftest.$ac_ext <<_ACEOF
13107/* end confdefs.h.  */
13108#include <utmp.h>
13109_ACEOF
13110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13111  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13112  ac_status=$?
13113  grep -v '^ *+' conftest.er1 >conftest.err
13114  rm -f conftest.er1
13115  cat conftest.err >&5
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); } >/dev/null; then
13118  if test -s conftest.err; then
13119    ac_cpp_err=$ac_c_preproc_warn_flag
13120  else
13121    ac_cpp_err=
13122  fi
13123else
13124  ac_cpp_err=yes
13125fi
13126if test -z "$ac_cpp_err"; then
13127  ac_header_preproc=yes
13128else
13129  echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132  ac_header_preproc=no
13133fi
13134rm -f conftest.err conftest.$ac_ext
13135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13136echo "${ECHO_T}$ac_header_preproc" >&6
13137
13138# So?  What about this header?
13139case $ac_header_compiler:$ac_header_preproc in
13140  yes:no )
13141    { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
13142echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13143    { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
13144echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
13145    (
13146      cat <<\_ASBOX
13147## ------------------------------------ ##
13148## Report this to bug-autoconf@gnu.org. ##
13149## ------------------------------------ ##
13150_ASBOX
13151    ) |
13152      sed "s/^/$as_me: WARNING:     /" >&2
13153    ;;
13154  no:yes )
13155    { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
13156echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
13157    { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
13158echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
13159    { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
13160echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
13161    (
13162      cat <<\_ASBOX
13163## ------------------------------------ ##
13164## Report this to bug-autoconf@gnu.org. ##
13165## ------------------------------------ ##
13166_ASBOX
13167    ) |
13168      sed "s/^/$as_me: WARNING:     /" >&2
13169    ;;
13170esac
13171echo "$as_me:$LINENO: checking for utmp.h" >&5
13172echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
13173if test "${ac_cv_header_utmp_h+set}" = set; then
13174  echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176  ac_cv_header_utmp_h=$ac_header_preproc
13177fi
13178echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
13179echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
13180
13181fi
13182if test $ac_cv_header_utmp_h = yes; then
13183  echo "$as_me:$LINENO: checking for struct utmp" >&5
13184echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
13185if test "${xvt_cv_struct_utmp+set}" = set; then
13186  echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188  cat >conftest.$ac_ext <<_ACEOF
13189#line $LINENO "configure"
13190/* confdefs.h.  */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
13194/* end confdefs.h.  */
13195#include <sys/types.h>
13196#include <utmp.h>
13197int
13198main ()
13199{
13200struct utmp ut;
13201  ;
13202  return 0;
13203}
13204_ACEOF
13205rm -f conftest.$ac_objext
13206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207  (eval $ac_compile) 2>&5
13208  ac_status=$?
13209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210  (exit $ac_status); } &&
13211         { ac_try='test -s conftest.$ac_objext'
13212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213  (eval $ac_try) 2>&5
13214  ac_status=$?
13215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216  (exit $ac_status); }; }; then
13217  xvt_cv_struct_utmp=yes
13218else
13219  echo "$as_me: failed program was:" >&5
13220sed 's/^/| /' conftest.$ac_ext >&5
13221
13222xvt_cv_struct_utmp=no
13223fi
13224rm -f conftest.$ac_objext conftest.$ac_ext
13225fi
13226echo "$as_me:$LINENO: result: $xvt_cv_struct_utmp" >&5
13227echo "${ECHO_T}$xvt_cv_struct_utmp" >&6
13228if test x$xvt_cv_struct_utmp = xyes; then
13229
13230cat >>confdefs.h <<\_ACEOF
13231#define HAVE_STRUCT_UTMP 1
13232_ACEOF
13233
13234fi
13235
13236
13237echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
13238echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
13239if test "${xvt_cv_struct_utmp_host+set}" = set; then
13240  echo $ECHO_N "(cached) $ECHO_C" >&6
13241else
13242  cat >conftest.$ac_ext <<_ACEOF
13243#line $LINENO "configure"
13244/* confdefs.h.  */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h.  */
13249#include <sys/types.h>
13250#include <utmp.h>
13251int
13252main ()
13253{
13254struct utmp ut; ut.ut_host;
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261  (eval $ac_compile) 2>&5
13262  ac_status=$?
13263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264  (exit $ac_status); } &&
13265         { ac_try='test -s conftest.$ac_objext'
13266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267  (eval $ac_try) 2>&5
13268  ac_status=$?
13269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270  (exit $ac_status); }; }; then
13271  xvt_cv_struct_utmp_host=yes
13272else
13273  echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276xvt_cv_struct_utmp_host=no
13277fi
13278rm -f conftest.$ac_objext conftest.$ac_ext
13279fi
13280echo "$as_me:$LINENO: result: $xvt_cv_struct_utmp_host" >&5
13281echo "${ECHO_T}$xvt_cv_struct_utmp_host" >&6
13282if test x$xvt_cv_struct_utmp_host = xyes; then
13283
13284cat >>confdefs.h <<\_ACEOF
13285#define HAVE_UTMP_HOST 1
13286_ACEOF
13287
13288fi
13289
13290echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
13291echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
13292if test "${xvt_cv_struct_utmp_pid+set}" = set; then
13293  echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295  cat >conftest.$ac_ext <<_ACEOF
13296#line $LINENO "configure"
13297/* confdefs.h.  */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h.  */
13302#include <sys/types.h>
13303#include <utmp.h>
13304int
13305main ()
13306{
13307struct utmp ut; ut.ut_pid;
13308  ;
13309  return 0;
13310}
13311_ACEOF
13312rm -f conftest.$ac_objext
13313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314  (eval $ac_compile) 2>&5
13315  ac_status=$?
13316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317  (exit $ac_status); } &&
13318         { ac_try='test -s conftest.$ac_objext'
13319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320  (eval $ac_try) 2>&5
13321  ac_status=$?
13322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323  (exit $ac_status); }; }; then
13324  xvt_cv_struct_utmp_pid=yes
13325else
13326  echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
13329xvt_cv_struct_utmp_pid=no
13330fi
13331rm -f conftest.$ac_objext conftest.$ac_ext
13332fi
13333echo "$as_me:$LINENO: result: $xvt_cv_struct_utmp_pid" >&5
13334echo "${ECHO_T}$xvt_cv_struct_utmp_pid" >&6
13335if test x$xvt_cv_struct_utmp_pid = xyes; then
13336
13337cat >>confdefs.h <<\_ACEOF
13338#define HAVE_UTMP_PID 1
13339_ACEOF
13340
13341fi
13342
13343fi
13344
13345
13346
13347if test "${ac_cv_header_utmpx_h+set}" = set; then
13348  echo "$as_me:$LINENO: checking for utmpx.h" >&5
13349echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
13350if test "${ac_cv_header_utmpx_h+set}" = set; then
13351  echo $ECHO_N "(cached) $ECHO_C" >&6
13352fi
13353echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
13354echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
13355else
13356  # Is the header compilable?
13357echo "$as_me:$LINENO: checking utmpx.h usability" >&5
13358echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
13359cat >conftest.$ac_ext <<_ACEOF
13360#line $LINENO "configure"
13361/* confdefs.h.  */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h.  */
13366$ac_includes_default
13367#include <utmpx.h>
13368_ACEOF
13369rm -f conftest.$ac_objext
13370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371  (eval $ac_compile) 2>&5
13372  ac_status=$?
13373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374  (exit $ac_status); } &&
13375         { ac_try='test -s conftest.$ac_objext'
13376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377  (eval $ac_try) 2>&5
13378  ac_status=$?
13379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380  (exit $ac_status); }; }; then
13381  ac_header_compiler=yes
13382else
13383  echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386ac_header_compiler=no
13387fi
13388rm -f conftest.$ac_objext conftest.$ac_ext
13389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390echo "${ECHO_T}$ac_header_compiler" >&6
13391
13392# Is the header present?
13393echo "$as_me:$LINENO: checking utmpx.h presence" >&5
13394echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
13395cat >conftest.$ac_ext <<_ACEOF
13396#line $LINENO "configure"
13397/* confdefs.h.  */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
13401/* end confdefs.h.  */
13402#include <utmpx.h>
13403_ACEOF
13404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13406  ac_status=$?
13407  grep -v '^ *+' conftest.er1 >conftest.err
13408  rm -f conftest.er1
13409  cat conftest.err >&5
13410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411  (exit $ac_status); } >/dev/null; then
13412  if test -s conftest.err; then
13413    ac_cpp_err=$ac_c_preproc_warn_flag
13414  else
13415    ac_cpp_err=
13416  fi
13417else
13418  ac_cpp_err=yes
13419fi
13420if test -z "$ac_cpp_err"; then
13421  ac_header_preproc=yes
13422else
13423  echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426  ac_header_preproc=no
13427fi
13428rm -f conftest.err conftest.$ac_ext
13429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430echo "${ECHO_T}$ac_header_preproc" >&6
13431
13432# So?  What about this header?
13433case $ac_header_compiler:$ac_header_preproc in
13434  yes:no )
13435    { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
13436echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437    { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
13438echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
13439    (
13440      cat <<\_ASBOX
13441## ------------------------------------ ##
13442## Report this to bug-autoconf@gnu.org. ##
13443## ------------------------------------ ##
13444_ASBOX
13445    ) |
13446      sed "s/^/$as_me: WARNING:     /" >&2
13447    ;;
13448  no:yes )
13449    { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
13450echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
13451    { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
13452echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
13453    { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
13454echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
13455    (
13456      cat <<\_ASBOX
13457## ------------------------------------ ##
13458## Report this to bug-autoconf@gnu.org. ##
13459## ------------------------------------ ##
13460_ASBOX
13461    ) |
13462      sed "s/^/$as_me: WARNING:     /" >&2
13463    ;;
13464esac
13465echo "$as_me:$LINENO: checking for utmpx.h" >&5
13466echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
13467if test "${ac_cv_header_utmpx_h+set}" = set; then
13468  echo $ECHO_N "(cached) $ECHO_C" >&6
13469else
13470  ac_cv_header_utmpx_h=$ac_header_preproc
13471fi
13472echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
13473echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
13474
13475fi
13476if test $ac_cv_header_utmpx_h = yes; then
13477  echo "$as_me:$LINENO: checking for struct utmpx" >&5
13478echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
13479if test "${xvt_cv_struct_utmpx+set}" = set; then
13480  echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482  cat >conftest.$ac_ext <<_ACEOF
13483#line $LINENO "configure"
13484/* confdefs.h.  */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h.  */
13489#include <sys/types.h>
13490#include <utmpx.h>
13491int
13492main ()
13493{
13494struct utmpx ut;
13495  ;
13496  return 0;
13497}
13498_ACEOF
13499rm -f conftest.$ac_objext
13500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13501  (eval $ac_compile) 2>&5
13502  ac_status=$?
13503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504  (exit $ac_status); } &&
13505         { ac_try='test -s conftest.$ac_objext'
13506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507  (eval $ac_try) 2>&5
13508  ac_status=$?
13509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510  (exit $ac_status); }; }; then
13511  xvt_cv_struct_utmpx=yes
13512else
13513  echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516xvt_cv_struct_utmpx=no
13517fi
13518rm -f conftest.$ac_objext conftest.$ac_ext
13519fi
13520echo "$as_me:$LINENO: result: $xvt_cv_struct_utmpx" >&5
13521echo "${ECHO_T}$xvt_cv_struct_utmpx" >&6
13522if test x$xvt_cv_struct_utmpx = xyes; then
13523
13524cat >>confdefs.h <<\_ACEOF
13525#define HAVE_STRUCT_UTMPX 1
13526_ACEOF
13527
13528fi
13529
13530
13531echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
13532echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
13533if test "${xvt_cv_struct_utmpx_host+set}" = set; then
13534  echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536  cat >conftest.$ac_ext <<_ACEOF
13537#line $LINENO "configure"
13538/* confdefs.h.  */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h.  */
13543#include <sys/types.h>
13544#include <utmpx.h>
13545int
13546main ()
13547{
13548struct utmpx utx; utx.ut_host;
13549  ;
13550  return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext
13554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555  (eval $ac_compile) 2>&5
13556  ac_status=$?
13557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558  (exit $ac_status); } &&
13559         { ac_try='test -s conftest.$ac_objext'
13560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561  (eval $ac_try) 2>&5
13562  ac_status=$?
13563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564  (exit $ac_status); }; }; then
13565  xvt_cv_struct_utmpx_host=yes
13566else
13567  echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570xvt_cv_struct_utmpx_host=no
13571fi
13572rm -f conftest.$ac_objext conftest.$ac_ext
13573fi
13574echo "$as_me:$LINENO: result: $xvt_cv_struct_utmpx_host" >&5
13575echo "${ECHO_T}$xvt_cv_struct_utmpx_host" >&6
13576if test x$xvt_cv_struct_utmpx_host = xyes; then
13577
13578cat >>confdefs.h <<\_ACEOF
13579#define HAVE_UTMPX_HOST 1
13580_ACEOF
13581
13582fi
13583
13584fi
13585
13586
13587
13588echo "$as_me:$LINENO: checking for struct lastlog" >&5
13589echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
13590if test "${xvt_cv_struct_lastlog+set}" = set; then
13591  echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593  cat >conftest.$ac_ext <<_ACEOF
13594#line $LINENO "configure"
13595/* confdefs.h.  */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h.  */
13600#include <sys/types.h>
13601#include <utmp.h>
13602#ifdef HAVE_LASTLOG_H
13603#include <lastlog.h>
13604#endif
13605
13606int
13607main ()
13608{
13609struct lastlog ll;
13610  ;
13611  return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext
13615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616  (eval $ac_compile) 2>&5
13617  ac_status=$?
13618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619  (exit $ac_status); } &&
13620         { ac_try='test -s conftest.$ac_objext'
13621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622  (eval $ac_try) 2>&5
13623  ac_status=$?
13624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625  (exit $ac_status); }; }; then
13626  xvt_cv_struct_lastlog=yes
13627else
13628  echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
13631xvt_cv_struct_lastlog=no
13632fi
13633rm -f conftest.$ac_objext conftest.$ac_ext
13634fi
13635echo "$as_me:$LINENO: result: $xvt_cv_struct_lastlog" >&5
13636echo "${ECHO_T}$xvt_cv_struct_lastlog" >&6
13637if test x$xvt_cv_struct_lastlog = xyes; then
13638
13639cat >>confdefs.h <<\_ACEOF
13640#define HAVE_STRUCT_LASTLOG 1
13641_ACEOF
13642
13643fi
13644
13645echo "$as_me:$LINENO: checking for struct lastlogx" >&5
13646echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
13647if test "${xvt_cv_struct_lastlogx+set}" = set; then
13648  echo $ECHO_N "(cached) $ECHO_C" >&6
13649else
13650  cat >conftest.$ac_ext <<_ACEOF
13651#line $LINENO "configure"
13652/* confdefs.h.  */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h.  */
13657#include <sys/types.h>
13658#include <utmpx.h>
13659#ifdef HAVE_LASTLOG_H
13660#include <lastlog.h>
13661#endif
13662
13663int
13664main ()
13665{
13666struct lastlogx ll;
13667  ;
13668  return 0;
13669}
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673  (eval $ac_compile) 2>&5
13674  ac_status=$?
13675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); } &&
13677         { ac_try='test -s conftest.$ac_objext'
13678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679  (eval $ac_try) 2>&5
13680  ac_status=$?
13681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682  (exit $ac_status); }; }; then
13683  xvt_cv_struct_lastlogx=yes
13684else
13685  echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
13688xvt_cv_struct_lastlogx=no
13689fi
13690rm -f conftest.$ac_objext conftest.$ac_ext
13691fi
13692echo "$as_me:$LINENO: result: $xvt_cv_struct_lastlogx" >&5
13693echo "${ECHO_T}$xvt_cv_struct_lastlogx" >&6
13694if test x$xvt_cv_struct_lastlogx = xyes; then
13695
13696cat >>confdefs.h <<\_ACEOF
13697#define HAVE_STRUCT_LASTLOGX 1
13698_ACEOF
13699
13700fi
13701
13702
13703echo "$as_me:$LINENO: checking where utmp is located" >&5
13704echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
13705if test "${xvt_cv_path_utmp+set}" = set; then
13706  echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708  if test "$cross_compiling" = yes; then
13709    { echo "$as_me:$LINENO: WARNING: Define XVT_UTMP_FILE in config.h manually" >&5
13710echo "$as_me: WARNING: Define XVT_UTMP_FILE in config.h manually" >&2;}
13711else
13712  cat >conftest.$ac_ext <<_ACEOF
13713#line $LINENO "configure"
13714/* confdefs.h.  */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h.  */
13719#include <stdio.h>
13720#include <sys/types.h>
13721#include <utmp.h>
13722#include <errno.h>
13723main()
13724{
13725    char **u, *utmplist[] = {
13726    "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
13727    FILE *a, *f=fopen("conftestval", "w");
13728    if (!f) exit(1);
13729#ifdef UTMP_FILE
13730    fprintf(f, "%s\n", UTMP_FILE);
13731    exit(0);
13732#endif
13733#ifdef _PATH_UTMP
13734    fprintf(f, "%s\n", _PATH_UTMP);
13735    exit(0);
13736#endif
13737    for (u = utmplist; *u; u++) {
13738	if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
13739	    fprintf(f, "%s\n", *u);
13740	    exit(0);
13741	}
13742    }
13743    exit(0);
13744}
13745_ACEOF
13746rm -f conftest$ac_exeext
13747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748  (eval $ac_link) 2>&5
13749  ac_status=$?
13750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753  (eval $ac_try) 2>&5
13754  ac_status=$?
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); }; }; then
13757  xvt_cv_path_utmp=`cat conftestval`
13758else
13759  echo "$as_me: program exited with status $ac_status" >&5
13760echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763( exit $ac_status )
13764xvt_cv_path_utmp=
13765fi
13766rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13767fi
13768fi
13769echo "$as_me:$LINENO: result: $xvt_cv_path_utmp" >&5
13770echo "${ECHO_T}$xvt_cv_path_utmp" >&6
13771if test x$xvt_cv_path_utmp != x; then
13772
13773cat >>confdefs.h <<_ACEOF
13774#define XVT_UTMP_FILE "$xvt_cv_path_utmp"
13775_ACEOF
13776
13777fi
13778
13779
13780echo "$as_me:$LINENO: checking where utmpx is located" >&5
13781echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
13782if test "${xvt_cv_path_utmpx+set}" = set; then
13783  echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
13785  if test "$cross_compiling" = yes; then
13786    { echo "$as_me:$LINENO: WARNING: Define XVT_UTMPX_FILE in config.h manually" >&5
13787echo "$as_me: WARNING: Define XVT_UTMPX_FILE in config.h manually" >&2;}
13788else
13789  cat >conftest.$ac_ext <<_ACEOF
13790#line $LINENO "configure"
13791/* confdefs.h.  */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h.  */
13796#include <stdio.h>
13797#include <sys/types.h>
13798#include <utmpx.h>
13799#include <errno.h>
13800#include <sys/stat.h>
13801#ifdef HAVE_STRING_H
13802#include <string.h>
13803#endif
13804main()
13805{
13806    char **u, *p, *utmplist[] = {
13807#ifdef UTMPX_FILE
13808	UTMPX_FILE,
13809#endif
13810#ifdef _PATH_UTMPX
13811	_PATH_UTMPX,
13812#endif
13813    "/var/adm/utmpx", "/etc/utmpx", NULL };
13814    FILE *a, *f=fopen("conftestval", "w");
13815    struct stat statu, statux;
13816    if (!f) exit(1);
13817    for (u = utmplist; *u; u++) {
13818	if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
13819	    if (stat(*u, &statux) < 0)
13820		continue;
13821	    p = strdup(*u);
13822	    p[strlen(p) - 1] = '\0';
13823	    if (stat(p, &statu) >= 0
13824		&& (statu.st_mtime - statux.st_mtime > 86400))
13825		continue;
13826	    fprintf(f, "%s\n", *u);
13827	    exit(0);
13828	}
13829    }
13830    exit(0);
13831}
13832_ACEOF
13833rm -f conftest$ac_exeext
13834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835  (eval $ac_link) 2>&5
13836  ac_status=$?
13837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840  (eval $ac_try) 2>&5
13841  ac_status=$?
13842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843  (exit $ac_status); }; }; then
13844  xvt_cv_path_utmpx=`cat conftestval`
13845else
13846  echo "$as_me: program exited with status $ac_status" >&5
13847echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850( exit $ac_status )
13851xvt_cv_path_utmpx=
13852fi
13853rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13854fi
13855fi
13856echo "$as_me:$LINENO: result: $xvt_cv_path_utmpx" >&5
13857echo "${ECHO_T}$xvt_cv_path_utmpx" >&6
13858if test x$xvt_cv_path_utmpx != x; then
13859
13860cat >>confdefs.h <<_ACEOF
13861#define XVT_UTMPX_FILE "$xvt_cv_path_utmpx"
13862_ACEOF
13863
13864fi
13865
13866
13867echo "$as_me:$LINENO: checking where wtmp is located" >&5
13868echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
13869if test "${xvt_cv_path_wtmp+set}" = set; then
13870  echo $ECHO_N "(cached) $ECHO_C" >&6
13871else
13872  if test "$cross_compiling" = yes; then
13873    { echo "$as_me:$LINENO: WARNING: Define XVT_WTMP_FILE in config.h manually" >&5
13874echo "$as_me: WARNING: Define XVT_WTMP_FILE in config.h manually" >&2;}
13875else
13876  cat >conftest.$ac_ext <<_ACEOF
13877#line $LINENO "configure"
13878/* confdefs.h.  */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h.  */
13883#include <stdio.h>
13884#include <sys/types.h>
13885#ifdef HAVE_UTMP_H
13886#include <utmp.h>
13887#endif
13888#include <errno.h>
13889main()
13890{
13891    char **w, *wtmplist[] = {
13892    "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
13893    FILE *a, *f=fopen("conftestval", "w");
13894    if (!f) exit(1);
13895#ifdef WTMP_FILE
13896    fprintf(f, "%s\n", WTMP_FILE);
13897    exit(0);
13898#endif
13899#ifdef _PATH_WTMP
13900    fprintf(f, "%s\n", _PATH_WTMP);
13901    exit(0);
13902#endif
13903    for (w = wtmplist; *w; w++) {
13904	if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
13905	    fprintf(f, "%s\n", *w);
13906	    exit(0);
13907	}
13908    }
13909    exit(0);
13910}
13911_ACEOF
13912rm -f conftest$ac_exeext
13913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914  (eval $ac_link) 2>&5
13915  ac_status=$?
13916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919  (eval $ac_try) 2>&5
13920  ac_status=$?
13921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922  (exit $ac_status); }; }; then
13923  xvt_cv_path_wtmp=`cat conftestval`
13924else
13925  echo "$as_me: program exited with status $ac_status" >&5
13926echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929( exit $ac_status )
13930xvt_cv_path_wtmp=
13931fi
13932rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13933fi
13934fi
13935echo "$as_me:$LINENO: result: $xvt_cv_path_wtmp" >&5
13936echo "${ECHO_T}$xvt_cv_path_wtmp" >&6
13937if test x$xvt_cv_path_wtmp != x; then
13938
13939cat >>confdefs.h <<_ACEOF
13940#define XVT_WTMP_FILE "$xvt_cv_path_wtmp"
13941_ACEOF
13942
13943fi
13944
13945echo "$as_me:$LINENO: checking where wtmpx is located" >&5
13946echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
13947if test "${xvt_cv_path_wtmpx+set}" = set; then
13948  echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950  if test "$cross_compiling" = yes; then
13951    { echo "$as_me:$LINENO: WARNING: Define XVT_WTMPX_FILE in config.h manually" >&5
13952echo "$as_me: WARNING: Define XVT_WTMPX_FILE in config.h manually" >&2;}
13953else
13954  cat >conftest.$ac_ext <<_ACEOF
13955#line $LINENO "configure"
13956/* confdefs.h.  */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h.  */
13961#include <stdio.h>
13962#ifdef HAVE_UTMPX_H
13963#include <utmpx.h>
13964#endif
13965#include <errno.h>
13966main()
13967{
13968    char **w, *wtmplist[] = {
13969    "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
13970    FILE *a, *f=fopen("conftestval", "w");
13971    if (!f) exit(1);
13972#ifdef WTMPX_FILE
13973    fprintf(f, "%s\n", WTMPX_FILE);
13974    exit(0);
13975#endif
13976#ifdef _PATH_WTMPX
13977    fprintf(f, "%s\n", _PATH_WTMPX);
13978    exit(0);
13979#endif
13980    for (w = wtmplist; *w; w++) {
13981	if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
13982	    fprintf(f, "%s\n", *w);
13983	    exit(0);
13984	}
13985    }
13986    exit(0);
13987}
13988_ACEOF
13989rm -f conftest$ac_exeext
13990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13991  (eval $ac_link) 2>&5
13992  ac_status=$?
13993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996  (eval $ac_try) 2>&5
13997  ac_status=$?
13998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999  (exit $ac_status); }; }; then
14000  xvt_cv_path_wtmpx=`cat conftestval`
14001else
14002  echo "$as_me: program exited with status $ac_status" >&5
14003echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006( exit $ac_status )
14007xvt_cv_path_wtmpx=
14008fi
14009rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14010fi
14011fi
14012echo "$as_me:$LINENO: result: $xvt_cv_path_wtmpx" >&5
14013echo "${ECHO_T}$xvt_cv_path_wtmpx" >&6
14014if test x$xvt_cv_path_wtmpx != x; then
14015
14016cat >>confdefs.h <<_ACEOF
14017#define XVT_WTMPX_FILE "$xvt_cv_path_wtmpx"
14018_ACEOF
14019
14020fi
14021
14022echo "$as_me:$LINENO: checking where lastlog is located" >&5
14023echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
14024if test "${xvt_cv_path_lastlog+set}" = set; then
14025  echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027  if test "$cross_compiling" = yes; then
14028    { echo "$as_me:$LINENO: WARNING: Define XVT_LASTLOG_FILE in config.h manually" >&5
14029echo "$as_me: WARNING: Define XVT_LASTLOG_FILE in config.h manually" >&2;}
14030else
14031  cat >conftest.$ac_ext <<_ACEOF
14032#line $LINENO "configure"
14033/* confdefs.h.  */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
14037/* end confdefs.h.  */
14038#include <stdio.h>
14039#include <sys/types.h>
14040#ifdef HAVE_UTMPX_H
14041#include <utmpx.h>
14042#elif defined(HAVE_UTMP_H)
14043#include <utmp.h>
14044#endif
14045#ifdef HAVE_LASTLOG_H
14046#include <lastlog.h>
14047#endif
14048#include <errno.h>
14049main()
14050{
14051    char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
14052    FILE *a, *f=fopen("conftestval", "w");
14053    if (!f) exit(1);
14054#ifdef LASTLOG_FILE
14055    fprintf(f, "%s\n", LASTLOG_FILE);
14056    exit(0);
14057#endif
14058#ifdef _PATH_LASTLOG
14059    fprintf(f, "%s\n", _PATH_LASTLOG);
14060    exit(0);
14061#endif
14062    for (w = lastloglist; *w; w++) {
14063	if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
14064	    fprintf(f, "%s\n", *w);
14065	    exit(0);
14066	}
14067    }
14068    exit(0);
14069}
14070_ACEOF
14071rm -f conftest$ac_exeext
14072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14073  (eval $ac_link) 2>&5
14074  ac_status=$?
14075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078  (eval $ac_try) 2>&5
14079  ac_status=$?
14080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081  (exit $ac_status); }; }; then
14082  xvt_cv_path_lastlog=`cat conftestval`
14083else
14084  echo "$as_me: program exited with status $ac_status" >&5
14085echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
14088( exit $ac_status )
14089xvt_cv_path_lastlog=
14090fi
14091rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14092fi
14093fi
14094echo "$as_me:$LINENO: result: $xvt_cv_path_lastlog" >&5
14095echo "${ECHO_T}$xvt_cv_path_lastlog" >&6
14096if test x$xvt_cv_path_lastlog != x; then
14097
14098cat >>confdefs.h <<_ACEOF
14099#define XVT_LASTLOG_FILE "$xvt_cv_path_lastlog"
14100_ACEOF
14101
14102  if test -d "$xvt_cv_path_lastlog"; then
14103
14104cat >>confdefs.h <<\_ACEOF
14105#define LASTLOG_IS_DIR 1
14106_ACEOF
14107
14108  fi
14109fi
14110
14111echo "$as_me:$LINENO: checking where lastlogx is located" >&5
14112echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
14113if test "${xvt_cv_path_lastlogx+set}" = set; then
14114  echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
14116  if test "$cross_compiling" = yes; then
14117    { echo "$as_me:$LINENO: WARNING: Define XVT_LASTLOGX_FILE in config.h manually" >&5
14118echo "$as_me: WARNING: Define XVT_LASTLOGX_FILE in config.h manually" >&2;}
14119else
14120  cat >conftest.$ac_ext <<_ACEOF
14121#line $LINENO "configure"
14122/* confdefs.h.  */
14123_ACEOF
14124cat confdefs.h >>conftest.$ac_ext
14125cat >>conftest.$ac_ext <<_ACEOF
14126/* end confdefs.h.  */
14127#include <stdio.h>
14128#ifdef HAVE_UTMPX_H
14129#include <utmpx.h>
14130#endif
14131#include <errno.h>
14132main()
14133{
14134    char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
14135    FILE *a, *f=fopen("conftestval", "w");
14136    if (!f) exit(1);
14137#ifdef LASTLOGX_FILE
14138    fprintf(f, "%s\n", LASTLOGX_FILE);
14139    exit(0);
14140#endif
14141#ifdef _PATH_LASTLOGX
14142    fprintf(f, "%s\n", _PATH_LASTLOGX);
14143    exit(0);
14144#endif
14145    for (w = wtmplist; *w; w++) {
14146	if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
14147	    fprintf(f, "%s\n", *w);
14148	    exit(0);
14149	}
14150    }
14151    exit(0);
14152}
14153_ACEOF
14154rm -f conftest$ac_exeext
14155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156  (eval $ac_link) 2>&5
14157  ac_status=$?
14158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161  (eval $ac_try) 2>&5
14162  ac_status=$?
14163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164  (exit $ac_status); }; }; then
14165  xvt_cv_path_lastlogx=`cat conftestval`
14166else
14167  echo "$as_me: program exited with status $ac_status" >&5
14168echo "$as_me: failed program was:" >&5
14169sed 's/^/| /' conftest.$ac_ext >&5
14170
14171( exit $ac_status )
14172xvt_cv_path_lastlogx=
14173fi
14174rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14175fi
14176fi
14177echo "$as_me:$LINENO: result: $xvt_cv_path_lastlogx" >&5
14178echo "${ECHO_T}$xvt_cv_path_lastlogx" >&6
14179if test x$xvt_cv_path_lastlogx != x; then
14180
14181cat >>confdefs.h <<_ACEOF
14182#define XVT_LASTLOGX_FILE "$xvt_cv_path_lastlogx"
14183_ACEOF
14184
14185fi
14186
14187
14188echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
14189echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
14190if test "${xvt_cv_path_ttytab+set}" = set; then
14191  echo $ECHO_N "(cached) $ECHO_C" >&6
14192else
14193  for ttys_file in     /etc/ttys /etc/ttytab;
14194do
14195  if test -f "$ttys_file" ; then
14196    xvt_cv_path_ttytab=$ttys_file
14197    break
14198  fi
14199done
14200
14201fi
14202echo "$as_me:$LINENO: result: $xvt_cv_path_ttytab" >&5
14203echo "${ECHO_T}$xvt_cv_path_ttytab" >&6
14204if test x$xvt_cv_path_ttytab != x; then
14205
14206cat >>confdefs.h <<_ACEOF
14207#define TTYTAB_FILENAME "$xvt_cv_path_ttytab"
14208_ACEOF
14209
14210fi
14211
14212
14213ac_save_LIBS=$LIBS
14214ac_save_CFLAGS=$CFLAGS
14215CFLAGS="$CFLAGS $X_CFLAGS"
14216LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
14217if test x$xvt_cv_rpath = xyes -o x$xvt_cv_R = xyes; then
14218  LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
14219fi
14220echo "$as_me:$LINENO: checking for working Xlocale" >&5
14221echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
14222if test "${xvt_cv_func_xlocale+set}" = set; then
14223  echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225  if test "$cross_compiling" = yes; then
14226    { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
14227echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
14228else
14229  cat >conftest.$ac_ext <<_ACEOF
14230#line $LINENO "configure"
14231/* confdefs.h.  */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h.  */
14236#include <X11/Xlib.h>
14237main() {
14238char *p;
14239if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
14240exit (XSupportsLocale() ? 0 : 1);
14241else
14242exit (1);}
14243_ACEOF
14244rm -f conftest$ac_exeext
14245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246  (eval $ac_link) 2>&5
14247  ac_status=$?
14248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251  (eval $ac_try) 2>&5
14252  ac_status=$?
14253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254  (exit $ac_status); }; }; then
14255    xvt_cv_func_xlocale=yes
14256else
14257  echo "$as_me: program exited with status $ac_status" >&5
14258echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261( exit $ac_status )
14262xvt_cv_func_xlocale=no
14263fi
14264rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14265fi
14266fi
14267echo "$as_me:$LINENO: result: $xvt_cv_func_xlocale" >&5
14268echo "${ECHO_T}$xvt_cv_func_xlocale" >&6
14269if test x$xvt_cv_func_xlocale = xyes; then
14270
14271cat >>confdefs.h <<\_ACEOF
14272#define HAVE_XLOCALE 1
14273_ACEOF
14274
14275fi
14276
14277echo "$as_me:$LINENO: checking for working X setlocale" >&5
14278echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
14279if test "${xvt_cv_func_xsetlocale+set}" = set; then
14280  echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282  cat >conftest.$ac_ext <<_ACEOF
14283#line $LINENO "configure"
14284/* confdefs.h.  */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h.  */
14289#define X_LOCALE 1
14290#include <X11/Xlocale.h>
14291int
14292main ()
14293{
14294setlocale(LC_CTYPE, "");
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext conftest$ac_exeext
14300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301  (eval $ac_link) 2>&5
14302  ac_status=$?
14303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304  (exit $ac_status); } &&
14305         { ac_try='test -s conftest$ac_exeext'
14306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307  (eval $ac_try) 2>&5
14308  ac_status=$?
14309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310  (exit $ac_status); }; }; then
14311  xvt_cv_func_xsetlocale=yes
14312else
14313  echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316xvt_cv_func_xsetlocale=no
14317fi
14318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14319fi
14320echo "$as_me:$LINENO: result: $xvt_cv_func_xsetlocale" >&5
14321echo "${ECHO_T}$xvt_cv_func_xsetlocale" >&6
14322if test x$xvt_cv_func_xsetlocale = xyes; then
14323
14324cat >>confdefs.h <<\_ACEOF
14325#define HAVE_XSETLOCALE 1
14326_ACEOF
14327
14328fi
14329LIBS=$ac_save_LIBS
14330CFLAGS=$ac_save_CFLAGS
14331
14332echo "$as_me:$LINENO: checking for working plain setlocale" >&5
14333echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
14334if test "${xvt_cv_func_setlocale+set}" = set; then
14335  echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337  cat >conftest.$ac_ext <<_ACEOF
14338#line $LINENO "configure"
14339/* confdefs.h.  */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h.  */
14344#include <locale.h>
14345int
14346main ()
14347{
14348setlocale(LC_CTYPE, "");
14349  ;
14350  return 0;
14351}
14352_ACEOF
14353rm -f conftest.$ac_objext conftest$ac_exeext
14354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14355  (eval $ac_link) 2>&5
14356  ac_status=$?
14357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358  (exit $ac_status); } &&
14359         { ac_try='test -s conftest$ac_exeext'
14360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361  (eval $ac_try) 2>&5
14362  ac_status=$?
14363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364  (exit $ac_status); }; }; then
14365  xvt_cv_func_setlocale=yes
14366else
14367  echo "$as_me: failed program was:" >&5
14368sed 's/^/| /' conftest.$ac_ext >&5
14369
14370xvt_cv_func_setlocale=no
14371fi
14372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14373fi
14374echo "$as_me:$LINENO: result: $xvt_cv_func_setlocale" >&5
14375echo "${ECHO_T}$xvt_cv_func_setlocale" >&6
14376if test x$xvt_cv_func_setlocale = xyes; then
14377
14378cat >>confdefs.h <<\_ACEOF
14379#define HAVE_SETLOCALE 1
14380_ACEOF
14381
14382fi
14383
14384echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
14385echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
14386if test "${xvt_cv_func_nl_langinfo+set}" = set; then
14387  echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
14389  cat >conftest.$ac_ext <<_ACEOF
14390#line $LINENO "configure"
14391/* confdefs.h.  */
14392_ACEOF
14393cat confdefs.h >>conftest.$ac_ext
14394cat >>conftest.$ac_ext <<_ACEOF
14395/* end confdefs.h.  */
14396#include <langinfo.h>
14397int
14398main ()
14399{
14400nl_langinfo(CODESET);
14401  ;
14402  return 0;
14403}
14404_ACEOF
14405rm -f conftest.$ac_objext conftest$ac_exeext
14406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407  (eval $ac_link) 2>&5
14408  ac_status=$?
14409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410  (exit $ac_status); } &&
14411         { ac_try='test -s conftest$ac_exeext'
14412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413  (eval $ac_try) 2>&5
14414  ac_status=$?
14415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416  (exit $ac_status); }; }; then
14417  xvt_cv_func_nl_langinfo=yes
14418else
14419  echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422xvt_cv_func_nl_langinfo=no
14423fi
14424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14425fi
14426echo "$as_me:$LINENO: result: $xvt_cv_func_nl_langinfo" >&5
14427echo "${ECHO_T}$xvt_cv_func_nl_langinfo" >&6
14428if test x$xvt_cv_func_nl_langinfo = xyes; then
14429
14430cat >>confdefs.h <<\_ACEOF
14431#define HAVE_NL_LANGINFO 1
14432_ACEOF
14433
14434fi
14435
14436echo "$as_me:$LINENO: checking for getpt" >&5
14437echo $ECHO_N "checking for getpt... $ECHO_C" >&6
14438if test "${xvt_cv_func_getpt+set}" = set; then
14439  echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441  cat >conftest.$ac_ext <<_ACEOF
14442#line $LINENO "configure"
14443/* confdefs.h.  */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h.  */
14448#define _GNU_SOURCE
14449#ifdef HAVE_STDLIB_H
14450# include <stdlib.h>
14451#endif
14452int
14453main ()
14454{
14455(void)getpt();
14456  ;
14457  return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext conftest$ac_exeext
14461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462  (eval $ac_link) 2>&5
14463  ac_status=$?
14464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465  (exit $ac_status); } &&
14466         { ac_try='test -s conftest$ac_exeext'
14467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468  (eval $ac_try) 2>&5
14469  ac_status=$?
14470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471  (exit $ac_status); }; }; then
14472  xvt_cv_func_getpt=yes
14473else
14474  echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477xvt_cv_func_getpt=no
14478fi
14479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14480fi
14481echo "$as_me:$LINENO: result: $xvt_cv_func_getpt" >&5
14482echo "${ECHO_T}$xvt_cv_func_getpt" >&6
14483if test x$xvt_cv_func_getpt = xyes; then
14484
14485cat >>confdefs.h <<\_ACEOF
14486#define HAVE_GETPT 1
14487_ACEOF
14488
14489fi
14490
14491echo "$as_me:$LINENO: checking for pty/tty type" >&5
14492echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
14493if test "${xvt_cv_ptys+set}" = set; then
14494  echo $ECHO_N "(cached) $ECHO_C" >&6
14495else
14496  if test x$ac_cv_func_openpty = xyes; then
14497    xvt_cv_ptys=OPENPTY
14498 else if test x$ac_cv_func__getpty = xyes; then
14499    xvt_cv_ptys=SGI4
14500 else if test -c /dev/ttyp20; then
14501    xvt_cv_ptys=SCO
14502 else if test -c /dev/ptym/clone; then
14503    xvt_cv_ptys=HPUX
14504 else if test x$xvt_cv_func_getpt = xyes; then
14505    xvt_cv_ptys=GLIBC
14506 else if test -c /dev/ptc -a -c /dev/pts; then
14507    xvt_cv_ptys=PTC
14508 else if test -c /dev/ptc -a -d /dev/pts; then
14509    xvt_cv_ptys=PTC
14510 else if test -c /dev/ptmx -a -c /dev/pts/0; then
14511    xvt_cv_ptys=STREAMS
14512 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
14513    xvt_cv_ptys=STREAMS
14514 else
14515    xvt_cv_ptys=BSD
14516fi
14517fi
14518fi
14519fi
14520fi
14521fi
14522fi
14523fi
14524fi
14525
14526fi
14527echo "$as_me:$LINENO: result: $xvt_cv_ptys" >&5
14528echo "${ECHO_T}$xvt_cv_ptys" >&6
14529
14530if test x$xvt_cv_ptys = xOPENPTY; then
14531
14532cat >>confdefs.h <<\_ACEOF
14533#define PTYS_ARE_OPENPTY 1
14534_ACEOF
14535
14536fi
14537if test x$xvt_cv_ptys = xSCO; then
14538
14539cat >>confdefs.h <<\_ACEOF
14540#define PTYS_ARE_NUMERIC 1
14541_ACEOF
14542
14543fi
14544if test x$xvt_cv_ptys = xSTREAMS; then
14545
14546cat >>confdefs.h <<\_ACEOF
14547#define PTYS_ARE_PTMX 1
14548_ACEOF
14549
14550fi
14551if test x$xvt_cv_ptys = xPTC; then
14552
14553cat >>confdefs.h <<\_ACEOF
14554#define PTYS_ARE_PTC 1
14555_ACEOF
14556
14557fi
14558if test x$xvt_cv_ptys = xSGI4; then
14559
14560cat >>confdefs.h <<\_ACEOF
14561#define PTYS_ARE__GETPTY 1
14562_ACEOF
14563
14564fi
14565if test x$xvt_cv_ptys = xCONVEX; then
14566
14567cat >>confdefs.h <<\_ACEOF
14568#define PTYS_ARE_GETPTY 1
14569_ACEOF
14570
14571fi
14572if test x$xvt_cv_ptys = xGLIBC; then
14573
14574cat >>confdefs.h <<\_ACEOF
14575#define PTYS_ARE_GETPT 1
14576_ACEOF
14577
14578fi
14579if test x$xvt_cv_ptys = xHPUX; then
14580
14581cat >>confdefs.h <<\_ACEOF
14582#define PTYS_ARE_CLONE 1
14583_ACEOF
14584
14585fi
14586if test x$xvt_cv_ptys = xBSD -o x$xvt_cv_ptys = xHPUX -o x$xvt_cv_ptys = xGLIBC; then
14587
14588cat >>confdefs.h <<\_ACEOF
14589#define PTYS_ARE_SEARCHED 1
14590_ACEOF
14591
14592fi
14593
14594
14595{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
14596echo "$as_me: checking for pty ranges..." >&6;}
14597ptys=`echo /dev/pty??`
14598pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
14599pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
14600if test x$pch1 != x; then
14601
14602cat >>confdefs.h <<_ACEOF
14603#define PTYCHAR1 "$pch1"
14604_ACEOF
14605
14606fi
14607if test x$pch2 != x; then
14608
14609cat >>confdefs.h <<_ACEOF
14610#define PTYCHAR2 "$pch2"
14611_ACEOF
14612
14613fi
14614
14615echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
14616echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
14617if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
14618  echo $ECHO_N "(cached) $ECHO_C" >&6
14619else
14620  ac_check_lib_save_LIBS=$LIBS
14621LIBS="-lxpg4  $LIBS"
14622cat >conftest.$ac_ext <<_ACEOF
14623#line $LINENO "configure"
14624/* confdefs.h.  */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h.  */
14629
14630/* Override any gcc2 internal prototype to avoid an error.  */
14631#ifdef __cplusplus
14632extern "C"
14633#endif
14634/* We use char because int might match the return type of a gcc2
14635   builtin and then its argument prototype would still apply.  */
14636char setlocale ();
14637int
14638main ()
14639{
14640setlocale ();
14641  ;
14642  return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext conftest$ac_exeext
14646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14647  (eval $ac_link) 2>&5
14648  ac_status=$?
14649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650  (exit $ac_status); } &&
14651         { ac_try='test -s conftest$ac_exeext'
14652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653  (eval $ac_try) 2>&5
14654  ac_status=$?
14655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656  (exit $ac_status); }; }; then
14657  ac_cv_lib_xpg4_setlocale=yes
14658else
14659  echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662ac_cv_lib_xpg4_setlocale=no
14663fi
14664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14665LIBS=$ac_check_lib_save_LIBS
14666fi
14667echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
14668echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
14669if test $ac_cv_lib_xpg4_setlocale = yes; then
14670  LIBS="$LIBS -lxpg4"
14671fi
14672
14673
14674if test x$support_graphics = xyes; then
14675
14676cat >>confdefs.h <<\_ACEOF
14677#define XVT_GRAPHICS 1
14678_ACEOF
14679
14680  OBJGRAPHICS="graphics.o"
14681fi
14682if test x$support_inheritpixmap = xyes; then
14683
14684cat >>confdefs.h <<\_ACEOF
14685#define TRANSPARENT 1
14686_ACEOF
14687
14688fi
14689if test x$support_keepscrolling = xno; then
14690
14691cat >>confdefs.h <<\_ACEOF
14692#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
14693_ACEOF
14694
14695fi
14696if test x$support_menubar = xyes; then
14697
14698cat >>confdefs.h <<\_ACEOF
14699#define MENUBAR 1
14700_ACEOF
14701
14702  OBJMENUBAR="menubar.o"
14703fi
14704if test x$support_frills = xno; then
14705
14706cat >>confdefs.h <<\_ACEOF
14707#define NO_FRILLS 1
14708_ACEOF
14709
14710fi
14711if test x$support_linespace = xno; then
14712
14713cat >>confdefs.h <<\_ACEOF
14714#define NO_LINESPACE 1
14715_ACEOF
14716
14717fi
14718if test x$support_24bit = xyes; then
14719
14720cat >>confdefs.h <<\_ACEOF
14721#define PREFER_24BIT 1
14722_ACEOF
14723
14724fi
14725if test x$support_mousewheel = xyes; then
14726
14727cat >>confdefs.h <<\_ACEOF
14728#define MOUSE_WHEEL 1
14729_ACEOF
14730
14731fi
14732if test x$support_mouseslipwheel = xyes; then
14733
14734cat >>confdefs.h <<\_ACEOF
14735#define MOUSE_SLIP_WHEELING 1
14736_ACEOF
14737
14738fi
14739if test x$support_oldselection = xno; then
14740
14741cat >>confdefs.h <<\_ACEOF
14742#define NO_OLD_SELECTION 1
14743_ACEOF
14744
14745fi
14746if test x$support_utmp = xyes; then
14747
14748cat >>confdefs.h <<\_ACEOF
14749#define UTMP_SUPPORT 1
14750_ACEOF
14751
14752  OBJLOGGING="logging.o"
14753fi
14754if test x$support_wtmp = xyes; then
14755
14756cat >>confdefs.h <<\_ACEOF
14757#define WTMP_SUPPORT 1
14758_ACEOF
14759
14760fi
14761if test x$support_lastlog = xyes; then
14762
14763cat >>confdefs.h <<\_ACEOF
14764#define LASTLOG_SUPPORT 1
14765_ACEOF
14766
14767fi
14768if test x$support_xim = xyes -o x$multichar_set = xyes; then
14769  if test x$xvt_cv_func_xlocale = xyes; then
14770
14771cat >>confdefs.h <<\_ACEOF
14772#define USE_XIM 1
14773_ACEOF
14774
14775  fi
14776fi
14777if test x$support_xpm = xyes; then
14778
14779cat >>confdefs.h <<\_ACEOF
14780#define XPM_BACKGROUND 1
14781_ACEOF
14782
14783  OBJXPM="xpm.o"
14784fi
14785if test x$support_scroll_xvt = xyes; then
14786
14787cat >>confdefs.h <<\_ACEOF
14788#define XVT_SCROLLBAR 1
14789_ACEOF
14790
14791  OBJSCROLLBAR="scrollbar-xvt.o"
14792  scrolltypes="xvt"
14793fi
14794if test x$support_scroll_next = xyes; then
14795
14796cat >>confdefs.h <<\_ACEOF
14797#define NEXT_SCROLLBAR 1
14798_ACEOF
14799
14800  OBJSCROLLBAR="$OBJSCROLLBAR scrollbar-next.o"
14801  scrolltypes="$scrolltypes next"
14802fi
14803if test x$support_scroll_xterm = xyes; then
14804
14805cat >>confdefs.h <<\_ACEOF
14806#define XTERM_SCROLLBAR 1
14807_ACEOF
14808
14809  OBJSCROLLBAR="$OBJSCROLLBAR scrollbar-xterm.o"
14810  scrolltypes="$scrolltypes xterm"
14811fi
14812
14813
14814CFLAGS=${CFLAGS--O}
14815LDFLAGS=${LDFLAGS--O}
14816
14817CPPFLAGS="$CPPFLAGS"
14818
14819
14820
14821
14822
14823
14824
14825if test x$xvt_cv_rpath = xyes -o x$xvt_cv_R = xyes; then
14826  DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
14827  LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
14828  X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
14829  X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
14830  XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
14831fi
14832
14833
14834
14835
14836
14837if test x$support_addstrings = xyes; then
14838    OBJSTRINGS="strings.o"
14839else
14840
14841cat >>confdefs.h <<\_ACEOF
14842#define NO_STRINGS 1
14843_ACEOF
14844
14845fi
14846OBJLIST="command.o defaultfont.o init.o $OBJGRAPHICS $OBJGRKELOT $OBJLOGGING main.o $OBJMENUBAR misc.o netdisp.o ptytty.o screen.o scrollbar.o $OBJSCROLLBAR $OBJSTRINGS xdefaults.o $OBJXPM"
14847
14848LIBOBJLIST=`echo $OBJLIST | sed 's/\.o/.lo/g'`
14849
14850
14851MCOMMON=./autoconf/Make.common
14852
14853
14854test "$program_prefix" != NONE &&
14855  program_transform_name="s,^,$program_prefix,;$program_transform_name"
14856# Use a double $ so make ignores it.
14857test "$program_suffix" != NONE &&
14858  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
14859# Double any \ or $.  echo might interpret backslashes.
14860# By default was `s,x,x', remove it if useless.
14861cat <<\_ACEOF >conftest.sed
14862s/[\\$]/&&/g;s/;s,x,x,$//
14863_ACEOF
14864program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
14865rm conftest.sed
14866
14867
14868XVTNAME=`echo xvt|sed "$program_transform_name"`
14869
14870
14871
14872
14873
14874if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
14875  include_stdarg_h="#include <stdarg.h>"
14876else
14877  include_stdarg_h="/* #include <stdarg.h> */"
14878fi
14879if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
14880  include_stdlib_h="#include <stdlib.h>"
14881else
14882  include_stdlib_h="/* #include <stdlib.h> */"
14883fi
14884if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
14885  include_unistd_h="#include <unistd.h>"
14886else
14887  include_unistd_h="/* #include <unistd.h> */"
14888fi
14889if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
14890  include_string_h="#include <string.h>"
14891else
14892  include_string_h="/* #include <string.h> */"
14893fi
14894if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
14895  include_fcntl_h="#include <fcntl.h>"
14896else
14897  include_fcntl_h="/* #include <fcntl.h> */"
14898fi
14899if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
14900  include_util_h="#include <util.h>"
14901else
14902  include_util_h="/* #include <util.h> */"
14903fi
14904if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
14905  include_assert_h="#include <assert.h>"
14906else
14907  include_assert_h="/* #include <assert.h> */"
14908fi
14909if test "$xvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
14910  include_sys_ioctl_h="#include <sys/ioctl.h>"
14911else
14912  include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
14913fi
14914if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
14915  include_sys_select_h="#include <sys/select.h>"
14916else
14917  include_sys_select_h="/* #include <sys/select.h> */"
14918fi
14919if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
14920  include_sys_strredir_h="#include <sys/strredir.h>"
14921else
14922  include_sys_strredir_h="/* #include <sys/strredir.h> */"
14923fi
14924if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
14925  include_sys_time_h="#include <sys/time.h>"
14926else
14927  include_sys_time_h="/* #include <sys/time.h> */"
14928fi
14929if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
14930  include_time_h="#include <time.h>"
14931else
14932  include_time_h="/* #include <time.h> */"
14933fi
14934
14935if test "$multichar_set" = yes; then
14936  lib_multicharset="#define MULTICHAR_SET 1"
14937else
14938  lib_multicharset="/* #undef MULTICHAR_SET */"
14939fi
14940
14941
14942                                                                                          ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/graphics/Makefile src/test/Makefile src/xvtlib.h rclock/Makefile W11/Makefile"
14943cat >confcache <<\_ACEOF
14944# This file is a shell script that caches the results of configure
14945# tests run on this system so they can be shared between configure
14946# scripts and configure runs, see configure's option --config-cache.
14947# It is not useful on other systems.  If it contains results you don't
14948# want to keep, you may remove or edit it.
14949#
14950# config.status only pays attention to the cache file if you give it
14951# the --recheck option to rerun configure.
14952#
14953# `ac_cv_env_foo' variables (set or unset) will be overridden when
14954# loading this file, other *unset* `ac_cv_foo' will be assigned the
14955# following values.
14956
14957_ACEOF
14958
14959# The following way of writing the cache mishandles newlines in values,
14960# but we know of no workaround that is simple, portable, and efficient.
14961# So, don't put newlines in cache variables' values.
14962# Ultrix sh set writes to stderr and can't be redirected directly,
14963# and sets the high bit in the cache file unless we assign to the vars.
14964{
14965  (set) 2>&1 |
14966    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14967    *ac_space=\ *)
14968      # `set' does not quote correctly, so add quotes (double-quote
14969      # substitution turns \\\\ into \\, and sed turns \\ into \).
14970      sed -n \
14971        "s/'/'\\\\''/g;
14972    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14973      ;;
14974    *)
14975      # `set' quotes correctly as required by POSIX, so do not add quotes.
14976      sed -n \
14977        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14978      ;;
14979    esac;
14980} |
14981  sed '
14982     t clear
14983     : clear
14984     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14985     t end
14986     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14987     : end' >>confcache
14988if diff $cache_file confcache >/dev/null 2>&1; then :; else
14989  if test -w $cache_file; then
14990    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14991    cat confcache >$cache_file
14992  else
14993    echo "not updating unwritable cache $cache_file"
14994  fi
14995fi
14996rm -f confcache
14997
14998test "x$prefix" = xNONE && prefix=$ac_default_prefix
14999# Let make expand exec_prefix.
15000test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15001
15002# VPATH may cause trouble with some makes, so we remove $(srcdir),
15003# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15004# trailing colons and then remove the whole line if VPATH becomes empty
15005# (actually we leave an empty line to preserve line numbers).
15006if test "x$srcdir" = x.; then
15007  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
15008s/:*\$(srcdir):*/:/;
15009s/:*\${srcdir}:*/:/;
15010s/:*@srcdir@:*/:/;
15011s/^\([^=]*=[ 	]*\):*/\1/;
15012s/:*$//;
15013s/^[^=]*=[ 	]*$//;
15014}'
15015fi
15016
15017DEFS=-DHAVE_CONFIG_H
15018
15019ac_libobjs=
15020ac_ltlibobjs=
15021for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15022  # 1. Remove the extension, and $U if already installed.
15023  ac_i=`echo "$ac_i" |
15024         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15025  # 2. Add them.
15026  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15027  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15028done
15029LIBOBJS=$ac_libobjs
15030
15031LTLIBOBJS=$ac_ltlibobjs
15032
15033
15034
15035: ${CONFIG_STATUS=./config.status}
15036ac_clean_files_save=$ac_clean_files
15037ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15038{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15039echo "$as_me: creating $CONFIG_STATUS" >&6;}
15040cat >$CONFIG_STATUS <<_ACEOF
15041#! $SHELL
15042# Generated by $as_me.
15043# Run this file to recreate the current configuration.
15044# Compiler output produced by configure, useful for debugging
15045# configure, is in config.log if it exists.
15046
15047debug=false
15048ac_cs_recheck=false
15049ac_cs_silent=false
15050SHELL=\${CONFIG_SHELL-$SHELL}
15051_ACEOF
15052
15053cat >>$CONFIG_STATUS <<\_ACEOF
15054## --------------------- ##
15055## M4sh Initialization.  ##
15056## --------------------- ##
15057
15058# Be Bourne compatible
15059if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15060  emulate sh
15061  NULLCMD=:
15062  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15063  # is contrary to our usage.  Disable this feature.
15064  alias -g '${1+"$@"}'='"$@"'
15065elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15066  set -o posix
15067fi
15068
15069# Support unset when possible.
15070if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15071  as_unset=unset
15072else
15073  as_unset=false
15074fi
15075
15076
15077# Work around bugs in pre-3.0 UWIN ksh.
15078$as_unset ENV MAIL MAILPATH
15079PS1='$ '
15080PS2='> '
15081PS4='+ '
15082
15083# NLS nuisances.
15084for as_var in \
15085  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15086  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15087  LC_TELEPHONE LC_TIME
15088do
15089  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15090    eval $as_var=C; export $as_var
15091  else
15092    $as_unset $as_var
15093  fi
15094done
15095
15096# Required to use basename.
15097if expr a : '\(a\)' >/dev/null 2>&1; then
15098  as_expr=expr
15099else
15100  as_expr=false
15101fi
15102
15103if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15104  as_basename=basename
15105else
15106  as_basename=false
15107fi
15108
15109
15110# Name of the executable.
15111as_me=`$as_basename "$0" ||
15112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15113	 X"$0" : 'X\(//\)$' \| \
15114	 X"$0" : 'X\(/\)$' \| \
15115	 .     : '\(.\)' 2>/dev/null ||
15116echo X/"$0" |
15117    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15118  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15119  	  /^X\/\(\/\).*/{ s//\1/; q; }
15120  	  s/.*/./; q'`
15121
15122
15123# PATH needs CR, and LINENO needs CR and PATH.
15124# Avoid depending upon Character Ranges.
15125as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15126as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15127as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15128as_cr_digits='0123456789'
15129as_cr_alnum=$as_cr_Letters$as_cr_digits
15130
15131# The user is always right.
15132if test "${PATH_SEPARATOR+set}" != set; then
15133  echo "#! /bin/sh" >conf$$.sh
15134  echo  "exit 0"   >>conf$$.sh
15135  chmod +x conf$$.sh
15136  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15137    PATH_SEPARATOR=';'
15138  else
15139    PATH_SEPARATOR=:
15140  fi
15141  rm -f conf$$.sh
15142fi
15143
15144
15145  as_lineno_1=$LINENO
15146  as_lineno_2=$LINENO
15147  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15148  test "x$as_lineno_1" != "x$as_lineno_2" &&
15149  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15150  # Find who we are.  Look in the path if we contain no path at all
15151  # relative or not.
15152  case $0 in
15153    *[\\/]* ) as_myself=$0 ;;
15154    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15155for as_dir in $PATH
15156do
15157  IFS=$as_save_IFS
15158  test -z "$as_dir" && as_dir=.
15159  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15160done
15161
15162       ;;
15163  esac
15164  # We did not find ourselves, most probably we were run as `sh COMMAND'
15165  # in which case we are not to be found in the path.
15166  if test "x$as_myself" = x; then
15167    as_myself=$0
15168  fi
15169  if test ! -f "$as_myself"; then
15170    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15171echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15172   { (exit 1); exit 1; }; }
15173  fi
15174  case $CONFIG_SHELL in
15175  '')
15176    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15178do
15179  IFS=$as_save_IFS
15180  test -z "$as_dir" && as_dir=.
15181  for as_base in sh bash ksh sh5; do
15182	 case $as_dir in
15183	 /*)
15184	   if ("$as_dir/$as_base" -c '
15185  as_lineno_1=$LINENO
15186  as_lineno_2=$LINENO
15187  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15188  test "x$as_lineno_1" != "x$as_lineno_2" &&
15189  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15190	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15191	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15192	     CONFIG_SHELL=$as_dir/$as_base
15193	     export CONFIG_SHELL
15194	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15195	   fi;;
15196	 esac
15197       done
15198done
15199;;
15200  esac
15201
15202  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15203  # uniformly replaced by the line number.  The first 'sed' inserts a
15204  # line-number line before each line; the second 'sed' does the real
15205  # work.  The second script uses 'N' to pair each line-number line
15206  # with the numbered line, and appends trailing '-' during
15207  # substitution so that $LINENO is not a special case at line end.
15208  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15209  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15210  sed '=' <$as_myself |
15211    sed '
15212      N
15213      s,$,-,
15214      : loop
15215      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15216      t loop
15217      s,-$,,
15218      s,^['$as_cr_digits']*\n,,
15219    ' >$as_me.lineno &&
15220  chmod +x $as_me.lineno ||
15221    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15222echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15223   { (exit 1); exit 1; }; }
15224
15225  # Don't try to exec as it changes $[0], causing all sort of problems
15226  # (the dirname of $[0] is not the place where we might find the
15227  # original and so on.  Autoconf is especially sensible to this).
15228  . ./$as_me.lineno
15229  # Exit status is that of the last command.
15230  exit
15231}
15232
15233
15234case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15235  *c*,-n*) ECHO_N= ECHO_C='
15236' ECHO_T='	' ;;
15237  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15238  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15239esac
15240
15241if expr a : '\(a\)' >/dev/null 2>&1; then
15242  as_expr=expr
15243else
15244  as_expr=false
15245fi
15246
15247rm -f conf$$ conf$$.exe conf$$.file
15248echo >conf$$.file
15249if ln -s conf$$.file conf$$ 2>/dev/null; then
15250  # We could just check for DJGPP; but this test a) works b) is more generic
15251  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15252  if test -f conf$$.exe; then
15253    # Don't use ln at all; we don't have any links
15254    as_ln_s='cp -p'
15255  else
15256    as_ln_s='ln -s'
15257  fi
15258elif ln conf$$.file conf$$ 2>/dev/null; then
15259  as_ln_s=ln
15260else
15261  as_ln_s='cp -p'
15262fi
15263rm -f conf$$ conf$$.exe conf$$.file
15264
15265if mkdir -p . 2>/dev/null; then
15266  as_mkdir_p=:
15267else
15268  as_mkdir_p=false
15269fi
15270
15271as_executable_p="test -f"
15272
15273# Sed expression to map a string onto a valid CPP name.
15274as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15275
15276# Sed expression to map a string onto a valid variable name.
15277as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15278
15279
15280# IFS
15281# We need space, tab and new line, in precisely that order.
15282as_nl='
15283'
15284IFS=" 	$as_nl"
15285
15286# CDPATH.
15287$as_unset CDPATH
15288
15289exec 6>&1
15290
15291# Open the log real soon, to keep \$[0] and so on meaningful, and to
15292# report actual input values of CONFIG_FILES etc. instead of their
15293# values after options handling.  Logging --version etc. is OK.
15294exec 5>>config.log
15295{
15296  echo
15297  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15298## Running $as_me. ##
15299_ASBOX
15300} >&5
15301cat >&5 <<_CSEOF
15302
15303This file was extended by $as_me, which was
15304generated by GNU Autoconf 2.57.  Invocation command line was
15305
15306  CONFIG_FILES    = $CONFIG_FILES
15307  CONFIG_HEADERS  = $CONFIG_HEADERS
15308  CONFIG_LINKS    = $CONFIG_LINKS
15309  CONFIG_COMMANDS = $CONFIG_COMMANDS
15310  $ $0 $@
15311
15312_CSEOF
15313echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15314echo >&5
15315_ACEOF
15316
15317# Files that config.status was made for.
15318if test -n "$ac_config_files"; then
15319  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15320fi
15321
15322if test -n "$ac_config_headers"; then
15323  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15324fi
15325
15326if test -n "$ac_config_links"; then
15327  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15328fi
15329
15330if test -n "$ac_config_commands"; then
15331  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15332fi
15333
15334cat >>$CONFIG_STATUS <<\_ACEOF
15335
15336ac_cs_usage="\
15337\`$as_me' instantiates files from templates according to the
15338current configuration.
15339
15340Usage: $0 [OPTIONS] [FILE]...
15341
15342  -h, --help       print this help, then exit
15343  -V, --version    print version number, then exit
15344  -q, --quiet      do not print progress messages
15345  -d, --debug      don't remove temporary files
15346      --recheck    update $as_me by reconfiguring in the same conditions
15347  --file=FILE[:TEMPLATE]
15348                   instantiate the configuration file FILE
15349  --header=FILE[:TEMPLATE]
15350                   instantiate the configuration header FILE
15351
15352Configuration files:
15353$config_files
15354
15355Configuration headers:
15356$config_headers
15357
15358Report bugs to <bug-autoconf@gnu.org>."
15359_ACEOF
15360
15361cat >>$CONFIG_STATUS <<_ACEOF
15362ac_cs_version="\\
15363config.status
15364configured by $0, generated by GNU Autoconf 2.57,
15365  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15366
15367Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15368Free Software Foundation, Inc.
15369This config.status script is free software; the Free Software Foundation
15370gives unlimited permission to copy, distribute and modify it."
15371srcdir=$srcdir
15372INSTALL="$INSTALL"
15373_ACEOF
15374
15375cat >>$CONFIG_STATUS <<\_ACEOF
15376# If no file are specified by the user, then we need to provide default
15377# value.  By we need to know if files were specified by the user.
15378ac_need_defaults=:
15379while test $# != 0
15380do
15381  case $1 in
15382  --*=*)
15383    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15384    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15385    ac_shift=:
15386    ;;
15387  -*)
15388    ac_option=$1
15389    ac_optarg=$2
15390    ac_shift=shift
15391    ;;
15392  *) # This is not an option, so the user has probably given explicit
15393     # arguments.
15394     ac_option=$1
15395     ac_need_defaults=false;;
15396  esac
15397
15398  case $ac_option in
15399  # Handling of the options.
15400_ACEOF
15401cat >>$CONFIG_STATUS <<\_ACEOF
15402  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15403    ac_cs_recheck=: ;;
15404  --version | --vers* | -V )
15405    echo "$ac_cs_version"; exit 0 ;;
15406  --he | --h)
15407    # Conflict between --help and --header
15408    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15409Try \`$0 --help' for more information." >&5
15410echo "$as_me: error: ambiguous option: $1
15411Try \`$0 --help' for more information." >&2;}
15412   { (exit 1); exit 1; }; };;
15413  --help | --hel | -h )
15414    echo "$ac_cs_usage"; exit 0 ;;
15415  --debug | --d* | -d )
15416    debug=: ;;
15417  --file | --fil | --fi | --f )
15418    $ac_shift
15419    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15420    ac_need_defaults=false;;
15421  --header | --heade | --head | --hea )
15422    $ac_shift
15423    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15424    ac_need_defaults=false;;
15425  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15426  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15427    ac_cs_silent=: ;;
15428
15429  # This is an error.
15430  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15431Try \`$0 --help' for more information." >&5
15432echo "$as_me: error: unrecognized option: $1
15433Try \`$0 --help' for more information." >&2;}
15434   { (exit 1); exit 1; }; } ;;
15435
15436  *) ac_config_targets="$ac_config_targets $1" ;;
15437
15438  esac
15439  shift
15440done
15441
15442ac_configure_extra_args=
15443
15444if $ac_cs_silent; then
15445  exec 6>/dev/null
15446  ac_configure_extra_args="$ac_configure_extra_args --silent"
15447fi
15448
15449_ACEOF
15450cat >>$CONFIG_STATUS <<_ACEOF
15451if \$ac_cs_recheck; then
15452  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15453  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15454fi
15455
15456_ACEOF
15457
15458
15459
15460
15461
15462cat >>$CONFIG_STATUS <<\_ACEOF
15463for ac_config_target in $ac_config_targets
15464do
15465  case "$ac_config_target" in
15466  # Handling of arguments.
15467  "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
15468  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15469  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15470  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15471  "src/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/graphics/Makefile" ;;
15472  "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
15473  "src/xvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/xvtlib.h" ;;
15474  "rclock/Makefile" ) CONFIG_FILES="$CONFIG_FILES rclock/Makefile" ;;
15475  "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
15476  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
15477  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15478echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15479   { (exit 1); exit 1; }; };;
15480  esac
15481done
15482
15483# If the user did not use the arguments to specify the items to instantiate,
15484# then the envvar interface is used.  Set only those that are not.
15485# We use the long form for the default assignment because of an extremely
15486# bizarre bug on SunOS 4.1.3.
15487if $ac_need_defaults; then
15488  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15489  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15490fi
15491
15492# Have a temporary directory for convenience.  Make it in the build tree
15493# simply because there is no reason to put it here, and in addition,
15494# creating and moving files from /tmp can sometimes cause problems.
15495# Create a temporary directory, and hook for its removal unless debugging.
15496$debug ||
15497{
15498  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15499  trap '{ (exit 1); exit 1; }' 1 2 13 15
15500}
15501
15502# Create a (secure) tmp directory for tmp files.
15503
15504{
15505  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15506  test -n "$tmp" && test -d "$tmp"
15507}  ||
15508{
15509  tmp=./confstat$$-$RANDOM
15510  (umask 077 && mkdir $tmp)
15511} ||
15512{
15513   echo "$me: cannot create a temporary directory in ." >&2
15514   { (exit 1); exit 1; }
15515}
15516
15517_ACEOF
15518
15519cat >>$CONFIG_STATUS <<_ACEOF
15520
15521#
15522# CONFIG_FILES section.
15523#
15524
15525# No need to generate the scripts if there are no CONFIG_FILES.
15526# This happens for instance when ./config.status config.h
15527if test -n "\$CONFIG_FILES"; then
15528  # Protect against being on the right side of a sed subst in config.status.
15529  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15530   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15531s,@SHELL@,$SHELL,;t t
15532s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15533s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15534s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15535s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15536s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15537s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15538s,@exec_prefix@,$exec_prefix,;t t
15539s,@prefix@,$prefix,;t t
15540s,@program_transform_name@,$program_transform_name,;t t
15541s,@bindir@,$bindir,;t t
15542s,@sbindir@,$sbindir,;t t
15543s,@libexecdir@,$libexecdir,;t t
15544s,@datadir@,$datadir,;t t
15545s,@sysconfdir@,$sysconfdir,;t t
15546s,@sharedstatedir@,$sharedstatedir,;t t
15547s,@localstatedir@,$localstatedir,;t t
15548s,@libdir@,$libdir,;t t
15549s,@includedir@,$includedir,;t t
15550s,@oldincludedir@,$oldincludedir,;t t
15551s,@infodir@,$infodir,;t t
15552s,@mandir@,$mandir,;t t
15553s,@build_alias@,$build_alias,;t t
15554s,@host_alias@,$host_alias,;t t
15555s,@target_alias@,$target_alias,;t t
15556s,@DEFS@,$DEFS,;t t
15557s,@ECHO_C@,$ECHO_C,;t t
15558s,@ECHO_N@,$ECHO_N,;t t
15559s,@ECHO_T@,$ECHO_T,;t t
15560s,@LIBS@,$LIBS,;t t
15561s,@VERSION@,$VERSION,;t t
15562s,@DATE@,$DATE,;t t
15563s,@LSMDATE@,$LSMDATE,;t t
15564s,@LIBVERSION@,$LIBVERSION,;t t
15565s,@CC@,$CC,;t t
15566s,@CFLAGS@,$CFLAGS,;t t
15567s,@LDFLAGS@,$LDFLAGS,;t t
15568s,@CPPFLAGS@,$CPPFLAGS,;t t
15569s,@ac_ct_CC@,$ac_ct_CC,;t t
15570s,@EXEEXT@,$EXEEXT,;t t
15571s,@OBJEXT@,$OBJEXT,;t t
15572s,@CPP@,$CPP,;t t
15573s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15574s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15575s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15576s,@AWK@,$AWK,;t t
15577s,@EGREP@,$EGREP,;t t
15578s,@build@,$build,;t t
15579s,@build_cpu@,$build_cpu,;t t
15580s,@build_vendor@,$build_vendor,;t t
15581s,@build_os@,$build_os,;t t
15582s,@host@,$host,;t t
15583s,@host_cpu@,$host_cpu,;t t
15584s,@host_vendor@,$host_vendor,;t t
15585s,@host_os@,$host_os,;t t
15586s,@LN_S@,$LN_S,;t t
15587s,@ECHO@,$ECHO,;t t
15588s,@RANLIB@,$RANLIB,;t t
15589s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15590s,@STRIP@,$STRIP,;t t
15591s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15592s,@LIBTOOL@,$LIBTOOL,;t t
15593s,@INSTALL_LIBXVT@,$INSTALL_LIBXVT,;t t
15594s,@MV@,$MV,;t t
15595s,@RM@,$RM,;t t
15596s,@CP@,$CP,;t t
15597s,@LN@,$LN,;t t
15598s,@SED@,$SED,;t t
15599s,@CMP@,$CMP,;t t
15600s,@TBL@,$TBL,;t t
15601s,@X_CFLAGS@,$X_CFLAGS,;t t
15602s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15603s,@X_LIBS@,$X_LIBS,;t t
15604s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15605s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
15606s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
15607s,@XPM_LIBS@,$XPM_LIBS,;t t
15608s,@xvt_int16_typedef@,$xvt_int16_typedef,;t t
15609s,@xvt_u_int16_typedef@,$xvt_u_int16_typedef,;t t
15610s,@xvt_int32_typedef@,$xvt_int32_typedef,;t t
15611s,@xvt_u_int32_typedef@,$xvt_u_int32_typedef,;t t
15612s,@xvt_int64_typedef@,$xvt_int64_typedef,;t t
15613s,@xvt_u_int64_typedef@,$xvt_u_int64_typedef,;t t
15614s,@xvt_intp_define@,$xvt_intp_define,;t t
15615s,@xvt_u_intp_define@,$xvt_u_intp_define,;t t
15616s,@DEBUG@,$DEBUG,;t t
15617s,@DINCLUDE@,$DINCLUDE,;t t
15618s,@DLIB@,$DLIB,;t t
15619s,@OBJLIST@,$OBJLIST,;t t
15620s,@LIBOBJLIST@,$LIBOBJLIST,;t t
15621s,@XVTNAME@,$XVTNAME,;t t
15622s,@include_stdarg_h@,$include_stdarg_h,;t t
15623s,@include_stdlib_h@,$include_stdlib_h,;t t
15624s,@include_unistd_h@,$include_unistd_h,;t t
15625s,@include_string_h@,$include_string_h,;t t
15626s,@include_fcntl_h@,$include_fcntl_h,;t t
15627s,@include_util_h@,$include_util_h,;t t
15628s,@include_assert_h@,$include_assert_h,;t t
15629s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
15630s,@include_sys_select_h@,$include_sys_select_h,;t t
15631s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
15632s,@include_sys_time_h@,$include_sys_time_h,;t t
15633s,@include_time_h@,$include_time_h,;t t
15634s,@lib_multicharset@,$lib_multicharset,;t t
15635s,@LIBOBJS@,$LIBOBJS,;t t
15636s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15637/@MCOMMON@/r $MCOMMON
15638s,@MCOMMON@,,;t t
15639CEOF
15640
15641_ACEOF
15642
15643  cat >>$CONFIG_STATUS <<\_ACEOF
15644  # Split the substitutions into bite-sized pieces for seds with
15645  # small command number limits, like on Digital OSF/1 and HP-UX.
15646  ac_max_sed_lines=48
15647  ac_sed_frag=1 # Number of current file.
15648  ac_beg=1 # First line for current file.
15649  ac_end=$ac_max_sed_lines # Line after last line for current file.
15650  ac_more_lines=:
15651  ac_sed_cmds=
15652  while $ac_more_lines; do
15653    if test $ac_beg -gt 1; then
15654      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15655    else
15656      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15657    fi
15658    if test ! -s $tmp/subs.frag; then
15659      ac_more_lines=false
15660    else
15661      # The purpose of the label and of the branching condition is to
15662      # speed up the sed processing (if there are no `@' at all, there
15663      # is no need to browse any of the substitutions).
15664      # These are the two extra sed commands mentioned above.
15665      (echo ':t
15666  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15667      if test -z "$ac_sed_cmds"; then
15668  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15669      else
15670  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15671      fi
15672      ac_sed_frag=`expr $ac_sed_frag + 1`
15673      ac_beg=$ac_end
15674      ac_end=`expr $ac_end + $ac_max_sed_lines`
15675    fi
15676  done
15677  if test -z "$ac_sed_cmds"; then
15678    ac_sed_cmds=cat
15679  fi
15680fi # test -n "$CONFIG_FILES"
15681
15682_ACEOF
15683cat >>$CONFIG_STATUS <<\_ACEOF
15684for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15685  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15686  case $ac_file in
15687  - | *:- | *:-:* ) # input from stdin
15688        cat >$tmp/stdin
15689        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15690        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15691  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15692        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15693  * )   ac_file_in=$ac_file.in ;;
15694  esac
15695
15696  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15697  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15699         X"$ac_file" : 'X\(//\)[^/]' \| \
15700         X"$ac_file" : 'X\(//\)$' \| \
15701         X"$ac_file" : 'X\(/\)' \| \
15702         .     : '\(.\)' 2>/dev/null ||
15703echo X"$ac_file" |
15704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15705  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15706  	  /^X\(\/\/\)$/{ s//\1/; q; }
15707  	  /^X\(\/\).*/{ s//\1/; q; }
15708  	  s/.*/./; q'`
15709  { if $as_mkdir_p; then
15710    mkdir -p "$ac_dir"
15711  else
15712    as_dir="$ac_dir"
15713    as_dirs=
15714    while test ! -d "$as_dir"; do
15715      as_dirs="$as_dir $as_dirs"
15716      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15718         X"$as_dir" : 'X\(//\)[^/]' \| \
15719         X"$as_dir" : 'X\(//\)$' \| \
15720         X"$as_dir" : 'X\(/\)' \| \
15721         .     : '\(.\)' 2>/dev/null ||
15722echo X"$as_dir" |
15723    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15724  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15725  	  /^X\(\/\/\)$/{ s//\1/; q; }
15726  	  /^X\(\/\).*/{ s//\1/; q; }
15727  	  s/.*/./; q'`
15728    done
15729    test ! -n "$as_dirs" || mkdir $as_dirs
15730  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15731echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15732   { (exit 1); exit 1; }; }; }
15733
15734  ac_builddir=.
15735
15736if test "$ac_dir" != .; then
15737  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15738  # A "../" for each directory in $ac_dir_suffix.
15739  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15740else
15741  ac_dir_suffix= ac_top_builddir=
15742fi
15743
15744case $srcdir in
15745  .)  # No --srcdir option.  We are building in place.
15746    ac_srcdir=.
15747    if test -z "$ac_top_builddir"; then
15748       ac_top_srcdir=.
15749    else
15750       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15751    fi ;;
15752  [\\/]* | ?:[\\/]* )  # Absolute path.
15753    ac_srcdir=$srcdir$ac_dir_suffix;
15754    ac_top_srcdir=$srcdir ;;
15755  *) # Relative path.
15756    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15757    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15758esac
15759# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15760# absolute.
15761ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15762ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15763ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15764ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15765
15766
15767  case $INSTALL in
15768  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15769  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15770  esac
15771
15772  if test x"$ac_file" != x-; then
15773    { echo "$as_me:$LINENO: creating $ac_file" >&5
15774echo "$as_me: creating $ac_file" >&6;}
15775    rm -f "$ac_file"
15776  fi
15777  # Let's still pretend it is `configure' which instantiates (i.e., don't
15778  # use $as_me), people would be surprised to read:
15779  #    /* config.h.  Generated by config.status.  */
15780  if test x"$ac_file" = x-; then
15781    configure_input=
15782  else
15783    configure_input="$ac_file.  "
15784  fi
15785  configure_input=$configure_input"Generated from `echo $ac_file_in |
15786                                     sed 's,.*/,,'` by configure."
15787
15788  # First look for the input files in the build tree, otherwise in the
15789  # src tree.
15790  ac_file_inputs=`IFS=:
15791    for f in $ac_file_in; do
15792      case $f in
15793      -) echo $tmp/stdin ;;
15794      [\\/$]*)
15795         # Absolute (can't be DOS-style, as IFS=:)
15796         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15797echo "$as_me: error: cannot find input file: $f" >&2;}
15798   { (exit 1); exit 1; }; }
15799         echo $f;;
15800      *) # Relative
15801         if test -f "$f"; then
15802           # Build tree
15803           echo $f
15804         elif test -f "$srcdir/$f"; then
15805           # Source tree
15806           echo $srcdir/$f
15807         else
15808           # /dev/null tree
15809           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15810echo "$as_me: error: cannot find input file: $f" >&2;}
15811   { (exit 1); exit 1; }; }
15812         fi;;
15813      esac
15814    done` || { (exit 1); exit 1; }
15815_ACEOF
15816cat >>$CONFIG_STATUS <<_ACEOF
15817  sed "$ac_vpsub
15818$extrasub
15819_ACEOF
15820cat >>$CONFIG_STATUS <<\_ACEOF
15821:t
15822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15823s,@configure_input@,$configure_input,;t t
15824s,@srcdir@,$ac_srcdir,;t t
15825s,@abs_srcdir@,$ac_abs_srcdir,;t t
15826s,@top_srcdir@,$ac_top_srcdir,;t t
15827s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15828s,@builddir@,$ac_builddir,;t t
15829s,@abs_builddir@,$ac_abs_builddir,;t t
15830s,@top_builddir@,$ac_top_builddir,;t t
15831s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15832s,@INSTALL@,$ac_INSTALL,;t t
15833" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15834  rm -f $tmp/stdin
15835  if test x"$ac_file" != x-; then
15836    mv $tmp/out $ac_file
15837  else
15838    cat $tmp/out
15839    rm -f $tmp/out
15840  fi
15841
15842done
15843_ACEOF
15844cat >>$CONFIG_STATUS <<\_ACEOF
15845
15846#
15847# CONFIG_HEADER section.
15848#
15849
15850# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15851# NAME is the cpp macro being defined and VALUE is the value it is being given.
15852#
15853# ac_d sets the value in "#define NAME VALUE" lines.
15854ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
15855ac_dB='[ 	].*$,\1#\2'
15856ac_dC=' '
15857ac_dD=',;t'
15858# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15859ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
15860ac_uB='$,\1#\2define\3'
15861ac_uC=' '
15862ac_uD=',;t'
15863
15864for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15865  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15866  case $ac_file in
15867  - | *:- | *:-:* ) # input from stdin
15868        cat >$tmp/stdin
15869        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15870        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15871  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15872        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15873  * )   ac_file_in=$ac_file.in ;;
15874  esac
15875
15876  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15877echo "$as_me: creating $ac_file" >&6;}
15878
15879  # First look for the input files in the build tree, otherwise in the
15880  # src tree.
15881  ac_file_inputs=`IFS=:
15882    for f in $ac_file_in; do
15883      case $f in
15884      -) echo $tmp/stdin ;;
15885      [\\/$]*)
15886         # Absolute (can't be DOS-style, as IFS=:)
15887         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15888echo "$as_me: error: cannot find input file: $f" >&2;}
15889   { (exit 1); exit 1; }; }
15890         echo $f;;
15891      *) # Relative
15892         if test -f "$f"; then
15893           # Build tree
15894           echo $f
15895         elif test -f "$srcdir/$f"; then
15896           # Source tree
15897           echo $srcdir/$f
15898         else
15899           # /dev/null tree
15900           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15901echo "$as_me: error: cannot find input file: $f" >&2;}
15902   { (exit 1); exit 1; }; }
15903         fi;;
15904      esac
15905    done` || { (exit 1); exit 1; }
15906  # Remove the trailing spaces.
15907  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
15908
15909_ACEOF
15910
15911# Transform confdefs.h into two sed scripts, `conftest.defines' and
15912# `conftest.undefs', that substitutes the proper values into
15913# config.h.in to produce config.h.  The first handles `#define'
15914# templates, and the second `#undef' templates.
15915# And first: Protect against being on the right side of a sed subst in
15916# config.status.  Protect against being in an unquoted here document
15917# in config.status.
15918rm -f conftest.defines conftest.undefs
15919# Using a here document instead of a string reduces the quoting nightmare.
15920# Putting comments in sed scripts is not portable.
15921#
15922# `end' is used to avoid that the second main sed command (meant for
15923# 0-ary CPP macros) applies to n-ary macro definitions.
15924# See the Autoconf documentation for `clear'.
15925cat >confdef2sed.sed <<\_ACEOF
15926s/[\\&,]/\\&/g
15927s,[\\$`],\\&,g
15928t clear
15929: clear
15930s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15931t end
15932s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15933: end
15934_ACEOF
15935# If some macros were called several times there might be several times
15936# the same #defines, which is useless.  Nevertheless, we may not want to
15937# sort them, since we want the *last* AC-DEFINE to be honored.
15938uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15939sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15940rm -f confdef2sed.sed
15941
15942# This sed command replaces #undef with comments.  This is necessary, for
15943# example, in the case of _POSIX_SOURCE, which is predefined and required
15944# on some systems where configure will not decide to define it.
15945cat >>conftest.undefs <<\_ACEOF
15946s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15947_ACEOF
15948
15949# Break up conftest.defines because some shells have a limit on the size
15950# of here documents, and old seds have small limits too (100 cmds).
15951echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15952echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15953echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15954echo '  :' >>$CONFIG_STATUS
15955rm -f conftest.tail
15956while grep . conftest.defines >/dev/null
15957do
15958  # Write a limited-size here document to $tmp/defines.sed.
15959  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15960  # Speed up: don't consider the non `#define' lines.
15961  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
15962  # Work around the forget-to-reset-the-flag bug.
15963  echo 't clr' >>$CONFIG_STATUS
15964  echo ': clr' >>$CONFIG_STATUS
15965  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15966  echo 'CEOF
15967  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15968  rm -f $tmp/in
15969  mv $tmp/out $tmp/in
15970' >>$CONFIG_STATUS
15971  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15972  rm -f conftest.defines
15973  mv conftest.tail conftest.defines
15974done
15975rm -f conftest.defines
15976echo '  fi # grep' >>$CONFIG_STATUS
15977echo >>$CONFIG_STATUS
15978
15979# Break up conftest.undefs because some shells have a limit on the size
15980# of here documents, and old seds have small limits too (100 cmds).
15981echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15982rm -f conftest.tail
15983while grep . conftest.undefs >/dev/null
15984do
15985  # Write a limited-size here document to $tmp/undefs.sed.
15986  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15987  # Speed up: don't consider the non `#undef'
15988  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
15989  # Work around the forget-to-reset-the-flag bug.
15990  echo 't clr' >>$CONFIG_STATUS
15991  echo ': clr' >>$CONFIG_STATUS
15992  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15993  echo 'CEOF
15994  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15995  rm -f $tmp/in
15996  mv $tmp/out $tmp/in
15997' >>$CONFIG_STATUS
15998  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15999  rm -f conftest.undefs
16000  mv conftest.tail conftest.undefs
16001done
16002rm -f conftest.undefs
16003
16004cat >>$CONFIG_STATUS <<\_ACEOF
16005  # Let's still pretend it is `configure' which instantiates (i.e., don't
16006  # use $as_me), people would be surprised to read:
16007  #    /* config.h.  Generated by config.status.  */
16008  if test x"$ac_file" = x-; then
16009    echo "/* Generated by configure.  */" >$tmp/config.h
16010  else
16011    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16012  fi
16013  cat $tmp/in >>$tmp/config.h
16014  rm -f $tmp/in
16015  if test x"$ac_file" != x-; then
16016    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16017      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16018echo "$as_me: $ac_file is unchanged" >&6;}
16019    else
16020      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16022         X"$ac_file" : 'X\(//\)[^/]' \| \
16023         X"$ac_file" : 'X\(//\)$' \| \
16024         X"$ac_file" : 'X\(/\)' \| \
16025         .     : '\(.\)' 2>/dev/null ||
16026echo X"$ac_file" |
16027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16028  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16029  	  /^X\(\/\/\)$/{ s//\1/; q; }
16030  	  /^X\(\/\).*/{ s//\1/; q; }
16031  	  s/.*/./; q'`
16032      { if $as_mkdir_p; then
16033    mkdir -p "$ac_dir"
16034  else
16035    as_dir="$ac_dir"
16036    as_dirs=
16037    while test ! -d "$as_dir"; do
16038      as_dirs="$as_dir $as_dirs"
16039      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16041         X"$as_dir" : 'X\(//\)[^/]' \| \
16042         X"$as_dir" : 'X\(//\)$' \| \
16043         X"$as_dir" : 'X\(/\)' \| \
16044         .     : '\(.\)' 2>/dev/null ||
16045echo X"$as_dir" |
16046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16047  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16048  	  /^X\(\/\/\)$/{ s//\1/; q; }
16049  	  /^X\(\/\).*/{ s//\1/; q; }
16050  	  s/.*/./; q'`
16051    done
16052    test ! -n "$as_dirs" || mkdir $as_dirs
16053  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16054echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16055   { (exit 1); exit 1; }; }; }
16056
16057      rm -f $ac_file
16058      mv $tmp/config.h $ac_file
16059    fi
16060  else
16061    cat $tmp/config.h
16062    rm -f $tmp/config.h
16063  fi
16064done
16065_ACEOF
16066
16067cat >>$CONFIG_STATUS <<\_ACEOF
16068
16069{ (exit 0); exit 0; }
16070_ACEOF
16071chmod +x $CONFIG_STATUS
16072ac_clean_files=$ac_clean_files_save
16073
16074
16075# configure is writing to config.log, and then calls config.status.
16076# config.status does its own redirection, appending to config.log.
16077# Unfortunately, on DOS this fails, as config.log is still kept open
16078# by configure, so config.status won't be able to write to it; its
16079# output is simply discarded.  So we exec the FD to /dev/null,
16080# effectively closing config.log, so it can be properly (re)opened and
16081# appended to by config.status.  When coming back to configure, we
16082# need to make the FD available again.
16083if test "$no_create" != yes; then
16084  ac_cs_success=:
16085  ac_config_status_args=
16086  test "$silent" = yes &&
16087    ac_config_status_args="$ac_config_status_args --quiet"
16088  exec 5>/dev/null
16089  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16090  exec 5>>config.log
16091  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16092  # would make configure fail if this is the last instruction.
16093  $ac_cs_success || { (exit 1); exit 1; }
16094fi
16095
16096
16097echo "Configuration:
16098
16099  xvt version:               $VERSION : $DATE
16100  Source code location:       $srcdir
16101  Install path:               ${prefix}/bin
16102  Compiler:                   $CC
16103  Compiler flags:             $CFLAGS"
16104
16105if test "$MALLOC_TYPE" = S; then
16106  echo "  malloc support:             system default"
16107fi
16108if test "$MALLOC_TYPE" = G; then
16109  echo "  malloc support:             Gray Watson's dmalloc"
16110fi
16111if test "$MALLOC_TYPE" = D; then
16112  echo "  malloc support:             Doug Lea's malloc"
16113fi
16114
16115if test x$support_xpm = xyes; then
16116  echo "  Xpm library:                $XPM_LIBS"
16117fi
16118
16119echo "
16120Adding modules:"
16121if test x$OBJGRAPHICS != x; then HASIT="yes"; else HASIT="no"; fi
16122echo "  graphics.o:                 "$HASIT
16123if test x$OBJGRKELOT != x; then HASIT="yes"; else HASIT="no"; fi
16124echo "  grkelot.o:                  "$HASIT
16125if test x$OBJLOGGING != x; then HASIT="yes"; else HASIT="no"; fi
16126echo "  logging.o:                  "$HASIT
16127if test x$OBJMENUBAR != x; then HASIT="yes"; else HASIT="no"; fi
16128echo "  menubar.o:                  "$HASIT
16129if test x$support_scroll_xvt = xyes; then HASIT="yes"; else HASIT="no"; fi
16130echo "  scrollbar-xvt.o:           "$HASIT
16131if test x$support_scroll_next = xyes; then HASIT="yes"; else HASIT="no"; fi
16132echo "  scrollbar-next.o:           "$HASIT
16133if test x$support_scroll_xterm = xyes; then HASIT="yes"; else HASIT="no"; fi
16134echo "  scrollbar-xterm.o:          "$HASIT
16135if test x$OBJSTRINGS != x; then HASIT="yes"; else HASIT="no"; fi
16136echo "  strings.o:                  "$HASIT
16137if test x$OBJXPM != x; then HASIT="yes"; else HASIT="no"; fi
16138echo "  xpm.o:                      "$HASIT
16139echo "
16140The following are set in config.h
16141"
16142echo "  multichar glyph languages:  "$multichar_set
16143echo "  pty/tty type:               "$xvt_cv_ptys
16144if test x$support_utmp != xyes; then
16145  echo "  utmp support:               disabled
16146"
16147else
16148  echo "  utmp support:               enabled
16149  utmp file:                  $xvt_cv_path_utmp
16150  utmpx file:                 $xvt_cv_path_utmpx
16151  wtmp file:                  $xvt_cv_path_wtmp
16152  wtmpx file:                 $xvt_cv_path_wtmpx
16153  lastlog file:               $xvt_cv_path_lastlog
16154  ttys/ttytab file:           $xvt_cv_path_ttytab
16155"
16156fi
16157if test x$term != x; then
16158  echo "  set TERM to:                $term
16159"
16160fi
16161if test x$terminfo != x; then
16162  echo "  set TERMINFO to:            $terminfo
16163"
16164fi
16165if test x$xvt_cv_ptys = xUNKNOWN; then
16166  echo ".----------------------------------------------------------------."
16167  echo ". WARNING: could not determine pty/tty type.  Do not build until ."
16168  echo ".          the appropriate PTYS_ARE_* is defined in config.h     ."
16169  echo ".----------------------------------------------------------------."
16170fi
16171if test x$support_xpm = xneedsmanualspecification; then
16172  echo ".----------------------------------------------------------------."
16173  echo ". WARNING: --enable-xpm-background was specified however the     ."
16174  echo ".          XPM includes files and libraries could not be found.  ."
16175  echo ".          XPM backgrounds are now being DISABLED!  If you want  ."
16176  echo ".          to use them you should rerun   configure   with the   ."
16177  echo ".          appropriate --with-xpm-includes=/path/to/xpm/includes ."
16178  echo ".          and --with-xpm-library=/path/to/xpm/library lines.    ."
16179  echo ".----------------------------------------------------------------."
16180fi
16181if test x$support_xim = xyes -a x$xvt_cv_func_xlocale = xno; then
16182  echo ".----------------------------------------------------------------."
16183  echo ". WARNING: --enable-xim was specified however the locale support ."
16184  echo ".          functions could not be found.                         ."
16185  echo ".          XIM is now being DISABLED!                            ."
16186  echo ".----------------------------------------------------------------."
16187fi
16188echo "  *** Please check src/feature.h for further options ***
16189"
16190