1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for viewglob 2.0.4.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='viewglob'
269PACKAGE_TARNAME='viewglob'
270PACKAGE_VERSION='2.0.4'
271PACKAGE_STRING='viewglob 2.0.4'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar FULL_BUILD_TRUE FULL_BUILD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS BASH_FULL_PATH SED RELEASE_DATE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670	      localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710	 X"$0" : 'X\(//\)[^/]' \| \
711	 X"$0" : 'X\(//\)$' \| \
712	 X"$0" : 'X\(/\)' \| \
713	 .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717  	  /^X\(\/\/\)$/{ s//\1/; q; }
718  	  /^X\(\/\).*/{ s//\1/; q; }
719  	  s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r "$srcdir/$ac_unique_file"; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r "$srcdir/$ac_unique_file"; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures viewglob 2.0.4 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805			  [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807			  [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833Program names:
834  --program-prefix=PREFIX            prepend PREFIX to installed program names
835  --program-suffix=SUFFIX            append SUFFIX to installed program names
836  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838X features:
839  --x-includes=DIR    X include files are in DIR
840  --x-libraries=DIR   X library files are in DIR
841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845  case $ac_init_help in
846     short | recursive ) echo "Configuration of viewglob 2.0.4:";;
847   esac
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --enable-vgseer-only    Only build and install the client side of Viewglob
854  --disable-dependency-tracking  speeds up one-time build
855  --enable-dependency-tracking   do not reject slow dependency extractors
856  --disable-glibtest      do not try to compile and run a test GLIB program
857  --disable-gtktest       do not try to compile and run a test GTK+ program
858
859Optional Packages:
860  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
861  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
862  --with-x                use the X Window System
863
864Some influential environment variables:
865  CC          C compiler command
866  CFLAGS      C compiler flags
867  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868              nonstandard directory <lib dir>
869  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870              headers in a nonstandard directory <include dir>
871  CPP         C preprocessor
872
873Use these variables to override the choices made by `configure' or to help
874it to find libraries and programs with nonstandard names/locations.
875
876_ACEOF
877fi
878
879if test "$ac_init_help" = "recursive"; then
880  # If there are subdirs, report their specific --help.
881  ac_popdir=`pwd`
882  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883    test -d $ac_dir || continue
884    ac_builddir=.
885
886if test "$ac_dir" != .; then
887  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888  # A "../" for each directory in $ac_dir_suffix.
889  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890else
891  ac_dir_suffix= ac_top_builddir=
892fi
893
894case $srcdir in
895  .)  # No --srcdir option.  We are building in place.
896    ac_srcdir=.
897    if test -z "$ac_top_builddir"; then
898       ac_top_srcdir=.
899    else
900       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901    fi ;;
902  [\\/]* | ?:[\\/]* )  # Absolute path.
903    ac_srcdir=$srcdir$ac_dir_suffix;
904    ac_top_srcdir=$srcdir ;;
905  *) # Relative path.
906    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907    ac_top_srcdir=$ac_top_builddir$srcdir ;;
908esac
909
910# Do not use `cd foo && pwd` to compute absolute paths, because
911# the directories may not exist.
912case `pwd` in
913.) ac_abs_builddir="$ac_dir";;
914*)
915  case "$ac_dir" in
916  .) ac_abs_builddir=`pwd`;;
917  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918  *) ac_abs_builddir=`pwd`/"$ac_dir";;
919  esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_top_builddir=${ac_top_builddir}.;;
923*)
924  case ${ac_top_builddir}. in
925  .) ac_abs_top_builddir=$ac_abs_builddir;;
926  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_srcdir=$ac_srcdir;;
932*)
933  case $ac_srcdir in
934  .) ac_abs_srcdir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937  esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_top_srcdir=$ac_top_srcdir;;
941*)
942  case $ac_top_srcdir in
943  .) ac_abs_top_srcdir=$ac_abs_builddir;;
944  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946  esac;;
947esac
948
949    cd $ac_dir
950    # Check for guested configure; otherwise get Cygnus style configure.
951    if test -f $ac_srcdir/configure.gnu; then
952      echo
953      $SHELL $ac_srcdir/configure.gnu  --help=recursive
954    elif test -f $ac_srcdir/configure; then
955      echo
956      $SHELL $ac_srcdir/configure  --help=recursive
957    elif test -f $ac_srcdir/configure.ac ||
958	   test -f $ac_srcdir/configure.in; then
959      echo
960      $ac_configure --help
961    else
962      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963    fi
964    cd $ac_popdir
965  done
966fi
967
968test -n "$ac_init_help" && exit 0
969if $ac_init_version; then
970  cat <<\_ACEOF
971viewglob configure 2.0.4
972generated by GNU Autoconf 2.59
973
974Copyright (C) 2003 Free Software Foundation, Inc.
975This configure script is free software; the Free Software Foundation
976gives unlimited permission to copy, distribute and modify it.
977_ACEOF
978  exit 0
979fi
980exec 5>config.log
981cat >&5 <<_ACEOF
982This file contains any messages produced by compilers while
983running configure, to aid debugging if configure makes a mistake.
984
985It was created by viewglob $as_me 2.0.4, which was
986generated by GNU Autoconf 2.59.  Invocation command line was
987
988  $ $0 $@
989
990_ACEOF
991{
992cat <<_ASUNAME
993## --------- ##
994## Platform. ##
995## --------- ##
996
997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998uname -m = `(uname -m) 2>/dev/null || echo unknown`
999uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
1003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1005
1006/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1007/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1010/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1011/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1012/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1013
1014_ASUNAME
1015
1016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017for as_dir in $PATH
1018do
1019  IFS=$as_save_IFS
1020  test -z "$as_dir" && as_dir=.
1021  echo "PATH: $as_dir"
1022done
1023
1024} >&5
1025
1026cat >&5 <<_ACEOF
1027
1028
1029## ----------- ##
1030## Core tests. ##
1031## ----------- ##
1032
1033_ACEOF
1034
1035
1036# Keep a trace of the command line.
1037# Strip out --no-create and --no-recursion so they do not pile up.
1038# Strip out --silent because we don't want to record it for future runs.
1039# Also quote any args containing shell meta-characters.
1040# Make two passes to allow for proper duplicate-argument suppression.
1041ac_configure_args=
1042ac_configure_args0=
1043ac_configure_args1=
1044ac_sep=
1045ac_must_keep_next=false
1046for ac_pass in 1 2
1047do
1048  for ac_arg
1049  do
1050    case $ac_arg in
1051    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053    | -silent | --silent | --silen | --sile | --sil)
1054      continue ;;
1055    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057    esac
1058    case $ac_pass in
1059    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060    2)
1061      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062      if test $ac_must_keep_next = true; then
1063	ac_must_keep_next=false # Got value, back to normal.
1064      else
1065	case $ac_arg in
1066	  *=* | --config-cache | -C | -disable-* | --disable-* \
1067	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069	  | -with-* | --with-* | -without-* | --without-* | --x)
1070	    case "$ac_configure_args0 " in
1071	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072	    esac
1073	    ;;
1074	  -* ) ac_must_keep_next=true ;;
1075	esac
1076      fi
1077      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078      # Get rid of the leading space.
1079      ac_sep=" "
1080      ;;
1081    esac
1082  done
1083done
1084$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
1087# When interrupted or exit'd, cleanup temporary files, and complete
1088# config.log.  We remove comments because anyway the quotes in there
1089# would cause problems or look ugly.
1090# WARNING: Be sure not to use single quotes in there, as some shells,
1091# such as our DU 5.0 friend, will then `close' the trap.
1092trap 'exit_status=$?
1093  # Save into config.log some information that might help in debugging.
1094  {
1095    echo
1096
1097    cat <<\_ASBOX
1098## ---------------- ##
1099## Cache variables. ##
1100## ---------------- ##
1101_ASBOX
1102    echo
1103    # The following way of writing the cache mishandles newlines in values,
1104{
1105  (set) 2>&1 |
1106    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107    *ac_space=\ *)
1108      sed -n \
1109	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111      ;;
1112    *)
1113      sed -n \
1114	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115      ;;
1116    esac;
1117}
1118    echo
1119
1120    cat <<\_ASBOX
1121## ----------------- ##
1122## Output variables. ##
1123## ----------------- ##
1124_ASBOX
1125    echo
1126    for ac_var in $ac_subst_vars
1127    do
1128      eval ac_val=$`echo $ac_var`
1129      echo "$ac_var='"'"'$ac_val'"'"'"
1130    done | sort
1131    echo
1132
1133    if test -n "$ac_subst_files"; then
1134      cat <<\_ASBOX
1135## ------------- ##
1136## Output files. ##
1137## ------------- ##
1138_ASBOX
1139      echo
1140      for ac_var in $ac_subst_files
1141      do
1142	eval ac_val=$`echo $ac_var`
1143	echo "$ac_var='"'"'$ac_val'"'"'"
1144      done | sort
1145      echo
1146    fi
1147
1148    if test -s confdefs.h; then
1149      cat <<\_ASBOX
1150## ----------- ##
1151## confdefs.h. ##
1152## ----------- ##
1153_ASBOX
1154      echo
1155      sed "/^$/d" confdefs.h | sort
1156      echo
1157    fi
1158    test "$ac_signal" != 0 &&
1159      echo "$as_me: caught signal $ac_signal"
1160    echo "$as_me: exit $exit_status"
1161  } >&5
1162  rm -f core *.core &&
1163  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164    exit $exit_status
1165     ' 0
1166for ac_signal in 1 2 13 15; do
1167  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168done
1169ac_signal=0
1170
1171# confdefs.h avoids OS command line length limits that DEFS can exceed.
1172rm -rf conftest* confdefs.h
1173# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174echo >confdefs.h
1175
1176# Predefined preprocessor variables.
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_NAME "$PACKAGE_NAME"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_VERSION "$PACKAGE_VERSION"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_STRING "$PACKAGE_STRING"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200_ACEOF
1201
1202
1203# Let the site file select an alternate cache file if it wants to.
1204# Prefer explicitly selected file to automatically selected ones.
1205if test -z "$CONFIG_SITE"; then
1206  if test "x$prefix" != xNONE; then
1207    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208  else
1209    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210  fi
1211fi
1212for ac_site_file in $CONFIG_SITE; do
1213  if test -r "$ac_site_file"; then
1214    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215echo "$as_me: loading site script $ac_site_file" >&6;}
1216    sed 's/^/| /' "$ac_site_file" >&5
1217    . "$ac_site_file"
1218  fi
1219done
1220
1221if test -r "$cache_file"; then
1222  # Some versions of bash will fail to source /dev/null (special
1223  # files actually), so we avoid doing that.
1224  if test -f "$cache_file"; then
1225    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226echo "$as_me: loading cache $cache_file" >&6;}
1227    case $cache_file in
1228      [\\/]* | ?:[\\/]* ) . $cache_file;;
1229      *)                      . ./$cache_file;;
1230    esac
1231  fi
1232else
1233  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234echo "$as_me: creating cache $cache_file" >&6;}
1235  >$cache_file
1236fi
1237
1238# Check that the precious variables saved in the cache have kept the same
1239# value.
1240ac_cache_corrupted=false
1241for ac_var in `(set) 2>&1 |
1242	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244  eval ac_new_set=\$ac_env_${ac_var}_set
1245  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246  eval ac_new_val="\$ac_env_${ac_var}_value"
1247  case $ac_old_set,$ac_new_set in
1248    set,)
1249      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251      ac_cache_corrupted=: ;;
1252    ,set)
1253      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255      ac_cache_corrupted=: ;;
1256    ,);;
1257    *)
1258      if test "x$ac_old_val" != "x$ac_new_val"; then
1259	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262echo "$as_me:   former value:  $ac_old_val" >&2;}
1263	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264echo "$as_me:   current value: $ac_new_val" >&2;}
1265	ac_cache_corrupted=:
1266      fi;;
1267  esac
1268  # Pass precious variables to config.status.
1269  if test "$ac_new_set" = set; then
1270    case $ac_new_val in
1271    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273    *) ac_arg=$ac_var=$ac_new_val ;;
1274    esac
1275    case " $ac_configure_args " in
1276      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278    esac
1279  fi
1280done
1281if $ac_cache_corrupted; then
1282  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286   { (exit 1); exit 1; }; }
1287fi
1288
1289ac_ext=c
1290ac_cpp='$CPP $CPPFLAGS'
1291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321am__api_version="1.9"
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324  if test -f $ac_dir/install-sh; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/install-sh -c"
1327    break
1328  elif test -f $ac_dir/install.sh; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/install.sh -c"
1331    break
1332  elif test -f $ac_dir/shtool; then
1333    ac_aux_dir=$ac_dir
1334    ac_install_sh="$ac_aux_dir/shtool install -c"
1335    break
1336  fi
1337done
1338if test -z "$ac_aux_dir"; then
1339  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341   { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Find a good install program.  We prefer a C program (faster),
1348# so one script is as good as another.  But avoid the broken or
1349# incompatible versions:
1350# SysV /etc/install, /usr/sbin/install
1351# SunOS /usr/etc/install
1352# IRIX /sbin/install
1353# AIX /bin/install
1354# AmigaOS /C/install, which installs bootblocks on floppy discs
1355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358# OS/2's system install, which has a completely different semantic
1359# ./install, which can be erroneously created by make from ./install.sh.
1360echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1361echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1362if test -z "$INSTALL"; then
1363if test "${ac_cv_path_install+set}" = set; then
1364  echo $ECHO_N "(cached) $ECHO_C" >&6
1365else
1366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367for as_dir in $PATH
1368do
1369  IFS=$as_save_IFS
1370  test -z "$as_dir" && as_dir=.
1371  # Account for people who put trailing slashes in PATH elements.
1372case $as_dir/ in
1373  ./ | .// | /cC/* | \
1374  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1375  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1376  /usr/ucb/* ) ;;
1377  *)
1378    # OSF1 and SCO ODT 3.0 have their own names for install.
1379    # Don't use installbsd from OSF since it installs stuff as root
1380    # by default.
1381    for ac_prog in ginstall scoinst install; do
1382      for ac_exec_ext in '' $ac_executable_extensions; do
1383	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1384	  if test $ac_prog = install &&
1385	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386	    # AIX install.  It has an incompatible calling convention.
1387	    :
1388	  elif test $ac_prog = install &&
1389	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390	    # program-specific install script used by HP pwplus--don't use.
1391	    :
1392	  else
1393	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1394	    break 3
1395	  fi
1396	fi
1397      done
1398    done
1399    ;;
1400esac
1401done
1402
1403
1404fi
1405  if test "${ac_cv_path_install+set}" = set; then
1406    INSTALL=$ac_cv_path_install
1407  else
1408    # As a last resort, use the slow shell script.  We don't cache a
1409    # path for INSTALL within a source directory, because that will
1410    # break other packages using the cache if that directory is
1411    # removed, or if the path is relative.
1412    INSTALL=$ac_install_sh
1413  fi
1414fi
1415echo "$as_me:$LINENO: result: $INSTALL" >&5
1416echo "${ECHO_T}$INSTALL" >&6
1417
1418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419# It thinks the first close brace ends the variable substitution.
1420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421
1422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1423
1424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425
1426echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1427echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1428# Just in case
1429sleep 1
1430echo timestamp > conftest.file
1431# Do `set' in a subshell so we don't clobber the current shell's
1432# arguments.  Must try -L first in case configure is actually a
1433# symlink; some systems play weird games with the mod time of symlinks
1434# (eg FreeBSD returns the mod time of the symlink's containing
1435# directory).
1436if (
1437   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1438   if test "$*" = "X"; then
1439      # -L didn't work.
1440      set X `ls -t $srcdir/configure conftest.file`
1441   fi
1442   rm -f conftest.file
1443   if test "$*" != "X $srcdir/configure conftest.file" \
1444      && test "$*" != "X conftest.file $srcdir/configure"; then
1445
1446      # If neither matched, then we have a broken ls.  This can happen
1447      # if, for instance, CONFIG_SHELL is bash and it inherits a
1448      # broken ls alias from the environment.  This has actually
1449      # happened.  Such a system could not be considered "sane".
1450      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1451alias in your environment" >&5
1452echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1453alias in your environment" >&2;}
1454   { (exit 1); exit 1; }; }
1455   fi
1456
1457   test "$2" = conftest.file
1458   )
1459then
1460   # Ok.
1461   :
1462else
1463   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1464Check your system clock" >&5
1465echo "$as_me: error: newly created file is older than distributed files!
1466Check your system clock" >&2;}
1467   { (exit 1); exit 1; }; }
1468fi
1469echo "$as_me:$LINENO: result: yes" >&5
1470echo "${ECHO_T}yes" >&6
1471test "$program_prefix" != NONE &&
1472  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1473# Use a double $ so make ignores it.
1474test "$program_suffix" != NONE &&
1475  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1476# Double any \ or $.  echo might interpret backslashes.
1477# By default was `s,x,x', remove it if useless.
1478cat <<\_ACEOF >conftest.sed
1479s/[\\$]/&&/g;s/;s,x,x,$//
1480_ACEOF
1481program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482rm conftest.sed
1483
1484# expand $ac_aux_dir to an absolute path
1485am_aux_dir=`cd $ac_aux_dir && pwd`
1486
1487test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1488# Use eval to expand $SHELL
1489if eval "$MISSING --run true"; then
1490  am_missing_run="$MISSING --run "
1491else
1492  am_missing_run=
1493  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1494echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1495fi
1496
1497if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1498  # We used to keeping the `.' as first argument, in order to
1499  # allow $(mkdir_p) to be used without argument.  As in
1500  #   $(mkdir_p) $(somedir)
1501  # where $(somedir) is conditionally defined.  However this is wrong
1502  # for two reasons:
1503  #  1. if the package is installed by a user who cannot write `.'
1504  #     make install will fail,
1505  #  2. the above comment should most certainly read
1506  #     $(mkdir_p) $(DESTDIR)$(somedir)
1507  #     so it does not work when $(somedir) is undefined and
1508  #     $(DESTDIR) is not.
1509  #  To support the latter case, we have to write
1510  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1511  #  so the `.' trick is pointless.
1512  mkdir_p='mkdir -p --'
1513else
1514  # On NextStep and OpenStep, the `mkdir' command does not
1515  # recognize any option.  It will interpret all options as
1516  # directories to create, and then abort because `.' already
1517  # exists.
1518  for d in ./-p ./--version;
1519  do
1520    test -d $d && rmdir $d
1521  done
1522  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1523  if test -f "$ac_aux_dir/mkinstalldirs"; then
1524    mkdir_p='$(mkinstalldirs)'
1525  else
1526    mkdir_p='$(install_sh) -d'
1527  fi
1528fi
1529
1530for ac_prog in gawk mawk nawk awk
1531do
1532  # Extract the first word of "$ac_prog", so it can be a program name with args.
1533set dummy $ac_prog; ac_word=$2
1534echo "$as_me:$LINENO: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_AWK+set}" = set; then
1537  echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539  if test -n "$AWK"; then
1540  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1541else
1542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543for as_dir in $PATH
1544do
1545  IFS=$as_save_IFS
1546  test -z "$as_dir" && as_dir=.
1547  for ac_exec_ext in '' $ac_executable_extensions; do
1548  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549    ac_cv_prog_AWK="$ac_prog"
1550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551    break 2
1552  fi
1553done
1554done
1555
1556fi
1557fi
1558AWK=$ac_cv_prog_AWK
1559if test -n "$AWK"; then
1560  echo "$as_me:$LINENO: result: $AWK" >&5
1561echo "${ECHO_T}$AWK" >&6
1562else
1563  echo "$as_me:$LINENO: result: no" >&5
1564echo "${ECHO_T}no" >&6
1565fi
1566
1567  test -n "$AWK" && break
1568done
1569
1570echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1571echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1572set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1573if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1574  echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576  cat >conftest.make <<\_ACEOF
1577all:
1578	@echo 'ac_maketemp="$(MAKE)"'
1579_ACEOF
1580# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1581eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1582if test -n "$ac_maketemp"; then
1583  eval ac_cv_prog_make_${ac_make}_set=yes
1584else
1585  eval ac_cv_prog_make_${ac_make}_set=no
1586fi
1587rm -f conftest.make
1588fi
1589if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1590  echo "$as_me:$LINENO: result: yes" >&5
1591echo "${ECHO_T}yes" >&6
1592  SET_MAKE=
1593else
1594  echo "$as_me:$LINENO: result: no" >&5
1595echo "${ECHO_T}no" >&6
1596  SET_MAKE="MAKE=${MAKE-make}"
1597fi
1598
1599rm -rf .tst 2>/dev/null
1600mkdir .tst 2>/dev/null
1601if test -d .tst; then
1602  am__leading_dot=.
1603else
1604  am__leading_dot=_
1605fi
1606rmdir .tst 2>/dev/null
1607
1608# test to see if srcdir already configured
1609if test "`cd $srcdir && pwd`" != "`pwd`" &&
1610   test -f $srcdir/config.status; then
1611  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1612echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1613   { (exit 1); exit 1; }; }
1614fi
1615
1616# test whether we have cygpath
1617if test -z "$CYGPATH_W"; then
1618  if (cygpath --version) >/dev/null 2>/dev/null; then
1619    CYGPATH_W='cygpath -w'
1620  else
1621    CYGPATH_W=echo
1622  fi
1623fi
1624
1625
1626# Define the identity of the package.
1627 PACKAGE='viewglob'
1628 VERSION='2.0.4'
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE "$PACKAGE"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define VERSION "$VERSION"
1638_ACEOF
1639
1640# Some tools Automake needs.
1641
1642ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1643
1644
1645AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1646
1647
1648AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1649
1650
1651AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1652
1653
1654MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1655
1656install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657
1658# Installed binaries are usually stripped using `strip' when the user
1659# run `make install-strip'.  However `strip' might not be the right
1660# tool to use in cross-compilation environments, therefore Automake
1661# will honor the `STRIP' environment variable to overrule this program.
1662if test "$cross_compiling" != no; then
1663  if test -n "$ac_tool_prefix"; then
1664  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1665set dummy ${ac_tool_prefix}strip; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_STRIP+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  if test -n "$STRIP"; then
1672  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
1677  IFS=$as_save_IFS
1678  test -z "$as_dir" && as_dir=.
1679  for ac_exec_ext in '' $ac_executable_extensions; do
1680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683    break 2
1684  fi
1685done
1686done
1687
1688fi
1689fi
1690STRIP=$ac_cv_prog_STRIP
1691if test -n "$STRIP"; then
1692  echo "$as_me:$LINENO: result: $STRIP" >&5
1693echo "${ECHO_T}$STRIP" >&6
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699fi
1700if test -z "$ac_cv_prog_STRIP"; then
1701  ac_ct_STRIP=$STRIP
1702  # Extract the first word of "strip", so it can be a program name with args.
1703set dummy strip; ac_word=$2
1704echo "$as_me:$LINENO: checking for $ac_word" >&5
1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  if test -n "$ac_ct_STRIP"; then
1710  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1711else
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715  IFS=$as_save_IFS
1716  test -z "$as_dir" && as_dir=.
1717  for ac_exec_ext in '' $ac_executable_extensions; do
1718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719    ac_cv_prog_ac_ct_STRIP="strip"
1720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721    break 2
1722  fi
1723done
1724done
1725
1726  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1727fi
1728fi
1729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1730if test -n "$ac_ct_STRIP"; then
1731  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1732echo "${ECHO_T}$ac_ct_STRIP" >&6
1733else
1734  echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
1736fi
1737
1738  STRIP=$ac_ct_STRIP
1739else
1740  STRIP="$ac_cv_prog_STRIP"
1741fi
1742
1743fi
1744INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745
1746# We need awk for the "check" target.  The system "awk" is bad on
1747# some platforms.
1748# Always define AMTAR for backward compatibility.
1749
1750AMTAR=${AMTAR-"${am_missing_run}tar"}
1751
1752am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1753
1754
1755
1756
1757
1758          ac_config_headers="$ac_config_headers config.h"
1759
1760RELEASE_DATE="April 26, 2006"
1761
1762
1763cat >>confdefs.h <<_ACEOF
1764#define VG_RELEASE_DATE "$RELEASE_DATE"
1765_ACEOF
1766
1767
1768CFLAGS="$CFLAGS -Wall"
1769if test x"$USE_MAINTAINER_MODE" = xyes; then
1770	CFLAGS="$CFLAGS -g3"
1771fi
1772
1773VGSEER_ONLY=
1774# Check whether --enable-vgseer-only or --disable-vgseer-only was given.
1775if test "${enable_vgseer_only+set}" = set; then
1776  enableval="$enable_vgseer_only"
1777  VGSEER_ONLY=yep
1778else
1779  VGSEER_ONLY=nope
1780fi;
1781
1782
1783if test "$VGSEER_ONLY" = nope; then
1784  FULL_BUILD_TRUE=
1785  FULL_BUILD_FALSE='#'
1786else
1787  FULL_BUILD_TRUE='#'
1788  FULL_BUILD_FALSE=
1789fi
1790
1791
1792ac_ext=c
1793ac_cpp='$CPP $CPPFLAGS'
1794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797if test -n "$ac_tool_prefix"; then
1798  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1799set dummy ${ac_tool_prefix}gcc; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_CC+set}" = set; then
1803  echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805  if test -n "$CC"; then
1806  ac_cv_prog_CC="$CC" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811  IFS=$as_save_IFS
1812  test -z "$as_dir" && as_dir=.
1813  for ac_exec_ext in '' $ac_executable_extensions; do
1814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817    break 2
1818  fi
1819done
1820done
1821
1822fi
1823fi
1824CC=$ac_cv_prog_CC
1825if test -n "$CC"; then
1826  echo "$as_me:$LINENO: result: $CC" >&5
1827echo "${ECHO_T}$CC" >&6
1828else
1829  echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833fi
1834if test -z "$ac_cv_prog_CC"; then
1835  ac_ct_CC=$CC
1836  # Extract the first word of "gcc", so it can be a program name with args.
1837set dummy gcc; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  if test -n "$ac_ct_CC"; then
1844  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  test -z "$as_dir" && as_dir=.
1851  for ac_exec_ext in '' $ac_executable_extensions; do
1852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853    ac_cv_prog_ac_ct_CC="gcc"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860fi
1861fi
1862ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863if test -n "$ac_ct_CC"; then
1864  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865echo "${ECHO_T}$ac_ct_CC" >&6
1866else
1867  echo "$as_me:$LINENO: result: no" >&5
1868echo "${ECHO_T}no" >&6
1869fi
1870
1871  CC=$ac_ct_CC
1872else
1873  CC="$ac_cv_prog_CC"
1874fi
1875
1876if test -z "$CC"; then
1877  if test -n "$ac_tool_prefix"; then
1878  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1879set dummy ${ac_tool_prefix}cc; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_CC+set}" = set; then
1883  echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885  if test -n "$CC"; then
1886  ac_cv_prog_CC="$CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891  IFS=$as_save_IFS
1892  test -z "$as_dir" && as_dir=.
1893  for ac_exec_ext in '' $ac_executable_extensions; do
1894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895    ac_cv_prog_CC="${ac_tool_prefix}cc"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902fi
1903fi
1904CC=$ac_cv_prog_CC
1905if test -n "$CC"; then
1906  echo "$as_me:$LINENO: result: $CC" >&5
1907echo "${ECHO_T}$CC" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913fi
1914if test -z "$ac_cv_prog_CC"; then
1915  ac_ct_CC=$CC
1916  # Extract the first word of "cc", so it can be a program name with args.
1917set dummy cc; ac_word=$2
1918echo "$as_me:$LINENO: checking for $ac_word" >&5
1919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921  echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923  if test -n "$ac_ct_CC"; then
1924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925else
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931  for ac_exec_ext in '' $ac_executable_extensions; do
1932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933    ac_cv_prog_ac_ct_CC="cc"
1934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935    break 2
1936  fi
1937done
1938done
1939
1940fi
1941fi
1942ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943if test -n "$ac_ct_CC"; then
1944  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945echo "${ECHO_T}$ac_ct_CC" >&6
1946else
1947  echo "$as_me:$LINENO: result: no" >&5
1948echo "${ECHO_T}no" >&6
1949fi
1950
1951  CC=$ac_ct_CC
1952else
1953  CC="$ac_cv_prog_CC"
1954fi
1955
1956fi
1957if test -z "$CC"; then
1958  # Extract the first word of "cc", so it can be a program name with args.
1959set dummy cc; ac_word=$2
1960echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962if test "${ac_cv_prog_CC+set}" = set; then
1963  echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965  if test -n "$CC"; then
1966  ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968  ac_prog_rejected=no
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974  for ac_exec_ext in '' $ac_executable_extensions; do
1975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977       ac_prog_rejected=yes
1978       continue
1979     fi
1980    ac_cv_prog_CC="cc"
1981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982    break 2
1983  fi
1984done
1985done
1986
1987if test $ac_prog_rejected = yes; then
1988  # We found a bogon in the path, so make sure we never use it.
1989  set dummy $ac_cv_prog_CC
1990  shift
1991  if test $# != 0; then
1992    # We chose a different compiler from the bogus one.
1993    # However, it has the same basename, so the bogon will be chosen
1994    # first if we set CC to just the basename; use the full file name.
1995    shift
1996    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997  fi
1998fi
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003  echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6
2005else
2006  echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6
2008fi
2009
2010fi
2011if test -z "$CC"; then
2012  if test -n "$ac_tool_prefix"; then
2013  for ac_prog in cl
2014  do
2015    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019if test "${ac_cv_prog_CC+set}" = set; then
2020  echo $ECHO_N "(cached) $ECHO_C" >&6
2021else
2022  if test -n "$CC"; then
2023  ac_cv_prog_CC="$CC" # Let the user override the test.
2024else
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028  IFS=$as_save_IFS
2029  test -z "$as_dir" && as_dir=.
2030  for ac_exec_ext in '' $ac_executable_extensions; do
2031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034    break 2
2035  fi
2036done
2037done
2038
2039fi
2040fi
2041CC=$ac_cv_prog_CC
2042if test -n "$CC"; then
2043  echo "$as_me:$LINENO: result: $CC" >&5
2044echo "${ECHO_T}$CC" >&6
2045else
2046  echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048fi
2049
2050    test -n "$CC" && break
2051  done
2052fi
2053if test -z "$CC"; then
2054  ac_ct_CC=$CC
2055  for ac_prog in cl
2056do
2057  # Extract the first word of "$ac_prog", so it can be a program name with args.
2058set dummy $ac_prog; ac_word=$2
2059echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  if test -n "$ac_ct_CC"; then
2065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072  for ac_exec_ext in '' $ac_executable_extensions; do
2073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074    ac_cv_prog_ac_ct_CC="$ac_prog"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080
2081fi
2082fi
2083ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084if test -n "$ac_ct_CC"; then
2085  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086echo "${ECHO_T}$ac_ct_CC" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092  test -n "$ac_ct_CC" && break
2093done
2094
2095  CC=$ac_ct_CC
2096fi
2097
2098fi
2099
2100
2101test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102See \`config.log' for more details." >&5
2103echo "$as_me: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&2;}
2105   { (exit 1); exit 1; }; }
2106
2107# Provide some information about the compiler.
2108echo "$as_me:$LINENO:" \
2109     "checking for C compiler version" >&5
2110ac_compiler=`set X $ac_compile; echo $2`
2111{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2112  (eval $ac_compiler --version </dev/null >&5) 2>&5
2113  ac_status=$?
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); }
2116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2117  (eval $ac_compiler -v </dev/null >&5) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2122  (eval $ac_compiler -V </dev/null >&5) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h.  */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h.  */
2133
2134int
2135main ()
2136{
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142ac_clean_files_save=$ac_clean_files
2143ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144# Try to create an executable without -o first, disregard a.out.
2145# It will help us diagnose broken compilers, and finding out an intuition
2146# of exeext.
2147echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2149ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2151  (eval $ac_link_default) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }; then
2155  # Find the output, starting from the most likely.  This scheme is
2156# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2157# resort.
2158
2159# Be careful to initialize this variable, since it used to be cached.
2160# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161ac_cv_exeext=
2162# b.out is created by i960 compilers.
2163for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164do
2165  test -f "$ac_file" || continue
2166  case $ac_file in
2167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168	;;
2169    conftest.$ac_ext )
2170	# This is the source file.
2171	;;
2172    [ab].out )
2173	# We found the default executable, but exeext='' is most
2174	# certainly right.
2175	break;;
2176    *.* )
2177	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178	# FIXME: I believe we export ac_cv_exeext for Libtool,
2179	# but it would be cool to find out if it's true.  Does anybody
2180	# maintain Libtool? --akim.
2181	export ac_cv_exeext
2182	break;;
2183    * )
2184	break;;
2185  esac
2186done
2187else
2188  echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192See \`config.log' for more details." >&5
2193echo "$as_me: error: C compiler cannot create executables
2194See \`config.log' for more details." >&2;}
2195   { (exit 77); exit 77; }; }
2196fi
2197
2198ac_exeext=$ac_cv_exeext
2199echo "$as_me:$LINENO: result: $ac_file" >&5
2200echo "${ECHO_T}$ac_file" >&6
2201
2202# Check the compiler produces executables we can run.  If not, either
2203# the compiler is broken, or we cross compile.
2204echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2205echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2206# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2207# If not cross compiling, check that we can run a simple program.
2208if test "$cross_compiling" != yes; then
2209  if { ac_try='./$ac_file'
2210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211  (eval $ac_try) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; }; then
2215    cross_compiling=no
2216  else
2217    if test "$cross_compiling" = maybe; then
2218	cross_compiling=yes
2219    else
2220	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221If you meant to cross compile, use \`--host'.
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: cannot run C compiled programs.
2224If you meant to cross compile, use \`--host'.
2225See \`config.log' for more details." >&2;}
2226   { (exit 1); exit 1; }; }
2227    fi
2228  fi
2229fi
2230echo "$as_me:$LINENO: result: yes" >&5
2231echo "${ECHO_T}yes" >&6
2232
2233rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234ac_clean_files=$ac_clean_files_save
2235# Check the compiler produces executables we can run.  If not, either
2236# the compiler is broken, or we cross compile.
2237echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2239echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240echo "${ECHO_T}$cross_compiling" >&6
2241
2242echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2245  (eval $ac_link) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; then
2249  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2250# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2251# work properly (i.e., refer to `conftest.exe'), while it won't with
2252# `rm'.
2253for ac_file in conftest.exe conftest conftest.*; do
2254  test -f "$ac_file" || continue
2255  case $ac_file in
2256    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2257    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258	  export ac_cv_exeext
2259	  break;;
2260    * ) break;;
2261  esac
2262done
2263else
2264  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2265See \`config.log' for more details." >&5
2266echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2267See \`config.log' for more details." >&2;}
2268   { (exit 1); exit 1; }; }
2269fi
2270
2271rm -f conftest$ac_cv_exeext
2272echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2273echo "${ECHO_T}$ac_cv_exeext" >&6
2274
2275rm -f conftest.$ac_ext
2276EXEEXT=$ac_cv_exeext
2277ac_exeext=$EXEEXT
2278echo "$as_me:$LINENO: checking for suffix of object files" >&5
2279echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2280if test "${ac_cv_objext+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.o conftest.obj
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; then
2304  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305  case $ac_file in
2306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2308       break;;
2309  esac
2310done
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316See \`config.log' for more details." >&5
2317echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318See \`config.log' for more details." >&2;}
2319   { (exit 1); exit 1; }; }
2320fi
2321
2322rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325echo "${ECHO_T}$ac_cv_objext" >&6
2326OBJEXT=$ac_cv_objext
2327ac_objext=$OBJEXT
2328echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343#ifndef __GNUC__
2344       choke me
2345#endif
2346
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351rm -f conftest.$ac_objext
2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353  (eval $ac_compile) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } &&
2360	 { ac_try='test -z "$ac_c_werror_flag"
2361			 || test ! -s conftest.err'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; } &&
2367	 { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  ac_compiler_gnu=yes
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378ac_compiler_gnu=no
2379fi
2380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386GCC=`test $ac_compiler_gnu = yes && echo yes`
2387ac_test_CFLAGS=${CFLAGS+set}
2388ac_save_CFLAGS=$CFLAGS
2389CFLAGS="-g"
2390echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392if test "${ac_cv_prog_cc_g+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h.  */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h.  */
2401
2402int
2403main ()
2404{
2405
2406  ;
2407  return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412  (eval $ac_compile) 2>conftest.er1
2413  ac_status=$?
2414  grep -v '^ *+' conftest.er1 >conftest.err
2415  rm -f conftest.er1
2416  cat conftest.err >&5
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419	 { ac_try='test -z "$ac_c_werror_flag"
2420			 || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426	 { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  ac_cv_prog_cc_g=yes
2433else
2434  echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437ac_cv_prog_cc_g=no
2438fi
2439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440fi
2441echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2442echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2443if test "$ac_test_CFLAGS" = set; then
2444  CFLAGS=$ac_save_CFLAGS
2445elif test $ac_cv_prog_cc_g = yes; then
2446  if test "$GCC" = yes; then
2447    CFLAGS="-g -O2"
2448  else
2449    CFLAGS="-g"
2450  fi
2451else
2452  if test "$GCC" = yes; then
2453    CFLAGS="-O2"
2454  else
2455    CFLAGS=
2456  fi
2457fi
2458echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2459echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2460if test "${ac_cv_prog_cc_stdc+set}" = set; then
2461  echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463  ac_cv_prog_cc_stdc=no
2464ac_save_CC=$CC
2465cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h.  */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h.  */
2471#include <stdarg.h>
2472#include <stdio.h>
2473#include <sys/types.h>
2474#include <sys/stat.h>
2475/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2476struct buf { int x; };
2477FILE * (*rcsopen) (struct buf *, struct stat *, int);
2478static char *e (p, i)
2479     char **p;
2480     int i;
2481{
2482  return p[i];
2483}
2484static char *f (char * (*g) (char **, int), char **p, ...)
2485{
2486  char *s;
2487  va_list v;
2488  va_start (v,p);
2489  s = g (p, va_arg (v,int));
2490  va_end (v);
2491  return s;
2492}
2493
2494/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2495   function prototypes and stuff, but not '\xHH' hex character constants.
2496   These don't provoke an error unfortunately, instead are silently treated
2497   as 'x'.  The following induces an error, until -std1 is added to get
2498   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2499   array size at least.  It's necessary to write '\x00'==0 to get something
2500   that's true only with -std1.  */
2501int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2502
2503int test (int i, double x);
2504struct s1 {int (*f) (int a);};
2505struct s2 {int (*f) (double a);};
2506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2507int argc;
2508char **argv;
2509int
2510main ()
2511{
2512return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2513  ;
2514  return 0;
2515}
2516_ACEOF
2517# Don't try gcc -ansi; that turns off useful extensions and
2518# breaks some systems' header files.
2519# AIX			-qlanglvl=ansi
2520# Ultrix and OSF/1	-std1
2521# HP-UX 10.20 and later	-Ae
2522# HP-UX older versions	-Aa -D_HPUX_SOURCE
2523# SVR4			-Xc -D__EXTENSIONS__
2524for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525do
2526  CC="$ac_save_CC $ac_arg"
2527  rm -f conftest.$ac_objext
2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529  (eval $ac_compile) 2>conftest.er1
2530  ac_status=$?
2531  grep -v '^ *+' conftest.er1 >conftest.err
2532  rm -f conftest.er1
2533  cat conftest.err >&5
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); } &&
2536	 { ac_try='test -z "$ac_c_werror_flag"
2537			 || test ! -s conftest.err'
2538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539  (eval $ac_try) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }; } &&
2543	 { ac_try='test -s conftest.$ac_objext'
2544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545  (eval $ac_try) 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; }; then
2549  ac_cv_prog_cc_stdc=$ac_arg
2550break
2551else
2552  echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555fi
2556rm -f conftest.err conftest.$ac_objext
2557done
2558rm -f conftest.$ac_ext conftest.$ac_objext
2559CC=$ac_save_CC
2560
2561fi
2562
2563case "x$ac_cv_prog_cc_stdc" in
2564  x|xno)
2565    echo "$as_me:$LINENO: result: none needed" >&5
2566echo "${ECHO_T}none needed" >&6 ;;
2567  *)
2568    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2569echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2570    CC="$CC $ac_cv_prog_cc_stdc" ;;
2571esac
2572
2573# Some people use a C++ compiler to compile C.  Since we use `exit',
2574# in C++ we need to declare it.  In case someone uses the same compiler
2575# for both compiling C and C++ we need to have the C++ compiler decide
2576# the declaration of exit, since it's the most demanding environment.
2577cat >conftest.$ac_ext <<_ACEOF
2578#ifndef __cplusplus
2579  choke me
2580#endif
2581_ACEOF
2582rm -f conftest.$ac_objext
2583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584  (eval $ac_compile) 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } &&
2591	 { ac_try='test -z "$ac_c_werror_flag"
2592			 || test ! -s conftest.err'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; } &&
2598	 { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  for ac_declaration in \
2605   '' \
2606   'extern "C" void std::exit (int) throw (); using std::exit;' \
2607   'extern "C" void std::exit (int); using std::exit;' \
2608   'extern "C" void exit (int) throw ();' \
2609   'extern "C" void exit (int);' \
2610   'void exit (int);'
2611do
2612  cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h.  */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h.  */
2618$ac_declaration
2619#include <stdlib.h>
2620int
2621main ()
2622{
2623exit (42);
2624  ;
2625  return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637	 { ac_try='test -z "$ac_c_werror_flag"
2638			 || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644	 { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  :
2651else
2652  echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655continue
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664$ac_declaration
2665int
2666main ()
2667{
2668exit (42);
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673rm -f conftest.$ac_objext
2674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675  (eval $ac_compile) 2>conftest.er1
2676  ac_status=$?
2677  grep -v '^ *+' conftest.er1 >conftest.err
2678  rm -f conftest.er1
2679  cat conftest.err >&5
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); } &&
2682	 { ac_try='test -z "$ac_c_werror_flag"
2683			 || test ! -s conftest.err'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; } &&
2689	 { ac_try='test -s conftest.$ac_objext'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; }; then
2695  break
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702done
2703rm -f conftest*
2704if test -n "$ac_declaration"; then
2705  echo '#ifdef __cplusplus' >>confdefs.h
2706  echo $ac_declaration      >>confdefs.h
2707  echo '#endif'             >>confdefs.h
2708fi
2709
2710else
2711  echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721DEPDIR="${am__leading_dot}deps"
2722
2723          ac_config_commands="$ac_config_commands depfiles"
2724
2725
2726am_make=${MAKE-make}
2727cat > confinc << 'END'
2728am__doit:
2729	@echo done
2730.PHONY: am__doit
2731END
2732# If we don't find an include directive, just comment out the code.
2733echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2734echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2735am__include="#"
2736am__quote=
2737_am_result=none
2738# First try GNU make style include.
2739echo "include confinc" > confmf
2740# We grep out `Entering directory' and `Leaving directory'
2741# messages which can occur if `w' ends up in MAKEFLAGS.
2742# In particular we don't look at `^make:' because GNU make might
2743# be invoked under some other name (usually "gmake"), in which
2744# case it prints its new name instead of `make'.
2745if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2746   am__include=include
2747   am__quote=
2748   _am_result=GNU
2749fi
2750# Now try BSD make style include.
2751if test "$am__include" = "#"; then
2752   echo '.include "confinc"' > confmf
2753   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2754      am__include=.include
2755      am__quote="\""
2756      _am_result=BSD
2757   fi
2758fi
2759
2760
2761echo "$as_me:$LINENO: result: $_am_result" >&5
2762echo "${ECHO_T}$_am_result" >&6
2763rm -f confinc confmf
2764
2765# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2766if test "${enable_dependency_tracking+set}" = set; then
2767  enableval="$enable_dependency_tracking"
2768
2769fi;
2770if test "x$enable_dependency_tracking" != xno; then
2771  am_depcomp="$ac_aux_dir/depcomp"
2772  AMDEPBACKSLASH='\'
2773fi
2774
2775
2776if test "x$enable_dependency_tracking" != xno; then
2777  AMDEP_TRUE=
2778  AMDEP_FALSE='#'
2779else
2780  AMDEP_TRUE='#'
2781  AMDEP_FALSE=
2782fi
2783
2784
2785
2786
2787depcc="$CC"   am_compiler_list=
2788
2789echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2790echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2791if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2792  echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
2794  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2795  # We make a subdir and do the tests there.  Otherwise we can end up
2796  # making bogus files that we don't know about and never remove.  For
2797  # instance it was reported that on HP-UX the gcc test will end up
2798  # making a dummy file named `D' -- because `-MD' means `put the output
2799  # in D'.
2800  mkdir conftest.dir
2801  # Copy depcomp to subdir because otherwise we won't find it if we're
2802  # using a relative directory.
2803  cp "$am_depcomp" conftest.dir
2804  cd conftest.dir
2805  # We will build objects and dependencies in a subdirectory because
2806  # it helps to detect inapplicable dependency modes.  For instance
2807  # both Tru64's cc and ICC support -MD to output dependencies as a
2808  # side effect of compilation, but ICC will put the dependencies in
2809  # the current directory while Tru64 will put them in the object
2810  # directory.
2811  mkdir sub
2812
2813  am_cv_CC_dependencies_compiler_type=none
2814  if test "$am_compiler_list" = ""; then
2815     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2816  fi
2817  for depmode in $am_compiler_list; do
2818    # Setup a source with many dependencies, because some compilers
2819    # like to wrap large dependency lists on column 80 (with \), and
2820    # we should not choose a depcomp mode which is confused by this.
2821    #
2822    # We need to recreate these files for each test, as the compiler may
2823    # overwrite some of them when testing with obscure command lines.
2824    # This happens at least with the AIX C compiler.
2825    : > sub/conftest.c
2826    for i in 1 2 3 4 5 6; do
2827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2828      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2829      # Solaris 8's {/usr,}/bin/sh.
2830      touch sub/conftst$i.h
2831    done
2832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2833
2834    case $depmode in
2835    nosideeffect)
2836      # after this tag, mechanisms are not by side-effect, so they'll
2837      # only be used when explicitly requested
2838      if test "x$enable_dependency_tracking" = xyes; then
2839	continue
2840      else
2841	break
2842      fi
2843      ;;
2844    none) break ;;
2845    esac
2846    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2847    # mode.  It turns out that the SunPro C++ compiler does not properly
2848    # handle `-M -o', and we need to detect this.
2849    if depmode=$depmode \
2850       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2851       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2852       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2853         >/dev/null 2>conftest.err &&
2854       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2855       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2856       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2857      # icc doesn't choke on unknown options, it will just issue warnings
2858      # or remarks (even with -Werror).  So we grep stderr for any message
2859      # that says an option was ignored or not supported.
2860      # When given -MP, icc 7.0 and 7.1 complain thusly:
2861      #   icc: Command line warning: ignoring option '-M'; no argument required
2862      # The diagnosis changed in icc 8.0:
2863      #   icc: Command line remark: option '-MP' not supported
2864      if (grep 'ignoring option' conftest.err ||
2865          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2866        am_cv_CC_dependencies_compiler_type=$depmode
2867        break
2868      fi
2869    fi
2870  done
2871
2872  cd ..
2873  rm -rf conftest.dir
2874else
2875  am_cv_CC_dependencies_compiler_type=none
2876fi
2877
2878fi
2879echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2880echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2882
2883
2884
2885if
2886  test "x$enable_dependency_tracking" != xno \
2887  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2888  am__fastdepCC_TRUE=
2889  am__fastdepCC_FALSE='#'
2890else
2891  am__fastdepCC_TRUE='#'
2892  am__fastdepCC_FALSE=
2893fi
2894
2895
2896# Find a good install program.  We prefer a C program (faster),
2897# so one script is as good as another.  But avoid the broken or
2898# incompatible versions:
2899# SysV /etc/install, /usr/sbin/install
2900# SunOS /usr/etc/install
2901# IRIX /sbin/install
2902# AIX /bin/install
2903# AmigaOS /C/install, which installs bootblocks on floppy discs
2904# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2905# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2906# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2907# OS/2's system install, which has a completely different semantic
2908# ./install, which can be erroneously created by make from ./install.sh.
2909echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2910echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2911if test -z "$INSTALL"; then
2912if test "${ac_cv_path_install+set}" = set; then
2913  echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920  # Account for people who put trailing slashes in PATH elements.
2921case $as_dir/ in
2922  ./ | .// | /cC/* | \
2923  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2924  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2925  /usr/ucb/* ) ;;
2926  *)
2927    # OSF1 and SCO ODT 3.0 have their own names for install.
2928    # Don't use installbsd from OSF since it installs stuff as root
2929    # by default.
2930    for ac_prog in ginstall scoinst install; do
2931      for ac_exec_ext in '' $ac_executable_extensions; do
2932	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2933	  if test $ac_prog = install &&
2934	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2935	    # AIX install.  It has an incompatible calling convention.
2936	    :
2937	  elif test $ac_prog = install &&
2938	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2939	    # program-specific install script used by HP pwplus--don't use.
2940	    :
2941	  else
2942	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2943	    break 3
2944	  fi
2945	fi
2946      done
2947    done
2948    ;;
2949esac
2950done
2951
2952
2953fi
2954  if test "${ac_cv_path_install+set}" = set; then
2955    INSTALL=$ac_cv_path_install
2956  else
2957    # As a last resort, use the slow shell script.  We don't cache a
2958    # path for INSTALL within a source directory, because that will
2959    # break other packages using the cache if that directory is
2960    # removed, or if the path is relative.
2961    INSTALL=$ac_install_sh
2962  fi
2963fi
2964echo "$as_me:$LINENO: result: $INSTALL" >&5
2965echo "${ECHO_T}$INSTALL" >&6
2966
2967# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968# It thinks the first close brace ends the variable substitution.
2969test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970
2971test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972
2973test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2974
2975
2976
2977ac_ext=c
2978ac_cpp='$CPP $CPPFLAGS'
2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2983echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2984# On Suns, sometimes $CPP names a directory.
2985if test -n "$CPP" && test -d "$CPP"; then
2986  CPP=
2987fi
2988if test -z "$CPP"; then
2989  if test "${ac_cv_prog_CPP+set}" = set; then
2990  echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992      # Double quotes because CPP needs to be expanded
2993    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2994    do
2995      ac_preproc_ok=false
2996for ac_c_preproc_warn_flag in '' yes
2997do
2998  # Use a header file that comes with gcc, so configuring glibc
2999  # with a fresh cross-compiler works.
3000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001  # <limits.h> exists even on freestanding compilers.
3002  # On the NeXT, cc -E runs the code through the compiler's parser,
3003  # not just through cpp. "Syntax error" is here to catch this case.
3004  cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010#ifdef __STDC__
3011# include <limits.h>
3012#else
3013# include <assert.h>
3014#endif
3015		     Syntax error
3016_ACEOF
3017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } >/dev/null; then
3025  if test -s conftest.err; then
3026    ac_cpp_err=$ac_c_preproc_warn_flag
3027    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028  else
3029    ac_cpp_err=
3030  fi
3031else
3032  ac_cpp_err=yes
3033fi
3034if test -z "$ac_cpp_err"; then
3035  :
3036else
3037  echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040  # Broken: fails on valid input.
3041continue
3042fi
3043rm -f conftest.err conftest.$ac_ext
3044
3045  # OK, works on sane cases.  Now check whether non-existent headers
3046  # can be detected and how.
3047  cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h.  */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h.  */
3053#include <ac_nonexistent.h>
3054_ACEOF
3055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } >/dev/null; then
3063  if test -s conftest.err; then
3064    ac_cpp_err=$ac_c_preproc_warn_flag
3065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066  else
3067    ac_cpp_err=
3068  fi
3069else
3070  ac_cpp_err=yes
3071fi
3072if test -z "$ac_cpp_err"; then
3073  # Broken: success on invalid input.
3074continue
3075else
3076  echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079  # Passes both tests.
3080ac_preproc_ok=:
3081break
3082fi
3083rm -f conftest.err conftest.$ac_ext
3084
3085done
3086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087rm -f conftest.err conftest.$ac_ext
3088if $ac_preproc_ok; then
3089  break
3090fi
3091
3092    done
3093    ac_cv_prog_CPP=$CPP
3094
3095fi
3096  CPP=$ac_cv_prog_CPP
3097else
3098  ac_cv_prog_CPP=$CPP
3099fi
3100echo "$as_me:$LINENO: result: $CPP" >&5
3101echo "${ECHO_T}$CPP" >&6
3102ac_preproc_ok=false
3103for ac_c_preproc_warn_flag in '' yes
3104do
3105  # Use a header file that comes with gcc, so configuring glibc
3106  # with a fresh cross-compiler works.
3107  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108  # <limits.h> exists even on freestanding compilers.
3109  # On the NeXT, cc -E runs the code through the compiler's parser,
3110  # not just through cpp. "Syntax error" is here to catch this case.
3111  cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h.  */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h.  */
3117#ifdef __STDC__
3118# include <limits.h>
3119#else
3120# include <assert.h>
3121#endif
3122		     Syntax error
3123_ACEOF
3124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } >/dev/null; then
3132  if test -s conftest.err; then
3133    ac_cpp_err=$ac_c_preproc_warn_flag
3134    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135  else
3136    ac_cpp_err=
3137  fi
3138else
3139  ac_cpp_err=yes
3140fi
3141if test -z "$ac_cpp_err"; then
3142  :
3143else
3144  echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147  # Broken: fails on valid input.
3148continue
3149fi
3150rm -f conftest.err conftest.$ac_ext
3151
3152  # OK, works on sane cases.  Now check whether non-existent headers
3153  # can be detected and how.
3154  cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h.  */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h.  */
3160#include <ac_nonexistent.h>
3161_ACEOF
3162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164  ac_status=$?
3165  grep -v '^ *+' conftest.er1 >conftest.err
3166  rm -f conftest.er1
3167  cat conftest.err >&5
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); } >/dev/null; then
3170  if test -s conftest.err; then
3171    ac_cpp_err=$ac_c_preproc_warn_flag
3172    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173  else
3174    ac_cpp_err=
3175  fi
3176else
3177  ac_cpp_err=yes
3178fi
3179if test -z "$ac_cpp_err"; then
3180  # Broken: success on invalid input.
3181continue
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186  # Passes both tests.
3187ac_preproc_ok=:
3188break
3189fi
3190rm -f conftest.err conftest.$ac_ext
3191
3192done
3193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194rm -f conftest.err conftest.$ac_ext
3195if $ac_preproc_ok; then
3196  :
3197else
3198  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3199See \`config.log' for more details." >&5
3200echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3201See \`config.log' for more details." >&2;}
3202   { (exit 1); exit 1; }; }
3203fi
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212echo "$as_me:$LINENO: checking for egrep" >&5
3213echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3214if test "${ac_cv_prog_egrep+set}" = set; then
3215  echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3218    then ac_cv_prog_egrep='grep -E'
3219    else ac_cv_prog_egrep='egrep'
3220    fi
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3223echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3224 EGREP=$ac_cv_prog_egrep
3225
3226
3227echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3228echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3229if test "${ac_cv_header_stdc+set}" = set; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232  cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h.  */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h.  */
3238#include <stdlib.h>
3239#include <stdarg.h>
3240#include <string.h>
3241#include <float.h>
3242
3243int
3244main ()
3245{
3246
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext
3252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253  (eval $ac_compile) 2>conftest.er1
3254  ac_status=$?
3255  grep -v '^ *+' conftest.er1 >conftest.err
3256  rm -f conftest.er1
3257  cat conftest.err >&5
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); } &&
3260	 { ac_try='test -z "$ac_c_werror_flag"
3261			 || test ! -s conftest.err'
3262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263  (eval $ac_try) 2>&5
3264  ac_status=$?
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); }; } &&
3267	 { ac_try='test -s conftest.$ac_objext'
3268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269  (eval $ac_try) 2>&5
3270  ac_status=$?
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); }; }; then
3273  ac_cv_header_stdc=yes
3274else
3275  echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278ac_cv_header_stdc=no
3279fi
3280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281
3282if test $ac_cv_header_stdc = yes; then
3283  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284  cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h.  */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h.  */
3290#include <string.h>
3291
3292_ACEOF
3293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294  $EGREP "memchr" >/dev/null 2>&1; then
3295  :
3296else
3297  ac_cv_header_stdc=no
3298fi
3299rm -f conftest*
3300
3301fi
3302
3303if test $ac_cv_header_stdc = yes; then
3304  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311#include <stdlib.h>
3312
3313_ACEOF
3314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315  $EGREP "free" >/dev/null 2>&1; then
3316  :
3317else
3318  ac_cv_header_stdc=no
3319fi
3320rm -f conftest*
3321
3322fi
3323
3324if test $ac_cv_header_stdc = yes; then
3325  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3326  if test "$cross_compiling" = yes; then
3327  :
3328else
3329  cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335#include <ctype.h>
3336#if ((' ' & 0x0FF) == 0x020)
3337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339#else
3340# define ISLOWER(c) \
3341		   (('a' <= (c) && (c) <= 'i') \
3342		     || ('j' <= (c) && (c) <= 'r') \
3343		     || ('s' <= (c) && (c) <= 'z'))
3344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3345#endif
3346
3347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348int
3349main ()
3350{
3351  int i;
3352  for (i = 0; i < 256; i++)
3353    if (XOR (islower (i), ISLOWER (i))
3354	|| toupper (i) != TOUPPER (i))
3355      exit(2);
3356  exit (0);
3357}
3358_ACEOF
3359rm -f conftest$ac_exeext
3360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361  (eval $ac_link) 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  :
3371else
3372  echo "$as_me: program exited with status $ac_status" >&5
3373echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376( exit $ac_status )
3377ac_cv_header_stdc=no
3378fi
3379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3380fi
3381fi
3382fi
3383echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3384echo "${ECHO_T}$ac_cv_header_stdc" >&6
3385if test $ac_cv_header_stdc = yes; then
3386
3387cat >>confdefs.h <<\_ACEOF
3388#define STDC_HEADERS 1
3389_ACEOF
3390
3391fi
3392
3393
3394
3395
3396
3397
3398ac_header_dirent=no
3399for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3400  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3401echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3402echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3403if eval "test \"\${$as_ac_Header+set}\" = set"; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412#include <sys/types.h>
3413#include <$ac_hdr>
3414
3415int
3416main ()
3417{
3418if ((DIR *) 0)
3419return 0;
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426  (eval $ac_compile) 2>conftest.er1
3427  ac_status=$?
3428  grep -v '^ *+' conftest.er1 >conftest.err
3429  rm -f conftest.er1
3430  cat conftest.err >&5
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); } &&
3433	 { ac_try='test -z "$ac_c_werror_flag"
3434			 || test ! -s conftest.err'
3435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436  (eval $ac_try) 2>&5
3437  ac_status=$?
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); }; } &&
3440	 { ac_try='test -s conftest.$ac_objext'
3441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442  (eval $ac_try) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; }; then
3446  eval "$as_ac_Header=yes"
3447else
3448  echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458  cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3460_ACEOF
3461
3462ac_header_dirent=$ac_hdr; break
3463fi
3464
3465done
3466# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3467if test $ac_header_dirent = dirent.h; then
3468  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3469echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3470if test "${ac_cv_search_opendir+set}" = set; then
3471  echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473  ac_func_search_save_LIBS=$LIBS
3474ac_cv_search_opendir=no
3475cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481
3482/* Override any gcc2 internal prototype to avoid an error.  */
3483#ifdef __cplusplus
3484extern "C"
3485#endif
3486/* We use char because int might match the return type of a gcc2
3487   builtin and then its argument prototype would still apply.  */
3488char opendir ();
3489int
3490main ()
3491{
3492opendir ();
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497rm -f conftest.$ac_objext conftest$ac_exeext
3498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3499  (eval $ac_link) 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } &&
3506	 { ac_try='test -z "$ac_c_werror_flag"
3507			 || test ! -s conftest.err'
3508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509  (eval $ac_try) 2>&5
3510  ac_status=$?
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); }; } &&
3513	 { ac_try='test -s conftest$ac_exeext'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; }; then
3519  ac_cv_search_opendir="none required"
3520else
3521  echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524fi
3525rm -f conftest.err conftest.$ac_objext \
3526      conftest$ac_exeext conftest.$ac_ext
3527if test "$ac_cv_search_opendir" = no; then
3528  for ac_lib in dir; do
3529    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3530    cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536
3537/* Override any gcc2 internal prototype to avoid an error.  */
3538#ifdef __cplusplus
3539extern "C"
3540#endif
3541/* We use char because int might match the return type of a gcc2
3542   builtin and then its argument prototype would still apply.  */
3543char opendir ();
3544int
3545main ()
3546{
3547opendir ();
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554  (eval $ac_link) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561	 { ac_try='test -z "$ac_c_werror_flag"
3562			 || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568	 { ac_try='test -s conftest$ac_exeext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  ac_cv_search_opendir="-l$ac_lib"
3575break
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580fi
3581rm -f conftest.err conftest.$ac_objext \
3582      conftest$ac_exeext conftest.$ac_ext
3583  done
3584fi
3585LIBS=$ac_func_search_save_LIBS
3586fi
3587echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3588echo "${ECHO_T}$ac_cv_search_opendir" >&6
3589if test "$ac_cv_search_opendir" != no; then
3590  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3591
3592fi
3593
3594else
3595  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3596echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3597if test "${ac_cv_search_opendir+set}" = set; then
3598  echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600  ac_func_search_save_LIBS=$LIBS
3601ac_cv_search_opendir=no
3602cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608
3609/* Override any gcc2 internal prototype to avoid an error.  */
3610#ifdef __cplusplus
3611extern "C"
3612#endif
3613/* We use char because int might match the return type of a gcc2
3614   builtin and then its argument prototype would still apply.  */
3615char opendir ();
3616int
3617main ()
3618{
3619opendir ();
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext conftest$ac_exeext
3625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626  (eval $ac_link) 2>conftest.er1
3627  ac_status=$?
3628  grep -v '^ *+' conftest.er1 >conftest.err
3629  rm -f conftest.er1
3630  cat conftest.err >&5
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); } &&
3633	 { ac_try='test -z "$ac_c_werror_flag"
3634			 || test ! -s conftest.err'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; } &&
3640	 { ac_try='test -s conftest$ac_exeext'
3641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642  (eval $ac_try) 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }; }; then
3646  ac_cv_search_opendir="none required"
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651fi
3652rm -f conftest.err conftest.$ac_objext \
3653      conftest$ac_exeext conftest.$ac_ext
3654if test "$ac_cv_search_opendir" = no; then
3655  for ac_lib in x; do
3656    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3657    cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h.  */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h.  */
3663
3664/* Override any gcc2 internal prototype to avoid an error.  */
3665#ifdef __cplusplus
3666extern "C"
3667#endif
3668/* We use char because int might match the return type of a gcc2
3669   builtin and then its argument prototype would still apply.  */
3670char opendir ();
3671int
3672main ()
3673{
3674opendir ();
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext conftest$ac_exeext
3680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681  (eval $ac_link) 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } &&
3688	 { ac_try='test -z "$ac_c_werror_flag"
3689			 || test ! -s conftest.err'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; } &&
3695	 { ac_try='test -s conftest$ac_exeext'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; }; then
3701  ac_cv_search_opendir="-l$ac_lib"
3702break
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707fi
3708rm -f conftest.err conftest.$ac_objext \
3709      conftest$ac_exeext conftest.$ac_ext
3710  done
3711fi
3712LIBS=$ac_func_search_save_LIBS
3713fi
3714echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3715echo "${ECHO_T}$ac_cv_search_opendir" >&6
3716if test "$ac_cv_search_opendir" != no; then
3717  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3718
3719fi
3720
3721fi
3722
3723echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3724echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3725if test "${ac_cv_header_sys_wait_h+set}" = set; then
3726  echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728  cat >conftest.$ac_ext <<_ACEOF
3729/* confdefs.h.  */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h.  */
3734#include <sys/types.h>
3735#include <sys/wait.h>
3736#ifndef WEXITSTATUS
3737# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3738#endif
3739#ifndef WIFEXITED
3740# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3741#endif
3742
3743int
3744main ()
3745{
3746  int s;
3747  wait (&s);
3748  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753rm -f conftest.$ac_objext
3754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755  (eval $ac_compile) 2>conftest.er1
3756  ac_status=$?
3757  grep -v '^ *+' conftest.er1 >conftest.err
3758  rm -f conftest.er1
3759  cat conftest.err >&5
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); } &&
3762	 { ac_try='test -z "$ac_c_werror_flag"
3763			 || test ! -s conftest.err'
3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765  (eval $ac_try) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; } &&
3769	 { ac_try='test -s conftest.$ac_objext'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; }; then
3775  ac_cv_header_sys_wait_h=yes
3776else
3777  echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780ac_cv_header_sys_wait_h=no
3781fi
3782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3785echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3786if test $ac_cv_header_sys_wait_h = yes; then
3787
3788cat >>confdefs.h <<\_ACEOF
3789#define HAVE_SYS_WAIT_H 1
3790_ACEOF
3791
3792fi
3793
3794echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
3795echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
3796if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3797  echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799  cat >conftest.$ac_ext <<_ACEOF
3800/* confdefs.h.  */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h.  */
3805#include <sys/types.h>
3806#include <termios.h>
3807#ifdef TIOCGWINSZ
3808  yes
3809#endif
3810
3811_ACEOF
3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813  $EGREP "yes" >/dev/null 2>&1; then
3814  ac_cv_sys_tiocgwinsz_in_termios_h=yes
3815else
3816  ac_cv_sys_tiocgwinsz_in_termios_h=no
3817fi
3818rm -f conftest*
3819
3820fi
3821echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
3822echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
3823
3824if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3825  echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
3826echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
3827if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h.  */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h.  */
3836#include <sys/types.h>
3837#include <sys/ioctl.h>
3838#ifdef TIOCGWINSZ
3839  yes
3840#endif
3841
3842_ACEOF
3843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844  $EGREP "yes" >/dev/null 2>&1; then
3845  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
3846else
3847  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
3848fi
3849rm -f conftest*
3850
3851fi
3852echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
3853echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
3854
3855  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
3856
3857cat >>confdefs.h <<\_ACEOF
3858#define GWINSZ_IN_SYS_IOCTL 1
3859_ACEOF
3860
3861  fi
3862fi
3863
3864echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3865echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3866if test "${ac_cv_header_time+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869  cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h.  */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h.  */
3875#include <sys/types.h>
3876#include <sys/time.h>
3877#include <time.h>
3878
3879int
3880main ()
3881{
3882if ((struct tm *) 0)
3883return 0;
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext
3889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890  (eval $ac_compile) 2>conftest.er1
3891  ac_status=$?
3892  grep -v '^ *+' conftest.er1 >conftest.err
3893  rm -f conftest.er1
3894  cat conftest.err >&5
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } &&
3897	 { ac_try='test -z "$ac_c_werror_flag"
3898			 || test ! -s conftest.err'
3899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900  (eval $ac_try) 2>&5
3901  ac_status=$?
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); }; } &&
3904	 { ac_try='test -s conftest.$ac_objext'
3905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); }; }; then
3910  ac_cv_header_time=yes
3911else
3912  echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915ac_cv_header_time=no
3916fi
3917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3920echo "${ECHO_T}$ac_cv_header_time" >&6
3921if test $ac_cv_header_time = yes; then
3922
3923cat >>confdefs.h <<\_ACEOF
3924#define TIME_WITH_SYS_TIME 1
3925_ACEOF
3926
3927fi
3928
3929# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3940		  inttypes.h stdint.h unistd.h
3941do
3942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943echo "$as_me:$LINENO: checking for $ac_header" >&5
3944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3945if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954$ac_includes_default
3955
3956#include <$ac_header>
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960  (eval $ac_compile) 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } &&
3967	 { ac_try='test -z "$ac_c_werror_flag"
3968			 || test ! -s conftest.err'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974	 { ac_try='test -s conftest.$ac_objext'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; }; then
3980  eval "$as_ac_Header=yes"
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985eval "$as_ac_Header=no"
3986fi
3987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3991if test `eval echo '${'$as_ac_Header'}'` = yes; then
3992  cat >>confdefs.h <<_ACEOF
3993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3994_ACEOF
3995
3996fi
3997
3998done
3999
4000
4001
4002
4003
4004for ac_header in sys/time.h time.h sys/select.h
4005do
4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007if eval "test \"\${$as_ac_Header+set}\" = set"; then
4008  echo "$as_me:$LINENO: checking for $ac_header" >&5
4009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4010if eval "test \"\${$as_ac_Header+set}\" = set"; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012fi
4013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4015else
4016  # Is the header compilable?
4017echo "$as_me:$LINENO: checking $ac_header usability" >&5
4018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4019cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h.  */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h.  */
4025$ac_includes_default
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030  (eval $ac_compile) 2>conftest.er1
4031  ac_status=$?
4032  grep -v '^ *+' conftest.er1 >conftest.err
4033  rm -f conftest.er1
4034  cat conftest.err >&5
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); } &&
4037	 { ac_try='test -z "$ac_c_werror_flag"
4038			 || test ! -s conftest.err'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; } &&
4044	 { ac_try='test -s conftest.$ac_objext'
4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046  (eval $ac_try) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  ac_header_compiler=yes
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055ac_header_compiler=no
4056fi
4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4059echo "${ECHO_T}$ac_header_compiler" >&6
4060
4061# Is the header present?
4062echo "$as_me:$LINENO: checking $ac_header presence" >&5
4063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4064cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#include <$ac_header>
4071_ACEOF
4072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074  ac_status=$?
4075  grep -v '^ *+' conftest.er1 >conftest.err
4076  rm -f conftest.er1
4077  cat conftest.err >&5
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); } >/dev/null; then
4080  if test -s conftest.err; then
4081    ac_cpp_err=$ac_c_preproc_warn_flag
4082    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4083  else
4084    ac_cpp_err=
4085  fi
4086else
4087  ac_cpp_err=yes
4088fi
4089if test -z "$ac_cpp_err"; then
4090  ac_header_preproc=yes
4091else
4092  echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095  ac_header_preproc=no
4096fi
4097rm -f conftest.err conftest.$ac_ext
4098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4099echo "${ECHO_T}$ac_header_preproc" >&6
4100
4101# So?  What about this header?
4102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4103  yes:no: )
4104    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4106    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4108    ac_header_preproc=yes
4109    ;;
4110  no:yes:* )
4111    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4113    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4114echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4115    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4117    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4118echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4121    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4123    (
4124      cat <<\_ASBOX
4125## ----------------------------------- ##
4126## Report this to the viewglob lists.  ##
4127## ----------------------------------- ##
4128_ASBOX
4129    ) |
4130      sed "s/^/$as_me: WARNING:     /" >&2
4131    ;;
4132esac
4133echo "$as_me:$LINENO: checking for $ac_header" >&5
4134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4135if eval "test \"\${$as_ac_Header+set}\" = set"; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  eval "$as_ac_Header=\$ac_header_preproc"
4139fi
4140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4142
4143fi
4144if test `eval echo '${'$as_ac_Header'}'` = yes; then
4145  cat >>confdefs.h <<_ACEOF
4146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4147_ACEOF
4148
4149fi
4150
4151done
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167for ac_header in  \
4168	fnmatch.h  sys/un.h \
4169	fcntl.h    errno.h       stdlib.h      \
4170	string.h   sys/ioctl.h   termios.h     \
4171	unistd.h   stdlib.h      arpa/inet.h   \
4172	netdb.h    netinet/in.h  sys/socket.h
4173do
4174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176  echo "$as_me:$LINENO: checking for $ac_header" >&5
4177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180fi
4181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4183else
4184  # Is the header compilable?
4185echo "$as_me:$LINENO: checking $ac_header usability" >&5
4186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4187cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193$ac_includes_default
4194#include <$ac_header>
4195_ACEOF
4196rm -f conftest.$ac_objext
4197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198  (eval $ac_compile) 2>conftest.er1
4199  ac_status=$?
4200  grep -v '^ *+' conftest.er1 >conftest.err
4201  rm -f conftest.er1
4202  cat conftest.err >&5
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); } &&
4205	 { ac_try='test -z "$ac_c_werror_flag"
4206			 || test ! -s conftest.err'
4207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208  (eval $ac_try) 2>&5
4209  ac_status=$?
4210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211  (exit $ac_status); }; } &&
4212	 { ac_try='test -s conftest.$ac_objext'
4213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214  (eval $ac_try) 2>&5
4215  ac_status=$?
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }; }; then
4218  ac_header_compiler=yes
4219else
4220  echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223ac_header_compiler=no
4224fi
4225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4227echo "${ECHO_T}$ac_header_compiler" >&6
4228
4229# Is the header present?
4230echo "$as_me:$LINENO: checking $ac_header presence" >&5
4231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4232cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h.  */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h.  */
4238#include <$ac_header>
4239_ACEOF
4240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4242  ac_status=$?
4243  grep -v '^ *+' conftest.er1 >conftest.err
4244  rm -f conftest.er1
4245  cat conftest.err >&5
4246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247  (exit $ac_status); } >/dev/null; then
4248  if test -s conftest.err; then
4249    ac_cpp_err=$ac_c_preproc_warn_flag
4250    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4251  else
4252    ac_cpp_err=
4253  fi
4254else
4255  ac_cpp_err=yes
4256fi
4257if test -z "$ac_cpp_err"; then
4258  ac_header_preproc=yes
4259else
4260  echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263  ac_header_preproc=no
4264fi
4265rm -f conftest.err conftest.$ac_ext
4266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4267echo "${ECHO_T}$ac_header_preproc" >&6
4268
4269# So?  What about this header?
4270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4271  yes:no: )
4272    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4276    ac_header_preproc=yes
4277    ;;
4278  no:yes:* )
4279    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4281    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4282echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4283    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4285    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4286echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4289    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4291    (
4292      cat <<\_ASBOX
4293## ----------------------------------- ##
4294## Report this to the viewglob lists.  ##
4295## ----------------------------------- ##
4296_ASBOX
4297    ) |
4298      sed "s/^/$as_me: WARNING:     /" >&2
4299    ;;
4300esac
4301echo "$as_me:$LINENO: checking for $ac_header" >&5
4302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4303if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304  echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306  eval "$as_ac_Header=\$ac_header_preproc"
4307fi
4308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310
4311fi
4312if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313  cat >>confdefs.h <<_ACEOF
4314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315_ACEOF
4316
4317else
4318  { { echo "$as_me:$LINENO: error: Required header missing!" >&5
4319echo "$as_me: error: Required header missing!" >&2;}
4320   { (exit 1); exit 1; }; }
4321fi
4322
4323done
4324
4325
4326echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4327echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4328if test "${ac_cv_c_const+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h.  */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h.  */
4337
4338int
4339main ()
4340{
4341/* FIXME: Include the comments suggested by Paul. */
4342#ifndef __cplusplus
4343  /* Ultrix mips cc rejects this.  */
4344  typedef int charset[2];
4345  const charset x;
4346  /* SunOS 4.1.1 cc rejects this.  */
4347  char const *const *ccp;
4348  char **p;
4349  /* NEC SVR4.0.2 mips cc rejects this.  */
4350  struct point {int x, y;};
4351  static struct point const zero = {0,0};
4352  /* AIX XL C 1.02.0.0 rejects this.
4353     It does not let you subtract one const X* pointer from another in
4354     an arm of an if-expression whose if-part is not a constant
4355     expression */
4356  const char *g = "string";
4357  ccp = &g + (g ? g-g : 0);
4358  /* HPUX 7.0 cc rejects these. */
4359  ++ccp;
4360  p = (char**) ccp;
4361  ccp = (char const *const *) p;
4362  { /* SCO 3.2v4 cc rejects this.  */
4363    char *t;
4364    char const *s = 0 ? (char *) 0 : (char const *) 0;
4365
4366    *t++ = 0;
4367  }
4368  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4369    int x[] = {25, 17};
4370    const int *foo = &x[0];
4371    ++foo;
4372  }
4373  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4374    typedef const int *iptr;
4375    iptr p = 0;
4376    ++p;
4377  }
4378  { /* AIX XL C 1.02.0.0 rejects this saying
4379       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4380    struct s { int j; const int *ap[3]; };
4381    struct s *b; b->j = 5;
4382  }
4383  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4384    const int foo = 10;
4385  }
4386#endif
4387
4388  ;
4389  return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394  (eval $ac_compile) 2>conftest.er1
4395  ac_status=$?
4396  grep -v '^ *+' conftest.er1 >conftest.err
4397  rm -f conftest.er1
4398  cat conftest.err >&5
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); } &&
4401	 { ac_try='test -z "$ac_c_werror_flag"
4402			 || test ! -s conftest.err'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; } &&
4408	 { ac_try='test -s conftest.$ac_objext'
4409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410  (eval $ac_try) 2>&5
4411  ac_status=$?
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); }; }; then
4414  ac_cv_c_const=yes
4415else
4416  echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_c_const=no
4420fi
4421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4424echo "${ECHO_T}$ac_cv_c_const" >&6
4425if test $ac_cv_c_const = no; then
4426
4427cat >>confdefs.h <<\_ACEOF
4428#define const
4429_ACEOF
4430
4431fi
4432
4433echo "$as_me:$LINENO: checking for inline" >&5
4434echo $ECHO_N "checking for inline... $ECHO_C" >&6
4435if test "${ac_cv_c_inline+set}" = set; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438  ac_cv_c_inline=no
4439for ac_kw in inline __inline__ __inline; do
4440  cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h.  */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h.  */
4446#ifndef __cplusplus
4447typedef int foo_t;
4448static $ac_kw foo_t static_foo () {return 0; }
4449$ac_kw foo_t foo () {return 0; }
4450#endif
4451
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462	 { ac_try='test -z "$ac_c_werror_flag"
4463			 || test ! -s conftest.err'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; } &&
4469	 { ac_try='test -s conftest.$ac_objext'
4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471  (eval $ac_try) 2>&5
4472  ac_status=$?
4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); }; }; then
4475  ac_cv_c_inline=$ac_kw; break
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480fi
4481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482done
4483
4484fi
4485echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4486echo "${ECHO_T}$ac_cv_c_inline" >&6
4487
4488
4489case $ac_cv_c_inline in
4490  inline | yes) ;;
4491  *)
4492    case $ac_cv_c_inline in
4493      no) ac_val=;;
4494      *) ac_val=$ac_cv_c_inline;;
4495    esac
4496    cat >>confdefs.h <<_ACEOF
4497#ifndef __cplusplus
4498#define inline $ac_val
4499#endif
4500_ACEOF
4501    ;;
4502esac
4503
4504echo "$as_me:$LINENO: checking for size_t" >&5
4505echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4506if test "${ac_cv_type_size_t+set}" = set; then
4507  echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509  cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h.  */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h.  */
4515$ac_includes_default
4516int
4517main ()
4518{
4519if ((size_t *) 0)
4520  return 0;
4521if (sizeof (size_t))
4522  return 0;
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext
4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529  (eval $ac_compile) 2>conftest.er1
4530  ac_status=$?
4531  grep -v '^ *+' conftest.er1 >conftest.err
4532  rm -f conftest.er1
4533  cat conftest.err >&5
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); } &&
4536	 { ac_try='test -z "$ac_c_werror_flag"
4537			 || test ! -s conftest.err'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; } &&
4543	 { ac_try='test -s conftest.$ac_objext'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  ac_cv_type_size_t=yes
4550else
4551  echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554ac_cv_type_size_t=no
4555fi
4556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4557fi
4558echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4559echo "${ECHO_T}$ac_cv_type_size_t" >&6
4560if test $ac_cv_type_size_t = yes; then
4561  :
4562else
4563
4564cat >>confdefs.h <<_ACEOF
4565#define size_t unsigned
4566_ACEOF
4567
4568fi
4569
4570echo "$as_me:$LINENO: checking for mode_t" >&5
4571echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4572if test "${ac_cv_type_mode_t+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581$ac_includes_default
4582int
4583main ()
4584{
4585if ((mode_t *) 0)
4586  return 0;
4587if (sizeof (mode_t))
4588  return 0;
4589  ;
4590  return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595  (eval $ac_compile) 2>conftest.er1
4596  ac_status=$?
4597  grep -v '^ *+' conftest.er1 >conftest.err
4598  rm -f conftest.er1
4599  cat conftest.err >&5
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); } &&
4602	 { ac_try='test -z "$ac_c_werror_flag"
4603			 || test ! -s conftest.err'
4604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605  (eval $ac_try) 2>&5
4606  ac_status=$?
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); }; } &&
4609	 { ac_try='test -s conftest.$ac_objext'
4610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611  (eval $ac_try) 2>&5
4612  ac_status=$?
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); }; }; then
4615  ac_cv_type_mode_t=yes
4616else
4617  echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620ac_cv_type_mode_t=no
4621fi
4622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623fi
4624echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4625echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4626if test $ac_cv_type_mode_t = yes; then
4627  :
4628else
4629
4630cat >>confdefs.h <<_ACEOF
4631#define mode_t int
4632_ACEOF
4633
4634fi
4635
4636echo "$as_me:$LINENO: checking for pid_t" >&5
4637echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4638if test "${ac_cv_type_pid_t+set}" = set; then
4639  echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641  cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h.  */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h.  */
4647$ac_includes_default
4648int
4649main ()
4650{
4651if ((pid_t *) 0)
4652  return 0;
4653if (sizeof (pid_t))
4654  return 0;
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659rm -f conftest.$ac_objext
4660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661  (eval $ac_compile) 2>conftest.er1
4662  ac_status=$?
4663  grep -v '^ *+' conftest.er1 >conftest.err
4664  rm -f conftest.er1
4665  cat conftest.err >&5
4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); } &&
4668	 { ac_try='test -z "$ac_c_werror_flag"
4669			 || test ! -s conftest.err'
4670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671  (eval $ac_try) 2>&5
4672  ac_status=$?
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); }; } &&
4675	 { ac_try='test -s conftest.$ac_objext'
4676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677  (eval $ac_try) 2>&5
4678  ac_status=$?
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); }; }; then
4681  ac_cv_type_pid_t=yes
4682else
4683  echo "$as_me: failed program was:" >&5
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
4686ac_cv_type_pid_t=no
4687fi
4688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4691echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4692if test $ac_cv_type_pid_t = yes; then
4693  :
4694else
4695
4696cat >>confdefs.h <<_ACEOF
4697#define pid_t int
4698_ACEOF
4699
4700fi
4701
4702echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4703echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4704if test "${ac_cv_type_signal+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h.  */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h.  */
4713#include <sys/types.h>
4714#include <signal.h>
4715#ifdef signal
4716# undef signal
4717#endif
4718#ifdef __cplusplus
4719extern "C" void (*signal (int, void (*)(int)))(int);
4720#else
4721void (*signal ()) ();
4722#endif
4723
4724int
4725main ()
4726{
4727int i;
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732rm -f conftest.$ac_objext
4733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734  (eval $ac_compile) 2>conftest.er1
4735  ac_status=$?
4736  grep -v '^ *+' conftest.er1 >conftest.err
4737  rm -f conftest.er1
4738  cat conftest.err >&5
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); } &&
4741	 { ac_try='test -z "$ac_c_werror_flag"
4742			 || test ! -s conftest.err'
4743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744  (eval $ac_try) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); }; } &&
4748	 { ac_try='test -s conftest.$ac_objext'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; }; then
4754  ac_cv_type_signal=void
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759ac_cv_type_signal=int
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4764echo "${ECHO_T}$ac_cv_type_signal" >&6
4765
4766cat >>confdefs.h <<_ACEOF
4767#define RETSIGTYPE $ac_cv_type_signal
4768_ACEOF
4769
4770
4771echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4772echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4773if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776  cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h.  */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h.  */
4782$ac_includes_default
4783int
4784main ()
4785{
4786if ((ptrdiff_t *) 0)
4787  return 0;
4788if (sizeof (ptrdiff_t))
4789  return 0;
4790  ;
4791  return 0;
4792}
4793_ACEOF
4794rm -f conftest.$ac_objext
4795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796  (eval $ac_compile) 2>conftest.er1
4797  ac_status=$?
4798  grep -v '^ *+' conftest.er1 >conftest.err
4799  rm -f conftest.er1
4800  cat conftest.err >&5
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); } &&
4803	 { ac_try='test -z "$ac_c_werror_flag"
4804			 || test ! -s conftest.err'
4805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806  (eval $ac_try) 2>&5
4807  ac_status=$?
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); }; } &&
4810	 { ac_try='test -s conftest.$ac_objext'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; }; then
4816  ac_cv_type_ptrdiff_t=yes
4817else
4818  echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821ac_cv_type_ptrdiff_t=no
4822fi
4823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824fi
4825echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4826echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4827if test $ac_cv_type_ptrdiff_t = yes; then
4828
4829cat >>confdefs.h <<_ACEOF
4830#define HAVE_PTRDIFF_T 1
4831_ACEOF
4832
4833
4834fi
4835
4836
4837echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4838echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4839if test "${ac_cv_func_closedir_void+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  if test "$cross_compiling" = yes; then
4843  ac_cv_func_closedir_void=yes
4844else
4845  cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h.  */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h.  */
4851$ac_includes_default
4852#include <$ac_header_dirent>
4853#ifndef __cplusplus
4854int closedir ();
4855#endif
4856
4857int
4858main ()
4859{
4860exit (closedir (opendir (".")) != 0);
4861  ;
4862  return 0;
4863}
4864_ACEOF
4865rm -f conftest$ac_exeext
4866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867  (eval $ac_link) 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872  (eval $ac_try) 2>&5
4873  ac_status=$?
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); }; }; then
4876  ac_cv_func_closedir_void=no
4877else
4878  echo "$as_me: program exited with status $ac_status" >&5
4879echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882( exit $ac_status )
4883ac_cv_func_closedir_void=yes
4884fi
4885rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4886fi
4887fi
4888echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4889echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
4890if test $ac_cv_func_closedir_void = yes; then
4891
4892cat >>confdefs.h <<\_ACEOF
4893#define CLOSEDIR_VOID 1
4894_ACEOF
4895
4896fi
4897
4898if test $ac_cv_c_compiler_gnu = yes; then
4899    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4900echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4901if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4902  echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904    ac_pattern="Autoconf.*'x'"
4905  cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911#include <sgtty.h>
4912Autoconf TIOCGETP
4913_ACEOF
4914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4916  ac_cv_prog_gcc_traditional=yes
4917else
4918  ac_cv_prog_gcc_traditional=no
4919fi
4920rm -f conftest*
4921
4922
4923  if test $ac_cv_prog_gcc_traditional = no; then
4924    cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930#include <termio.h>
4931Autoconf TCGETA
4932_ACEOF
4933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4935  ac_cv_prog_gcc_traditional=yes
4936fi
4937rm -f conftest*
4938
4939  fi
4940fi
4941echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4942echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4943  if test $ac_cv_prog_gcc_traditional = yes; then
4944    CC="$CC -traditional"
4945  fi
4946fi
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964for ac_func in  \
4965 	stat     lstat \
4966	dup2     getcwd    memmove    \
4967	memset   pathconf  select     \
4968	strchr   setsid    socket     \
4969	bind     listen    accept     \
4970	connect  setsockopt
4971do
4972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4973echo "$as_me:$LINENO: checking for $ac_func" >&5
4974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4975if eval "test \"\${$as_ac_var+set}\" = set"; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978  cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h.  */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h.  */
4984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4985   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4986#define $ac_func innocuous_$ac_func
4987
4988/* System header to define __stub macros and hopefully few prototypes,
4989    which can conflict with char $ac_func (); below.
4990    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991    <limits.h> exists even on freestanding compilers.  */
4992
4993#ifdef __STDC__
4994# include <limits.h>
4995#else
4996# include <assert.h>
4997#endif
4998
4999#undef $ac_func
5000
5001/* Override any gcc2 internal prototype to avoid an error.  */
5002#ifdef __cplusplus
5003extern "C"
5004{
5005#endif
5006/* We use char because int might match the return type of a gcc2
5007   builtin and then its argument prototype would still apply.  */
5008char $ac_func ();
5009/* The GNU C library defines this for functions which it implements
5010    to always fail with ENOSYS.  Some functions are actually named
5011    something starting with __ and the normal name is an alias.  */
5012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5013choke me
5014#else
5015char (*f) () = $ac_func;
5016#endif
5017#ifdef __cplusplus
5018}
5019#endif
5020
5021int
5022main ()
5023{
5024return f != $ac_func;
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext conftest$ac_exeext
5030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031  (eval $ac_link) 2>conftest.er1
5032  ac_status=$?
5033  grep -v '^ *+' conftest.er1 >conftest.err
5034  rm -f conftest.er1
5035  cat conftest.err >&5
5036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037  (exit $ac_status); } &&
5038	 { ac_try='test -z "$ac_c_werror_flag"
5039			 || test ! -s conftest.err'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; } &&
5045	 { ac_try='test -s conftest$ac_exeext'
5046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047  (eval $ac_try) 2>&5
5048  ac_status=$?
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); }; }; then
5051  eval "$as_ac_var=yes"
5052else
5053  echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056eval "$as_ac_var=no"
5057fi
5058rm -f conftest.err conftest.$ac_objext \
5059      conftest$ac_exeext conftest.$ac_ext
5060fi
5061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5063if test `eval echo '${'$as_ac_var'}'` = yes; then
5064  cat >>confdefs.h <<_ACEOF
5065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5066_ACEOF
5067
5068else
5069  { { echo "$as_me:$LINENO: error: Required function missing!" >&5
5070echo "$as_me: error: Required function missing!" >&2;}
5071   { (exit 1); exit 1; }; }
5072fi
5073done
5074
5075
5076
5077for ac_func in getaddrinfo
5078do
5079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5080echo "$as_me:$LINENO: checking for $ac_func" >&5
5081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5082if eval "test \"\${$as_ac_var+set}\" = set"; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h.  */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h.  */
5091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5092   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5093#define $ac_func innocuous_$ac_func
5094
5095/* System header to define __stub macros and hopefully few prototypes,
5096    which can conflict with char $ac_func (); below.
5097    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098    <limits.h> exists even on freestanding compilers.  */
5099
5100#ifdef __STDC__
5101# include <limits.h>
5102#else
5103# include <assert.h>
5104#endif
5105
5106#undef $ac_func
5107
5108/* Override any gcc2 internal prototype to avoid an error.  */
5109#ifdef __cplusplus
5110extern "C"
5111{
5112#endif
5113/* We use char because int might match the return type of a gcc2
5114   builtin and then its argument prototype would still apply.  */
5115char $ac_func ();
5116/* The GNU C library defines this for functions which it implements
5117    to always fail with ENOSYS.  Some functions are actually named
5118    something starting with __ and the normal name is an alias.  */
5119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5120choke me
5121#else
5122char (*f) () = $ac_func;
5123#endif
5124#ifdef __cplusplus
5125}
5126#endif
5127
5128int
5129main ()
5130{
5131return f != $ac_func;
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136rm -f conftest.$ac_objext conftest$ac_exeext
5137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138  (eval $ac_link) 2>conftest.er1
5139  ac_status=$?
5140  grep -v '^ *+' conftest.er1 >conftest.err
5141  rm -f conftest.er1
5142  cat conftest.err >&5
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); } &&
5145	 { ac_try='test -z "$ac_c_werror_flag"
5146			 || test ! -s conftest.err'
5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148  (eval $ac_try) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; } &&
5152	 { ac_try='test -s conftest$ac_exeext'
5153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154  (eval $ac_try) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; }; then
5158  eval "$as_ac_var=yes"
5159else
5160  echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163eval "$as_ac_var=no"
5164fi
5165rm -f conftest.err conftest.$ac_objext \
5166      conftest$ac_exeext conftest.$ac_ext
5167fi
5168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5170if test `eval echo '${'$as_ac_var'}'` = yes; then
5171  cat >>confdefs.h <<_ACEOF
5172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5173_ACEOF
5174
5175else
5176
5177
5178for ac_func in gethostbyname inet_aton
5179do
5180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181echo "$as_me:$LINENO: checking for $ac_func" >&5
5182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_var+set}\" = set"; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  cat >conftest.$ac_ext <<_ACEOF
5187/* confdefs.h.  */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h.  */
5192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5194#define $ac_func innocuous_$ac_func
5195
5196/* System header to define __stub macros and hopefully few prototypes,
5197    which can conflict with char $ac_func (); below.
5198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5199    <limits.h> exists even on freestanding compilers.  */
5200
5201#ifdef __STDC__
5202# include <limits.h>
5203#else
5204# include <assert.h>
5205#endif
5206
5207#undef $ac_func
5208
5209/* Override any gcc2 internal prototype to avoid an error.  */
5210#ifdef __cplusplus
5211extern "C"
5212{
5213#endif
5214/* We use char because int might match the return type of a gcc2
5215   builtin and then its argument prototype would still apply.  */
5216char $ac_func ();
5217/* The GNU C library defines this for functions which it implements
5218    to always fail with ENOSYS.  Some functions are actually named
5219    something starting with __ and the normal name is an alias.  */
5220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221choke me
5222#else
5223char (*f) () = $ac_func;
5224#endif
5225#ifdef __cplusplus
5226}
5227#endif
5228
5229int
5230main ()
5231{
5232return f != $ac_func;
5233  ;
5234  return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239  (eval $ac_link) 2>conftest.er1
5240  ac_status=$?
5241  grep -v '^ *+' conftest.er1 >conftest.err
5242  rm -f conftest.er1
5243  cat conftest.err >&5
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); } &&
5246	 { ac_try='test -z "$ac_c_werror_flag"
5247			 || test ! -s conftest.err'
5248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249  (eval $ac_try) 2>&5
5250  ac_status=$?
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); }; } &&
5253	 { ac_try='test -s conftest$ac_exeext'
5254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255  (eval $ac_try) 2>&5
5256  ac_status=$?
5257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); }; }; then
5259  eval "$as_ac_var=yes"
5260else
5261  echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264eval "$as_ac_var=no"
5265fi
5266rm -f conftest.err conftest.$ac_objext \
5267      conftest$ac_exeext conftest.$ac_ext
5268fi
5269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5271if test `eval echo '${'$as_ac_var'}'` = yes; then
5272  cat >>confdefs.h <<_ACEOF
5273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274_ACEOF
5275
5276else
5277  { { echo "$as_me:$LINENO: error: Socket interface is incomplete!" >&5
5278echo "$as_me: error: Socket interface is incomplete!" >&2;}
5279   { (exit 1); exit 1; }; }
5280fi
5281done
5282
5283fi
5284done
5285
5286
5287
5288	echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5289echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5290if test "${ac_cv_search_gethostbyname+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  ac_func_search_save_LIBS=$LIBS
5294ac_cv_search_gethostbyname=no
5295cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h.  */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h.  */
5301
5302/* Override any gcc2 internal prototype to avoid an error.  */
5303#ifdef __cplusplus
5304extern "C"
5305#endif
5306/* We use char because int might match the return type of a gcc2
5307   builtin and then its argument prototype would still apply.  */
5308char gethostbyname ();
5309int
5310main ()
5311{
5312gethostbyname ();
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317rm -f conftest.$ac_objext conftest$ac_exeext
5318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319  (eval $ac_link) 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } &&
5326	 { ac_try='test -z "$ac_c_werror_flag"
5327			 || test ! -s conftest.err'
5328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329  (eval $ac_try) 2>&5
5330  ac_status=$?
5331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); }; } &&
5333	 { ac_try='test -s conftest$ac_exeext'
5334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335  (eval $ac_try) 2>&5
5336  ac_status=$?
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); }; }; then
5339  ac_cv_search_gethostbyname="none required"
5340else
5341  echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344fi
5345rm -f conftest.err conftest.$ac_objext \
5346      conftest$ac_exeext conftest.$ac_ext
5347if test "$ac_cv_search_gethostbyname" = no; then
5348  for ac_lib in nsl; do
5349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5350    cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356
5357/* Override any gcc2 internal prototype to avoid an error.  */
5358#ifdef __cplusplus
5359extern "C"
5360#endif
5361/* We use char because int might match the return type of a gcc2
5362   builtin and then its argument prototype would still apply.  */
5363char gethostbyname ();
5364int
5365main ()
5366{
5367gethostbyname ();
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext conftest$ac_exeext
5373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374  (eval $ac_link) 2>conftest.er1
5375  ac_status=$?
5376  grep -v '^ *+' conftest.er1 >conftest.err
5377  rm -f conftest.er1
5378  cat conftest.err >&5
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } &&
5381	 { ac_try='test -z "$ac_c_werror_flag"
5382			 || test ! -s conftest.err'
5383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384  (eval $ac_try) 2>&5
5385  ac_status=$?
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); }; } &&
5388	 { ac_try='test -s conftest$ac_exeext'
5389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390  (eval $ac_try) 2>&5
5391  ac_status=$?
5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393  (exit $ac_status); }; }; then
5394  ac_cv_search_gethostbyname="-l$ac_lib"
5395break
5396else
5397  echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400fi
5401rm -f conftest.err conftest.$ac_objext \
5402      conftest$ac_exeext conftest.$ac_ext
5403  done
5404fi
5405LIBS=$ac_func_search_save_LIBS
5406fi
5407echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5408echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5409if test "$ac_cv_search_gethostbyname" != no; then
5410  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5411
5412fi
5413
5414	echo "$as_me:$LINENO: checking for library containing socket" >&5
5415echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5416if test "${ac_cv_search_socket+set}" = set; then
5417  echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419  ac_func_search_save_LIBS=$LIBS
5420ac_cv_search_socket=no
5421cat >conftest.$ac_ext <<_ACEOF
5422/* confdefs.h.  */
5423_ACEOF
5424cat confdefs.h >>conftest.$ac_ext
5425cat >>conftest.$ac_ext <<_ACEOF
5426/* end confdefs.h.  */
5427
5428/* Override any gcc2 internal prototype to avoid an error.  */
5429#ifdef __cplusplus
5430extern "C"
5431#endif
5432/* We use char because int might match the return type of a gcc2
5433   builtin and then its argument prototype would still apply.  */
5434char socket ();
5435int
5436main ()
5437{
5438socket ();
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443rm -f conftest.$ac_objext conftest$ac_exeext
5444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445  (eval $ac_link) 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } &&
5452	 { ac_try='test -z "$ac_c_werror_flag"
5453			 || test ! -s conftest.err'
5454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455  (eval $ac_try) 2>&5
5456  ac_status=$?
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }; } &&
5459	 { ac_try='test -s conftest$ac_exeext'
5460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461  (eval $ac_try) 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }; }; then
5465  ac_cv_search_socket="none required"
5466else
5467  echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470fi
5471rm -f conftest.err conftest.$ac_objext \
5472      conftest$ac_exeext conftest.$ac_ext
5473if test "$ac_cv_search_socket" = no; then
5474  for ac_lib in socket; do
5475    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5476    cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482
5483/* Override any gcc2 internal prototype to avoid an error.  */
5484#ifdef __cplusplus
5485extern "C"
5486#endif
5487/* We use char because int might match the return type of a gcc2
5488   builtin and then its argument prototype would still apply.  */
5489char socket ();
5490int
5491main ()
5492{
5493socket ();
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498rm -f conftest.$ac_objext conftest$ac_exeext
5499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500  (eval $ac_link) 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } &&
5507	 { ac_try='test -z "$ac_c_werror_flag"
5508			 || test ! -s conftest.err'
5509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510  (eval $ac_try) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); }; } &&
5514	 { ac_try='test -s conftest$ac_exeext'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; }; then
5520  ac_cv_search_socket="-l$ac_lib"
5521break
5522else
5523  echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526fi
5527rm -f conftest.err conftest.$ac_objext \
5528      conftest$ac_exeext conftest.$ac_ext
5529  done
5530fi
5531LIBS=$ac_func_search_save_LIBS
5532fi
5533echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5534echo "${ECHO_T}$ac_cv_search_socket" >&6
5535if test "$ac_cv_search_socket" != no; then
5536  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5537
5538else
5539
5540		echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5541echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5542if test "${ac_cv_lib_socket_socket+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  ac_check_lib_save_LIBS=$LIBS
5546LIBS="-lsocket -lnsl $LIBS"
5547cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h.  */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h.  */
5553
5554/* Override any gcc2 internal prototype to avoid an error.  */
5555#ifdef __cplusplus
5556extern "C"
5557#endif
5558/* We use char because int might match the return type of a gcc2
5559   builtin and then its argument prototype would still apply.  */
5560char socket ();
5561int
5562main ()
5563{
5564socket ();
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext conftest$ac_exeext
5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571  (eval $ac_link) 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } &&
5578	 { ac_try='test -z "$ac_c_werror_flag"
5579			 || test ! -s conftest.err'
5580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581  (eval $ac_try) 2>&5
5582  ac_status=$?
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); }; } &&
5585	 { ac_try='test -s conftest$ac_exeext'
5586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587  (eval $ac_try) 2>&5
5588  ac_status=$?
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); }; }; then
5591  ac_cv_lib_socket_socket=yes
5592else
5593  echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596ac_cv_lib_socket_socket=no
5597fi
5598rm -f conftest.err conftest.$ac_objext \
5599      conftest$ac_exeext conftest.$ac_ext
5600LIBS=$ac_check_lib_save_LIBS
5601fi
5602echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5603echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5604if test $ac_cv_lib_socket_socket = yes; then
5605  LIBS="-lsocket -lnsl $LIBS"
5606fi
5607
5608fi
5609
5610
5611echo "$as_me:$LINENO: checking for socklen_t" >&5
5612echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5613if test "${ac_cv_type_socklen_t+set}" = set; then
5614  echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616
5617  cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h.  */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h.  */
5623#include <sys/types.h>
5624   #include <sys/socket.h>
5625int
5626main ()
5627{
5628socklen_t len = 42; return 0;
5629  ;
5630  return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635  (eval $ac_compile) 2>conftest.er1
5636  ac_status=$?
5637  grep -v '^ *+' conftest.er1 >conftest.err
5638  rm -f conftest.er1
5639  cat conftest.err >&5
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); } &&
5642	 { ac_try='test -z "$ac_c_werror_flag"
5643			 || test ! -s conftest.err'
5644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645  (eval $ac_try) 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; } &&
5649	 { ac_try='test -s conftest.$ac_objext'
5650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651  (eval $ac_try) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }; }; then
5655  ac_cv_type_socklen_t=yes
5656else
5657  echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660ac_cv_type_socklen_t=no
5661fi
5662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664fi
5665echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5666echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
5667  if test $ac_cv_type_socklen_t != yes; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define socklen_t int
5671_ACEOF
5672
5673  fi
5674
5675
5676# Check whether --enable-glibtest or --disable-glibtest was given.
5677if test "${enable_glibtest+set}" = set; then
5678  enableval="$enable_glibtest"
5679
5680else
5681  enable_glibtest=yes
5682fi;
5683
5684  pkg_config_args=glib-2.0
5685  for module in .
5686  do
5687      case "$module" in
5688         gmodule)
5689             pkg_config_args="$pkg_config_args gmodule-2.0"
5690         ;;
5691         gmodule-no-export)
5692             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5693         ;;
5694         gobject)
5695             pkg_config_args="$pkg_config_args gobject-2.0"
5696         ;;
5697         gthread)
5698             pkg_config_args="$pkg_config_args gthread-2.0"
5699         ;;
5700      esac
5701  done
5702
5703  # Extract the first word of "pkg-config", so it can be a program name with args.
5704set dummy pkg-config; ac_word=$2
5705echo "$as_me:$LINENO: checking for $ac_word" >&5
5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  case $PKG_CONFIG in
5711  [\\/]* | ?:[\\/]*)
5712  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5713  ;;
5714  *)
5715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718  IFS=$as_save_IFS
5719  test -z "$as_dir" && as_dir=.
5720  for ac_exec_ext in '' $ac_executable_extensions; do
5721  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724    break 2
5725  fi
5726done
5727done
5728
5729  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5730  ;;
5731esac
5732fi
5733PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5734
5735if test -n "$PKG_CONFIG"; then
5736  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5737echo "${ECHO_T}$PKG_CONFIG" >&6
5738else
5739  echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741fi
5742
5743
5744  no_glib=""
5745
5746  if test x$PKG_CONFIG != xno ; then
5747    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
5748      :
5749    else
5750      echo *** pkg-config too old; version 0.7 or better required.
5751      no_glib=yes
5752      PKG_CONFIG=no
5753    fi
5754  else
5755    no_glib=yes
5756  fi
5757
5758  min_glib_version=2.2.0
5759  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
5760echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
5761
5762  if test x$PKG_CONFIG != xno ; then
5763    ## don't try to run the test against uninstalled libtool libs
5764    if $PKG_CONFIG --uninstalled $pkg_config_args; then
5765	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5766	  enable_glibtest=no
5767    fi
5768
5769    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5770	  :
5771    else
5772	  no_glib=yes
5773    fi
5774  fi
5775
5776  if test x"$no_glib" = x ; then
5777    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5778    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5779    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5780
5781    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5782    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5783    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5784           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5785    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5786           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5787    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5788           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5789    if test "x$enable_glibtest" = "xyes" ; then
5790      ac_save_CFLAGS="$CFLAGS"
5791      ac_save_LIBS="$LIBS"
5792      CFLAGS="$CFLAGS $GLIB_CFLAGS"
5793      LIBS="$GLIB_LIBS $LIBS"
5794      rm -f conf.glibtest
5795      if test "$cross_compiling" = yes; then
5796  echo $ac_n "cross compiling; assumed OK... $ac_c"
5797else
5798  cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h.  */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h.  */
5804
5805#include <glib.h>
5806#include <stdio.h>
5807#include <stdlib.h>
5808
5809int
5810main ()
5811{
5812  int major, minor, micro;
5813  char *tmp_version;
5814
5815  system ("touch conf.glibtest");
5816
5817  /* HP/UX 9 (%@#!) writes to sscanf strings */
5818  tmp_version = g_strdup("$min_glib_version");
5819  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5820     printf("%s, bad version string\n", "$min_glib_version");
5821     exit(1);
5822   }
5823
5824  if ((glib_major_version != $glib_config_major_version) ||
5825      (glib_minor_version != $glib_config_minor_version) ||
5826      (glib_micro_version != $glib_config_micro_version))
5827    {
5828      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5829             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5830             glib_major_version, glib_minor_version, glib_micro_version);
5831      printf ("*** was found! If pkg-config was correct, then it is best\n");
5832      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5833      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5834      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5835      printf("*** required on your system.\n");
5836      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5837      printf("*** to point to the correct configuration files\n");
5838    }
5839  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5840	   (glib_minor_version != GLIB_MINOR_VERSION) ||
5841           (glib_micro_version != GLIB_MICRO_VERSION))
5842    {
5843      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5844	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5845      printf("*** library (version %d.%d.%d)\n",
5846	     glib_major_version, glib_minor_version, glib_micro_version);
5847    }
5848  else
5849    {
5850      if ((glib_major_version > major) ||
5851        ((glib_major_version == major) && (glib_minor_version > minor)) ||
5852        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5853      {
5854        return 0;
5855       }
5856     else
5857      {
5858        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5859               glib_major_version, glib_minor_version, glib_micro_version);
5860        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5861	       major, minor, micro);
5862        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5863        printf("***\n");
5864        printf("*** If you have already installed a sufficiently new version, this error\n");
5865        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5866        printf("*** being found. The easiest way to fix this is to remove the old version\n");
5867        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5868        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5869        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5870        printf("*** so that the correct libraries are found at run-time))\n");
5871      }
5872    }
5873  return 1;
5874}
5875
5876_ACEOF
5877rm -f conftest$ac_exeext
5878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5879  (eval $ac_link) 2>&5
5880  ac_status=$?
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884  (eval $ac_try) 2>&5
5885  ac_status=$?
5886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); }; }; then
5888  :
5889else
5890  echo "$as_me: program exited with status $ac_status" >&5
5891echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894( exit $ac_status )
5895no_glib=yes
5896fi
5897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5898fi
5899       CFLAGS="$ac_save_CFLAGS"
5900       LIBS="$ac_save_LIBS"
5901     fi
5902  fi
5903  if test "x$no_glib" = x ; then
5904     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5905echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
5906     :
5907  else
5908     echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910     if test "$PKG_CONFIG" = "no" ; then
5911       echo "*** A new enough version of pkg-config was not found."
5912       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5913     else
5914       if test -f conf.glibtest ; then
5915        :
5916       else
5917          echo "*** Could not run GLIB test program, checking why..."
5918          ac_save_CFLAGS="$CFLAGS"
5919          ac_save_LIBS="$LIBS"
5920          CFLAGS="$CFLAGS $GLIB_CFLAGS"
5921          LIBS="$LIBS $GLIB_LIBS"
5922          cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h.  */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h.  */
5928
5929#include <glib.h>
5930#include <stdio.h>
5931
5932int
5933main ()
5934{
5935 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext conftest$ac_exeext
5941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942  (eval $ac_link) 2>conftest.er1
5943  ac_status=$?
5944  grep -v '^ *+' conftest.er1 >conftest.err
5945  rm -f conftest.er1
5946  cat conftest.err >&5
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); } &&
5949	 { ac_try='test -z "$ac_c_werror_flag"
5950			 || test ! -s conftest.err'
5951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952  (eval $ac_try) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; } &&
5956	 { ac_try='test -s conftest$ac_exeext'
5957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958  (eval $ac_try) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; }; then
5962   echo "*** The test program compiled, but did not run. This usually means"
5963          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5964          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5965          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5966          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5967          echo "*** is required on your system"
5968	  echo "***"
5969          echo "*** If you have an old version installed, it is best to remove it, although"
5970          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5971else
5972  echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 echo "*** The test program failed to compile or link. See the file config.log for the"
5976          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5977fi
5978rm -f conftest.err conftest.$ac_objext \
5979      conftest$ac_exeext conftest.$ac_ext
5980          CFLAGS="$ac_save_CFLAGS"
5981          LIBS="$ac_save_LIBS"
5982       fi
5983     fi
5984     GLIB_CFLAGS=""
5985     GLIB_LIBS=""
5986     GLIB_GENMARSHAL=""
5987     GOBJECT_QUERY=""
5988     GLIB_MKENUMS=""
5989     { { echo "$as_me:$LINENO: error: GLib 2.2.0+ is required to build Viewglob" >&5
5990echo "$as_me: error: GLib 2.2.0+ is required to build Viewglob" >&2;}
5991   { (exit 1); exit 1; }; }
5992  fi
5993
5994
5995
5996
5997
5998  rm -f conf.glibtest
5999
6000
6001# Extract the first word of "bash", so it can be a program name with args.
6002set dummy bash; ac_word=$2
6003echo "$as_me:$LINENO: checking for $ac_word" >&5
6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005if test "${ac_cv_path_BASH_FULL_PATH+set}" = set; then
6006  echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008  case $BASH_FULL_PATH in
6009  [\\/]* | ?:[\\/]*)
6010  ac_cv_path_BASH_FULL_PATH="$BASH_FULL_PATH" # Let the user override the test with a path.
6011  ;;
6012  *)
6013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018  for ac_exec_ext in '' $ac_executable_extensions; do
6019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020    ac_cv_path_BASH_FULL_PATH="$as_dir/$ac_word$ac_exec_ext"
6021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025done
6026
6027  test -z "$ac_cv_path_BASH_FULL_PATH" && ac_cv_path_BASH_FULL_PATH="nope"
6028  ;;
6029esac
6030fi
6031BASH_FULL_PATH=$ac_cv_path_BASH_FULL_PATH
6032
6033if test -n "$BASH_FULL_PATH"; then
6034  echo "$as_me:$LINENO: result: $BASH_FULL_PATH" >&5
6035echo "${ECHO_T}$BASH_FULL_PATH" >&6
6036else
6037  echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039fi
6040
6041if test "x$BASH_FULL_PATH" = xnope; then
6042	{ { echo "$as_me:$LINENO: error: Viewglob requires bash" >&5
6043echo "$as_me: error: Viewglob requires bash" >&2;}
6044   { (exit 1); exit 1; }; }
6045fi
6046
6047
6048for ac_prog in sed
6049do
6050  # Extract the first word of "$ac_prog", so it can be a program name with args.
6051set dummy $ac_prog; ac_word=$2
6052echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054if test "${ac_cv_prog_SED+set}" = set; then
6055  echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057  if test -n "$SED"; then
6058  ac_cv_prog_SED="$SED" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063  IFS=$as_save_IFS
6064  test -z "$as_dir" && as_dir=.
6065  for ac_exec_ext in '' $ac_executable_extensions; do
6066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067    ac_cv_prog_SED="$ac_prog"
6068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069    break 2
6070  fi
6071done
6072done
6073
6074fi
6075fi
6076SED=$ac_cv_prog_SED
6077if test -n "$SED"; then
6078  echo "$as_me:$LINENO: result: $SED" >&5
6079echo "${ECHO_T}$SED" >&6
6080else
6081  echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
6083fi
6084
6085  test -n "$SED" && break
6086done
6087test -n "$SED" || SED="no"
6088
6089if test  "$SED" = "no"; then
6090	{ { echo "$as_me:$LINENO: error: Viewglob installation requires sed" >&5
6091echo "$as_me: error: Viewglob installation requires sed" >&2;}
6092   { (exit 1); exit 1; }; }
6093fi
6094
6095
6096
6097
6098
6099
6100
6101
6102for ac_func in setpgid setpgrp isastream getpt grantpt unlockpt
6103do
6104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6105echo "$as_me:$LINENO: checking for $ac_func" >&5
6106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6107if eval "test \"\${$as_ac_var+set}\" = set"; then
6108  echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6117   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6118#define $ac_func innocuous_$ac_func
6119
6120/* System header to define __stub macros and hopefully few prototypes,
6121    which can conflict with char $ac_func (); below.
6122    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123    <limits.h> exists even on freestanding compilers.  */
6124
6125#ifdef __STDC__
6126# include <limits.h>
6127#else
6128# include <assert.h>
6129#endif
6130
6131#undef $ac_func
6132
6133/* Override any gcc2 internal prototype to avoid an error.  */
6134#ifdef __cplusplus
6135extern "C"
6136{
6137#endif
6138/* We use char because int might match the return type of a gcc2
6139   builtin and then its argument prototype would still apply.  */
6140char $ac_func ();
6141/* The GNU C library defines this for functions which it implements
6142    to always fail with ENOSYS.  Some functions are actually named
6143    something starting with __ and the normal name is an alias.  */
6144#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6145choke me
6146#else
6147char (*f) () = $ac_func;
6148#endif
6149#ifdef __cplusplus
6150}
6151#endif
6152
6153int
6154main ()
6155{
6156return f != $ac_func;
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext conftest$ac_exeext
6162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163  (eval $ac_link) 2>conftest.er1
6164  ac_status=$?
6165  grep -v '^ *+' conftest.er1 >conftest.err
6166  rm -f conftest.er1
6167  cat conftest.err >&5
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); } &&
6170	 { ac_try='test -z "$ac_c_werror_flag"
6171			 || test ! -s conftest.err'
6172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173  (eval $ac_try) 2>&5
6174  ac_status=$?
6175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); }; } &&
6177	 { ac_try='test -s conftest$ac_exeext'
6178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179  (eval $ac_try) 2>&5
6180  ac_status=$?
6181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182  (exit $ac_status); }; }; then
6183  eval "$as_ac_var=yes"
6184else
6185  echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188eval "$as_ac_var=no"
6189fi
6190rm -f conftest.err conftest.$ac_objext \
6191      conftest$ac_exeext conftest.$ac_ext
6192fi
6193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6195if test `eval echo '${'$as_ac_var'}'` = yes; then
6196  cat >>confdefs.h <<_ACEOF
6197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6198_ACEOF
6199
6200fi
6201done
6202
6203echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
6204echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
6205if test "${ac_cv_func_getpgrp_void+set}" = set; then
6206  echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208  # Use it with a single arg.
6209cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h.  */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h.  */
6215$ac_includes_default
6216int
6217main ()
6218{
6219getpgrp (0);
6220  ;
6221  return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext
6225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226  (eval $ac_compile) 2>conftest.er1
6227  ac_status=$?
6228  grep -v '^ *+' conftest.er1 >conftest.err
6229  rm -f conftest.er1
6230  cat conftest.err >&5
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); } &&
6233	 { ac_try='test -z "$ac_c_werror_flag"
6234			 || test ! -s conftest.err'
6235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236  (eval $ac_try) 2>&5
6237  ac_status=$?
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); }; } &&
6240	 { ac_try='test -s conftest.$ac_objext'
6241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242  (eval $ac_try) 2>&5
6243  ac_status=$?
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); }; }; then
6246  ac_cv_func_getpgrp_void=no
6247else
6248  echo "$as_me: failed program was:" >&5
6249sed 's/^/| /' conftest.$ac_ext >&5
6250
6251ac_cv_func_getpgrp_void=yes
6252fi
6253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254
6255fi
6256echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
6257echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
6258if test $ac_cv_func_getpgrp_void = yes; then
6259
6260cat >>confdefs.h <<\_ACEOF
6261#define GETPGRP_VOID 1
6262_ACEOF
6263
6264fi
6265
6266echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
6267echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
6268if test "${ac_cv_func_setpgrp_void+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  if test "$cross_compiling" = yes; then
6272  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
6273echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
6274   { (exit 1); exit 1; }; }
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#if HAVE_UNISTD_H
6283# include <unistd.h>
6284#endif
6285
6286int
6287main ()
6288{
6289/* If this system has a BSD-style setpgrp which takes arguments,
6290  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6291  exit successfully. */
6292  exit (setpgrp (1,1) == -1 ? 0 : 1);
6293  ;
6294  return 0;
6295}
6296_ACEOF
6297rm -f conftest$ac_exeext
6298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299  (eval $ac_link) 2>&5
6300  ac_status=$?
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304  (eval $ac_try) 2>&5
6305  ac_status=$?
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); }; }; then
6308  ac_cv_func_setpgrp_void=no
6309else
6310  echo "$as_me: program exited with status $ac_status" >&5
6311echo "$as_me: failed program was:" >&5
6312sed 's/^/| /' conftest.$ac_ext >&5
6313
6314( exit $ac_status )
6315ac_cv_func_setpgrp_void=yes
6316fi
6317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6318fi
6319fi
6320echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
6321echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
6322if test $ac_cv_func_setpgrp_void = yes; then
6323
6324cat >>confdefs.h <<\_ACEOF
6325#define SETPGRP_VOID 1
6326_ACEOF
6327
6328fi
6329
6330
6331echo "$as_me:$LINENO: checking for getpt" >&5
6332echo $ECHO_N "checking for getpt... $ECHO_C" >&6
6333if test "${rxvt_cv_func_getpt+set}" = set; then
6334  echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336  cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h.  */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h.  */
6342#define _GNU_SOURCE
6343#ifdef HAVE_STDLIB_H
6344# include <stdlib.h>
6345#endif
6346int
6347main ()
6348{
6349(void)getpt();
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext conftest$ac_exeext
6355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356  (eval $ac_link) 2>conftest.er1
6357  ac_status=$?
6358  grep -v '^ *+' conftest.er1 >conftest.err
6359  rm -f conftest.er1
6360  cat conftest.err >&5
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); } &&
6363	 { ac_try='test -z "$ac_c_werror_flag"
6364			 || test ! -s conftest.err'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; } &&
6370	 { ac_try='test -s conftest$ac_exeext'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; }; then
6376  rxvt_cv_func_getpt=yes
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381rxvt_cv_func_getpt=no
6382fi
6383rm -f conftest.err conftest.$ac_objext \
6384      conftest$ac_exeext conftest.$ac_ext
6385fi
6386echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
6387echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
6388if test x$rxvt_cv_func_getpt = xyes; then
6389
6390cat >>confdefs.h <<\_ACEOF
6391#define HAVE_GETPT 1
6392_ACEOF
6393
6394fi
6395
6396echo "$as_me:$LINENO: checking for pty/tty type" >&5
6397echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
6398if test "${rxvt_cv_ptys+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401  if test x$ac_cv_func_openpty = xyes; then
6402    rxvt_cv_ptys=OPENPTY
6403 else if test x$ac_cv_func__getpty = xyes; then
6404    rxvt_cv_ptys=SGI4
6405 else if test -c /dev/ttyp20; then
6406    rxvt_cv_ptys=SCO
6407 else if test -c /dev/ptym/clone; then
6408    rxvt_cv_ptys=HPUX
6409 else if test x$rxvt_cv_func_getpt = xyes; then
6410    rxvt_cv_ptys=GLIBC
6411 else if test -c /dev/ptc -a -c /dev/pts; then
6412    rxvt_cv_ptys=PTC
6413 else if test -c /dev/ptc -a -d /dev/pts; then
6414    rxvt_cv_ptys=PTC
6415 else if test -c /dev/ptmx -a -c /dev/pts/0; then
6416    rxvt_cv_ptys=STREAMS
6417 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
6418    rxvt_cv_ptys=STREAMS
6419 else
6420    rxvt_cv_ptys=BSD
6421fi
6422fi
6423fi
6424fi
6425fi
6426fi
6427fi
6428fi
6429fi
6430
6431fi
6432echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
6433echo "${ECHO_T}$rxvt_cv_ptys" >&6
6434
6435if test x$rxvt_cv_ptys = xOPENPTY; then
6436
6437cat >>confdefs.h <<\_ACEOF
6438#define PTYS_ARE_OPENPTY 1
6439_ACEOF
6440
6441fi
6442if test x$rxvt_cv_ptys = xSCO; then
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define PTYS_ARE_NUMERIC 1
6446_ACEOF
6447
6448fi
6449if test x$rxvt_cv_ptys = xSTREAMS; then
6450
6451cat >>confdefs.h <<\_ACEOF
6452#define PTYS_ARE_PTMX 1
6453_ACEOF
6454
6455fi
6456if test x$rxvt_cv_ptys = xPTC; then
6457
6458cat >>confdefs.h <<\_ACEOF
6459#define PTYS_ARE_PTC 1
6460_ACEOF
6461
6462fi
6463if test x$rxvt_cv_ptys = xSGI4; then
6464
6465cat >>confdefs.h <<\_ACEOF
6466#define PTYS_ARE__GETPTY 1
6467_ACEOF
6468
6469fi
6470if test x$rxvt_cv_ptys = xCONVEX; then
6471
6472cat >>confdefs.h <<\_ACEOF
6473#define PTYS_ARE_GETPTY 1
6474_ACEOF
6475
6476fi
6477if test x$rxvt_cv_ptys = xGLIBC; then
6478
6479cat >>confdefs.h <<\_ACEOF
6480#define PTYS_ARE_GETPT 1
6481_ACEOF
6482
6483fi
6484if test x$rxvt_cv_ptys = xHPUX; then
6485
6486cat >>confdefs.h <<\_ACEOF
6487#define PTYS_ARE_CLONE 1
6488_ACEOF
6489
6490fi
6491if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
6492
6493cat >>confdefs.h <<\_ACEOF
6494#define PTYS_ARE_SEARCHED 1
6495_ACEOF
6496
6497fi
6498
6499{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
6500echo "$as_me: checking for pty ranges..." >&6;}
6501ptys=`echo /dev/pty??`
6502pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
6503pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
6504if test x$pch1 != x; then
6505
6506cat >>confdefs.h <<_ACEOF
6507#define PTYCHAR1 "$pch1"
6508_ACEOF
6509
6510fi
6511if test x$pch2 != x; then
6512
6513cat >>confdefs.h <<_ACEOF
6514#define PTYCHAR2 "$pch2"
6515_ACEOF
6516
6517fi
6518
6519
6520
6521
6522
6523
6524if test "$VGSEER_ONLY" = nope; then
6525
6526
6527
6528for ac_header in syslog.h
6529do
6530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532  echo "$as_me:$LINENO: checking for $ac_header" >&5
6533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539else
6540  # Is the header compilable?
6541echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549$ac_includes_default
6550#include <$ac_header>
6551_ACEOF
6552rm -f conftest.$ac_objext
6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554  (eval $ac_compile) 2>conftest.er1
6555  ac_status=$?
6556  grep -v '^ *+' conftest.er1 >conftest.err
6557  rm -f conftest.er1
6558  cat conftest.err >&5
6559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560  (exit $ac_status); } &&
6561	 { ac_try='test -z "$ac_c_werror_flag"
6562			 || test ! -s conftest.err'
6563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564  (eval $ac_try) 2>&5
6565  ac_status=$?
6566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); }; } &&
6568	 { ac_try='test -s conftest.$ac_objext'
6569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570  (eval $ac_try) 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; }; then
6574  ac_header_compiler=yes
6575else
6576  echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579ac_header_compiler=no
6580fi
6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583echo "${ECHO_T}$ac_header_compiler" >&6
6584
6585# Is the header present?
6586echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h.  */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h.  */
6594#include <$ac_header>
6595_ACEOF
6596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6598  ac_status=$?
6599  grep -v '^ *+' conftest.er1 >conftest.err
6600  rm -f conftest.er1
6601  cat conftest.err >&5
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); } >/dev/null; then
6604  if test -s conftest.err; then
6605    ac_cpp_err=$ac_c_preproc_warn_flag
6606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6607  else
6608    ac_cpp_err=
6609  fi
6610else
6611  ac_cpp_err=yes
6612fi
6613if test -z "$ac_cpp_err"; then
6614  ac_header_preproc=yes
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619  ac_header_preproc=no
6620fi
6621rm -f conftest.err conftest.$ac_ext
6622echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6623echo "${ECHO_T}$ac_header_preproc" >&6
6624
6625# So?  What about this header?
6626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6627  yes:no: )
6628    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6632    ac_header_preproc=yes
6633    ;;
6634  no:yes:* )
6635    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6637    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6638echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6642echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6647    (
6648      cat <<\_ASBOX
6649## ----------------------------------- ##
6650## Report this to the viewglob lists.  ##
6651## ----------------------------------- ##
6652_ASBOX
6653    ) |
6654      sed "s/^/$as_me: WARNING:     /" >&2
6655    ;;
6656esac
6657echo "$as_me:$LINENO: checking for $ac_header" >&5
6658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662  eval "$as_ac_Header=\$ac_header_preproc"
6663fi
6664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6666
6667fi
6668if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669  cat >>confdefs.h <<_ACEOF
6670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671_ACEOF
6672
6673else
6674  { { echo "$as_me:$LINENO: error: Required header missing!" >&5
6675echo "$as_me: error: Required header missing!" >&2;}
6676   { (exit 1); exit 1; }; }
6677fi
6678
6679done
6680
6681
6682for ac_func in strtoul
6683do
6684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6685echo "$as_me:$LINENO: checking for $ac_func" >&5
6686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6687if eval "test \"\${$as_ac_var+set}\" = set"; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h.  */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h.  */
6696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6698#define $ac_func innocuous_$ac_func
6699
6700/* System header to define __stub macros and hopefully few prototypes,
6701    which can conflict with char $ac_func (); below.
6702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703    <limits.h> exists even on freestanding compilers.  */
6704
6705#ifdef __STDC__
6706# include <limits.h>
6707#else
6708# include <assert.h>
6709#endif
6710
6711#undef $ac_func
6712
6713/* Override any gcc2 internal prototype to avoid an error.  */
6714#ifdef __cplusplus
6715extern "C"
6716{
6717#endif
6718/* We use char because int might match the return type of a gcc2
6719   builtin and then its argument prototype would still apply.  */
6720char $ac_func ();
6721/* The GNU C library defines this for functions which it implements
6722    to always fail with ENOSYS.  Some functions are actually named
6723    something starting with __ and the normal name is an alias.  */
6724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6725choke me
6726#else
6727char (*f) () = $ac_func;
6728#endif
6729#ifdef __cplusplus
6730}
6731#endif
6732
6733int
6734main ()
6735{
6736return f != $ac_func;
6737  ;
6738  return 0;
6739}
6740_ACEOF
6741rm -f conftest.$ac_objext conftest$ac_exeext
6742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743  (eval $ac_link) 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } &&
6750	 { ac_try='test -z "$ac_c_werror_flag"
6751			 || test ! -s conftest.err'
6752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753  (eval $ac_try) 2>&5
6754  ac_status=$?
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); }; } &&
6757	 { ac_try='test -s conftest$ac_exeext'
6758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759  (eval $ac_try) 2>&5
6760  ac_status=$?
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); }; }; then
6763  eval "$as_ac_var=yes"
6764else
6765  echo "$as_me: failed program was:" >&5
6766sed 's/^/| /' conftest.$ac_ext >&5
6767
6768eval "$as_ac_var=no"
6769fi
6770rm -f conftest.err conftest.$ac_objext \
6771      conftest$ac_exeext conftest.$ac_ext
6772fi
6773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6775if test `eval echo '${'$as_ac_var'}'` = yes; then
6776  cat >>confdefs.h <<_ACEOF
6777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6778_ACEOF
6779
6780else
6781  { { echo "$as_me:$LINENO: error: Required function missing!" >&5
6782echo "$as_me: error: Required function missing!" >&2;}
6783   { (exit 1); exit 1; }; }
6784fi
6785done
6786
6787
6788		echo "$as_me:$LINENO: checking for X" >&5
6789echo $ECHO_N "checking for X... $ECHO_C" >&6
6790
6791
6792# Check whether --with-x or --without-x was given.
6793if test "${with_x+set}" = set; then
6794  withval="$with_x"
6795
6796fi;
6797# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6798if test "x$with_x" = xno; then
6799  # The user explicitly disabled X.
6800  have_x=disabled
6801else
6802  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6803    # Both variables are already set.
6804    have_x=yes
6805  else
6806    if test "${ac_cv_have_x+set}" = set; then
6807  echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809  # One or both of the vars are not set, and there is no cached value.
6810ac_x_includes=no ac_x_libraries=no
6811rm -fr conftest.dir
6812if mkdir conftest.dir; then
6813  cd conftest.dir
6814  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6815  cat >Imakefile <<'_ACEOF'
6816acfindx:
6817	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6818_ACEOF
6819  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6820    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6821    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6822    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6823    for ac_extension in a so sl; do
6824      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6825	 test -f $ac_im_libdir/libX11.$ac_extension; then
6826	ac_im_usrlibdir=$ac_im_libdir; break
6827      fi
6828    done
6829    # Screen out bogus values from the imake configuration.  They are
6830    # bogus both because they are the default anyway, and because
6831    # using them would break gcc on systems where it needs fixed includes.
6832    case $ac_im_incroot in
6833	/usr/include) ;;
6834	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6835    esac
6836    case $ac_im_usrlibdir in
6837	/usr/lib | /lib) ;;
6838	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6839    esac
6840  fi
6841  cd ..
6842  rm -fr conftest.dir
6843fi
6844
6845# Standard set of common directories for X headers.
6846# Check X11 before X11Rn because it is often a symlink to the current release.
6847ac_x_header_dirs='
6848/usr/X11/include
6849/usr/X11R6/include
6850/usr/X11R5/include
6851/usr/X11R4/include
6852
6853/usr/include/X11
6854/usr/include/X11R6
6855/usr/include/X11R5
6856/usr/include/X11R4
6857
6858/usr/local/X11/include
6859/usr/local/X11R6/include
6860/usr/local/X11R5/include
6861/usr/local/X11R4/include
6862
6863/usr/local/include/X11
6864/usr/local/include/X11R6
6865/usr/local/include/X11R5
6866/usr/local/include/X11R4
6867
6868/usr/X386/include
6869/usr/x386/include
6870/usr/XFree86/include/X11
6871
6872/usr/include
6873/usr/local/include
6874/usr/unsupported/include
6875/usr/athena/include
6876/usr/local/x11r5/include
6877/usr/lpp/Xamples/include
6878
6879/usr/openwin/include
6880/usr/openwin/share/include'
6881
6882if test "$ac_x_includes" = no; then
6883  # Guess where to find include files, by looking for Intrinsic.h.
6884  # First, try using that file with no special directory specified.
6885  cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891#include <X11/Intrinsic.h>
6892_ACEOF
6893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } >/dev/null; then
6901  if test -s conftest.err; then
6902    ac_cpp_err=$ac_c_preproc_warn_flag
6903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6904  else
6905    ac_cpp_err=
6906  fi
6907else
6908  ac_cpp_err=yes
6909fi
6910if test -z "$ac_cpp_err"; then
6911  # We can compile using X headers with no special include directory.
6912ac_x_includes=
6913else
6914  echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
6917  for ac_dir in $ac_x_header_dirs; do
6918  if test -r "$ac_dir/X11/Intrinsic.h"; then
6919    ac_x_includes=$ac_dir
6920    break
6921  fi
6922done
6923fi
6924rm -f conftest.err conftest.$ac_ext
6925fi # $ac_x_includes = no
6926
6927if test "$ac_x_libraries" = no; then
6928  # Check for the libraries.
6929  # See if we find them without any special options.
6930  # Don't add to $LIBS permanently.
6931  ac_save_LIBS=$LIBS
6932  LIBS="-lXt $LIBS"
6933  cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h.  */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h.  */
6939#include <X11/Intrinsic.h>
6940int
6941main ()
6942{
6943XtMalloc (0)
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext conftest$ac_exeext
6949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950  (eval $ac_link) 2>conftest.er1
6951  ac_status=$?
6952  grep -v '^ *+' conftest.er1 >conftest.err
6953  rm -f conftest.er1
6954  cat conftest.err >&5
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); } &&
6957	 { ac_try='test -z "$ac_c_werror_flag"
6958			 || test ! -s conftest.err'
6959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960  (eval $ac_try) 2>&5
6961  ac_status=$?
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); }; } &&
6964	 { ac_try='test -s conftest$ac_exeext'
6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966  (eval $ac_try) 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }; }; then
6970  LIBS=$ac_save_LIBS
6971# We can link X programs with no special library path.
6972ac_x_libraries=
6973else
6974  echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
6976
6977LIBS=$ac_save_LIBS
6978for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6979do
6980  # Don't even attempt the hair of trying to link an X program!
6981  for ac_extension in a so sl; do
6982    if test -r $ac_dir/libXt.$ac_extension; then
6983      ac_x_libraries=$ac_dir
6984      break 2
6985    fi
6986  done
6987done
6988fi
6989rm -f conftest.err conftest.$ac_objext \
6990      conftest$ac_exeext conftest.$ac_ext
6991fi # $ac_x_libraries = no
6992
6993if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6994  # Didn't find X anywhere.  Cache the known absence of X.
6995  ac_cv_have_x="have_x=no"
6996else
6997  # Record where we found X for the cache.
6998  ac_cv_have_x="have_x=yes \
6999		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7000fi
7001fi
7002
7003  fi
7004  eval "$ac_cv_have_x"
7005fi # $with_x != no
7006
7007if test "$have_x" != yes; then
7008  echo "$as_me:$LINENO: result: $have_x" >&5
7009echo "${ECHO_T}$have_x" >&6
7010  no_x=yes
7011else
7012  # If each of the values was on the command line, it overrides each guess.
7013  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7014  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7015  # Update the cache value to reflect the command line values.
7016  ac_cv_have_x="have_x=yes \
7017		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7018  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7019echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7020fi
7021
7022if test "$no_x" = yes; then
7023  # Not all programs may use this symbol, but it does not hurt to define it.
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define X_DISPLAY_MISSING 1
7027_ACEOF
7028
7029  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7030else
7031  if test -n "$x_includes"; then
7032    X_CFLAGS="$X_CFLAGS -I$x_includes"
7033  fi
7034
7035  # It would also be nice to do this for all -L options, not just this one.
7036  if test -n "$x_libraries"; then
7037    X_LIBS="$X_LIBS -L$x_libraries"
7038    # For Solaris; some versions of Sun CC require a space after -R and
7039    # others require no space.  Words are not sufficient . . . .
7040    case `(uname -sr) 2>/dev/null` in
7041    "SunOS 5"*)
7042      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7043echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7044      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7045      cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h.  */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h.  */
7051
7052int
7053main ()
7054{
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext conftest$ac_exeext
7061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062  (eval $ac_link) 2>conftest.er1
7063  ac_status=$?
7064  grep -v '^ *+' conftest.er1 >conftest.err
7065  rm -f conftest.er1
7066  cat conftest.err >&5
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); } &&
7069	 { ac_try='test -z "$ac_c_werror_flag"
7070			 || test ! -s conftest.err'
7071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072  (eval $ac_try) 2>&5
7073  ac_status=$?
7074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075  (exit $ac_status); }; } &&
7076	 { ac_try='test -s conftest$ac_exeext'
7077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078  (eval $ac_try) 2>&5
7079  ac_status=$?
7080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081  (exit $ac_status); }; }; then
7082  ac_R_nospace=yes
7083else
7084  echo "$as_me: failed program was:" >&5
7085sed 's/^/| /' conftest.$ac_ext >&5
7086
7087ac_R_nospace=no
7088fi
7089rm -f conftest.err conftest.$ac_objext \
7090      conftest$ac_exeext conftest.$ac_ext
7091      if test $ac_R_nospace = yes; then
7092	echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094	X_LIBS="$X_LIBS -R$x_libraries"
7095      else
7096	LIBS="$ac_xsave_LIBS -R $x_libraries"
7097	cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112rm -f conftest.$ac_objext conftest$ac_exeext
7113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114  (eval $ac_link) 2>conftest.er1
7115  ac_status=$?
7116  grep -v '^ *+' conftest.er1 >conftest.err
7117  rm -f conftest.er1
7118  cat conftest.err >&5
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); } &&
7121	 { ac_try='test -z "$ac_c_werror_flag"
7122			 || test ! -s conftest.err'
7123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124  (eval $ac_try) 2>&5
7125  ac_status=$?
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); }; } &&
7128	 { ac_try='test -s conftest$ac_exeext'
7129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130  (eval $ac_try) 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }; }; then
7134  ac_R_space=yes
7135else
7136  echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7139ac_R_space=no
7140fi
7141rm -f conftest.err conftest.$ac_objext \
7142      conftest$ac_exeext conftest.$ac_ext
7143	if test $ac_R_space = yes; then
7144	  echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
7146	  X_LIBS="$X_LIBS -R $x_libraries"
7147	else
7148	  echo "$as_me:$LINENO: result: neither works" >&5
7149echo "${ECHO_T}neither works" >&6
7150	fi
7151      fi
7152      LIBS=$ac_xsave_LIBS
7153    esac
7154  fi
7155
7156  # Check for system-dependent libraries X programs must link with.
7157  # Do this before checking for the system-independent R6 libraries
7158  # (-lICE), since we may need -lsocket or whatever for X linking.
7159
7160  if test "$ISC" = yes; then
7161    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7162  else
7163    # Martyn Johnson says this is needed for Ultrix, if the X
7164    # libraries were built with DECnet support.  And Karl Berry says
7165    # the Alpha needs dnet_stub (dnet does not exist).
7166    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7167    cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h.  */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h.  */
7173
7174/* Override any gcc2 internal prototype to avoid an error.  */
7175#ifdef __cplusplus
7176extern "C"
7177#endif
7178/* We use char because int might match the return type of a gcc2
7179   builtin and then its argument prototype would still apply.  */
7180char XOpenDisplay ();
7181int
7182main ()
7183{
7184XOpenDisplay ();
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext conftest$ac_exeext
7190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191  (eval $ac_link) 2>conftest.er1
7192  ac_status=$?
7193  grep -v '^ *+' conftest.er1 >conftest.err
7194  rm -f conftest.er1
7195  cat conftest.err >&5
7196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197  (exit $ac_status); } &&
7198	 { ac_try='test -z "$ac_c_werror_flag"
7199			 || test ! -s conftest.err'
7200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201  (eval $ac_try) 2>&5
7202  ac_status=$?
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); }; } &&
7205	 { ac_try='test -s conftest$ac_exeext'
7206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207  (eval $ac_try) 2>&5
7208  ac_status=$?
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); }; }; then
7211  :
7212else
7213  echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7217echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7218if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  ac_check_lib_save_LIBS=$LIBS
7222LIBS="-ldnet  $LIBS"
7223cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h.  */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h.  */
7229
7230/* Override any gcc2 internal prototype to avoid an error.  */
7231#ifdef __cplusplus
7232extern "C"
7233#endif
7234/* We use char because int might match the return type of a gcc2
7235   builtin and then its argument prototype would still apply.  */
7236char dnet_ntoa ();
7237int
7238main ()
7239{
7240dnet_ntoa ();
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245rm -f conftest.$ac_objext conftest$ac_exeext
7246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247  (eval $ac_link) 2>conftest.er1
7248  ac_status=$?
7249  grep -v '^ *+' conftest.er1 >conftest.err
7250  rm -f conftest.er1
7251  cat conftest.err >&5
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); } &&
7254	 { ac_try='test -z "$ac_c_werror_flag"
7255			 || test ! -s conftest.err'
7256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257  (eval $ac_try) 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }; } &&
7261	 { ac_try='test -s conftest$ac_exeext'
7262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263  (eval $ac_try) 2>&5
7264  ac_status=$?
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); }; }; then
7267  ac_cv_lib_dnet_dnet_ntoa=yes
7268else
7269  echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
7271
7272ac_cv_lib_dnet_dnet_ntoa=no
7273fi
7274rm -f conftest.err conftest.$ac_objext \
7275      conftest$ac_exeext conftest.$ac_ext
7276LIBS=$ac_check_lib_save_LIBS
7277fi
7278echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7279echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7280if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7281  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7282fi
7283
7284    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7285      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7286echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7287if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7288  echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290  ac_check_lib_save_LIBS=$LIBS
7291LIBS="-ldnet_stub  $LIBS"
7292cat >conftest.$ac_ext <<_ACEOF
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298
7299/* Override any gcc2 internal prototype to avoid an error.  */
7300#ifdef __cplusplus
7301extern "C"
7302#endif
7303/* We use char because int might match the return type of a gcc2
7304   builtin and then its argument prototype would still apply.  */
7305char dnet_ntoa ();
7306int
7307main ()
7308{
7309dnet_ntoa ();
7310  ;
7311  return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316  (eval $ac_link) 2>conftest.er1
7317  ac_status=$?
7318  grep -v '^ *+' conftest.er1 >conftest.err
7319  rm -f conftest.er1
7320  cat conftest.err >&5
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } &&
7323	 { ac_try='test -z "$ac_c_werror_flag"
7324			 || test ! -s conftest.err'
7325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326  (eval $ac_try) 2>&5
7327  ac_status=$?
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); }; } &&
7330	 { ac_try='test -s conftest$ac_exeext'
7331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332  (eval $ac_try) 2>&5
7333  ac_status=$?
7334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335  (exit $ac_status); }; }; then
7336  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7337else
7338  echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_cv_lib_dnet_stub_dnet_ntoa=no
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344      conftest$ac_exeext conftest.$ac_ext
7345LIBS=$ac_check_lib_save_LIBS
7346fi
7347echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7348echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7349if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7350  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7351fi
7352
7353    fi
7354fi
7355rm -f conftest.err conftest.$ac_objext \
7356      conftest$ac_exeext conftest.$ac_ext
7357    LIBS="$ac_xsave_LIBS"
7358
7359    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7360    # to get the SysV transport functions.
7361    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7362    # needs -lnsl.
7363    # The nsl library prevents programs from opening the X display
7364    # on Irix 5.2, according to T.E. Dickey.
7365    # The functions gethostbyname, getservbyname, and inet_addr are
7366    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7367    echo "$as_me:$LINENO: checking for gethostbyname" >&5
7368echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7369if test "${ac_cv_func_gethostbyname+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372  cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h.  */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h.  */
7378/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7380#define gethostbyname innocuous_gethostbyname
7381
7382/* System header to define __stub macros and hopefully few prototypes,
7383    which can conflict with char gethostbyname (); below.
7384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7385    <limits.h> exists even on freestanding compilers.  */
7386
7387#ifdef __STDC__
7388# include <limits.h>
7389#else
7390# include <assert.h>
7391#endif
7392
7393#undef gethostbyname
7394
7395/* Override any gcc2 internal prototype to avoid an error.  */
7396#ifdef __cplusplus
7397extern "C"
7398{
7399#endif
7400/* We use char because int might match the return type of a gcc2
7401   builtin and then its argument prototype would still apply.  */
7402char gethostbyname ();
7403/* The GNU C library defines this for functions which it implements
7404    to always fail with ENOSYS.  Some functions are actually named
7405    something starting with __ and the normal name is an alias.  */
7406#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7407choke me
7408#else
7409char (*f) () = gethostbyname;
7410#endif
7411#ifdef __cplusplus
7412}
7413#endif
7414
7415int
7416main ()
7417{
7418return f != gethostbyname;
7419  ;
7420  return 0;
7421}
7422_ACEOF
7423rm -f conftest.$ac_objext conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425  (eval $ac_link) 2>conftest.er1
7426  ac_status=$?
7427  grep -v '^ *+' conftest.er1 >conftest.err
7428  rm -f conftest.er1
7429  cat conftest.err >&5
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } &&
7432	 { ac_try='test -z "$ac_c_werror_flag"
7433			 || test ! -s conftest.err'
7434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435  (eval $ac_try) 2>&5
7436  ac_status=$?
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); }; } &&
7439	 { ac_try='test -s conftest$ac_exeext'
7440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441  (eval $ac_try) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); }; }; then
7445  ac_cv_func_gethostbyname=yes
7446else
7447  echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450ac_cv_func_gethostbyname=no
7451fi
7452rm -f conftest.err conftest.$ac_objext \
7453      conftest$ac_exeext conftest.$ac_ext
7454fi
7455echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7456echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7457
7458    if test $ac_cv_func_gethostbyname = no; then
7459      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7460echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7461if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  ac_check_lib_save_LIBS=$LIBS
7465LIBS="-lnsl  $LIBS"
7466cat >conftest.$ac_ext <<_ACEOF
7467/* confdefs.h.  */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h.  */
7472
7473/* Override any gcc2 internal prototype to avoid an error.  */
7474#ifdef __cplusplus
7475extern "C"
7476#endif
7477/* We use char because int might match the return type of a gcc2
7478   builtin and then its argument prototype would still apply.  */
7479char gethostbyname ();
7480int
7481main ()
7482{
7483gethostbyname ();
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
7489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490  (eval $ac_link) 2>conftest.er1
7491  ac_status=$?
7492  grep -v '^ *+' conftest.er1 >conftest.err
7493  rm -f conftest.er1
7494  cat conftest.err >&5
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); } &&
7497	 { ac_try='test -z "$ac_c_werror_flag"
7498			 || test ! -s conftest.err'
7499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500  (eval $ac_try) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; } &&
7504	 { ac_try='test -s conftest$ac_exeext'
7505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506  (eval $ac_try) 2>&5
7507  ac_status=$?
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); }; }; then
7510  ac_cv_lib_nsl_gethostbyname=yes
7511else
7512  echo "$as_me: failed program was:" >&5
7513sed 's/^/| /' conftest.$ac_ext >&5
7514
7515ac_cv_lib_nsl_gethostbyname=no
7516fi
7517rm -f conftest.err conftest.$ac_objext \
7518      conftest$ac_exeext conftest.$ac_ext
7519LIBS=$ac_check_lib_save_LIBS
7520fi
7521echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7522echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7523if test $ac_cv_lib_nsl_gethostbyname = yes; then
7524  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7525fi
7526
7527      if test $ac_cv_lib_nsl_gethostbyname = no; then
7528	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7529echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7530if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7531  echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533  ac_check_lib_save_LIBS=$LIBS
7534LIBS="-lbsd  $LIBS"
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h.  */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h.  */
7541
7542/* Override any gcc2 internal prototype to avoid an error.  */
7543#ifdef __cplusplus
7544extern "C"
7545#endif
7546/* We use char because int might match the return type of a gcc2
7547   builtin and then its argument prototype would still apply.  */
7548char gethostbyname ();
7549int
7550main ()
7551{
7552gethostbyname ();
7553  ;
7554  return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559  (eval $ac_link) 2>conftest.er1
7560  ac_status=$?
7561  grep -v '^ *+' conftest.er1 >conftest.err
7562  rm -f conftest.er1
7563  cat conftest.err >&5
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } &&
7566	 { ac_try='test -z "$ac_c_werror_flag"
7567			 || test ! -s conftest.err'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; } &&
7573	 { ac_try='test -s conftest$ac_exeext'
7574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575  (eval $ac_try) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }; }; then
7579  ac_cv_lib_bsd_gethostbyname=yes
7580else
7581  echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584ac_cv_lib_bsd_gethostbyname=no
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587      conftest$ac_exeext conftest.$ac_ext
7588LIBS=$ac_check_lib_save_LIBS
7589fi
7590echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7591echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7592if test $ac_cv_lib_bsd_gethostbyname = yes; then
7593  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7594fi
7595
7596      fi
7597    fi
7598
7599    # lieder@skyler.mavd.honeywell.com says without -lsocket,
7600    # socket/setsockopt and other routines are undefined under SCO ODT
7601    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7602    # on later versions), says Simon Leinen: it contains gethostby*
7603    # variants that don't use the name server (or something).  -lsocket
7604    # must be given before -lnsl if both are needed.  We assume that
7605    # if connect needs -lnsl, so does gethostbyname.
7606    echo "$as_me:$LINENO: checking for connect" >&5
7607echo $ECHO_N "checking for connect... $ECHO_C" >&6
7608if test "${ac_cv_func_connect+set}" = set; then
7609  echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611  cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h.  */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h.  */
7617/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7619#define connect innocuous_connect
7620
7621/* System header to define __stub macros and hopefully few prototypes,
7622    which can conflict with char connect (); below.
7623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7624    <limits.h> exists even on freestanding compilers.  */
7625
7626#ifdef __STDC__
7627# include <limits.h>
7628#else
7629# include <assert.h>
7630#endif
7631
7632#undef connect
7633
7634/* Override any gcc2 internal prototype to avoid an error.  */
7635#ifdef __cplusplus
7636extern "C"
7637{
7638#endif
7639/* We use char because int might match the return type of a gcc2
7640   builtin and then its argument prototype would still apply.  */
7641char connect ();
7642/* The GNU C library defines this for functions which it implements
7643    to always fail with ENOSYS.  Some functions are actually named
7644    something starting with __ and the normal name is an alias.  */
7645#if defined (__stub_connect) || defined (__stub___connect)
7646choke me
7647#else
7648char (*f) () = connect;
7649#endif
7650#ifdef __cplusplus
7651}
7652#endif
7653
7654int
7655main ()
7656{
7657return f != connect;
7658  ;
7659  return 0;
7660}
7661_ACEOF
7662rm -f conftest.$ac_objext conftest$ac_exeext
7663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664  (eval $ac_link) 2>conftest.er1
7665  ac_status=$?
7666  grep -v '^ *+' conftest.er1 >conftest.err
7667  rm -f conftest.er1
7668  cat conftest.err >&5
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); } &&
7671	 { ac_try='test -z "$ac_c_werror_flag"
7672			 || test ! -s conftest.err'
7673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674  (eval $ac_try) 2>&5
7675  ac_status=$?
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); }; } &&
7678	 { ac_try='test -s conftest$ac_exeext'
7679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680  (eval $ac_try) 2>&5
7681  ac_status=$?
7682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683  (exit $ac_status); }; }; then
7684  ac_cv_func_connect=yes
7685else
7686  echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689ac_cv_func_connect=no
7690fi
7691rm -f conftest.err conftest.$ac_objext \
7692      conftest$ac_exeext conftest.$ac_ext
7693fi
7694echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7695echo "${ECHO_T}$ac_cv_func_connect" >&6
7696
7697    if test $ac_cv_func_connect = no; then
7698      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7699echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7700if test "${ac_cv_lib_socket_connect+set}" = set; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  ac_check_lib_save_LIBS=$LIBS
7704LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7705cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h.  */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h.  */
7711
7712/* Override any gcc2 internal prototype to avoid an error.  */
7713#ifdef __cplusplus
7714extern "C"
7715#endif
7716/* We use char because int might match the return type of a gcc2
7717   builtin and then its argument prototype would still apply.  */
7718char connect ();
7719int
7720main ()
7721{
7722connect ();
7723  ;
7724  return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext conftest$ac_exeext
7728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729  (eval $ac_link) 2>conftest.er1
7730  ac_status=$?
7731  grep -v '^ *+' conftest.er1 >conftest.err
7732  rm -f conftest.er1
7733  cat conftest.err >&5
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); } &&
7736	 { ac_try='test -z "$ac_c_werror_flag"
7737			 || test ! -s conftest.err'
7738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739  (eval $ac_try) 2>&5
7740  ac_status=$?
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); }; } &&
7743	 { ac_try='test -s conftest$ac_exeext'
7744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745  (eval $ac_try) 2>&5
7746  ac_status=$?
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); }; }; then
7749  ac_cv_lib_socket_connect=yes
7750else
7751  echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754ac_cv_lib_socket_connect=no
7755fi
7756rm -f conftest.err conftest.$ac_objext \
7757      conftest$ac_exeext conftest.$ac_ext
7758LIBS=$ac_check_lib_save_LIBS
7759fi
7760echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7761echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7762if test $ac_cv_lib_socket_connect = yes; then
7763  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7764fi
7765
7766    fi
7767
7768    # Guillermo Gomez says -lposix is necessary on A/UX.
7769    echo "$as_me:$LINENO: checking for remove" >&5
7770echo $ECHO_N "checking for remove... $ECHO_C" >&6
7771if test "${ac_cv_func_remove+set}" = set; then
7772  echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774  cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h.  */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h.  */
7780/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7782#define remove innocuous_remove
7783
7784/* System header to define __stub macros and hopefully few prototypes,
7785    which can conflict with char remove (); below.
7786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787    <limits.h> exists even on freestanding compilers.  */
7788
7789#ifdef __STDC__
7790# include <limits.h>
7791#else
7792# include <assert.h>
7793#endif
7794
7795#undef remove
7796
7797/* Override any gcc2 internal prototype to avoid an error.  */
7798#ifdef __cplusplus
7799extern "C"
7800{
7801#endif
7802/* We use char because int might match the return type of a gcc2
7803   builtin and then its argument prototype would still apply.  */
7804char remove ();
7805/* The GNU C library defines this for functions which it implements
7806    to always fail with ENOSYS.  Some functions are actually named
7807    something starting with __ and the normal name is an alias.  */
7808#if defined (__stub_remove) || defined (__stub___remove)
7809choke me
7810#else
7811char (*f) () = remove;
7812#endif
7813#ifdef __cplusplus
7814}
7815#endif
7816
7817int
7818main ()
7819{
7820return f != remove;
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827  (eval $ac_link) 2>conftest.er1
7828  ac_status=$?
7829  grep -v '^ *+' conftest.er1 >conftest.err
7830  rm -f conftest.er1
7831  cat conftest.err >&5
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); } &&
7834	 { ac_try='test -z "$ac_c_werror_flag"
7835			 || test ! -s conftest.err'
7836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837  (eval $ac_try) 2>&5
7838  ac_status=$?
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); }; } &&
7841	 { ac_try='test -s conftest$ac_exeext'
7842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843  (eval $ac_try) 2>&5
7844  ac_status=$?
7845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846  (exit $ac_status); }; }; then
7847  ac_cv_func_remove=yes
7848else
7849  echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852ac_cv_func_remove=no
7853fi
7854rm -f conftest.err conftest.$ac_objext \
7855      conftest$ac_exeext conftest.$ac_ext
7856fi
7857echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7858echo "${ECHO_T}$ac_cv_func_remove" >&6
7859
7860    if test $ac_cv_func_remove = no; then
7861      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7862echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7863if test "${ac_cv_lib_posix_remove+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lposix  $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h.  */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h.  */
7874
7875/* Override any gcc2 internal prototype to avoid an error.  */
7876#ifdef __cplusplus
7877extern "C"
7878#endif
7879/* We use char because int might match the return type of a gcc2
7880   builtin and then its argument prototype would still apply.  */
7881char remove ();
7882int
7883main ()
7884{
7885remove ();
7886  ;
7887  return 0;
7888}
7889_ACEOF
7890rm -f conftest.$ac_objext conftest$ac_exeext
7891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892  (eval $ac_link) 2>conftest.er1
7893  ac_status=$?
7894  grep -v '^ *+' conftest.er1 >conftest.err
7895  rm -f conftest.er1
7896  cat conftest.err >&5
7897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898  (exit $ac_status); } &&
7899	 { ac_try='test -z "$ac_c_werror_flag"
7900			 || test ! -s conftest.err'
7901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902  (eval $ac_try) 2>&5
7903  ac_status=$?
7904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905  (exit $ac_status); }; } &&
7906	 { ac_try='test -s conftest$ac_exeext'
7907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908  (eval $ac_try) 2>&5
7909  ac_status=$?
7910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); }; }; then
7912  ac_cv_lib_posix_remove=yes
7913else
7914  echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
7917ac_cv_lib_posix_remove=no
7918fi
7919rm -f conftest.err conftest.$ac_objext \
7920      conftest$ac_exeext conftest.$ac_ext
7921LIBS=$ac_check_lib_save_LIBS
7922fi
7923echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7924echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7925if test $ac_cv_lib_posix_remove = yes; then
7926  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7927fi
7928
7929    fi
7930
7931    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7932    echo "$as_me:$LINENO: checking for shmat" >&5
7933echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7934if test "${ac_cv_func_shmat+set}" = set; then
7935  echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937  cat >conftest.$ac_ext <<_ACEOF
7938/* confdefs.h.  */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
7942/* end confdefs.h.  */
7943/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7945#define shmat innocuous_shmat
7946
7947/* System header to define __stub macros and hopefully few prototypes,
7948    which can conflict with char shmat (); below.
7949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950    <limits.h> exists even on freestanding compilers.  */
7951
7952#ifdef __STDC__
7953# include <limits.h>
7954#else
7955# include <assert.h>
7956#endif
7957
7958#undef shmat
7959
7960/* Override any gcc2 internal prototype to avoid an error.  */
7961#ifdef __cplusplus
7962extern "C"
7963{
7964#endif
7965/* We use char because int might match the return type of a gcc2
7966   builtin and then its argument prototype would still apply.  */
7967char shmat ();
7968/* The GNU C library defines this for functions which it implements
7969    to always fail with ENOSYS.  Some functions are actually named
7970    something starting with __ and the normal name is an alias.  */
7971#if defined (__stub_shmat) || defined (__stub___shmat)
7972choke me
7973#else
7974char (*f) () = shmat;
7975#endif
7976#ifdef __cplusplus
7977}
7978#endif
7979
7980int
7981main ()
7982{
7983return f != shmat;
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext conftest$ac_exeext
7989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990  (eval $ac_link) 2>conftest.er1
7991  ac_status=$?
7992  grep -v '^ *+' conftest.er1 >conftest.err
7993  rm -f conftest.er1
7994  cat conftest.err >&5
7995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996  (exit $ac_status); } &&
7997	 { ac_try='test -z "$ac_c_werror_flag"
7998			 || test ! -s conftest.err'
7999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000  (eval $ac_try) 2>&5
8001  ac_status=$?
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); }; } &&
8004	 { ac_try='test -s conftest$ac_exeext'
8005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006  (eval $ac_try) 2>&5
8007  ac_status=$?
8008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009  (exit $ac_status); }; }; then
8010  ac_cv_func_shmat=yes
8011else
8012  echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015ac_cv_func_shmat=no
8016fi
8017rm -f conftest.err conftest.$ac_objext \
8018      conftest$ac_exeext conftest.$ac_ext
8019fi
8020echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8021echo "${ECHO_T}$ac_cv_func_shmat" >&6
8022
8023    if test $ac_cv_func_shmat = no; then
8024      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8025echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8026if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8027  echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029  ac_check_lib_save_LIBS=$LIBS
8030LIBS="-lipc  $LIBS"
8031cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h.  */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h.  */
8037
8038/* Override any gcc2 internal prototype to avoid an error.  */
8039#ifdef __cplusplus
8040extern "C"
8041#endif
8042/* We use char because int might match the return type of a gcc2
8043   builtin and then its argument prototype would still apply.  */
8044char shmat ();
8045int
8046main ()
8047{
8048shmat ();
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext conftest$ac_exeext
8054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055  (eval $ac_link) 2>conftest.er1
8056  ac_status=$?
8057  grep -v '^ *+' conftest.er1 >conftest.err
8058  rm -f conftest.er1
8059  cat conftest.err >&5
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); } &&
8062	 { ac_try='test -z "$ac_c_werror_flag"
8063			 || test ! -s conftest.err'
8064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065  (eval $ac_try) 2>&5
8066  ac_status=$?
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; } &&
8069	 { ac_try='test -s conftest$ac_exeext'
8070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071  (eval $ac_try) 2>&5
8072  ac_status=$?
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); }; }; then
8075  ac_cv_lib_ipc_shmat=yes
8076else
8077  echo "$as_me: failed program was:" >&5
8078sed 's/^/| /' conftest.$ac_ext >&5
8079
8080ac_cv_lib_ipc_shmat=no
8081fi
8082rm -f conftest.err conftest.$ac_objext \
8083      conftest$ac_exeext conftest.$ac_ext
8084LIBS=$ac_check_lib_save_LIBS
8085fi
8086echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8087echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8088if test $ac_cv_lib_ipc_shmat = yes; then
8089  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8090fi
8091
8092    fi
8093  fi
8094
8095  # Check for libraries that X11R6 Xt/Xaw programs need.
8096  ac_save_LDFLAGS=$LDFLAGS
8097  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8098  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8099  # check for ICE first), but we must link in the order -lSM -lICE or
8100  # we get undefined symbols.  So assume we have SM if we have ICE.
8101  # These have to be linked with before -lX11, unlike the other
8102  # libraries we check for below, so use a different variable.
8103  # John Interrante, Karl Berry
8104  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8105echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8106if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8107  echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109  ac_check_lib_save_LIBS=$LIBS
8110LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8111cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117
8118/* Override any gcc2 internal prototype to avoid an error.  */
8119#ifdef __cplusplus
8120extern "C"
8121#endif
8122/* We use char because int might match the return type of a gcc2
8123   builtin and then its argument prototype would still apply.  */
8124char IceConnectionNumber ();
8125int
8126main ()
8127{
8128IceConnectionNumber ();
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext conftest$ac_exeext
8134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135  (eval $ac_link) 2>conftest.er1
8136  ac_status=$?
8137  grep -v '^ *+' conftest.er1 >conftest.err
8138  rm -f conftest.er1
8139  cat conftest.err >&5
8140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } &&
8142	 { ac_try='test -z "$ac_c_werror_flag"
8143			 || test ! -s conftest.err'
8144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145  (eval $ac_try) 2>&5
8146  ac_status=$?
8147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148  (exit $ac_status); }; } &&
8149	 { ac_try='test -s conftest$ac_exeext'
8150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151  (eval $ac_try) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); }; }; then
8155  ac_cv_lib_ICE_IceConnectionNumber=yes
8156else
8157  echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160ac_cv_lib_ICE_IceConnectionNumber=no
8161fi
8162rm -f conftest.err conftest.$ac_objext \
8163      conftest$ac_exeext conftest.$ac_ext
8164LIBS=$ac_check_lib_save_LIBS
8165fi
8166echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8167echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8168if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8169  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8170fi
8171
8172  LDFLAGS=$ac_save_LDFLAGS
8173
8174fi
8175
8176
8177		# Check whether --enable-gtktest or --disable-gtktest was given.
8178if test "${enable_gtktest+set}" = set; then
8179  enableval="$enable_gtktest"
8180
8181else
8182  enable_gtktest=yes
8183fi;
8184
8185  pkg_config_args=gtk+-2.0
8186  for module in .
8187  do
8188      case "$module" in
8189         gthread)
8190             pkg_config_args="$pkg_config_args gthread-2.0"
8191         ;;
8192      esac
8193  done
8194
8195  no_gtk=""
8196
8197  # Extract the first word of "pkg-config", so it can be a program name with args.
8198set dummy pkg-config; ac_word=$2
8199echo "$as_me:$LINENO: checking for $ac_word" >&5
8200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8201if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8202  echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204  case $PKG_CONFIG in
8205  [\\/]* | ?:[\\/]*)
8206  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8207  ;;
8208  *)
8209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212  IFS=$as_save_IFS
8213  test -z "$as_dir" && as_dir=.
8214  for ac_exec_ext in '' $ac_executable_extensions; do
8215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221done
8222
8223  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8224  ;;
8225esac
8226fi
8227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8228
8229if test -n "$PKG_CONFIG"; then
8230  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8231echo "${ECHO_T}$PKG_CONFIG" >&6
8232else
8233  echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
8235fi
8236
8237
8238  if test x$PKG_CONFIG != xno ; then
8239    if pkg-config --atleast-pkgconfig-version 0.7 ; then
8240      :
8241    else
8242      echo "*** pkg-config too old; version 0.7 or better required."
8243      no_gtk=yes
8244      PKG_CONFIG=no
8245    fi
8246  else
8247    no_gtk=yes
8248  fi
8249
8250  min_gtk_version=2.4.0
8251  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
8252echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
8253
8254  if test x$PKG_CONFIG != xno ; then
8255    ## don't try to run the test against uninstalled libtool libs
8256    if $PKG_CONFIG --uninstalled $pkg_config_args; then
8257	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
8258	  enable_gtktest=no
8259    fi
8260
8261    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
8262	  :
8263    else
8264	  no_gtk=yes
8265    fi
8266  fi
8267
8268  if test x"$no_gtk" = x ; then
8269    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
8270    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
8271    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8272           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8273    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8274           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8275    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8276           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8277    if test "x$enable_gtktest" = "xyes" ; then
8278      ac_save_CFLAGS="$CFLAGS"
8279      ac_save_LIBS="$LIBS"
8280      CFLAGS="$CFLAGS $GTK_CFLAGS"
8281      LIBS="$GTK_LIBS $LIBS"
8282      rm -f conf.gtktest
8283      if test "$cross_compiling" = yes; then
8284  echo $ac_n "cross compiling; assumed OK... $ac_c"
8285else
8286  cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h.  */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h.  */
8292
8293#include <gtk/gtk.h>
8294#include <stdio.h>
8295#include <stdlib.h>
8296
8297int
8298main ()
8299{
8300  int major, minor, micro;
8301  char *tmp_version;
8302
8303  system ("touch conf.gtktest");
8304
8305  /* HP/UX 9 (%@#!) writes to sscanf strings */
8306  tmp_version = g_strdup("$min_gtk_version");
8307  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8308     printf("%s, bad version string\n", "$min_gtk_version");
8309     exit(1);
8310   }
8311
8312  if ((gtk_major_version != $gtk_config_major_version) ||
8313      (gtk_minor_version != $gtk_config_minor_version) ||
8314      (gtk_micro_version != $gtk_config_micro_version))
8315    {
8316      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8317             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8318             gtk_major_version, gtk_minor_version, gtk_micro_version);
8319      printf ("*** was found! If pkg-config was correct, then it is best\n");
8320      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8321      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8322      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8323      printf("*** required on your system.\n");
8324      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8325      printf("*** to point to the correct configuration files\n");
8326    }
8327  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8328	   (gtk_minor_version != GTK_MINOR_VERSION) ||
8329           (gtk_micro_version != GTK_MICRO_VERSION))
8330    {
8331      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8332	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8333      printf("*** library (version %d.%d.%d)\n",
8334	     gtk_major_version, gtk_minor_version, gtk_micro_version);
8335    }
8336  else
8337    {
8338      if ((gtk_major_version > major) ||
8339        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8340        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8341      {
8342        return 0;
8343       }
8344     else
8345      {
8346        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8347               gtk_major_version, gtk_minor_version, gtk_micro_version);
8348        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8349	       major, minor, micro);
8350        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8351        printf("***\n");
8352        printf("*** If you have already installed a sufficiently new version, this error\n");
8353        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8354        printf("*** being found. The easiest way to fix this is to remove the old version\n");
8355        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
8356        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8357        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8358        printf("*** so that the correct libraries are found at run-time))\n");
8359      }
8360    }
8361  return 1;
8362}
8363
8364_ACEOF
8365rm -f conftest$ac_exeext
8366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367  (eval $ac_link) 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372  (eval $ac_try) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); }; }; then
8376  :
8377else
8378  echo "$as_me: program exited with status $ac_status" >&5
8379echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382( exit $ac_status )
8383no_gtk=yes
8384fi
8385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8386fi
8387       CFLAGS="$ac_save_CFLAGS"
8388       LIBS="$ac_save_LIBS"
8389     fi
8390  fi
8391  if test "x$no_gtk" = x ; then
8392     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
8393echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
8394     :
8395  else
8396     echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398     if test "$PKG_CONFIG" = "no" ; then
8399       echo "*** A new enough version of pkg-config was not found."
8400       echo "*** See http://pkgconfig.sourceforge.net"
8401     else
8402       if test -f conf.gtktest ; then
8403        :
8404       else
8405          echo "*** Could not run GTK+ test program, checking why..."
8406	  ac_save_CFLAGS="$CFLAGS"
8407	  ac_save_LIBS="$LIBS"
8408          CFLAGS="$CFLAGS $GTK_CFLAGS"
8409          LIBS="$LIBS $GTK_LIBS"
8410          cat >conftest.$ac_ext <<_ACEOF
8411/* confdefs.h.  */
8412_ACEOF
8413cat confdefs.h >>conftest.$ac_ext
8414cat >>conftest.$ac_ext <<_ACEOF
8415/* end confdefs.h.  */
8416
8417#include <gtk/gtk.h>
8418#include <stdio.h>
8419
8420int
8421main ()
8422{
8423 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8424  ;
8425  return 0;
8426}
8427_ACEOF
8428rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430  (eval $ac_link) 2>conftest.er1
8431  ac_status=$?
8432  grep -v '^ *+' conftest.er1 >conftest.err
8433  rm -f conftest.er1
8434  cat conftest.err >&5
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); } &&
8437	 { ac_try='test -z "$ac_c_werror_flag"
8438			 || test ! -s conftest.err'
8439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440  (eval $ac_try) 2>&5
8441  ac_status=$?
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); }; } &&
8444	 { ac_try='test -s conftest$ac_exeext'
8445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446  (eval $ac_try) 2>&5
8447  ac_status=$?
8448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449  (exit $ac_status); }; }; then
8450   echo "*** The test program compiled, but did not run. This usually means"
8451          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
8452          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
8453          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8454          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8455          echo "*** is required on your system"
8456	  echo "***"
8457          echo "*** If you have an old version installed, it is best to remove it, although"
8458          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8459else
8460  echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 echo "*** The test program failed to compile or link. See the file config.log for the"
8464          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
8465fi
8466rm -f conftest.err conftest.$ac_objext \
8467      conftest$ac_exeext conftest.$ac_ext
8468          CFLAGS="$ac_save_CFLAGS"
8469          LIBS="$ac_save_LIBS"
8470       fi
8471     fi
8472     GTK_CFLAGS=""
8473     GTK_LIBS=""
8474     { { echo "$as_me:$LINENO: error: GTK+ 2.4.0+ is required to build Viewglob" >&5
8475echo "$as_me: error: GTK+ 2.4.0+ is required to build Viewglob" >&2;}
8476   { (exit 1); exit 1; }; }
8477  fi
8478
8479
8480  rm -f conf.gtktest
8481
8482fi
8483
8484                                                                                ac_config_files="$ac_config_files Makefile vgseer/Makefile vgd/Makefile vgdisplay/Makefile vgexpand/Makefile vgping/Makefile shell/Makefile common/Makefile"
8485
8486
8487cat >confcache <<\_ACEOF
8488# This file is a shell script that caches the results of configure
8489# tests run on this system so they can be shared between configure
8490# scripts and configure runs, see configure's option --config-cache.
8491# It is not useful on other systems.  If it contains results you don't
8492# want to keep, you may remove or edit it.
8493#
8494# config.status only pays attention to the cache file if you give it
8495# the --recheck option to rerun configure.
8496#
8497# `ac_cv_env_foo' variables (set or unset) will be overridden when
8498# loading this file, other *unset* `ac_cv_foo' will be assigned the
8499# following values.
8500
8501_ACEOF
8502
8503# The following way of writing the cache mishandles newlines in values,
8504# but we know of no workaround that is simple, portable, and efficient.
8505# So, don't put newlines in cache variables' values.
8506# Ultrix sh set writes to stderr and can't be redirected directly,
8507# and sets the high bit in the cache file unless we assign to the vars.
8508{
8509  (set) 2>&1 |
8510    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8511    *ac_space=\ *)
8512      # `set' does not quote correctly, so add quotes (double-quote
8513      # substitution turns \\\\ into \\, and sed turns \\ into \).
8514      sed -n \
8515	"s/'/'\\\\''/g;
8516	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8517      ;;
8518    *)
8519      # `set' quotes correctly as required by POSIX, so do not add quotes.
8520      sed -n \
8521	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8522      ;;
8523    esac;
8524} |
8525  sed '
8526     t clear
8527     : clear
8528     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8529     t end
8530     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8531     : end' >>confcache
8532if diff $cache_file confcache >/dev/null 2>&1; then :; else
8533  if test -w $cache_file; then
8534    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8535    cat confcache >$cache_file
8536  else
8537    echo "not updating unwritable cache $cache_file"
8538  fi
8539fi
8540rm -f confcache
8541
8542test "x$prefix" = xNONE && prefix=$ac_default_prefix
8543# Let make expand exec_prefix.
8544test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8545
8546# VPATH may cause trouble with some makes, so we remove $(srcdir),
8547# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8548# trailing colons and then remove the whole line if VPATH becomes empty
8549# (actually we leave an empty line to preserve line numbers).
8550if test "x$srcdir" = x.; then
8551  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8552s/:*\$(srcdir):*/:/;
8553s/:*\${srcdir}:*/:/;
8554s/:*@srcdir@:*/:/;
8555s/^\([^=]*=[	 ]*\):*/\1/;
8556s/:*$//;
8557s/^[^=]*=[	 ]*$//;
8558}'
8559fi
8560
8561DEFS=-DHAVE_CONFIG_H
8562
8563ac_libobjs=
8564ac_ltlibobjs=
8565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8566  # 1. Remove the extension, and $U if already installed.
8567  ac_i=`echo "$ac_i" |
8568	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8569  # 2. Add them.
8570  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8571  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8572done
8573LIBOBJS=$ac_libobjs
8574
8575LTLIBOBJS=$ac_ltlibobjs
8576
8577
8578if test -z "${FULL_BUILD_TRUE}" && test -z "${FULL_BUILD_FALSE}"; then
8579  { { echo "$as_me:$LINENO: error: conditional \"FULL_BUILD\" was never defined.
8580Usually this means the macro was only invoked conditionally." >&5
8581echo "$as_me: error: conditional \"FULL_BUILD\" was never defined.
8582Usually this means the macro was only invoked conditionally." >&2;}
8583   { (exit 1); exit 1; }; }
8584fi
8585if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8586  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8587Usually this means the macro was only invoked conditionally." >&5
8588echo "$as_me: error: conditional \"AMDEP\" was never defined.
8589Usually this means the macro was only invoked conditionally." >&2;}
8590   { (exit 1); exit 1; }; }
8591fi
8592if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8593  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8594Usually this means the macro was only invoked conditionally." >&5
8595echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8596Usually this means the macro was only invoked conditionally." >&2;}
8597   { (exit 1); exit 1; }; }
8598fi
8599
8600: ${CONFIG_STATUS=./config.status}
8601ac_clean_files_save=$ac_clean_files
8602ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8603{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8604echo "$as_me: creating $CONFIG_STATUS" >&6;}
8605cat >$CONFIG_STATUS <<_ACEOF
8606#! $SHELL
8607# Generated by $as_me.
8608# Run this file to recreate the current configuration.
8609# Compiler output produced by configure, useful for debugging
8610# configure, is in config.log if it exists.
8611
8612debug=false
8613ac_cs_recheck=false
8614ac_cs_silent=false
8615SHELL=\${CONFIG_SHELL-$SHELL}
8616_ACEOF
8617
8618cat >>$CONFIG_STATUS <<\_ACEOF
8619## --------------------- ##
8620## M4sh Initialization.  ##
8621## --------------------- ##
8622
8623# Be Bourne compatible
8624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8625  emulate sh
8626  NULLCMD=:
8627  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8628  # is contrary to our usage.  Disable this feature.
8629  alias -g '${1+"$@"}'='"$@"'
8630elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8631  set -o posix
8632fi
8633DUALCASE=1; export DUALCASE # for MKS sh
8634
8635# Support unset when possible.
8636if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8637  as_unset=unset
8638else
8639  as_unset=false
8640fi
8641
8642
8643# Work around bugs in pre-3.0 UWIN ksh.
8644$as_unset ENV MAIL MAILPATH
8645PS1='$ '
8646PS2='> '
8647PS4='+ '
8648
8649# NLS nuisances.
8650for as_var in \
8651  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8652  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8653  LC_TELEPHONE LC_TIME
8654do
8655  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8656    eval $as_var=C; export $as_var
8657  else
8658    $as_unset $as_var
8659  fi
8660done
8661
8662# Required to use basename.
8663if expr a : '\(a\)' >/dev/null 2>&1; then
8664  as_expr=expr
8665else
8666  as_expr=false
8667fi
8668
8669if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8670  as_basename=basename
8671else
8672  as_basename=false
8673fi
8674
8675
8676# Name of the executable.
8677as_me=`$as_basename "$0" ||
8678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8679	 X"$0" : 'X\(//\)$' \| \
8680	 X"$0" : 'X\(/\)$' \| \
8681	 .     : '\(.\)' 2>/dev/null ||
8682echo X/"$0" |
8683    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8684  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8685  	  /^X\/\(\/\).*/{ s//\1/; q; }
8686  	  s/.*/./; q'`
8687
8688
8689# PATH needs CR, and LINENO needs CR and PATH.
8690# Avoid depending upon Character Ranges.
8691as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8692as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8693as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8694as_cr_digits='0123456789'
8695as_cr_alnum=$as_cr_Letters$as_cr_digits
8696
8697# The user is always right.
8698if test "${PATH_SEPARATOR+set}" != set; then
8699  echo "#! /bin/sh" >conf$$.sh
8700  echo  "exit 0"   >>conf$$.sh
8701  chmod +x conf$$.sh
8702  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8703    PATH_SEPARATOR=';'
8704  else
8705    PATH_SEPARATOR=:
8706  fi
8707  rm -f conf$$.sh
8708fi
8709
8710
8711  as_lineno_1=$LINENO
8712  as_lineno_2=$LINENO
8713  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8714  test "x$as_lineno_1" != "x$as_lineno_2" &&
8715  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8716  # Find who we are.  Look in the path if we contain no path at all
8717  # relative or not.
8718  case $0 in
8719    *[\\/]* ) as_myself=$0 ;;
8720    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723  IFS=$as_save_IFS
8724  test -z "$as_dir" && as_dir=.
8725  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8726done
8727
8728       ;;
8729  esac
8730  # We did not find ourselves, most probably we were run as `sh COMMAND'
8731  # in which case we are not to be found in the path.
8732  if test "x$as_myself" = x; then
8733    as_myself=$0
8734  fi
8735  if test ! -f "$as_myself"; then
8736    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8737echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8738   { (exit 1); exit 1; }; }
8739  fi
8740  case $CONFIG_SHELL in
8741  '')
8742    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8744do
8745  IFS=$as_save_IFS
8746  test -z "$as_dir" && as_dir=.
8747  for as_base in sh bash ksh sh5; do
8748	 case $as_dir in
8749	 /*)
8750	   if ("$as_dir/$as_base" -c '
8751  as_lineno_1=$LINENO
8752  as_lineno_2=$LINENO
8753  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8754  test "x$as_lineno_1" != "x$as_lineno_2" &&
8755  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8756	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8757	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8758	     CONFIG_SHELL=$as_dir/$as_base
8759	     export CONFIG_SHELL
8760	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8761	   fi;;
8762	 esac
8763       done
8764done
8765;;
8766  esac
8767
8768  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8769  # uniformly replaced by the line number.  The first 'sed' inserts a
8770  # line-number line before each line; the second 'sed' does the real
8771  # work.  The second script uses 'N' to pair each line-number line
8772  # with the numbered line, and appends trailing '-' during
8773  # substitution so that $LINENO is not a special case at line end.
8774  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8775  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8776  sed '=' <$as_myself |
8777    sed '
8778      N
8779      s,$,-,
8780      : loop
8781      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8782      t loop
8783      s,-$,,
8784      s,^['$as_cr_digits']*\n,,
8785    ' >$as_me.lineno &&
8786  chmod +x $as_me.lineno ||
8787    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8788echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8789   { (exit 1); exit 1; }; }
8790
8791  # Don't try to exec as it changes $[0], causing all sort of problems
8792  # (the dirname of $[0] is not the place where we might find the
8793  # original and so on.  Autoconf is especially sensible to this).
8794  . ./$as_me.lineno
8795  # Exit status is that of the last command.
8796  exit
8797}
8798
8799
8800case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8801  *c*,-n*) ECHO_N= ECHO_C='
8802' ECHO_T='	' ;;
8803  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8804  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8805esac
8806
8807if expr a : '\(a\)' >/dev/null 2>&1; then
8808  as_expr=expr
8809else
8810  as_expr=false
8811fi
8812
8813rm -f conf$$ conf$$.exe conf$$.file
8814echo >conf$$.file
8815if ln -s conf$$.file conf$$ 2>/dev/null; then
8816  # We could just check for DJGPP; but this test a) works b) is more generic
8817  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8818  if test -f conf$$.exe; then
8819    # Don't use ln at all; we don't have any links
8820    as_ln_s='cp -p'
8821  else
8822    as_ln_s='ln -s'
8823  fi
8824elif ln conf$$.file conf$$ 2>/dev/null; then
8825  as_ln_s=ln
8826else
8827  as_ln_s='cp -p'
8828fi
8829rm -f conf$$ conf$$.exe conf$$.file
8830
8831if mkdir -p . 2>/dev/null; then
8832  as_mkdir_p=:
8833else
8834  test -d ./-p && rmdir ./-p
8835  as_mkdir_p=false
8836fi
8837
8838as_executable_p="test -f"
8839
8840# Sed expression to map a string onto a valid CPP name.
8841as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8842
8843# Sed expression to map a string onto a valid variable name.
8844as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8845
8846
8847# IFS
8848# We need space, tab and new line, in precisely that order.
8849as_nl='
8850'
8851IFS=" 	$as_nl"
8852
8853# CDPATH.
8854$as_unset CDPATH
8855
8856exec 6>&1
8857
8858# Open the log real soon, to keep \$[0] and so on meaningful, and to
8859# report actual input values of CONFIG_FILES etc. instead of their
8860# values after options handling.  Logging --version etc. is OK.
8861exec 5>>config.log
8862{
8863  echo
8864  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8865## Running $as_me. ##
8866_ASBOX
8867} >&5
8868cat >&5 <<_CSEOF
8869
8870This file was extended by viewglob $as_me 2.0.4, which was
8871generated by GNU Autoconf 2.59.  Invocation command line was
8872
8873  CONFIG_FILES    = $CONFIG_FILES
8874  CONFIG_HEADERS  = $CONFIG_HEADERS
8875  CONFIG_LINKS    = $CONFIG_LINKS
8876  CONFIG_COMMANDS = $CONFIG_COMMANDS
8877  $ $0 $@
8878
8879_CSEOF
8880echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8881echo >&5
8882_ACEOF
8883
8884# Files that config.status was made for.
8885if test -n "$ac_config_files"; then
8886  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8887fi
8888
8889if test -n "$ac_config_headers"; then
8890  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8891fi
8892
8893if test -n "$ac_config_links"; then
8894  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8895fi
8896
8897if test -n "$ac_config_commands"; then
8898  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8899fi
8900
8901cat >>$CONFIG_STATUS <<\_ACEOF
8902
8903ac_cs_usage="\
8904\`$as_me' instantiates files from templates according to the
8905current configuration.
8906
8907Usage: $0 [OPTIONS] [FILE]...
8908
8909  -h, --help       print this help, then exit
8910  -V, --version    print version number, then exit
8911  -q, --quiet      do not print progress messages
8912  -d, --debug      don't remove temporary files
8913      --recheck    update $as_me by reconfiguring in the same conditions
8914  --file=FILE[:TEMPLATE]
8915		   instantiate the configuration file FILE
8916  --header=FILE[:TEMPLATE]
8917		   instantiate the configuration header FILE
8918
8919Configuration files:
8920$config_files
8921
8922Configuration headers:
8923$config_headers
8924
8925Configuration commands:
8926$config_commands
8927
8928Report bugs to <bug-autoconf@gnu.org>."
8929_ACEOF
8930
8931cat >>$CONFIG_STATUS <<_ACEOF
8932ac_cs_version="\\
8933viewglob config.status 2.0.4
8934configured by $0, generated by GNU Autoconf 2.59,
8935  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8936
8937Copyright (C) 2003 Free Software Foundation, Inc.
8938This config.status script is free software; the Free Software Foundation
8939gives unlimited permission to copy, distribute and modify it."
8940srcdir=$srcdir
8941INSTALL="$INSTALL"
8942_ACEOF
8943
8944cat >>$CONFIG_STATUS <<\_ACEOF
8945# If no file are specified by the user, then we need to provide default
8946# value.  By we need to know if files were specified by the user.
8947ac_need_defaults=:
8948while test $# != 0
8949do
8950  case $1 in
8951  --*=*)
8952    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8953    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8954    ac_shift=:
8955    ;;
8956  -*)
8957    ac_option=$1
8958    ac_optarg=$2
8959    ac_shift=shift
8960    ;;
8961  *) # This is not an option, so the user has probably given explicit
8962     # arguments.
8963     ac_option=$1
8964     ac_need_defaults=false;;
8965  esac
8966
8967  case $ac_option in
8968  # Handling of the options.
8969_ACEOF
8970cat >>$CONFIG_STATUS <<\_ACEOF
8971  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8972    ac_cs_recheck=: ;;
8973  --version | --vers* | -V )
8974    echo "$ac_cs_version"; exit 0 ;;
8975  --he | --h)
8976    # Conflict between --help and --header
8977    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8978Try \`$0 --help' for more information." >&5
8979echo "$as_me: error: ambiguous option: $1
8980Try \`$0 --help' for more information." >&2;}
8981   { (exit 1); exit 1; }; };;
8982  --help | --hel | -h )
8983    echo "$ac_cs_usage"; exit 0 ;;
8984  --debug | --d* | -d )
8985    debug=: ;;
8986  --file | --fil | --fi | --f )
8987    $ac_shift
8988    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8989    ac_need_defaults=false;;
8990  --header | --heade | --head | --hea )
8991    $ac_shift
8992    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8993    ac_need_defaults=false;;
8994  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8995  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8996    ac_cs_silent=: ;;
8997
8998  # This is an error.
8999  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9000Try \`$0 --help' for more information." >&5
9001echo "$as_me: error: unrecognized option: $1
9002Try \`$0 --help' for more information." >&2;}
9003   { (exit 1); exit 1; }; } ;;
9004
9005  *) ac_config_targets="$ac_config_targets $1" ;;
9006
9007  esac
9008  shift
9009done
9010
9011ac_configure_extra_args=
9012
9013if $ac_cs_silent; then
9014  exec 6>/dev/null
9015  ac_configure_extra_args="$ac_configure_extra_args --silent"
9016fi
9017
9018_ACEOF
9019cat >>$CONFIG_STATUS <<_ACEOF
9020if \$ac_cs_recheck; then
9021  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9022  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9023fi
9024
9025_ACEOF
9026
9027cat >>$CONFIG_STATUS <<_ACEOF
9028#
9029# INIT-COMMANDS section.
9030#
9031
9032AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9033
9034_ACEOF
9035
9036
9037
9038cat >>$CONFIG_STATUS <<\_ACEOF
9039for ac_config_target in $ac_config_targets
9040do
9041  case "$ac_config_target" in
9042  # Handling of arguments.
9043  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9044  "vgseer/Makefile" ) CONFIG_FILES="$CONFIG_FILES vgseer/Makefile" ;;
9045  "vgd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vgd/Makefile" ;;
9046  "vgdisplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES vgdisplay/Makefile" ;;
9047  "vgexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES vgexpand/Makefile" ;;
9048  "vgping/Makefile" ) CONFIG_FILES="$CONFIG_FILES vgping/Makefile" ;;
9049  "shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES shell/Makefile" ;;
9050  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
9051  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9052  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9053  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9054echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9055   { (exit 1); exit 1; }; };;
9056  esac
9057done
9058
9059# If the user did not use the arguments to specify the items to instantiate,
9060# then the envvar interface is used.  Set only those that are not.
9061# We use the long form for the default assignment because of an extremely
9062# bizarre bug on SunOS 4.1.3.
9063if $ac_need_defaults; then
9064  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9065  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9066  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9067fi
9068
9069# Have a temporary directory for convenience.  Make it in the build tree
9070# simply because there is no reason to put it here, and in addition,
9071# creating and moving files from /tmp can sometimes cause problems.
9072# Create a temporary directory, and hook for its removal unless debugging.
9073$debug ||
9074{
9075  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9076  trap '{ (exit 1); exit 1; }' 1 2 13 15
9077}
9078
9079# Create a (secure) tmp directory for tmp files.
9080
9081{
9082  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9083  test -n "$tmp" && test -d "$tmp"
9084}  ||
9085{
9086  tmp=./confstat$$-$RANDOM
9087  (umask 077 && mkdir $tmp)
9088} ||
9089{
9090   echo "$me: cannot create a temporary directory in ." >&2
9091   { (exit 1); exit 1; }
9092}
9093
9094_ACEOF
9095
9096cat >>$CONFIG_STATUS <<_ACEOF
9097
9098#
9099# CONFIG_FILES section.
9100#
9101
9102# No need to generate the scripts if there are no CONFIG_FILES.
9103# This happens for instance when ./config.status config.h
9104if test -n "\$CONFIG_FILES"; then
9105  # Protect against being on the right side of a sed subst in config.status.
9106  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9107   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9108s,@SHELL@,$SHELL,;t t
9109s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9110s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9111s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9112s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9113s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9114s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9115s,@exec_prefix@,$exec_prefix,;t t
9116s,@prefix@,$prefix,;t t
9117s,@program_transform_name@,$program_transform_name,;t t
9118s,@bindir@,$bindir,;t t
9119s,@sbindir@,$sbindir,;t t
9120s,@libexecdir@,$libexecdir,;t t
9121s,@datadir@,$datadir,;t t
9122s,@sysconfdir@,$sysconfdir,;t t
9123s,@sharedstatedir@,$sharedstatedir,;t t
9124s,@localstatedir@,$localstatedir,;t t
9125s,@libdir@,$libdir,;t t
9126s,@includedir@,$includedir,;t t
9127s,@oldincludedir@,$oldincludedir,;t t
9128s,@infodir@,$infodir,;t t
9129s,@mandir@,$mandir,;t t
9130s,@build_alias@,$build_alias,;t t
9131s,@host_alias@,$host_alias,;t t
9132s,@target_alias@,$target_alias,;t t
9133s,@DEFS@,$DEFS,;t t
9134s,@ECHO_C@,$ECHO_C,;t t
9135s,@ECHO_N@,$ECHO_N,;t t
9136s,@ECHO_T@,$ECHO_T,;t t
9137s,@LIBS@,$LIBS,;t t
9138s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9139s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9140s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9141s,@CYGPATH_W@,$CYGPATH_W,;t t
9142s,@PACKAGE@,$PACKAGE,;t t
9143s,@VERSION@,$VERSION,;t t
9144s,@ACLOCAL@,$ACLOCAL,;t t
9145s,@AUTOCONF@,$AUTOCONF,;t t
9146s,@AUTOMAKE@,$AUTOMAKE,;t t
9147s,@AUTOHEADER@,$AUTOHEADER,;t t
9148s,@MAKEINFO@,$MAKEINFO,;t t
9149s,@install_sh@,$install_sh,;t t
9150s,@STRIP@,$STRIP,;t t
9151s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9152s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9153s,@mkdir_p@,$mkdir_p,;t t
9154s,@AWK@,$AWK,;t t
9155s,@SET_MAKE@,$SET_MAKE,;t t
9156s,@am__leading_dot@,$am__leading_dot,;t t
9157s,@AMTAR@,$AMTAR,;t t
9158s,@am__tar@,$am__tar,;t t
9159s,@am__untar@,$am__untar,;t t
9160s,@FULL_BUILD_TRUE@,$FULL_BUILD_TRUE,;t t
9161s,@FULL_BUILD_FALSE@,$FULL_BUILD_FALSE,;t t
9162s,@CC@,$CC,;t t
9163s,@CFLAGS@,$CFLAGS,;t t
9164s,@LDFLAGS@,$LDFLAGS,;t t
9165s,@CPPFLAGS@,$CPPFLAGS,;t t
9166s,@ac_ct_CC@,$ac_ct_CC,;t t
9167s,@EXEEXT@,$EXEEXT,;t t
9168s,@OBJEXT@,$OBJEXT,;t t
9169s,@DEPDIR@,$DEPDIR,;t t
9170s,@am__include@,$am__include,;t t
9171s,@am__quote@,$am__quote,;t t
9172s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9173s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9174s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9175s,@CCDEPMODE@,$CCDEPMODE,;t t
9176s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9177s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9178s,@CPP@,$CPP,;t t
9179s,@EGREP@,$EGREP,;t t
9180s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9181s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
9182s,@GLIB_LIBS@,$GLIB_LIBS,;t t
9183s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
9184s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
9185s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
9186s,@BASH_FULL_PATH@,$BASH_FULL_PATH,;t t
9187s,@SED@,$SED,;t t
9188s,@RELEASE_DATE@,$RELEASE_DATE,;t t
9189s,@X_CFLAGS@,$X_CFLAGS,;t t
9190s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9191s,@X_LIBS@,$X_LIBS,;t t
9192s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9193s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
9194s,@GTK_LIBS@,$GTK_LIBS,;t t
9195s,@LIBOBJS@,$LIBOBJS,;t t
9196s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9197CEOF
9198
9199_ACEOF
9200
9201  cat >>$CONFIG_STATUS <<\_ACEOF
9202  # Split the substitutions into bite-sized pieces for seds with
9203  # small command number limits, like on Digital OSF/1 and HP-UX.
9204  ac_max_sed_lines=48
9205  ac_sed_frag=1 # Number of current file.
9206  ac_beg=1 # First line for current file.
9207  ac_end=$ac_max_sed_lines # Line after last line for current file.
9208  ac_more_lines=:
9209  ac_sed_cmds=
9210  while $ac_more_lines; do
9211    if test $ac_beg -gt 1; then
9212      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9213    else
9214      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9215    fi
9216    if test ! -s $tmp/subs.frag; then
9217      ac_more_lines=false
9218    else
9219      # The purpose of the label and of the branching condition is to
9220      # speed up the sed processing (if there are no `@' at all, there
9221      # is no need to browse any of the substitutions).
9222      # These are the two extra sed commands mentioned above.
9223      (echo ':t
9224  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9225      if test -z "$ac_sed_cmds"; then
9226	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9227      else
9228	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9229      fi
9230      ac_sed_frag=`expr $ac_sed_frag + 1`
9231      ac_beg=$ac_end
9232      ac_end=`expr $ac_end + $ac_max_sed_lines`
9233    fi
9234  done
9235  if test -z "$ac_sed_cmds"; then
9236    ac_sed_cmds=cat
9237  fi
9238fi # test -n "$CONFIG_FILES"
9239
9240_ACEOF
9241cat >>$CONFIG_STATUS <<\_ACEOF
9242for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9243  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9244  case $ac_file in
9245  - | *:- | *:-:* ) # input from stdin
9246	cat >$tmp/stdin
9247	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9248	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9249  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9250	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9251  * )   ac_file_in=$ac_file.in ;;
9252  esac
9253
9254  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9255  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9257	 X"$ac_file" : 'X\(//\)[^/]' \| \
9258	 X"$ac_file" : 'X\(//\)$' \| \
9259	 X"$ac_file" : 'X\(/\)' \| \
9260	 .     : '\(.\)' 2>/dev/null ||
9261echo X"$ac_file" |
9262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9263  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9264  	  /^X\(\/\/\)$/{ s//\1/; q; }
9265  	  /^X\(\/\).*/{ s//\1/; q; }
9266  	  s/.*/./; q'`
9267  { if $as_mkdir_p; then
9268    mkdir -p "$ac_dir"
9269  else
9270    as_dir="$ac_dir"
9271    as_dirs=
9272    while test ! -d "$as_dir"; do
9273      as_dirs="$as_dir $as_dirs"
9274      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9275$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9276	 X"$as_dir" : 'X\(//\)[^/]' \| \
9277	 X"$as_dir" : 'X\(//\)$' \| \
9278	 X"$as_dir" : 'X\(/\)' \| \
9279	 .     : '\(.\)' 2>/dev/null ||
9280echo X"$as_dir" |
9281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9282  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9283  	  /^X\(\/\/\)$/{ s//\1/; q; }
9284  	  /^X\(\/\).*/{ s//\1/; q; }
9285  	  s/.*/./; q'`
9286    done
9287    test ! -n "$as_dirs" || mkdir $as_dirs
9288  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9289echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9290   { (exit 1); exit 1; }; }; }
9291
9292  ac_builddir=.
9293
9294if test "$ac_dir" != .; then
9295  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9296  # A "../" for each directory in $ac_dir_suffix.
9297  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9298else
9299  ac_dir_suffix= ac_top_builddir=
9300fi
9301
9302case $srcdir in
9303  .)  # No --srcdir option.  We are building in place.
9304    ac_srcdir=.
9305    if test -z "$ac_top_builddir"; then
9306       ac_top_srcdir=.
9307    else
9308       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9309    fi ;;
9310  [\\/]* | ?:[\\/]* )  # Absolute path.
9311    ac_srcdir=$srcdir$ac_dir_suffix;
9312    ac_top_srcdir=$srcdir ;;
9313  *) # Relative path.
9314    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9315    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9316esac
9317
9318# Do not use `cd foo && pwd` to compute absolute paths, because
9319# the directories may not exist.
9320case `pwd` in
9321.) ac_abs_builddir="$ac_dir";;
9322*)
9323  case "$ac_dir" in
9324  .) ac_abs_builddir=`pwd`;;
9325  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9326  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9327  esac;;
9328esac
9329case $ac_abs_builddir in
9330.) ac_abs_top_builddir=${ac_top_builddir}.;;
9331*)
9332  case ${ac_top_builddir}. in
9333  .) ac_abs_top_builddir=$ac_abs_builddir;;
9334  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9335  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9336  esac;;
9337esac
9338case $ac_abs_builddir in
9339.) ac_abs_srcdir=$ac_srcdir;;
9340*)
9341  case $ac_srcdir in
9342  .) ac_abs_srcdir=$ac_abs_builddir;;
9343  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9344  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9345  esac;;
9346esac
9347case $ac_abs_builddir in
9348.) ac_abs_top_srcdir=$ac_top_srcdir;;
9349*)
9350  case $ac_top_srcdir in
9351  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9352  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9353  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9354  esac;;
9355esac
9356
9357
9358  case $INSTALL in
9359  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9360  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9361  esac
9362
9363  if test x"$ac_file" != x-; then
9364    { echo "$as_me:$LINENO: creating $ac_file" >&5
9365echo "$as_me: creating $ac_file" >&6;}
9366    rm -f "$ac_file"
9367  fi
9368  # Let's still pretend it is `configure' which instantiates (i.e., don't
9369  # use $as_me), people would be surprised to read:
9370  #    /* config.h.  Generated by config.status.  */
9371  if test x"$ac_file" = x-; then
9372    configure_input=
9373  else
9374    configure_input="$ac_file.  "
9375  fi
9376  configure_input=$configure_input"Generated from `echo $ac_file_in |
9377				     sed 's,.*/,,'` by configure."
9378
9379  # First look for the input files in the build tree, otherwise in the
9380  # src tree.
9381  ac_file_inputs=`IFS=:
9382    for f in $ac_file_in; do
9383      case $f in
9384      -) echo $tmp/stdin ;;
9385      [\\/$]*)
9386	 # Absolute (can't be DOS-style, as IFS=:)
9387	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9388echo "$as_me: error: cannot find input file: $f" >&2;}
9389   { (exit 1); exit 1; }; }
9390	 echo "$f";;
9391      *) # Relative
9392	 if test -f "$f"; then
9393	   # Build tree
9394	   echo "$f"
9395	 elif test -f "$srcdir/$f"; then
9396	   # Source tree
9397	   echo "$srcdir/$f"
9398	 else
9399	   # /dev/null tree
9400	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9401echo "$as_me: error: cannot find input file: $f" >&2;}
9402   { (exit 1); exit 1; }; }
9403	 fi;;
9404      esac
9405    done` || { (exit 1); exit 1; }
9406_ACEOF
9407cat >>$CONFIG_STATUS <<_ACEOF
9408  sed "$ac_vpsub
9409$extrasub
9410_ACEOF
9411cat >>$CONFIG_STATUS <<\_ACEOF
9412:t
9413/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9414s,@configure_input@,$configure_input,;t t
9415s,@srcdir@,$ac_srcdir,;t t
9416s,@abs_srcdir@,$ac_abs_srcdir,;t t
9417s,@top_srcdir@,$ac_top_srcdir,;t t
9418s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9419s,@builddir@,$ac_builddir,;t t
9420s,@abs_builddir@,$ac_abs_builddir,;t t
9421s,@top_builddir@,$ac_top_builddir,;t t
9422s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9423s,@INSTALL@,$ac_INSTALL,;t t
9424" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9425  rm -f $tmp/stdin
9426  if test x"$ac_file" != x-; then
9427    mv $tmp/out $ac_file
9428  else
9429    cat $tmp/out
9430    rm -f $tmp/out
9431  fi
9432
9433done
9434_ACEOF
9435cat >>$CONFIG_STATUS <<\_ACEOF
9436
9437#
9438# CONFIG_HEADER section.
9439#
9440
9441# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9442# NAME is the cpp macro being defined and VALUE is the value it is being given.
9443#
9444# ac_d sets the value in "#define NAME VALUE" lines.
9445ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9446ac_dB='[	 ].*$,\1#\2'
9447ac_dC=' '
9448ac_dD=',;t'
9449# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9450ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9451ac_uB='$,\1#\2define\3'
9452ac_uC=' '
9453ac_uD=',;t'
9454
9455for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9456  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9457  case $ac_file in
9458  - | *:- | *:-:* ) # input from stdin
9459	cat >$tmp/stdin
9460	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9461	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9462  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9463	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9464  * )   ac_file_in=$ac_file.in ;;
9465  esac
9466
9467  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9468echo "$as_me: creating $ac_file" >&6;}
9469
9470  # First look for the input files in the build tree, otherwise in the
9471  # src tree.
9472  ac_file_inputs=`IFS=:
9473    for f in $ac_file_in; do
9474      case $f in
9475      -) echo $tmp/stdin ;;
9476      [\\/$]*)
9477	 # Absolute (can't be DOS-style, as IFS=:)
9478	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9479echo "$as_me: error: cannot find input file: $f" >&2;}
9480   { (exit 1); exit 1; }; }
9481	 # Do quote $f, to prevent DOS paths from being IFS'd.
9482	 echo "$f";;
9483      *) # Relative
9484	 if test -f "$f"; then
9485	   # Build tree
9486	   echo "$f"
9487	 elif test -f "$srcdir/$f"; then
9488	   # Source tree
9489	   echo "$srcdir/$f"
9490	 else
9491	   # /dev/null tree
9492	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9493echo "$as_me: error: cannot find input file: $f" >&2;}
9494   { (exit 1); exit 1; }; }
9495	 fi;;
9496      esac
9497    done` || { (exit 1); exit 1; }
9498  # Remove the trailing spaces.
9499  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
9500
9501_ACEOF
9502
9503# Transform confdefs.h into two sed scripts, `conftest.defines' and
9504# `conftest.undefs', that substitutes the proper values into
9505# config.h.in to produce config.h.  The first handles `#define'
9506# templates, and the second `#undef' templates.
9507# And first: Protect against being on the right side of a sed subst in
9508# config.status.  Protect against being in an unquoted here document
9509# in config.status.
9510rm -f conftest.defines conftest.undefs
9511# Using a here document instead of a string reduces the quoting nightmare.
9512# Putting comments in sed scripts is not portable.
9513#
9514# `end' is used to avoid that the second main sed command (meant for
9515# 0-ary CPP macros) applies to n-ary macro definitions.
9516# See the Autoconf documentation for `clear'.
9517cat >confdef2sed.sed <<\_ACEOF
9518s/[\\&,]/\\&/g
9519s,[\\$`],\\&,g
9520t clear
9521: clear
9522s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9523t end
9524s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9525: end
9526_ACEOF
9527# If some macros were called several times there might be several times
9528# the same #defines, which is useless.  Nevertheless, we may not want to
9529# sort them, since we want the *last* AC-DEFINE to be honored.
9530uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9531sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9532rm -f confdef2sed.sed
9533
9534# This sed command replaces #undef with comments.  This is necessary, for
9535# example, in the case of _POSIX_SOURCE, which is predefined and required
9536# on some systems where configure will not decide to define it.
9537cat >>conftest.undefs <<\_ACEOF
9538s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9539_ACEOF
9540
9541# Break up conftest.defines because some shells have a limit on the size
9542# of here documents, and old seds have small limits too (100 cmds).
9543echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9544echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9545echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9546echo '  :' >>$CONFIG_STATUS
9547rm -f conftest.tail
9548while grep . conftest.defines >/dev/null
9549do
9550  # Write a limited-size here document to $tmp/defines.sed.
9551  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9552  # Speed up: don't consider the non `#define' lines.
9553  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9554  # Work around the forget-to-reset-the-flag bug.
9555  echo 't clr' >>$CONFIG_STATUS
9556  echo ': clr' >>$CONFIG_STATUS
9557  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9558  echo 'CEOF
9559  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9560  rm -f $tmp/in
9561  mv $tmp/out $tmp/in
9562' >>$CONFIG_STATUS
9563  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9564  rm -f conftest.defines
9565  mv conftest.tail conftest.defines
9566done
9567rm -f conftest.defines
9568echo '  fi # grep' >>$CONFIG_STATUS
9569echo >>$CONFIG_STATUS
9570
9571# Break up conftest.undefs because some shells have a limit on the size
9572# of here documents, and old seds have small limits too (100 cmds).
9573echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9574rm -f conftest.tail
9575while grep . conftest.undefs >/dev/null
9576do
9577  # Write a limited-size here document to $tmp/undefs.sed.
9578  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9579  # Speed up: don't consider the non `#undef'
9580  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9581  # Work around the forget-to-reset-the-flag bug.
9582  echo 't clr' >>$CONFIG_STATUS
9583  echo ': clr' >>$CONFIG_STATUS
9584  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9585  echo 'CEOF
9586  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9587  rm -f $tmp/in
9588  mv $tmp/out $tmp/in
9589' >>$CONFIG_STATUS
9590  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9591  rm -f conftest.undefs
9592  mv conftest.tail conftest.undefs
9593done
9594rm -f conftest.undefs
9595
9596cat >>$CONFIG_STATUS <<\_ACEOF
9597  # Let's still pretend it is `configure' which instantiates (i.e., don't
9598  # use $as_me), people would be surprised to read:
9599  #    /* config.h.  Generated by config.status.  */
9600  if test x"$ac_file" = x-; then
9601    echo "/* Generated by configure.  */" >$tmp/config.h
9602  else
9603    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9604  fi
9605  cat $tmp/in >>$tmp/config.h
9606  rm -f $tmp/in
9607  if test x"$ac_file" != x-; then
9608    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9609      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9610echo "$as_me: $ac_file is unchanged" >&6;}
9611    else
9612      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9614	 X"$ac_file" : 'X\(//\)[^/]' \| \
9615	 X"$ac_file" : 'X\(//\)$' \| \
9616	 X"$ac_file" : 'X\(/\)' \| \
9617	 .     : '\(.\)' 2>/dev/null ||
9618echo X"$ac_file" |
9619    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9620  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9621  	  /^X\(\/\/\)$/{ s//\1/; q; }
9622  	  /^X\(\/\).*/{ s//\1/; q; }
9623  	  s/.*/./; q'`
9624      { if $as_mkdir_p; then
9625    mkdir -p "$ac_dir"
9626  else
9627    as_dir="$ac_dir"
9628    as_dirs=
9629    while test ! -d "$as_dir"; do
9630      as_dirs="$as_dir $as_dirs"
9631      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9633	 X"$as_dir" : 'X\(//\)[^/]' \| \
9634	 X"$as_dir" : 'X\(//\)$' \| \
9635	 X"$as_dir" : 'X\(/\)' \| \
9636	 .     : '\(.\)' 2>/dev/null ||
9637echo X"$as_dir" |
9638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9639  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9640  	  /^X\(\/\/\)$/{ s//\1/; q; }
9641  	  /^X\(\/\).*/{ s//\1/; q; }
9642  	  s/.*/./; q'`
9643    done
9644    test ! -n "$as_dirs" || mkdir $as_dirs
9645  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9646echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9647   { (exit 1); exit 1; }; }; }
9648
9649      rm -f $ac_file
9650      mv $tmp/config.h $ac_file
9651    fi
9652  else
9653    cat $tmp/config.h
9654    rm -f $tmp/config.h
9655  fi
9656# Compute $ac_file's index in $config_headers.
9657_am_stamp_count=1
9658for _am_header in $config_headers :; do
9659  case $_am_header in
9660    $ac_file | $ac_file:* )
9661      break ;;
9662    * )
9663      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9664  esac
9665done
9666echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9667$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668	 X$ac_file : 'X\(//\)[^/]' \| \
9669	 X$ac_file : 'X\(//\)$' \| \
9670	 X$ac_file : 'X\(/\)' \| \
9671	 .     : '\(.\)' 2>/dev/null ||
9672echo X$ac_file |
9673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675  	  /^X\(\/\/\)$/{ s//\1/; q; }
9676  	  /^X\(\/\).*/{ s//\1/; q; }
9677  	  s/.*/./; q'`/stamp-h$_am_stamp_count
9678done
9679_ACEOF
9680cat >>$CONFIG_STATUS <<\_ACEOF
9681
9682#
9683# CONFIG_COMMANDS section.
9684#
9685for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9686  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9687  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9688  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9689$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9690	 X"$ac_dest" : 'X\(//\)[^/]' \| \
9691	 X"$ac_dest" : 'X\(//\)$' \| \
9692	 X"$ac_dest" : 'X\(/\)' \| \
9693	 .     : '\(.\)' 2>/dev/null ||
9694echo X"$ac_dest" |
9695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9696  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9697  	  /^X\(\/\/\)$/{ s//\1/; q; }
9698  	  /^X\(\/\).*/{ s//\1/; q; }
9699  	  s/.*/./; q'`
9700  { if $as_mkdir_p; then
9701    mkdir -p "$ac_dir"
9702  else
9703    as_dir="$ac_dir"
9704    as_dirs=
9705    while test ! -d "$as_dir"; do
9706      as_dirs="$as_dir $as_dirs"
9707      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9709	 X"$as_dir" : 'X\(//\)[^/]' \| \
9710	 X"$as_dir" : 'X\(//\)$' \| \
9711	 X"$as_dir" : 'X\(/\)' \| \
9712	 .     : '\(.\)' 2>/dev/null ||
9713echo X"$as_dir" |
9714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9715  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9716  	  /^X\(\/\/\)$/{ s//\1/; q; }
9717  	  /^X\(\/\).*/{ s//\1/; q; }
9718  	  s/.*/./; q'`
9719    done
9720    test ! -n "$as_dirs" || mkdir $as_dirs
9721  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9722echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9723   { (exit 1); exit 1; }; }; }
9724
9725  ac_builddir=.
9726
9727if test "$ac_dir" != .; then
9728  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9729  # A "../" for each directory in $ac_dir_suffix.
9730  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9731else
9732  ac_dir_suffix= ac_top_builddir=
9733fi
9734
9735case $srcdir in
9736  .)  # No --srcdir option.  We are building in place.
9737    ac_srcdir=.
9738    if test -z "$ac_top_builddir"; then
9739       ac_top_srcdir=.
9740    else
9741       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9742    fi ;;
9743  [\\/]* | ?:[\\/]* )  # Absolute path.
9744    ac_srcdir=$srcdir$ac_dir_suffix;
9745    ac_top_srcdir=$srcdir ;;
9746  *) # Relative path.
9747    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9748    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9749esac
9750
9751# Do not use `cd foo && pwd` to compute absolute paths, because
9752# the directories may not exist.
9753case `pwd` in
9754.) ac_abs_builddir="$ac_dir";;
9755*)
9756  case "$ac_dir" in
9757  .) ac_abs_builddir=`pwd`;;
9758  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9759  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9760  esac;;
9761esac
9762case $ac_abs_builddir in
9763.) ac_abs_top_builddir=${ac_top_builddir}.;;
9764*)
9765  case ${ac_top_builddir}. in
9766  .) ac_abs_top_builddir=$ac_abs_builddir;;
9767  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9768  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9769  esac;;
9770esac
9771case $ac_abs_builddir in
9772.) ac_abs_srcdir=$ac_srcdir;;
9773*)
9774  case $ac_srcdir in
9775  .) ac_abs_srcdir=$ac_abs_builddir;;
9776  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9777  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9778  esac;;
9779esac
9780case $ac_abs_builddir in
9781.) ac_abs_top_srcdir=$ac_top_srcdir;;
9782*)
9783  case $ac_top_srcdir in
9784  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9785  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9786  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9787  esac;;
9788esac
9789
9790
9791  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9792echo "$as_me: executing $ac_dest commands" >&6;}
9793  case $ac_dest in
9794    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9795  # Strip MF so we end up with the name of the file.
9796  mf=`echo "$mf" | sed -e 's/:.*$//'`
9797  # Check whether this is an Automake generated Makefile or not.
9798  # We used to match only the files named `Makefile.in', but
9799  # some people rename them; so instead we look at the file content.
9800  # Grep'ing the first line is not enough: some people post-process
9801  # each Makefile.in and add a new line on top of each file to say so.
9802  # So let's grep whole file.
9803  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9804    dirpart=`(dirname "$mf") 2>/dev/null ||
9805$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9806	 X"$mf" : 'X\(//\)[^/]' \| \
9807	 X"$mf" : 'X\(//\)$' \| \
9808	 X"$mf" : 'X\(/\)' \| \
9809	 .     : '\(.\)' 2>/dev/null ||
9810echo X"$mf" |
9811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9812  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9813  	  /^X\(\/\/\)$/{ s//\1/; q; }
9814  	  /^X\(\/\).*/{ s//\1/; q; }
9815  	  s/.*/./; q'`
9816  else
9817    continue
9818  fi
9819  # Extract the definition of DEPDIR, am__include, and am__quote
9820  # from the Makefile without running `make'.
9821  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9822  test -z "$DEPDIR" && continue
9823  am__include=`sed -n 's/^am__include = //p' < "$mf"`
9824  test -z "am__include" && continue
9825  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9826  # When using ansi2knr, U may be empty or an underscore; expand it
9827  U=`sed -n 's/^U = //p' < "$mf"`
9828  # Find all dependency output files, they are included files with
9829  # $(DEPDIR) in their names.  We invoke sed twice because it is the
9830  # simplest approach to changing $(DEPDIR) to its actual value in the
9831  # expansion.
9832  for file in `sed -n "
9833    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9834       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9835    # Make sure the directory exists.
9836    test -f "$dirpart/$file" && continue
9837    fdir=`(dirname "$file") 2>/dev/null ||
9838$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9839	 X"$file" : 'X\(//\)[^/]' \| \
9840	 X"$file" : 'X\(//\)$' \| \
9841	 X"$file" : 'X\(/\)' \| \
9842	 .     : '\(.\)' 2>/dev/null ||
9843echo X"$file" |
9844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9845  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9846  	  /^X\(\/\/\)$/{ s//\1/; q; }
9847  	  /^X\(\/\).*/{ s//\1/; q; }
9848  	  s/.*/./; q'`
9849    { if $as_mkdir_p; then
9850    mkdir -p $dirpart/$fdir
9851  else
9852    as_dir=$dirpart/$fdir
9853    as_dirs=
9854    while test ! -d "$as_dir"; do
9855      as_dirs="$as_dir $as_dirs"
9856      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9858	 X"$as_dir" : 'X\(//\)[^/]' \| \
9859	 X"$as_dir" : 'X\(//\)$' \| \
9860	 X"$as_dir" : 'X\(/\)' \| \
9861	 .     : '\(.\)' 2>/dev/null ||
9862echo X"$as_dir" |
9863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9864  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9865  	  /^X\(\/\/\)$/{ s//\1/; q; }
9866  	  /^X\(\/\).*/{ s//\1/; q; }
9867  	  s/.*/./; q'`
9868    done
9869    test ! -n "$as_dirs" || mkdir $as_dirs
9870  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9871echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9872   { (exit 1); exit 1; }; }; }
9873
9874    # echo "creating $dirpart/$file"
9875    echo '# dummy' > "$dirpart/$file"
9876  done
9877done
9878 ;;
9879  esac
9880done
9881_ACEOF
9882
9883cat >>$CONFIG_STATUS <<\_ACEOF
9884
9885{ (exit 0); exit 0; }
9886_ACEOF
9887chmod +x $CONFIG_STATUS
9888ac_clean_files=$ac_clean_files_save
9889
9890
9891# configure is writing to config.log, and then calls config.status.
9892# config.status does its own redirection, appending to config.log.
9893# Unfortunately, on DOS this fails, as config.log is still kept open
9894# by configure, so config.status won't be able to write to it; its
9895# output is simply discarded.  So we exec the FD to /dev/null,
9896# effectively closing config.log, so it can be properly (re)opened and
9897# appended to by config.status.  When coming back to configure, we
9898# need to make the FD available again.
9899if test "$no_create" != yes; then
9900  ac_cs_success=:
9901  ac_config_status_args=
9902  test "$silent" = yes &&
9903    ac_config_status_args="$ac_config_status_args --quiet"
9904  exec 5>/dev/null
9905  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9906  exec 5>>config.log
9907  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9908  # would make configure fail if this is the last instruction.
9909  $ac_cs_success || { (exit 1); exit 1; }
9910fi
9911
9912
9913