configure revision a73027ba
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xinit 1.1.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='xinit'
576PACKAGE_TARNAME='xinit'
577PACKAGE_VERSION='1.1.0'
578PACKAGE_STRING='xinit 1.1.0'
579PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654INSTALL_PROGRAM
655INSTALL_SCRIPT
656INSTALL_DATA
657am__isrc
658CYGPATH_W
659PACKAGE
660VERSION
661ACLOCAL
662AUTOCONF
663AUTOMAKE
664AUTOHEADER
665MAKEINFO
666install_sh
667STRIP
668INSTALL_STRIP_PROGRAM
669mkdir_p
670AWK
671SET_MAKE
672am__leading_dot
673AMTAR
674am__tar
675am__untar
676MAINTAINER_MODE_TRUE
677MAINTAINER_MODE_FALSE
678MAINT
679CC
680CFLAGS
681LDFLAGS
682CPPFLAGS
683ac_ct_CC
684EXEEXT
685OBJEXT
686DEPDIR
687am__include
688am__quote
689AMDEP_TRUE
690AMDEP_FALSE
691AMDEPBACKSLASH
692CCDEPMODE
693am__fastdepCC_TRUE
694am__fastdepCC_FALSE
695CPP
696RAWCPP
697RAWCPPFLAGS
698SED
699build
700build_cpu
701build_vendor
702build_os
703host
704host_cpu
705host_vendor
706host_os
707GREP
708EGREP
709LAUNCHD
710launchagentsdir
711launchdaemonsdir
712LAUNCHD_TRUE
713LAUNCHD_FALSE
714PKG_CONFIG
715XINIT_CFLAGS
716XINIT_LIBS
717MCOOKIE
718STARTX_COOKIE_FLAGS
719SHELL_CMD
720ARCHMANDEFS
721XRDB
722XMODMAP
723TWM
724XCLOCK
725XTERM
726XSERVER
727XAUTH
728XINIT
729APP_MAN_SUFFIX
730LIB_MAN_SUFFIX
731FILE_MAN_SUFFIX
732MISC_MAN_SUFFIX
733DRIVER_MAN_SUFFIX
734ADMIN_MAN_SUFFIX
735APP_MAN_DIR
736LIB_MAN_DIR
737FILE_MAN_DIR
738MISC_MAN_DIR
739DRIVER_MAN_DIR
740ADMIN_MAN_DIR
741LIBOBJS
742LTLIBOBJS'
743ac_subst_files=''
744      ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CPP
753PKG_CONFIG
754XINIT_CFLAGS
755XINIT_LIBS'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_libraries=NONE
777
778# Installation directory options.
779# These are left unexpanded so users can "make install exec_prefix=/foo"
780# and all the variables that are supposed to be based on exec_prefix
781# by default will actually change.
782# Use braces instead of parens because sh, perl, etc. also accept them.
783# (The list follows the same order as the GNU Coding Standards.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
808  # If the previous option needs an argument, assign it.
809  if test -n "$ac_prev"; then
810    eval $ac_prev=\$ac_option
811    ac_prev=
812    continue
813  fi
814
815  case $ac_option in
816  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817  *)	ac_optarg=yes ;;
818  esac
819
820  # Accept the important Cygnus configure options, so we can diagnose typos.
821
822  case $ac_dashdash$ac_option in
823  --)
824    ac_dashdash=yes ;;
825
826  -bindir | --bindir | --bindi | --bind | --bin | --bi)
827    ac_prev=bindir ;;
828  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829    bindir=$ac_optarg ;;
830
831  -build | --build | --buil | --bui | --bu)
832    ac_prev=build_alias ;;
833  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834    build_alias=$ac_optarg ;;
835
836  -cache-file | --cache-file | --cache-fil | --cache-fi \
837  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838    ac_prev=cache_file ;;
839  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841    cache_file=$ac_optarg ;;
842
843  --config-cache | -C)
844    cache_file=config.cache ;;
845
846  -datadir | --datadir | --datadi | --datad)
847    ac_prev=datadir ;;
848  -datadir=* | --datadir=* | --datadi=* | --datad=*)
849    datadir=$ac_optarg ;;
850
851  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852  | --dataroo | --dataro | --datar)
853    ac_prev=datarootdir ;;
854  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856    datarootdir=$ac_optarg ;;
857
858  -disable-* | --disable-*)
859    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860    # Reject names that are not valid shell variable names.
861    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863   { (exit 1); exit 1; }; }
864    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865    eval enable_$ac_feature=no ;;
866
867  -docdir | --docdir | --docdi | --doc | --do)
868    ac_prev=docdir ;;
869  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870    docdir=$ac_optarg ;;
871
872  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873    ac_prev=dvidir ;;
874  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875    dvidir=$ac_optarg ;;
876
877  -enable-* | --enable-*)
878    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879    # Reject names that are not valid shell variable names.
880    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
881      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882   { (exit 1); exit 1; }; }
883    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
884    eval enable_$ac_feature=\$ac_optarg ;;
885
886  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888  | --exec | --exe | --ex)
889    ac_prev=exec_prefix ;;
890  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892  | --exec=* | --exe=* | --ex=*)
893    exec_prefix=$ac_optarg ;;
894
895  -gas | --gas | --ga | --g)
896    # Obsolete; use --with-gas.
897    with_gas=yes ;;
898
899  -help | --help | --hel | --he | -h)
900    ac_init_help=long ;;
901  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902    ac_init_help=recursive ;;
903  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904    ac_init_help=short ;;
905
906  -host | --host | --hos | --ho)
907    ac_prev=host_alias ;;
908  -host=* | --host=* | --hos=* | --ho=*)
909    host_alias=$ac_optarg ;;
910
911  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912    ac_prev=htmldir ;;
913  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914  | --ht=*)
915    htmldir=$ac_optarg ;;
916
917  -includedir | --includedir | --includedi | --included | --include \
918  | --includ | --inclu | --incl | --inc)
919    ac_prev=includedir ;;
920  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921  | --includ=* | --inclu=* | --incl=* | --inc=*)
922    includedir=$ac_optarg ;;
923
924  -infodir | --infodir | --infodi | --infod | --info | --inf)
925    ac_prev=infodir ;;
926  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927    infodir=$ac_optarg ;;
928
929  -libdir | --libdir | --libdi | --libd)
930    ac_prev=libdir ;;
931  -libdir=* | --libdir=* | --libdi=* | --libd=*)
932    libdir=$ac_optarg ;;
933
934  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935  | --libexe | --libex | --libe)
936    ac_prev=libexecdir ;;
937  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938  | --libexe=* | --libex=* | --libe=*)
939    libexecdir=$ac_optarg ;;
940
941  -localedir | --localedir | --localedi | --localed | --locale)
942    ac_prev=localedir ;;
943  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944    localedir=$ac_optarg ;;
945
946  -localstatedir | --localstatedir | --localstatedi | --localstated \
947  | --localstate | --localstat | --localsta | --localst | --locals)
948    ac_prev=localstatedir ;;
949  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951    localstatedir=$ac_optarg ;;
952
953  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954    ac_prev=mandir ;;
955  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956    mandir=$ac_optarg ;;
957
958  -nfp | --nfp | --nf)
959    # Obsolete; use --without-fp.
960    with_fp=no ;;
961
962  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963  | --no-cr | --no-c | -n)
964    no_create=yes ;;
965
966  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968    no_recursion=yes ;;
969
970  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972  | --oldin | --oldi | --old | --ol | --o)
973    ac_prev=oldincludedir ;;
974  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977    oldincludedir=$ac_optarg ;;
978
979  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980    ac_prev=prefix ;;
981  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982    prefix=$ac_optarg ;;
983
984  -program-prefix | --program-prefix | --program-prefi | --program-pref \
985  | --program-pre | --program-pr | --program-p)
986    ac_prev=program_prefix ;;
987  -program-prefix=* | --program-prefix=* | --program-prefi=* \
988  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989    program_prefix=$ac_optarg ;;
990
991  -program-suffix | --program-suffix | --program-suffi | --program-suff \
992  | --program-suf | --program-su | --program-s)
993    ac_prev=program_suffix ;;
994  -program-suffix=* | --program-suffix=* | --program-suffi=* \
995  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996    program_suffix=$ac_optarg ;;
997
998  -program-transform-name | --program-transform-name \
999  | --program-transform-nam | --program-transform-na \
1000  | --program-transform-n | --program-transform- \
1001  | --program-transform | --program-transfor \
1002  | --program-transfo | --program-transf \
1003  | --program-trans | --program-tran \
1004  | --progr-tra | --program-tr | --program-t)
1005    ac_prev=program_transform_name ;;
1006  -program-transform-name=* | --program-transform-name=* \
1007  | --program-transform-nam=* | --program-transform-na=* \
1008  | --program-transform-n=* | --program-transform-=* \
1009  | --program-transform=* | --program-transfor=* \
1010  | --program-transfo=* | --program-transf=* \
1011  | --program-trans=* | --program-tran=* \
1012  | --progr-tra=* | --program-tr=* | --program-t=*)
1013    program_transform_name=$ac_optarg ;;
1014
1015  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016    ac_prev=pdfdir ;;
1017  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018    pdfdir=$ac_optarg ;;
1019
1020  -psdir | --psdir | --psdi | --psd | --ps)
1021    ac_prev=psdir ;;
1022  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023    psdir=$ac_optarg ;;
1024
1025  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026  | -silent | --silent | --silen | --sile | --sil)
1027    silent=yes ;;
1028
1029  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030    ac_prev=sbindir ;;
1031  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032  | --sbi=* | --sb=*)
1033    sbindir=$ac_optarg ;;
1034
1035  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037  | --sharedst | --shareds | --shared | --share | --shar \
1038  | --sha | --sh)
1039    ac_prev=sharedstatedir ;;
1040  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043  | --sha=* | --sh=*)
1044    sharedstatedir=$ac_optarg ;;
1045
1046  -site | --site | --sit)
1047    ac_prev=site ;;
1048  -site=* | --site=* | --sit=*)
1049    site=$ac_optarg ;;
1050
1051  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052    ac_prev=srcdir ;;
1053  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054    srcdir=$ac_optarg ;;
1055
1056  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057  | --syscon | --sysco | --sysc | --sys | --sy)
1058    ac_prev=sysconfdir ;;
1059  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061    sysconfdir=$ac_optarg ;;
1062
1063  -target | --target | --targe | --targ | --tar | --ta | --t)
1064    ac_prev=target_alias ;;
1065  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066    target_alias=$ac_optarg ;;
1067
1068  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069    verbose=yes ;;
1070
1071  -version | --version | --versio | --versi | --vers | -V)
1072    ac_init_version=: ;;
1073
1074  -with-* | --with-*)
1075    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078      { echo "$as_me: error: invalid package name: $ac_package" >&2
1079   { (exit 1); exit 1; }; }
1080    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081    eval with_$ac_package=\$ac_optarg ;;
1082
1083  -without-* | --without-*)
1084    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085    # Reject names that are not valid shell variable names.
1086    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087      { echo "$as_me: error: invalid package name: $ac_package" >&2
1088   { (exit 1); exit 1; }; }
1089    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1090    eval with_$ac_package=no ;;
1091
1092  --x)
1093    # Obsolete; use --with-x.
1094    with_x=yes ;;
1095
1096  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1097  | --x-incl | --x-inc | --x-in | --x-i)
1098    ac_prev=x_includes ;;
1099  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1100  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1101    x_includes=$ac_optarg ;;
1102
1103  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1104  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1105    ac_prev=x_libraries ;;
1106  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1107  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1108    x_libraries=$ac_optarg ;;
1109
1110  -*) { echo "$as_me: error: unrecognized option: $ac_option
1111Try \`$0 --help' for more information." >&2
1112   { (exit 1); exit 1; }; }
1113    ;;
1114
1115  *=*)
1116    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117    # Reject names that are not valid shell variable names.
1118    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1119      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1120   { (exit 1); exit 1; }; }
1121    eval $ac_envvar=\$ac_optarg
1122    export $ac_envvar ;;
1123
1124  *)
1125    # FIXME: should be removed in autoconf 3.0.
1126    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1127    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1128      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1129    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130    ;;
1131
1132  esac
1133done
1134
1135if test -n "$ac_prev"; then
1136  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1137  { echo "$as_me: error: missing argument to $ac_option" >&2
1138   { (exit 1); exit 1; }; }
1139fi
1140
1141# Be sure to have absolute directory names.
1142for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143		datadir sysconfdir sharedstatedir localstatedir includedir \
1144		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145		libdir localedir mandir
1146do
1147  eval ac_val=\$$ac_var
1148  case $ac_val in
1149    [\\/$]* | ?:[\\/]* )  continue;;
1150    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151  esac
1152  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1153   { (exit 1); exit 1; }; }
1154done
1155
1156# There might be people who depend on the old broken behavior: `$host'
1157# used to hold the argument of --host etc.
1158# FIXME: To remove some day.
1159build=$build_alias
1160host=$host_alias
1161target=$target_alias
1162
1163# FIXME: To remove some day.
1164if test "x$host_alias" != x; then
1165  if test "x$build_alias" = x; then
1166    cross_compiling=maybe
1167    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1168    If a cross compiler is detected then cross compile mode will be used." >&2
1169  elif test "x$build_alias" != "x$host_alias"; then
1170    cross_compiling=yes
1171  fi
1172fi
1173
1174ac_tool_prefix=
1175test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176
1177test "$silent" = yes && exec 6>/dev/null
1178
1179
1180ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181ac_ls_di=`ls -di .` &&
1182ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1183  { echo "$as_me: error: Working directory cannot be determined" >&2
1184   { (exit 1); exit 1; }; }
1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186  { echo "$as_me: error: pwd does not report name of working directory" >&2
1187   { (exit 1); exit 1; }; }
1188
1189
1190# Find the source files, if location was not specified.
1191if test -z "$srcdir"; then
1192  ac_srcdir_defaulted=yes
1193  # Try the directory containing this script, then the parent directory.
1194  ac_confdir=`$as_dirname -- "$0" ||
1195$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196	 X"$0" : 'X\(//\)[^/]' \| \
1197	 X"$0" : 'X\(//\)$' \| \
1198	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1199echo X"$0" |
1200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201	    s//\1/
1202	    q
1203	  }
1204	  /^X\(\/\/\)[^/].*/{
1205	    s//\1/
1206	    q
1207	  }
1208	  /^X\(\/\/\)$/{
1209	    s//\1/
1210	    q
1211	  }
1212	  /^X\(\/\).*/{
1213	    s//\1/
1214	    q
1215	  }
1216	  s/.*/./; q'`
1217  srcdir=$ac_confdir
1218  if test ! -r "$srcdir/$ac_unique_file"; then
1219    srcdir=..
1220  fi
1221else
1222  ac_srcdir_defaulted=no
1223fi
1224if test ! -r "$srcdir/$ac_unique_file"; then
1225  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1227   { (exit 1); exit 1; }; }
1228fi
1229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
1231	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1232   { (exit 1); exit 1; }; }
1233	pwd)`
1234# When building in place, set srcdir=.
1235if test "$ac_abs_confdir" = "$ac_pwd"; then
1236  srcdir=.
1237fi
1238# Remove unnecessary trailing slashes from srcdir.
1239# Double slashes in file names in object file debugging info
1240# mess up M-x gdb in Emacs.
1241case $srcdir in
1242*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243esac
1244for ac_var in $ac_precious_vars; do
1245  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246  eval ac_env_${ac_var}_value=\$${ac_var}
1247  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249done
1250
1251#
1252# Report the --help message.
1253#
1254if test "$ac_init_help" = "long"; then
1255  # Omit some internal or obsolete options to make the list less imposing.
1256  # This message is too long to be a string in the A/UX 3.1 sh.
1257  cat <<_ACEOF
1258\`configure' configures xinit 1.1.0 to adapt to many kinds of systems.
1259
1260Usage: $0 [OPTION]... [VAR=VALUE]...
1261
1262To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263VAR=VALUE.  See below for descriptions of some of the useful variables.
1264
1265Defaults for the options are specified in brackets.
1266
1267Configuration:
1268  -h, --help              display this help and exit
1269      --help=short        display options specific to this package
1270      --help=recursive    display the short help of all the included packages
1271  -V, --version           display version information and exit
1272  -q, --quiet, --silent   do not print \`checking...' messages
1273      --cache-file=FILE   cache test results in FILE [disabled]
1274  -C, --config-cache      alias for \`--cache-file=config.cache'
1275  -n, --no-create         do not create output files
1276      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1277
1278Installation directories:
1279  --prefix=PREFIX         install architecture-independent files in PREFIX
1280			  [$ac_default_prefix]
1281  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1282			  [PREFIX]
1283
1284By default, \`make install' will install all the files in
1285\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1286an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287for instance \`--prefix=\$HOME'.
1288
1289For better control, use the options below.
1290
1291Fine tuning of the installation directories:
1292  --bindir=DIR           user executables [EPREFIX/bin]
1293  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1294  --libexecdir=DIR       program executables [EPREFIX/libexec]
1295  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1296  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1297  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1298  --libdir=DIR           object code libraries [EPREFIX/lib]
1299  --includedir=DIR       C header files [PREFIX/include]
1300  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1301  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1302  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1303  --infodir=DIR          info documentation [DATAROOTDIR/info]
1304  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1305  --mandir=DIR           man documentation [DATAROOTDIR/man]
1306  --docdir=DIR           documentation root [DATAROOTDIR/doc/xinit]
1307  --htmldir=DIR          html documentation [DOCDIR]
1308  --dvidir=DIR           dvi documentation [DOCDIR]
1309  --pdfdir=DIR           pdf documentation [DOCDIR]
1310  --psdir=DIR            ps documentation [DOCDIR]
1311_ACEOF
1312
1313  cat <<\_ACEOF
1314
1315Program names:
1316  --program-prefix=PREFIX            prepend PREFIX to installed program names
1317  --program-suffix=SUFFIX            append SUFFIX to installed program names
1318  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1319
1320System types:
1321  --build=BUILD     configure for building on BUILD [guessed]
1322  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1323_ACEOF
1324fi
1325
1326if test -n "$ac_init_help"; then
1327  case $ac_init_help in
1328     short | recursive ) echo "Configuration of xinit 1.1.0:";;
1329   esac
1330  cat <<\_ACEOF
1331
1332Optional Features:
1333  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1334  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1335  --enable-maintainer-mode  enable make rules and dependencies not useful
1336			  (and sometimes confusing) to the casual installer
1337  --disable-dependency-tracking  speeds up one-time build
1338  --enable-dependency-tracking   do not reject slow dependency extractors
1339
1340Optional Packages:
1341  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1342  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1343  --with-xrdb=XRDB        Path to xrdb
1344  --with-xmodmap=XMODMAP  Path to xmodmap
1345  --with-twm=TWM          Path to twm
1346  --with-xclock=XCLOCK    Path to xclock
1347  --with-xterm=XTERM      Path to xterm
1348  --with-xserver=XSERVER  Path to default X server
1349  --with-xauth=XAUTH      Path to xauth
1350  --with-xinit=XINIT      Path to xinit
1351  --with-launchd          Build with support for Apple's launchd (default:
1352                          auto)
1353  --with-launchagents-dir=PATH
1354                          Path to launchd's LaunchAgents directory (default:
1355                          /Library/LaunchAgents)
1356  --with-launchdaemons-dir=PATH
1357                          Path to launchd's LaunchDaemonss directory (default:
1358                          /Library/LaunchDaemons)
1359  --with-release-version=STRING
1360                          Use release version string in package name
1361
1362Some influential environment variables:
1363  CC          C compiler command
1364  CFLAGS      C compiler flags
1365  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1366              nonstandard directory <lib dir>
1367  LIBS        libraries to pass to the linker, e.g. -l<library>
1368  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369              you have headers in a nonstandard directory <include dir>
1370  CPP         C preprocessor
1371  PKG_CONFIG  path to pkg-config utility
1372  XINIT_CFLAGS
1373              C compiler flags for XINIT, overriding pkg-config
1374  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385  # If there are subdirs, report their specific --help.
1386  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387    test -d "$ac_dir" || continue
1388    ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394  # A ".." for each directory in $ac_dir_suffix.
1395  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396  case $ac_top_builddir_sub in
1397  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399  esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407  .)  # We are building in place.
1408    ac_srcdir=.
1409    ac_top_srcdir=$ac_top_builddir_sub
1410    ac_abs_top_srcdir=$ac_pwd ;;
1411  [\\/]* | ?:[\\/]* )  # Absolute name.
1412    ac_srcdir=$srcdir$ac_dir_suffix;
1413    ac_top_srcdir=$srcdir
1414    ac_abs_top_srcdir=$srcdir ;;
1415  *) # Relative name.
1416    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417    ac_top_srcdir=$ac_top_build_prefix$srcdir
1418    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422    cd "$ac_dir" || { ac_status=$?; continue; }
1423    # Check for guested configure.
1424    if test -f "$ac_srcdir/configure.gnu"; then
1425      echo &&
1426      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427    elif test -f "$ac_srcdir/configure"; then
1428      echo &&
1429      $SHELL "$ac_srcdir/configure" --help=recursive
1430    else
1431      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432    fi || ac_status=$?
1433    cd "$ac_pwd" || { ac_status=$?; break; }
1434  done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439  cat <<\_ACEOF
1440xinit configure 1.1.0
1441generated by GNU Autoconf 2.61
1442
1443Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448  exit
1449fi
1450cat >config.log <<_ACEOF
1451This file contains any messages produced by compilers while
1452running configure, to aid debugging if configure makes a mistake.
1453
1454It was created by xinit $as_me 1.1.0, which was
1455generated by GNU Autoconf 2.61.  Invocation command line was
1456
1457  $ $0 $@
1458
1459_ACEOF
1460exec 5>>config.log
1461{
1462cat <<_ASUNAME
1463## --------- ##
1464## Platform. ##
1465## --------- ##
1466
1467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1475
1476/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1477/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1480/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1481/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1482/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1483
1484_ASUNAME
1485
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489  IFS=$as_save_IFS
1490  test -z "$as_dir" && as_dir=.
1491  echo "PATH: $as_dir"
1492done
1493IFS=$as_save_IFS
1494
1495} >&5
1496
1497cat >&5 <<_ACEOF
1498
1499
1500## ----------- ##
1501## Core tests. ##
1502## ----------- ##
1503
1504_ACEOF
1505
1506
1507# Keep a trace of the command line.
1508# Strip out --no-create and --no-recursion so they do not pile up.
1509# Strip out --silent because we don't want to record it for future runs.
1510# Also quote any args containing shell meta-characters.
1511# Make two passes to allow for proper duplicate-argument suppression.
1512ac_configure_args=
1513ac_configure_args0=
1514ac_configure_args1=
1515ac_must_keep_next=false
1516for ac_pass in 1 2
1517do
1518  for ac_arg
1519  do
1520    case $ac_arg in
1521    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523    | -silent | --silent | --silen | --sile | --sil)
1524      continue ;;
1525    *\'*)
1526      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527    esac
1528    case $ac_pass in
1529    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530    2)
1531      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532      if test $ac_must_keep_next = true; then
1533	ac_must_keep_next=false # Got value, back to normal.
1534      else
1535	case $ac_arg in
1536	  *=* | --config-cache | -C | -disable-* | --disable-* \
1537	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539	  | -with-* | --with-* | -without-* | --without-* | --x)
1540	    case "$ac_configure_args0 " in
1541	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542	    esac
1543	    ;;
1544	  -* ) ac_must_keep_next=true ;;
1545	esac
1546      fi
1547      ac_configure_args="$ac_configure_args '$ac_arg'"
1548      ;;
1549    esac
1550  done
1551done
1552$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555# When interrupted or exit'd, cleanup temporary files, and complete
1556# config.log.  We remove comments because anyway the quotes in there
1557# would cause problems or look ugly.
1558# WARNING: Use '\'' to represent an apostrophe within the trap.
1559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560trap 'exit_status=$?
1561  # Save into config.log some information that might help in debugging.
1562  {
1563    echo
1564
1565    cat <<\_ASBOX
1566## ---------------- ##
1567## Cache variables. ##
1568## ---------------- ##
1569_ASBOX
1570    echo
1571    # The following way of writing the cache mishandles newlines in values,
1572(
1573  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574    eval ac_val=\$$ac_var
1575    case $ac_val in #(
1576    *${as_nl}*)
1577      case $ac_var in #(
1578      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580      esac
1581      case $ac_var in #(
1582      _ | IFS | as_nl) ;; #(
1583      *) $as_unset $ac_var ;;
1584      esac ;;
1585    esac
1586  done
1587  (set) 2>&1 |
1588    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589    *${as_nl}ac_space=\ *)
1590      sed -n \
1591	"s/'\''/'\''\\\\'\'''\''/g;
1592	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593      ;; #(
1594    *)
1595      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596      ;;
1597    esac |
1598    sort
1599)
1600    echo
1601
1602    cat <<\_ASBOX
1603## ----------------- ##
1604## Output variables. ##
1605## ----------------- ##
1606_ASBOX
1607    echo
1608    for ac_var in $ac_subst_vars
1609    do
1610      eval ac_val=\$$ac_var
1611      case $ac_val in
1612      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613      esac
1614      echo "$ac_var='\''$ac_val'\''"
1615    done | sort
1616    echo
1617
1618    if test -n "$ac_subst_files"; then
1619      cat <<\_ASBOX
1620## ------------------- ##
1621## File substitutions. ##
1622## ------------------- ##
1623_ASBOX
1624      echo
1625      for ac_var in $ac_subst_files
1626      do
1627	eval ac_val=\$$ac_var
1628	case $ac_val in
1629	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630	esac
1631	echo "$ac_var='\''$ac_val'\''"
1632      done | sort
1633      echo
1634    fi
1635
1636    if test -s confdefs.h; then
1637      cat <<\_ASBOX
1638## ----------- ##
1639## confdefs.h. ##
1640## ----------- ##
1641_ASBOX
1642      echo
1643      cat confdefs.h
1644      echo
1645    fi
1646    test "$ac_signal" != 0 &&
1647      echo "$as_me: caught signal $ac_signal"
1648    echo "$as_me: exit $exit_status"
1649  } >&5
1650  rm -f core *.core core.conftest.* &&
1651    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652    exit $exit_status
1653' 0
1654for ac_signal in 1 2 13 15; do
1655  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656done
1657ac_signal=0
1658
1659# confdefs.h avoids OS command line length limits that DEFS can exceed.
1660rm -f -r conftest* confdefs.h
1661
1662# Predefined preprocessor variables.
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_NAME "$PACKAGE_NAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686_ACEOF
1687
1688
1689# Let the site file select an alternate cache file if it wants to.
1690# Prefer explicitly selected file to automatically selected ones.
1691if test -n "$CONFIG_SITE"; then
1692  set x "$CONFIG_SITE"
1693elif test "x$prefix" != xNONE; then
1694  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695else
1696  set x "$ac_default_prefix/share/config.site" \
1697	"$ac_default_prefix/etc/config.site"
1698fi
1699shift
1700for ac_site_file
1701do
1702  if test -r "$ac_site_file"; then
1703    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704echo "$as_me: loading site script $ac_site_file" >&6;}
1705    sed 's/^/| /' "$ac_site_file" >&5
1706    . "$ac_site_file"
1707  fi
1708done
1709
1710if test -r "$cache_file"; then
1711  # Some versions of bash will fail to source /dev/null (special
1712  # files actually), so we avoid doing that.
1713  if test -f "$cache_file"; then
1714    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715echo "$as_me: loading cache $cache_file" >&6;}
1716    case $cache_file in
1717      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718      *)                      . "./$cache_file";;
1719    esac
1720  fi
1721else
1722  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723echo "$as_me: creating cache $cache_file" >&6;}
1724  >$cache_file
1725fi
1726
1727# Check that the precious variables saved in the cache have kept the same
1728# value.
1729ac_cache_corrupted=false
1730for ac_var in $ac_precious_vars; do
1731  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732  eval ac_new_set=\$ac_env_${ac_var}_set
1733  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734  eval ac_new_val=\$ac_env_${ac_var}_value
1735  case $ac_old_set,$ac_new_set in
1736    set,)
1737      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739      ac_cache_corrupted=: ;;
1740    ,set)
1741      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743      ac_cache_corrupted=: ;;
1744    ,);;
1745    *)
1746      if test "x$ac_old_val" != "x$ac_new_val"; then
1747	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1750echo "$as_me:   former value:  $ac_old_val" >&2;}
1751	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1752echo "$as_me:   current value: $ac_new_val" >&2;}
1753	ac_cache_corrupted=:
1754      fi;;
1755  esac
1756  # Pass precious variables to config.status.
1757  if test "$ac_new_set" = set; then
1758    case $ac_new_val in
1759    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760    *) ac_arg=$ac_var=$ac_new_val ;;
1761    esac
1762    case " $ac_configure_args " in
1763      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1764      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765    esac
1766  fi
1767done
1768if $ac_cache_corrupted; then
1769  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773   { (exit 1); exit 1; }; }
1774fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807am__api_version='1.10'
1808
1809ac_aux_dir=
1810for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1811  if test -f "$ac_dir/install-sh"; then
1812    ac_aux_dir=$ac_dir
1813    ac_install_sh="$ac_aux_dir/install-sh -c"
1814    break
1815  elif test -f "$ac_dir/install.sh"; then
1816    ac_aux_dir=$ac_dir
1817    ac_install_sh="$ac_aux_dir/install.sh -c"
1818    break
1819  elif test -f "$ac_dir/shtool"; then
1820    ac_aux_dir=$ac_dir
1821    ac_install_sh="$ac_aux_dir/shtool install -c"
1822    break
1823  fi
1824done
1825if test -z "$ac_aux_dir"; then
1826  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1827echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1828   { (exit 1); exit 1; }; }
1829fi
1830
1831# These three variables are undocumented and unsupported,
1832# and are intended to be withdrawn in a future Autoconf release.
1833# They can cause serious problems if a builder's source tree is in a directory
1834# whose full name contains unusual characters.
1835ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1836ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1837ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1838
1839
1840# Find a good install program.  We prefer a C program (faster),
1841# so one script is as good as another.  But avoid the broken or
1842# incompatible versions:
1843# SysV /etc/install, /usr/sbin/install
1844# SunOS /usr/etc/install
1845# IRIX /sbin/install
1846# AIX /bin/install
1847# AmigaOS /C/install, which installs bootblocks on floppy discs
1848# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1849# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1850# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1851# OS/2's system install, which has a completely different semantic
1852# ./install, which can be erroneously created by make from ./install.sh.
1853{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1854echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1855if test -z "$INSTALL"; then
1856if test "${ac_cv_path_install+set}" = set; then
1857  echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  test -z "$as_dir" && as_dir=.
1864  # Account for people who put trailing slashes in PATH elements.
1865case $as_dir/ in
1866  ./ | .// | /cC/* | \
1867  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1868  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1869  /usr/ucb/* ) ;;
1870  *)
1871    # OSF1 and SCO ODT 3.0 have their own names for install.
1872    # Don't use installbsd from OSF since it installs stuff as root
1873    # by default.
1874    for ac_prog in ginstall scoinst install; do
1875      for ac_exec_ext in '' $ac_executable_extensions; do
1876	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1877	  if test $ac_prog = install &&
1878	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1879	    # AIX install.  It has an incompatible calling convention.
1880	    :
1881	  elif test $ac_prog = install &&
1882	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1883	    # program-specific install script used by HP pwplus--don't use.
1884	    :
1885	  else
1886	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1887	    break 3
1888	  fi
1889	fi
1890      done
1891    done
1892    ;;
1893esac
1894done
1895IFS=$as_save_IFS
1896
1897
1898fi
1899  if test "${ac_cv_path_install+set}" = set; then
1900    INSTALL=$ac_cv_path_install
1901  else
1902    # As a last resort, use the slow shell script.  Don't cache a
1903    # value for INSTALL within a source directory, because that will
1904    # break other packages using the cache if that directory is
1905    # removed, or if the value is a relative name.
1906    INSTALL=$ac_install_sh
1907  fi
1908fi
1909{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1910echo "${ECHO_T}$INSTALL" >&6; }
1911
1912# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1913# It thinks the first close brace ends the variable substitution.
1914test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1915
1916test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1917
1918test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1919
1920{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1921echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1922# Just in case
1923sleep 1
1924echo timestamp > conftest.file
1925# Do `set' in a subshell so we don't clobber the current shell's
1926# arguments.  Must try -L first in case configure is actually a
1927# symlink; some systems play weird games with the mod time of symlinks
1928# (eg FreeBSD returns the mod time of the symlink's containing
1929# directory).
1930if (
1931   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1932   if test "$*" = "X"; then
1933      # -L didn't work.
1934      set X `ls -t $srcdir/configure conftest.file`
1935   fi
1936   rm -f conftest.file
1937   if test "$*" != "X $srcdir/configure conftest.file" \
1938      && test "$*" != "X conftest.file $srcdir/configure"; then
1939
1940      # If neither matched, then we have a broken ls.  This can happen
1941      # if, for instance, CONFIG_SHELL is bash and it inherits a
1942      # broken ls alias from the environment.  This has actually
1943      # happened.  Such a system could not be considered "sane".
1944      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1945alias in your environment" >&5
1946echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1947alias in your environment" >&2;}
1948   { (exit 1); exit 1; }; }
1949   fi
1950
1951   test "$2" = conftest.file
1952   )
1953then
1954   # Ok.
1955   :
1956else
1957   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1958Check your system clock" >&5
1959echo "$as_me: error: newly created file is older than distributed files!
1960Check your system clock" >&2;}
1961   { (exit 1); exit 1; }; }
1962fi
1963{ echo "$as_me:$LINENO: result: yes" >&5
1964echo "${ECHO_T}yes" >&6; }
1965test "$program_prefix" != NONE &&
1966  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1967# Use a double $ so make ignores it.
1968test "$program_suffix" != NONE &&
1969  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1970# Double any \ or $.  echo might interpret backslashes.
1971# By default was `s,x,x', remove it if useless.
1972cat <<\_ACEOF >conftest.sed
1973s/[\\$]/&&/g;s/;s,x,x,$//
1974_ACEOF
1975program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1976rm -f conftest.sed
1977
1978# expand $ac_aux_dir to an absolute path
1979am_aux_dir=`cd $ac_aux_dir && pwd`
1980
1981test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1982# Use eval to expand $SHELL
1983if eval "$MISSING --run true"; then
1984  am_missing_run="$MISSING --run "
1985else
1986  am_missing_run=
1987  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1988echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1989fi
1990
1991{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1992echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1993if test -z "$MKDIR_P"; then
1994  if test "${ac_cv_path_mkdir+set}" = set; then
1995  echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_prog in mkdir gmkdir; do
2003	 for ac_exec_ext in '' $ac_executable_extensions; do
2004	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2005	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2006	     'mkdir (GNU coreutils) '* | \
2007	     'mkdir (coreutils) '* | \
2008	     'mkdir (fileutils) '4.1*)
2009	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2010	       break 3;;
2011	   esac
2012	 done
2013       done
2014done
2015IFS=$as_save_IFS
2016
2017fi
2018
2019  if test "${ac_cv_path_mkdir+set}" = set; then
2020    MKDIR_P="$ac_cv_path_mkdir -p"
2021  else
2022    # As a last resort, use the slow shell script.  Don't cache a
2023    # value for MKDIR_P within a source directory, because that will
2024    # break other packages using the cache if that directory is
2025    # removed, or if the value is a relative name.
2026    test -d ./--version && rmdir ./--version
2027    MKDIR_P="$ac_install_sh -d"
2028  fi
2029fi
2030{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2031echo "${ECHO_T}$MKDIR_P" >&6; }
2032
2033mkdir_p="$MKDIR_P"
2034case $mkdir_p in
2035  [\\/$]* | ?:[\\/]*) ;;
2036  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2037esac
2038
2039for ac_prog in gawk mawk nawk awk
2040do
2041  # Extract the first word of "$ac_prog", so it can be a program name with args.
2042set dummy $ac_prog; ac_word=$2
2043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045if test "${ac_cv_prog_AWK+set}" = set; then
2046  echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048  if test -n "$AWK"; then
2049  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056  for ac_exec_ext in '' $ac_executable_extensions; do
2057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058    ac_cv_prog_AWK="$ac_prog"
2059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060    break 2
2061  fi
2062done
2063done
2064IFS=$as_save_IFS
2065
2066fi
2067fi
2068AWK=$ac_cv_prog_AWK
2069if test -n "$AWK"; then
2070  { echo "$as_me:$LINENO: result: $AWK" >&5
2071echo "${ECHO_T}$AWK" >&6; }
2072else
2073  { echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6; }
2075fi
2076
2077
2078  test -n "$AWK" && break
2079done
2080
2081{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2082echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2083set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2084if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  cat >conftest.make <<\_ACEOF
2088SHELL = /bin/sh
2089all:
2090	@echo '@@@%%%=$(MAKE)=@@@%%%'
2091_ACEOF
2092# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2093case `${MAKE-make} -f conftest.make 2>/dev/null` in
2094  *@@@%%%=?*=@@@%%%*)
2095    eval ac_cv_prog_make_${ac_make}_set=yes;;
2096  *)
2097    eval ac_cv_prog_make_${ac_make}_set=no;;
2098esac
2099rm -f conftest.make
2100fi
2101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2102  { echo "$as_me:$LINENO: result: yes" >&5
2103echo "${ECHO_T}yes" >&6; }
2104  SET_MAKE=
2105else
2106  { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
2108  SET_MAKE="MAKE=${MAKE-make}"
2109fi
2110
2111rm -rf .tst 2>/dev/null
2112mkdir .tst 2>/dev/null
2113if test -d .tst; then
2114  am__leading_dot=.
2115else
2116  am__leading_dot=_
2117fi
2118rmdir .tst 2>/dev/null
2119
2120if test "`cd $srcdir && pwd`" != "`pwd`"; then
2121  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2122  # is not polluted with repeated "-I."
2123  am__isrc=' -I$(srcdir)'
2124  # test to see if srcdir already configured
2125  if test -f $srcdir/config.status; then
2126    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2127echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2128   { (exit 1); exit 1; }; }
2129  fi
2130fi
2131
2132# test whether we have cygpath
2133if test -z "$CYGPATH_W"; then
2134  if (cygpath --version) >/dev/null 2>/dev/null; then
2135    CYGPATH_W='cygpath -w'
2136  else
2137    CYGPATH_W=echo
2138  fi
2139fi
2140
2141
2142# Define the identity of the package.
2143 PACKAGE='xinit'
2144 VERSION='1.1.0'
2145
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE "$PACKAGE"
2149_ACEOF
2150
2151
2152cat >>confdefs.h <<_ACEOF
2153#define VERSION "$VERSION"
2154_ACEOF
2155
2156# Some tools Automake needs.
2157
2158ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2159
2160
2161AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2162
2163
2164AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2165
2166
2167AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2168
2169
2170MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2171
2172install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2173
2174# Installed binaries are usually stripped using `strip' when the user
2175# run `make install-strip'.  However `strip' might not be the right
2176# tool to use in cross-compilation environments, therefore Automake
2177# will honor the `STRIP' environment variable to overrule this program.
2178if test "$cross_compiling" != no; then
2179  if test -n "$ac_tool_prefix"; then
2180  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2181set dummy ${ac_tool_prefix}strip; ac_word=$2
2182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184if test "${ac_cv_prog_STRIP+set}" = set; then
2185  echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187  if test -n "$STRIP"; then
2188  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2189else
2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191for as_dir in $PATH
2192do
2193  IFS=$as_save_IFS
2194  test -z "$as_dir" && as_dir=.
2195  for ac_exec_ext in '' $ac_executable_extensions; do
2196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199    break 2
2200  fi
2201done
2202done
2203IFS=$as_save_IFS
2204
2205fi
2206fi
2207STRIP=$ac_cv_prog_STRIP
2208if test -n "$STRIP"; then
2209  { echo "$as_me:$LINENO: result: $STRIP" >&5
2210echo "${ECHO_T}$STRIP" >&6; }
2211else
2212  { echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6; }
2214fi
2215
2216
2217fi
2218if test -z "$ac_cv_prog_STRIP"; then
2219  ac_ct_STRIP=$STRIP
2220  # Extract the first word of "strip", so it can be a program name with args.
2221set dummy strip; ac_word=$2
2222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2225  echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227  if test -n "$ac_ct_STRIP"; then
2228  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233  IFS=$as_save_IFS
2234  test -z "$as_dir" && as_dir=.
2235  for ac_exec_ext in '' $ac_executable_extensions; do
2236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237    ac_cv_prog_ac_ct_STRIP="strip"
2238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239    break 2
2240  fi
2241done
2242done
2243IFS=$as_save_IFS
2244
2245fi
2246fi
2247ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2248if test -n "$ac_ct_STRIP"; then
2249  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2250echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2251else
2252  { echo "$as_me:$LINENO: result: no" >&5
2253echo "${ECHO_T}no" >&6; }
2254fi
2255
2256  if test "x$ac_ct_STRIP" = x; then
2257    STRIP=":"
2258  else
2259    case $cross_compiling:$ac_tool_warned in
2260yes:)
2261{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2262whose name does not start with the host triplet.  If you think this
2263configuration is useful to you, please write to autoconf@gnu.org." >&5
2264echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2265whose name does not start with the host triplet.  If you think this
2266configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2267ac_tool_warned=yes ;;
2268esac
2269    STRIP=$ac_ct_STRIP
2270  fi
2271else
2272  STRIP="$ac_cv_prog_STRIP"
2273fi
2274
2275fi
2276INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2277
2278# We need awk for the "check" target.  The system "awk" is bad on
2279# some platforms.
2280# Always define AMTAR for backward compatibility.
2281
2282AMTAR=${AMTAR-"${am_missing_run}tar"}
2283
2284am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2285
2286
2287
2288
2289
2290{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2291echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2292    # Check whether --enable-maintainer-mode was given.
2293if test "${enable_maintainer_mode+set}" = set; then
2294  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2295else
2296  USE_MAINTAINER_MODE=no
2297fi
2298
2299  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2300echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2301   if test $USE_MAINTAINER_MODE = yes; then
2302  MAINTAINER_MODE_TRUE=
2303  MAINTAINER_MODE_FALSE='#'
2304else
2305  MAINTAINER_MODE_TRUE='#'
2306  MAINTAINER_MODE_FALSE=
2307fi
2308
2309  MAINT=$MAINTAINER_MODE_TRUE
2310
2311
2312
2313ac_config_headers="$ac_config_headers config.h"
2314
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321if test -n "$ac_tool_prefix"; then
2322  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326if test "${ac_cv_prog_CC+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  if test -n "$CC"; then
2330  ac_cv_prog_CC="$CC" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335  IFS=$as_save_IFS
2336  test -z "$as_dir" && as_dir=.
2337  for ac_exec_ext in '' $ac_executable_extensions; do
2338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341    break 2
2342  fi
2343done
2344done
2345IFS=$as_save_IFS
2346
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351  { echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6; }
2353else
2354  { echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6; }
2356fi
2357
2358
2359fi
2360if test -z "$ac_cv_prog_CC"; then
2361  ac_ct_CC=$CC
2362  # Extract the first word of "gcc", so it can be a program name with args.
2363set dummy gcc; ac_word=$2
2364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367  echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369  if test -n "$ac_ct_CC"; then
2370  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377  for ac_exec_ext in '' $ac_executable_extensions; do
2378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379    ac_cv_prog_ac_ct_CC="gcc"
2380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381    break 2
2382  fi
2383done
2384done
2385IFS=$as_save_IFS
2386
2387fi
2388fi
2389ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390if test -n "$ac_ct_CC"; then
2391  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392echo "${ECHO_T}$ac_ct_CC" >&6; }
2393else
2394  { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
2396fi
2397
2398  if test "x$ac_ct_CC" = x; then
2399    CC=""
2400  else
2401    case $cross_compiling:$ac_tool_warned in
2402yes:)
2403{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404whose name does not start with the host triplet.  If you think this
2405configuration is useful to you, please write to autoconf@gnu.org." >&5
2406echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407whose name does not start with the host triplet.  If you think this
2408configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409ac_tool_warned=yes ;;
2410esac
2411    CC=$ac_ct_CC
2412  fi
2413else
2414  CC="$ac_cv_prog_CC"
2415fi
2416
2417if test -z "$CC"; then
2418          if test -n "$ac_tool_prefix"; then
2419    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420set dummy ${ac_tool_prefix}cc; ac_word=$2
2421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423if test "${ac_cv_prog_CC+set}" = set; then
2424  echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426  if test -n "$CC"; then
2427  ac_cv_prog_CC="$CC" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434  for ac_exec_ext in '' $ac_executable_extensions; do
2435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436    ac_cv_prog_CC="${ac_tool_prefix}cc"
2437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438    break 2
2439  fi
2440done
2441done
2442IFS=$as_save_IFS
2443
2444fi
2445fi
2446CC=$ac_cv_prog_CC
2447if test -n "$CC"; then
2448  { echo "$as_me:$LINENO: result: $CC" >&5
2449echo "${ECHO_T}$CC" >&6; }
2450else
2451  { echo "$as_me:$LINENO: result: no" >&5
2452echo "${ECHO_T}no" >&6; }
2453fi
2454
2455
2456  fi
2457fi
2458if test -z "$CC"; then
2459  # Extract the first word of "cc", so it can be a program name with args.
2460set dummy cc; ac_word=$2
2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_CC+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  if test -n "$CC"; then
2467  ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
2469  ac_prog_rejected=no
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478       ac_prog_rejected=yes
2479       continue
2480     fi
2481    ac_cv_prog_CC="cc"
2482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486done
2487IFS=$as_save_IFS
2488
2489if test $ac_prog_rejected = yes; then
2490  # We found a bogon in the path, so make sure we never use it.
2491  set dummy $ac_cv_prog_CC
2492  shift
2493  if test $# != 0; then
2494    # We chose a different compiler from the bogus one.
2495    # However, it has the same basename, so the bogon will be chosen
2496    # first if we set CC to just the basename; use the full file name.
2497    shift
2498    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499  fi
2500fi
2501fi
2502fi
2503CC=$ac_cv_prog_CC
2504if test -n "$CC"; then
2505  { echo "$as_me:$LINENO: result: $CC" >&5
2506echo "${ECHO_T}$CC" >&6; }
2507else
2508  { echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6; }
2510fi
2511
2512
2513fi
2514if test -z "$CC"; then
2515  if test -n "$ac_tool_prefix"; then
2516  for ac_prog in cl.exe
2517  do
2518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522if test "${ac_cv_prog_CC+set}" = set; then
2523  echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525  if test -n "$CC"; then
2526  ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533  for ac_exec_ext in '' $ac_executable_extensions; do
2534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540done
2541IFS=$as_save_IFS
2542
2543fi
2544fi
2545CC=$ac_cv_prog_CC
2546if test -n "$CC"; then
2547  { echo "$as_me:$LINENO: result: $CC" >&5
2548echo "${ECHO_T}$CC" >&6; }
2549else
2550  { echo "$as_me:$LINENO: result: no" >&5
2551echo "${ECHO_T}no" >&6; }
2552fi
2553
2554
2555    test -n "$CC" && break
2556  done
2557fi
2558if test -z "$CC"; then
2559  ac_ct_CC=$CC
2560  for ac_prog in cl.exe
2561do
2562  # Extract the first word of "$ac_prog", so it can be a program name with args.
2563set dummy $ac_prog; ac_word=$2
2564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567  echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569  if test -n "$ac_ct_CC"; then
2570  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577  for ac_exec_ext in '' $ac_executable_extensions; do
2578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579    ac_cv_prog_ac_ct_CC="$ac_prog"
2580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590if test -n "$ac_ct_CC"; then
2591  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592echo "${ECHO_T}$ac_ct_CC" >&6; }
2593else
2594  { echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6; }
2596fi
2597
2598
2599  test -n "$ac_ct_CC" && break
2600done
2601
2602  if test "x$ac_ct_CC" = x; then
2603    CC=""
2604  else
2605    case $cross_compiling:$ac_tool_warned in
2606yes:)
2607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608whose name does not start with the host triplet.  If you think this
2609configuration is useful to you, please write to autoconf@gnu.org." >&5
2610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611whose name does not start with the host triplet.  If you think this
2612configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613ac_tool_warned=yes ;;
2614esac
2615    CC=$ac_ct_CC
2616  fi
2617fi
2618
2619fi
2620
2621
2622test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623See \`config.log' for more details." >&5
2624echo "$as_me: error: no acceptable C compiler found in \$PATH
2625See \`config.log' for more details." >&2;}
2626   { (exit 1); exit 1; }; }
2627
2628# Provide some information about the compiler.
2629echo "$as_me:$LINENO: checking for C compiler version" >&5
2630ac_compiler=`set X $ac_compile; echo $2`
2631{ (ac_try="$ac_compiler --version >&5"
2632case "(($ac_try" in
2633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634  *) ac_try_echo=$ac_try;;
2635esac
2636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637  (eval "$ac_compiler --version >&5") 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }
2641{ (ac_try="$ac_compiler -v >&5"
2642case "(($ac_try" in
2643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644  *) ac_try_echo=$ac_try;;
2645esac
2646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647  (eval "$ac_compiler -v >&5") 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }
2651{ (ac_try="$ac_compiler -V >&5"
2652case "(($ac_try" in
2653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654  *) ac_try_echo=$ac_try;;
2655esac
2656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657  (eval "$ac_compiler -V >&5") 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }
2661
2662cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668
2669int
2670main ()
2671{
2672
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677ac_clean_files_save=$ac_clean_files
2678ac_clean_files="$ac_clean_files a.out a.exe b.out"
2679# Try to create an executable without -o first, disregard a.out.
2680# It will help us diagnose broken compilers, and finding out an intuition
2681# of exeext.
2682{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2683echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2684ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2685#
2686# List of possible output files, starting from the most likely.
2687# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688# only as a last resort.  b.out is created by i960 compilers.
2689ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2690#
2691# The IRIX 6 linker writes into existing files which may not be
2692# executable, retaining their permissions.  Remove them first so a
2693# subsequent execution test works.
2694ac_rmfiles=
2695for ac_file in $ac_files
2696do
2697  case $ac_file in
2698    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700  esac
2701done
2702rm -f $ac_rmfiles
2703
2704if { (ac_try="$ac_link_default"
2705case "(($ac_try" in
2706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707  *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710  (eval "$ac_link_default") 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; then
2714  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2717# so that the user can short-circuit this test for compilers unknown to
2718# Autoconf.
2719for ac_file in $ac_files ''
2720do
2721  test -f "$ac_file" || continue
2722  case $ac_file in
2723    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2724	;;
2725    [ab].out )
2726	# We found the default executable, but exeext='' is most
2727	# certainly right.
2728	break;;
2729    *.* )
2730        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731	then :; else
2732	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733	fi
2734	# We set ac_cv_exeext here because the later test for it is not
2735	# safe: cross compilers may not add the suffix if given an `-o'
2736	# argument, so we may need to know it at that point already.
2737	# Even if this section looks crufty: it has the advantage of
2738	# actually working.
2739	break;;
2740    * )
2741	break;;
2742  esac
2743done
2744test "$ac_cv_exeext" = no && ac_cv_exeext=
2745
2746else
2747  ac_file=''
2748fi
2749
2750{ echo "$as_me:$LINENO: result: $ac_file" >&5
2751echo "${ECHO_T}$ac_file" >&6; }
2752if test -z "$ac_file"; then
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757See \`config.log' for more details." >&5
2758echo "$as_me: error: C compiler cannot create executables
2759See \`config.log' for more details." >&2;}
2760   { (exit 77); exit 77; }; }
2761fi
2762
2763ac_exeext=$ac_cv_exeext
2764
2765# Check that the compiler produces executables we can run.  If not, either
2766# the compiler is broken, or we cross compile.
2767{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770# If not cross compiling, check that we can run a simple program.
2771if test "$cross_compiling" != yes; then
2772  if { ac_try='./$ac_file'
2773  { (case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778  (eval "$ac_try") 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; }; then
2782    cross_compiling=no
2783  else
2784    if test "$cross_compiling" = maybe; then
2785	cross_compiling=yes
2786    else
2787	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788If you meant to cross compile, use \`--host'.
2789See \`config.log' for more details." >&5
2790echo "$as_me: error: cannot run C compiled programs.
2791If you meant to cross compile, use \`--host'.
2792See \`config.log' for more details." >&2;}
2793   { (exit 1); exit 1; }; }
2794    fi
2795  fi
2796fi
2797{ echo "$as_me:$LINENO: result: yes" >&5
2798echo "${ECHO_T}yes" >&6; }
2799
2800rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801ac_clean_files=$ac_clean_files_save
2802# Check that the compiler produces executables we can run.  If not, either
2803# the compiler is broken, or we cross compile.
2804{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807echo "${ECHO_T}$cross_compiling" >&6; }
2808
2809{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811if { (ac_try="$ac_link"
2812case "(($ac_try" in
2813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814  *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817  (eval "$ac_link") 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; then
2821  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2823# work properly (i.e., refer to `conftest.exe'), while it won't with
2824# `rm'.
2825for ac_file in conftest.exe conftest conftest.*; do
2826  test -f "$ac_file" || continue
2827  case $ac_file in
2828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830	  break;;
2831    * ) break;;
2832  esac
2833done
2834else
2835  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836See \`config.log' for more details." >&5
2837echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838See \`config.log' for more details." >&2;}
2839   { (exit 1); exit 1; }; }
2840fi
2841
2842rm -f conftest$ac_cv_exeext
2843{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844echo "${ECHO_T}$ac_cv_exeext" >&6; }
2845
2846rm -f conftest.$ac_ext
2847EXEEXT=$ac_cv_exeext
2848ac_exeext=$EXEEXT
2849{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851if test "${ac_cv_objext+set}" = set; then
2852  echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854  cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h.  */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h.  */
2860
2861int
2862main ()
2863{
2864
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869rm -f conftest.o conftest.obj
2870if { (ac_try="$ac_compile"
2871case "(($ac_try" in
2872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873  *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876  (eval "$ac_compile") 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; then
2880  for ac_file in conftest.o conftest.obj conftest.*; do
2881  test -f "$ac_file" || continue;
2882  case $ac_file in
2883    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885       break;;
2886  esac
2887done
2888else
2889  echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893See \`config.log' for more details." >&5
2894echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895See \`config.log' for more details." >&2;}
2896   { (exit 1); exit 1; }; }
2897fi
2898
2899rm -f conftest.$ac_cv_objext conftest.$ac_ext
2900fi
2901{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902echo "${ECHO_T}$ac_cv_objext" >&6; }
2903OBJEXT=$ac_cv_objext
2904ac_objext=$OBJEXT
2905{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908  echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910  cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920#ifndef __GNUC__
2921       choke me
2922#endif
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (ac_try="$ac_compile"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935  (eval "$ac_compile") 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } && {
2942	 test -z "$ac_c_werror_flag" ||
2943	 test ! -s conftest.err
2944       } && test -s conftest.$ac_objext; then
2945  ac_compiler_gnu=yes
2946else
2947  echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950	ac_compiler_gnu=no
2951fi
2952
2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955
2956fi
2957{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959GCC=`test $ac_compiler_gnu = yes && echo yes`
2960ac_test_CFLAGS=${CFLAGS+set}
2961ac_save_CFLAGS=$CFLAGS
2962{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964if test "${ac_cv_prog_cc_g+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967  ac_save_c_werror_flag=$ac_c_werror_flag
2968   ac_c_werror_flag=yes
2969   ac_cv_prog_cc_g=no
2970   CFLAGS="-g"
2971   cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (ac_try="$ac_compile"
2988case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993  (eval "$ac_compile") 2>conftest.er1
2994  ac_status=$?
2995  grep -v '^ *+' conftest.er1 >conftest.err
2996  rm -f conftest.er1
2997  cat conftest.err >&5
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); } && {
3000	 test -z "$ac_c_werror_flag" ||
3001	 test ! -s conftest.err
3002       } && test -s conftest.$ac_objext; then
3003  ac_cv_prog_cc_g=yes
3004else
3005  echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008	CFLAGS=""
3009      cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h.  */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h.  */
3015
3016int
3017main ()
3018{
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031  (eval "$ac_compile") 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } && {
3038	 test -z "$ac_c_werror_flag" ||
3039	 test ! -s conftest.err
3040       } && test -s conftest.$ac_objext; then
3041  :
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046	ac_c_werror_flag=$ac_save_c_werror_flag
3047	 CFLAGS="-g"
3048	 cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (ac_try="$ac_compile"
3065case "(($ac_try" in
3066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067  *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070  (eval "$ac_compile") 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } && {
3077	 test -z "$ac_c_werror_flag" ||
3078	 test ! -s conftest.err
3079       } && test -s conftest.$ac_objext; then
3080  ac_cv_prog_cc_g=yes
3081else
3082  echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
3086fi
3087
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089fi
3090
3091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092fi
3093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095   ac_c_werror_flag=$ac_save_c_werror_flag
3096fi
3097{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099if test "$ac_test_CFLAGS" = set; then
3100  CFLAGS=$ac_save_CFLAGS
3101elif test $ac_cv_prog_cc_g = yes; then
3102  if test "$GCC" = yes; then
3103    CFLAGS="-g -O2"
3104  else
3105    CFLAGS="-g"
3106  fi
3107else
3108  if test "$GCC" = yes; then
3109    CFLAGS="-O2"
3110  else
3111    CFLAGS=
3112  fi
3113fi
3114{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116if test "${ac_cv_prog_cc_c89+set}" = set; then
3117  echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119  ac_cv_prog_cc_c89=no
3120ac_save_CC=$CC
3121cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h.  */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h.  */
3127#include <stdarg.h>
3128#include <stdio.h>
3129#include <sys/types.h>
3130#include <sys/stat.h>
3131/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3132struct buf { int x; };
3133FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134static char *e (p, i)
3135     char **p;
3136     int i;
3137{
3138  return p[i];
3139}
3140static char *f (char * (*g) (char **, int), char **p, ...)
3141{
3142  char *s;
3143  va_list v;
3144  va_start (v,p);
3145  s = g (p, va_arg (v,int));
3146  va_end (v);
3147  return s;
3148}
3149
3150/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3151   function prototypes and stuff, but not '\xHH' hex character constants.
3152   These don't provoke an error unfortunately, instead are silently treated
3153   as 'x'.  The following induces an error, until -std is added to get
3154   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3155   array size at least.  It's necessary to write '\x00'==0 to get something
3156   that's true only with -std.  */
3157int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3158
3159/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160   inside strings and character constants.  */
3161#define FOO(x) 'x'
3162int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3163
3164int test (int i, double x);
3165struct s1 {int (*f) (int a);};
3166struct s2 {int (*f) (double a);};
3167int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168int argc;
3169char **argv;
3170int
3171main ()
3172{
3173return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3180do
3181  CC="$ac_save_CC $ac_arg"
3182  rm -f conftest.$ac_objext
3183if { (ac_try="$ac_compile"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189  (eval "$ac_compile") 2>conftest.er1
3190  ac_status=$?
3191  grep -v '^ *+' conftest.er1 >conftest.err
3192  rm -f conftest.er1
3193  cat conftest.err >&5
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); } && {
3196	 test -z "$ac_c_werror_flag" ||
3197	 test ! -s conftest.err
3198       } && test -s conftest.$ac_objext; then
3199  ac_cv_prog_cc_c89=$ac_arg
3200else
3201  echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205fi
3206
3207rm -f core conftest.err conftest.$ac_objext
3208  test "x$ac_cv_prog_cc_c89" != "xno" && break
3209done
3210rm -f conftest.$ac_ext
3211CC=$ac_save_CC
3212
3213fi
3214# AC_CACHE_VAL
3215case "x$ac_cv_prog_cc_c89" in
3216  x)
3217    { echo "$as_me:$LINENO: result: none needed" >&5
3218echo "${ECHO_T}none needed" >&6; } ;;
3219  xno)
3220    { echo "$as_me:$LINENO: result: unsupported" >&5
3221echo "${ECHO_T}unsupported" >&6; } ;;
3222  *)
3223    CC="$CC $ac_cv_prog_cc_c89"
3224    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226esac
3227
3228
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234DEPDIR="${am__leading_dot}deps"
3235
3236ac_config_commands="$ac_config_commands depfiles"
3237
3238
3239am_make=${MAKE-make}
3240cat > confinc << 'END'
3241am__doit:
3242	@echo done
3243.PHONY: am__doit
3244END
3245# If we don't find an include directive, just comment out the code.
3246{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3247echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3248am__include="#"
3249am__quote=
3250_am_result=none
3251# First try GNU make style include.
3252echo "include confinc" > confmf
3253# We grep out `Entering directory' and `Leaving directory'
3254# messages which can occur if `w' ends up in MAKEFLAGS.
3255# In particular we don't look at `^make:' because GNU make might
3256# be invoked under some other name (usually "gmake"), in which
3257# case it prints its new name instead of `make'.
3258if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3259   am__include=include
3260   am__quote=
3261   _am_result=GNU
3262fi
3263# Now try BSD make style include.
3264if test "$am__include" = "#"; then
3265   echo '.include "confinc"' > confmf
3266   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3267      am__include=.include
3268      am__quote="\""
3269      _am_result=BSD
3270   fi
3271fi
3272
3273
3274{ echo "$as_me:$LINENO: result: $_am_result" >&5
3275echo "${ECHO_T}$_am_result" >&6; }
3276rm -f confinc confmf
3277
3278# Check whether --enable-dependency-tracking was given.
3279if test "${enable_dependency_tracking+set}" = set; then
3280  enableval=$enable_dependency_tracking;
3281fi
3282
3283if test "x$enable_dependency_tracking" != xno; then
3284  am_depcomp="$ac_aux_dir/depcomp"
3285  AMDEPBACKSLASH='\'
3286fi
3287 if test "x$enable_dependency_tracking" != xno; then
3288  AMDEP_TRUE=
3289  AMDEP_FALSE='#'
3290else
3291  AMDEP_TRUE='#'
3292  AMDEP_FALSE=
3293fi
3294
3295
3296
3297depcc="$CC"   am_compiler_list=
3298
3299{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3300echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3301if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3305  # We make a subdir and do the tests there.  Otherwise we can end up
3306  # making bogus files that we don't know about and never remove.  For
3307  # instance it was reported that on HP-UX the gcc test will end up
3308  # making a dummy file named `D' -- because `-MD' means `put the output
3309  # in D'.
3310  mkdir conftest.dir
3311  # Copy depcomp to subdir because otherwise we won't find it if we're
3312  # using a relative directory.
3313  cp "$am_depcomp" conftest.dir
3314  cd conftest.dir
3315  # We will build objects and dependencies in a subdirectory because
3316  # it helps to detect inapplicable dependency modes.  For instance
3317  # both Tru64's cc and ICC support -MD to output dependencies as a
3318  # side effect of compilation, but ICC will put the dependencies in
3319  # the current directory while Tru64 will put them in the object
3320  # directory.
3321  mkdir sub
3322
3323  am_cv_CC_dependencies_compiler_type=none
3324  if test "$am_compiler_list" = ""; then
3325     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3326  fi
3327  for depmode in $am_compiler_list; do
3328    # Setup a source with many dependencies, because some compilers
3329    # like to wrap large dependency lists on column 80 (with \), and
3330    # we should not choose a depcomp mode which is confused by this.
3331    #
3332    # We need to recreate these files for each test, as the compiler may
3333    # overwrite some of them when testing with obscure command lines.
3334    # This happens at least with the AIX C compiler.
3335    : > sub/conftest.c
3336    for i in 1 2 3 4 5 6; do
3337      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3338      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3339      # Solaris 8's {/usr,}/bin/sh.
3340      touch sub/conftst$i.h
3341    done
3342    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3343
3344    case $depmode in
3345    nosideeffect)
3346      # after this tag, mechanisms are not by side-effect, so they'll
3347      # only be used when explicitly requested
3348      if test "x$enable_dependency_tracking" = xyes; then
3349	continue
3350      else
3351	break
3352      fi
3353      ;;
3354    none) break ;;
3355    esac
3356    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3357    # mode.  It turns out that the SunPro C++ compiler does not properly
3358    # handle `-M -o', and we need to detect this.
3359    if depmode=$depmode \
3360       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3361       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3362       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3363         >/dev/null 2>conftest.err &&
3364       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3365       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3366       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3367       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3368      # icc doesn't choke on unknown options, it will just issue warnings
3369      # or remarks (even with -Werror).  So we grep stderr for any message
3370      # that says an option was ignored or not supported.
3371      # When given -MP, icc 7.0 and 7.1 complain thusly:
3372      #   icc: Command line warning: ignoring option '-M'; no argument required
3373      # The diagnosis changed in icc 8.0:
3374      #   icc: Command line remark: option '-MP' not supported
3375      if (grep 'ignoring option' conftest.err ||
3376          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3377        am_cv_CC_dependencies_compiler_type=$depmode
3378        break
3379      fi
3380    fi
3381  done
3382
3383  cd ..
3384  rm -rf conftest.dir
3385else
3386  am_cv_CC_dependencies_compiler_type=none
3387fi
3388
3389fi
3390{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3391echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3393
3394 if
3395  test "x$enable_dependency_tracking" != xno \
3396  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3397  am__fastdepCC_TRUE=
3398  am__fastdepCC_FALSE='#'
3399else
3400  am__fastdepCC_TRUE='#'
3401  am__fastdepCC_FALSE=
3402fi
3403
3404
3405if test "x$CC" != xcc; then
3406  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3407echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3408else
3409  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3410echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3411fi
3412set dummy $CC; ac_cc=`echo $2 |
3413		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3414if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423
3424int
3425main ()
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432# Make sure it works both with $CC and with simple cc.
3433# We do the test twice because some compilers refuse to overwrite an
3434# existing .o file with -o, though they will create one.
3435ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3436rm -f conftest2.*
3437if { (case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442  (eval "$ac_try") 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446   test -f conftest2.$ac_objext && { (case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451  (eval "$ac_try") 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); };
3455then
3456  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3457  if test "x$CC" != xcc; then
3458    # Test first that cc exists at all.
3459    if { ac_try='cc -c conftest.$ac_ext >&5'
3460  { (case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465  (eval "$ac_try") 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; }; then
3469      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3470      rm -f conftest2.*
3471      if { (case "(($ac_try" in
3472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473  *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476  (eval "$ac_try") 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485  (eval "$ac_try") 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); };
3489      then
3490	# cc works too.
3491	:
3492      else
3493	# cc exists but doesn't like -o.
3494	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3495      fi
3496    fi
3497  fi
3498else
3499  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3500fi
3501rm -f core conftest*
3502
3503fi
3504if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3505  { echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6; }
3507else
3508  { echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6; }
3510
3511cat >>confdefs.h <<\_ACEOF
3512#define NO_MINUS_C_MINUS_O 1
3513_ACEOF
3514
3515fi
3516
3517# FIXME: we rely on the cache variable name because
3518# there is no other way.
3519set dummy $CC
3520ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3521if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3522   # Losing compiler, so override with the script.
3523   # FIXME: It is wrong to rewrite CC.
3524   # But if we don't then we get into trouble of one sort or another.
3525   # A longer-term fix would be to have automake use am__CC in this case,
3526   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3527   CC="$am_aux_dir/compile $CC"
3528fi
3529
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3537echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3538# On Suns, sometimes $CPP names a directory.
3539if test -n "$CPP" && test -d "$CPP"; then
3540  CPP=
3541fi
3542if test -z "$CPP"; then
3543  if test "${ac_cv_prog_CPP+set}" = set; then
3544  echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546      # Double quotes because CPP needs to be expanded
3547    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548    do
3549      ac_preproc_ok=false
3550for ac_c_preproc_warn_flag in '' yes
3551do
3552  # Use a header file that comes with gcc, so configuring glibc
3553  # with a fresh cross-compiler works.
3554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555  # <limits.h> exists even on freestanding compilers.
3556  # On the NeXT, cc -E runs the code through the compiler's parser,
3557  # not just through cpp. "Syntax error" is here to catch this case.
3558  cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h.  */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h.  */
3564#ifdef __STDC__
3565# include <limits.h>
3566#else
3567# include <assert.h>
3568#endif
3569		     Syntax error
3570_ACEOF
3571if { (ac_try="$ac_cpp conftest.$ac_ext"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } >/dev/null && {
3584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585	 test ! -s conftest.err
3586       }; then
3587  :
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592  # Broken: fails on valid input.
3593continue
3594fi
3595
3596rm -f conftest.err conftest.$ac_ext
3597
3598  # OK, works on sane cases.  Now check whether nonexistent headers
3599  # can be detected and how.
3600  cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606#include <ac_nonexistent.h>
3607_ACEOF
3608if { (ac_try="$ac_cpp conftest.$ac_ext"
3609case "(($ac_try" in
3610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611  *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615  ac_status=$?
3616  grep -v '^ *+' conftest.er1 >conftest.err
3617  rm -f conftest.er1
3618  cat conftest.err >&5
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); } >/dev/null && {
3621	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622	 test ! -s conftest.err
3623       }; then
3624  # Broken: success on invalid input.
3625continue
3626else
3627  echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630  # Passes both tests.
3631ac_preproc_ok=:
3632break
3633fi
3634
3635rm -f conftest.err conftest.$ac_ext
3636
3637done
3638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639rm -f conftest.err conftest.$ac_ext
3640if $ac_preproc_ok; then
3641  break
3642fi
3643
3644    done
3645    ac_cv_prog_CPP=$CPP
3646
3647fi
3648  CPP=$ac_cv_prog_CPP
3649else
3650  ac_cv_prog_CPP=$CPP
3651fi
3652{ echo "$as_me:$LINENO: result: $CPP" >&5
3653echo "${ECHO_T}$CPP" >&6; }
3654ac_preproc_ok=false
3655for ac_c_preproc_warn_flag in '' yes
3656do
3657  # Use a header file that comes with gcc, so configuring glibc
3658  # with a fresh cross-compiler works.
3659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660  # <limits.h> exists even on freestanding compilers.
3661  # On the NeXT, cc -E runs the code through the compiler's parser,
3662  # not just through cpp. "Syntax error" is here to catch this case.
3663  cat >conftest.$ac_ext <<_ACEOF
3664/* confdefs.h.  */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h.  */
3669#ifdef __STDC__
3670# include <limits.h>
3671#else
3672# include <assert.h>
3673#endif
3674		     Syntax error
3675_ACEOF
3676if { (ac_try="$ac_cpp conftest.$ac_ext"
3677case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683  ac_status=$?
3684  grep -v '^ *+' conftest.er1 >conftest.err
3685  rm -f conftest.er1
3686  cat conftest.err >&5
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); } >/dev/null && {
3689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3690	 test ! -s conftest.err
3691       }; then
3692  :
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697  # Broken: fails on valid input.
3698continue
3699fi
3700
3701rm -f conftest.err conftest.$ac_ext
3702
3703  # OK, works on sane cases.  Now check whether nonexistent headers
3704  # can be detected and how.
3705  cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h.  */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h.  */
3711#include <ac_nonexistent.h>
3712_ACEOF
3713if { (ac_try="$ac_cpp conftest.$ac_ext"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } >/dev/null && {
3726	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3727	 test ! -s conftest.err
3728       }; then
3729  # Broken: success on invalid input.
3730continue
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735  # Passes both tests.
3736ac_preproc_ok=:
3737break
3738fi
3739
3740rm -f conftest.err conftest.$ac_ext
3741
3742done
3743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744rm -f conftest.err conftest.$ac_ext
3745if $ac_preproc_ok; then
3746  :
3747else
3748  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details." >&5
3750echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3751See \`config.log' for more details." >&2;}
3752   { (exit 1); exit 1; }; }
3753fi
3754
3755ac_ext=c
3756ac_cpp='$CPP $CPPFLAGS'
3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762
3763for ac_prog in cpp
3764do
3765  # Extract the first word of "$ac_prog", so it can be a program name with args.
3766set dummy $ac_prog; ac_word=$2
3767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3769if test "${ac_cv_path_RAWCPP+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  case $RAWCPP in
3773  [\\/]* | ?:[\\/]*)
3774  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
3775  ;;
3776  *)
3777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
3779for as_dir in $as_dummy
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  for ac_exec_ext in '' $ac_executable_extensions; do
3784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
3786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787    break 2
3788  fi
3789done
3790done
3791IFS=$as_save_IFS
3792
3793  ;;
3794esac
3795fi
3796RAWCPP=$ac_cv_path_RAWCPP
3797if test -n "$RAWCPP"; then
3798  { echo "$as_me:$LINENO: result: $RAWCPP" >&5
3799echo "${ECHO_T}$RAWCPP" >&6; }
3800else
3801  { echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6; }
3803fi
3804
3805
3806  test -n "$RAWCPP" && break
3807done
3808test -n "$RAWCPP" || RAWCPP="${CPP}"
3809
3810
3811# Check for flag to avoid builtin definitions - assumes unix is predefined,
3812# which is not the best choice for supporting other OS'es, but covers most
3813# of the ones we need for now.
3814{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
3815echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
3816cat >conftest.$ac_ext <<_ACEOF
3817Does cpp redefine unix ?
3818_ACEOF
3819if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
3820	{ echo "$as_me:$LINENO: result: no" >&5
3821echo "${ECHO_T}no" >&6; }
3822else
3823	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
3824		RAWCPPFLAGS=-undef
3825		{ echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6; }
3827	else
3828		{ { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
3829echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
3830   { (exit 1); exit 1; }; }
3831	fi
3832fi
3833rm -f conftest.$ac_ext
3834
3835{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
3836echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
3837cat >conftest.$ac_ext <<_ACEOF
3838Does cpp preserve   "whitespace"?
3839_ACEOF
3840if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
3841	{ echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6; }
3843else
3844	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
3845		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
3846		{ echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6; }
3848	else
3849		{ { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
3850echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
3851   { (exit 1); exit 1; }; }
3852	fi
3853fi
3854rm -f conftest.$ac_ext
3855
3856
3857# Find a good install program.  We prefer a C program (faster),
3858# so one script is as good as another.  But avoid the broken or
3859# incompatible versions:
3860# SysV /etc/install, /usr/sbin/install
3861# SunOS /usr/etc/install
3862# IRIX /sbin/install
3863# AIX /bin/install
3864# AmigaOS /C/install, which installs bootblocks on floppy discs
3865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3868# OS/2's system install, which has a completely different semantic
3869# ./install, which can be erroneously created by make from ./install.sh.
3870{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3871echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3872if test -z "$INSTALL"; then
3873if test "${ac_cv_path_install+set}" = set; then
3874  echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881  # Account for people who put trailing slashes in PATH elements.
3882case $as_dir/ in
3883  ./ | .// | /cC/* | \
3884  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3885  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3886  /usr/ucb/* ) ;;
3887  *)
3888    # OSF1 and SCO ODT 3.0 have their own names for install.
3889    # Don't use installbsd from OSF since it installs stuff as root
3890    # by default.
3891    for ac_prog in ginstall scoinst install; do
3892      for ac_exec_ext in '' $ac_executable_extensions; do
3893	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3894	  if test $ac_prog = install &&
3895	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896	    # AIX install.  It has an incompatible calling convention.
3897	    :
3898	  elif test $ac_prog = install &&
3899	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3900	    # program-specific install script used by HP pwplus--don't use.
3901	    :
3902	  else
3903	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3904	    break 3
3905	  fi
3906	fi
3907      done
3908    done
3909    ;;
3910esac
3911done
3912IFS=$as_save_IFS
3913
3914
3915fi
3916  if test "${ac_cv_path_install+set}" = set; then
3917    INSTALL=$ac_cv_path_install
3918  else
3919    # As a last resort, use the slow shell script.  Don't cache a
3920    # value for INSTALL within a source directory, because that will
3921    # break other packages using the cache if that directory is
3922    # removed, or if the value is a relative name.
3923    INSTALL=$ac_install_sh
3924  fi
3925fi
3926{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3927echo "${ECHO_T}$INSTALL" >&6; }
3928
3929# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3930# It thinks the first close brace ends the variable substitution.
3931test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3932
3933test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3934
3935test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3936
3937# Extract the first word of "sed", so it can be a program name with args.
3938set dummy sed; ac_word=$2
3939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3941if test "${ac_cv_path_SED+set}" = set; then
3942  echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944  case $SED in
3945  [\\/]* | ?:[\\/]*)
3946  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3947  ;;
3948  *)
3949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954  for ac_exec_ext in '' $ac_executable_extensions; do
3955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958    break 2
3959  fi
3960done
3961done
3962IFS=$as_save_IFS
3963
3964  ;;
3965esac
3966fi
3967SED=$ac_cv_path_SED
3968if test -n "$SED"; then
3969  { echo "$as_me:$LINENO: result: $SED" >&5
3970echo "${ECHO_T}$SED" >&6; }
3971else
3972  { echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6; }
3974fi
3975
3976
3977# Make sure we can run config.sub.
3978$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3979  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3980echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3981   { (exit 1); exit 1; }; }
3982
3983{ echo "$as_me:$LINENO: checking build system type" >&5
3984echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3985if test "${ac_cv_build+set}" = set; then
3986  echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988  ac_build_alias=$build_alias
3989test "x$ac_build_alias" = x &&
3990  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3991test "x$ac_build_alias" = x &&
3992  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3993echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3994   { (exit 1); exit 1; }; }
3995ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3996  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3997echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3998   { (exit 1); exit 1; }; }
3999
4000fi
4001{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4002echo "${ECHO_T}$ac_cv_build" >&6; }
4003case $ac_cv_build in
4004*-*-*) ;;
4005*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4006echo "$as_me: error: invalid value of canonical build" >&2;}
4007   { (exit 1); exit 1; }; };;
4008esac
4009build=$ac_cv_build
4010ac_save_IFS=$IFS; IFS='-'
4011set x $ac_cv_build
4012shift
4013build_cpu=$1
4014build_vendor=$2
4015shift; shift
4016# Remember, the first character of IFS is used to create $*,
4017# except with old shells:
4018build_os=$*
4019IFS=$ac_save_IFS
4020case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4021
4022
4023{ echo "$as_me:$LINENO: checking host system type" >&5
4024echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4025if test "${ac_cv_host+set}" = set; then
4026  echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028  if test "x$host_alias" = x; then
4029  ac_cv_host=$ac_cv_build
4030else
4031  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4032    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4033echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4034   { (exit 1); exit 1; }; }
4035fi
4036
4037fi
4038{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4039echo "${ECHO_T}$ac_cv_host" >&6; }
4040case $ac_cv_host in
4041*-*-*) ;;
4042*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4043echo "$as_me: error: invalid value of canonical host" >&2;}
4044   { (exit 1); exit 1; }; };;
4045esac
4046host=$ac_cv_host
4047ac_save_IFS=$IFS; IFS='-'
4048set x $ac_cv_host
4049shift
4050host_cpu=$1
4051host_vendor=$2
4052shift; shift
4053# Remember, the first character of IFS is used to create $*,
4054# except with old shells:
4055host_os=$*
4056IFS=$ac_save_IFS
4057case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4058
4059
4060
4061
4062{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4063echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4064if test "${ac_cv_type_signal+set}" = set; then
4065  echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067  cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <sys/types.h>
4074#include <signal.h>
4075
4076int
4077main ()
4078{
4079return *(signal (0, 0)) (0) == 1;
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (ac_try="$ac_compile"
4086case "(($ac_try" in
4087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088  *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091  (eval "$ac_compile") 2>conftest.er1
4092  ac_status=$?
4093  grep -v '^ *+' conftest.er1 >conftest.err
4094  rm -f conftest.er1
4095  cat conftest.err >&5
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); } && {
4098	 test -z "$ac_c_werror_flag" ||
4099	 test ! -s conftest.err
4100       } && test -s conftest.$ac_objext; then
4101  ac_cv_type_signal=int
4102else
4103  echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106	ac_cv_type_signal=void
4107fi
4108
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110fi
4111{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4112echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4113
4114cat >>confdefs.h <<_ACEOF
4115#define RETSIGTYPE $ac_cv_type_signal
4116_ACEOF
4117
4118
4119
4120{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4121echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4122if test "${ac_cv_path_GREP+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  # Extract the first word of "grep ggrep" to use in msg output
4126if test -z "$GREP"; then
4127set dummy grep ggrep; ac_prog_name=$2
4128if test "${ac_cv_path_GREP+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  ac_path_GREP_found=false
4132# Loop through the user's path and test for each of PROGNAME-LIST
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138  for ac_prog in grep ggrep; do
4139  for ac_exec_ext in '' $ac_executable_extensions; do
4140    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142    # Check for GNU ac_path_GREP and select it if it is found.
4143  # Check for GNU $ac_path_GREP
4144case `"$ac_path_GREP" --version 2>&1` in
4145*GNU*)
4146  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147*)
4148  ac_count=0
4149  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4150  while :
4151  do
4152    cat "conftest.in" "conftest.in" >"conftest.tmp"
4153    mv "conftest.tmp" "conftest.in"
4154    cp "conftest.in" "conftest.nl"
4155    echo 'GREP' >> "conftest.nl"
4156    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158    ac_count=`expr $ac_count + 1`
4159    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160      # Best one so far, save it but keep looking for a better one
4161      ac_cv_path_GREP="$ac_path_GREP"
4162      ac_path_GREP_max=$ac_count
4163    fi
4164    # 10*(2^10) chars as input seems more than enough
4165    test $ac_count -gt 10 && break
4166  done
4167  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168esac
4169
4170
4171    $ac_path_GREP_found && break 3
4172  done
4173done
4174
4175done
4176IFS=$as_save_IFS
4177
4178
4179fi
4180
4181GREP="$ac_cv_path_GREP"
4182if test -z "$GREP"; then
4183  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4184echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4185   { (exit 1); exit 1; }; }
4186fi
4187
4188else
4189  ac_cv_path_GREP=$GREP
4190fi
4191
4192
4193fi
4194{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4195echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4196 GREP="$ac_cv_path_GREP"
4197
4198
4199{ echo "$as_me:$LINENO: checking for egrep" >&5
4200echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4201if test "${ac_cv_path_EGREP+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205   then ac_cv_path_EGREP="$GREP -E"
4206   else
4207     # Extract the first word of "egrep" to use in msg output
4208if test -z "$EGREP"; then
4209set dummy egrep; ac_prog_name=$2
4210if test "${ac_cv_path_EGREP+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  ac_path_EGREP_found=false
4214# Loop through the user's path and test for each of PROGNAME-LIST
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220  for ac_prog in egrep; do
4221  for ac_exec_ext in '' $ac_executable_extensions; do
4222    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4224    # Check for GNU ac_path_EGREP and select it if it is found.
4225  # Check for GNU $ac_path_EGREP
4226case `"$ac_path_EGREP" --version 2>&1` in
4227*GNU*)
4228  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229*)
4230  ac_count=0
4231  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4232  while :
4233  do
4234    cat "conftest.in" "conftest.in" >"conftest.tmp"
4235    mv "conftest.tmp" "conftest.in"
4236    cp "conftest.in" "conftest.nl"
4237    echo 'EGREP' >> "conftest.nl"
4238    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240    ac_count=`expr $ac_count + 1`
4241    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242      # Best one so far, save it but keep looking for a better one
4243      ac_cv_path_EGREP="$ac_path_EGREP"
4244      ac_path_EGREP_max=$ac_count
4245    fi
4246    # 10*(2^10) chars as input seems more than enough
4247    test $ac_count -gt 10 && break
4248  done
4249  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250esac
4251
4252
4253    $ac_path_EGREP_found && break 3
4254  done
4255done
4256
4257done
4258IFS=$as_save_IFS
4259
4260
4261fi
4262
4263EGREP="$ac_cv_path_EGREP"
4264if test -z "$EGREP"; then
4265  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4266echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4267   { (exit 1); exit 1; }; }
4268fi
4269
4270else
4271  ac_cv_path_EGREP=$EGREP
4272fi
4273
4274
4275   fi
4276fi
4277{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4278echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4279 EGREP="$ac_cv_path_EGREP"
4280
4281
4282{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4283echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4284if test "${ac_cv_header_stdc+set}" = set; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h.  */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h.  */
4293#include <stdlib.h>
4294#include <stdarg.h>
4295#include <string.h>
4296#include <float.h>
4297
4298int
4299main ()
4300{
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306rm -f conftest.$ac_objext
4307if { (ac_try="$ac_compile"
4308case "(($ac_try" in
4309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310  *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313  (eval "$ac_compile") 2>conftest.er1
4314  ac_status=$?
4315  grep -v '^ *+' conftest.er1 >conftest.err
4316  rm -f conftest.er1
4317  cat conftest.err >&5
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); } && {
4320	 test -z "$ac_c_werror_flag" ||
4321	 test ! -s conftest.err
4322       } && test -s conftest.$ac_objext; then
4323  ac_cv_header_stdc=yes
4324else
4325  echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328	ac_cv_header_stdc=no
4329fi
4330
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332
4333if test $ac_cv_header_stdc = yes; then
4334  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4335  cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h.  */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h.  */
4341#include <string.h>
4342
4343_ACEOF
4344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345  $EGREP "memchr" >/dev/null 2>&1; then
4346  :
4347else
4348  ac_cv_header_stdc=no
4349fi
4350rm -f conftest*
4351
4352fi
4353
4354if test $ac_cv_header_stdc = yes; then
4355  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356  cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h.  */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h.  */
4362#include <stdlib.h>
4363
4364_ACEOF
4365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366  $EGREP "free" >/dev/null 2>&1; then
4367  :
4368else
4369  ac_cv_header_stdc=no
4370fi
4371rm -f conftest*
4372
4373fi
4374
4375if test $ac_cv_header_stdc = yes; then
4376  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377  if test "$cross_compiling" = yes; then
4378  :
4379else
4380  cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h.  */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h.  */
4386#include <ctype.h>
4387#include <stdlib.h>
4388#if ((' ' & 0x0FF) == 0x020)
4389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391#else
4392# define ISLOWER(c) \
4393		   (('a' <= (c) && (c) <= 'i') \
4394		     || ('j' <= (c) && (c) <= 'r') \
4395		     || ('s' <= (c) && (c) <= 'z'))
4396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4397#endif
4398
4399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400int
4401main ()
4402{
4403  int i;
4404  for (i = 0; i < 256; i++)
4405    if (XOR (islower (i), ISLOWER (i))
4406	|| toupper (i) != TOUPPER (i))
4407      return 2;
4408  return 0;
4409}
4410_ACEOF
4411rm -f conftest$ac_exeext
4412if { (ac_try="$ac_link"
4413case "(($ac_try" in
4414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415  *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418  (eval "$ac_link") 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4422  { (case "(($ac_try" in
4423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424  *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427  (eval "$ac_try") 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; }; then
4431  :
4432else
4433  echo "$as_me: program exited with status $ac_status" >&5
4434echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437( exit $ac_status )
4438ac_cv_header_stdc=no
4439fi
4440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4441fi
4442
4443
4444fi
4445fi
4446{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4447echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4448if test $ac_cv_header_stdc = yes; then
4449
4450cat >>confdefs.h <<\_ACEOF
4451#define STDC_HEADERS 1
4452_ACEOF
4453
4454fi
4455
4456# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4467		  inttypes.h stdint.h unistd.h
4468do
4469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4473  echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475  cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h.  */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h.  */
4481$ac_includes_default
4482
4483#include <$ac_header>
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (ac_try="$ac_compile"
4487case "(($ac_try" in
4488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489  *) ac_try_echo=$ac_try;;
4490esac
4491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492  (eval "$ac_compile") 2>conftest.er1
4493  ac_status=$?
4494  grep -v '^ *+' conftest.er1 >conftest.err
4495  rm -f conftest.er1
4496  cat conftest.err >&5
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); } && {
4499	 test -z "$ac_c_werror_flag" ||
4500	 test ! -s conftest.err
4501       } && test -s conftest.$ac_objext; then
4502  eval "$as_ac_Header=yes"
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507	eval "$as_ac_Header=no"
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511fi
4512ac_res=`eval echo '${'$as_ac_Header'}'`
4513	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4514echo "${ECHO_T}$ac_res" >&6; }
4515if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516  cat >>confdefs.h <<_ACEOF
4517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518_ACEOF
4519
4520fi
4521
4522done
4523
4524
4525{ echo "$as_me:$LINENO: checking for pid_t" >&5
4526echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4527if test "${ac_cv_type_pid_t+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537typedef pid_t ac__type_new_;
4538int
4539main ()
4540{
4541if ((ac__type_new_ *) 0)
4542  return 0;
4543if (sizeof (ac__type_new_))
4544  return 0;
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext
4550if { (ac_try="$ac_compile"
4551case "(($ac_try" in
4552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553  *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556  (eval "$ac_compile") 2>conftest.er1
4557  ac_status=$?
4558  grep -v '^ *+' conftest.er1 >conftest.err
4559  rm -f conftest.er1
4560  cat conftest.err >&5
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); } && {
4563	 test -z "$ac_c_werror_flag" ||
4564	 test ! -s conftest.err
4565       } && test -s conftest.$ac_objext; then
4566  ac_cv_type_pid_t=yes
4567else
4568  echo "$as_me: failed program was:" >&5
4569sed 's/^/| /' conftest.$ac_ext >&5
4570
4571	ac_cv_type_pid_t=no
4572fi
4573
4574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575fi
4576{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4577echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4578if test $ac_cv_type_pid_t = yes; then
4579  :
4580else
4581
4582cat >>confdefs.h <<_ACEOF
4583#define pid_t int
4584_ACEOF
4585
4586fi
4587
4588
4589for ac_header in vfork.h
4590do
4591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4596  echo $ECHO_N "(cached) $ECHO_C" >&6
4597fi
4598ac_res=`eval echo '${'$as_ac_Header'}'`
4599	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4600echo "${ECHO_T}$ac_res" >&6; }
4601else
4602  # Is the header compilable?
4603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4605cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611$ac_includes_default
4612#include <$ac_header>
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (ac_try="$ac_compile"
4616case "(($ac_try" in
4617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618  *) ac_try_echo=$ac_try;;
4619esac
4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621  (eval "$ac_compile") 2>conftest.er1
4622  ac_status=$?
4623  grep -v '^ *+' conftest.er1 >conftest.err
4624  rm -f conftest.er1
4625  cat conftest.err >&5
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); } && {
4628	 test -z "$ac_c_werror_flag" ||
4629	 test ! -s conftest.err
4630       } && test -s conftest.$ac_objext; then
4631  ac_header_compiler=yes
4632else
4633  echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636	ac_header_compiler=no
4637fi
4638
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641echo "${ECHO_T}$ac_header_compiler" >&6; }
4642
4643# Is the header present?
4644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4646cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h.  */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h.  */
4652#include <$ac_header>
4653_ACEOF
4654if { (ac_try="$ac_cpp conftest.$ac_ext"
4655case "(($ac_try" in
4656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657  *) ac_try_echo=$ac_try;;
4658esac
4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661  ac_status=$?
4662  grep -v '^ *+' conftest.er1 >conftest.err
4663  rm -f conftest.er1
4664  cat conftest.err >&5
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } >/dev/null && {
4667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4668	 test ! -s conftest.err
4669       }; then
4670  ac_header_preproc=yes
4671else
4672  echo "$as_me: failed program was:" >&5
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
4675  ac_header_preproc=no
4676fi
4677
4678rm -f conftest.err conftest.$ac_ext
4679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680echo "${ECHO_T}$ac_header_preproc" >&6; }
4681
4682# So?  What about this header?
4683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684  yes:no: )
4685    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4689    ac_header_preproc=yes
4690    ;;
4691  no:yes:* )
4692    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4695echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4696    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4698    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4699echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4700    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4702    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4704    ( cat <<\_ASBOX
4705## ---------------------------------------------------------------------- ##
4706## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4707## ---------------------------------------------------------------------- ##
4708_ASBOX
4709     ) | sed "s/^/$as_me: WARNING:     /" >&2
4710    ;;
4711esac
4712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4715  echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717  eval "$as_ac_Header=\$ac_header_preproc"
4718fi
4719ac_res=`eval echo '${'$as_ac_Header'}'`
4720	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4721echo "${ECHO_T}$ac_res" >&6; }
4722
4723fi
4724if test `eval echo '${'$as_ac_Header'}'` = yes; then
4725  cat >>confdefs.h <<_ACEOF
4726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727_ACEOF
4728
4729fi
4730
4731done
4732
4733
4734
4735for ac_func in fork vfork
4736do
4737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4751#define $ac_func innocuous_$ac_func
4752
4753/* System header to define __stub macros and hopefully few prototypes,
4754    which can conflict with char $ac_func (); below.
4755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756    <limits.h> exists even on freestanding compilers.  */
4757
4758#ifdef __STDC__
4759# include <limits.h>
4760#else
4761# include <assert.h>
4762#endif
4763
4764#undef $ac_func
4765
4766/* Override any GCC internal prototype to avoid an error.
4767   Use char because int might match the return type of a GCC
4768   builtin and then its argument prototype would still apply.  */
4769#ifdef __cplusplus
4770extern "C"
4771#endif
4772char $ac_func ();
4773/* The GNU C library defines this for functions which it implements
4774    to always fail with ENOSYS.  Some functions are actually named
4775    something starting with __ and the normal name is an alias.  */
4776#if defined __stub_$ac_func || defined __stub___$ac_func
4777choke me
4778#endif
4779
4780int
4781main ()
4782{
4783return $ac_func ();
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788rm -f conftest.$ac_objext conftest$ac_exeext
4789if { (ac_try="$ac_link"
4790case "(($ac_try" in
4791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792  *) ac_try_echo=$ac_try;;
4793esac
4794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795  (eval "$ac_link") 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } && {
4802	 test -z "$ac_c_werror_flag" ||
4803	 test ! -s conftest.err
4804       } && test -s conftest$ac_exeext &&
4805       $as_test_x conftest$ac_exeext; then
4806  eval "$as_ac_var=yes"
4807else
4808  echo "$as_me: failed program was:" >&5
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811	eval "$as_ac_var=no"
4812fi
4813
4814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4815      conftest$ac_exeext conftest.$ac_ext
4816fi
4817ac_res=`eval echo '${'$as_ac_var'}'`
4818	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4819echo "${ECHO_T}$ac_res" >&6; }
4820if test `eval echo '${'$as_ac_var'}'` = yes; then
4821  cat >>confdefs.h <<_ACEOF
4822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4823_ACEOF
4824
4825fi
4826done
4827
4828if test "x$ac_cv_func_fork" = xyes; then
4829  { echo "$as_me:$LINENO: checking for working fork" >&5
4830echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
4831if test "${ac_cv_func_fork_works+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  if test "$cross_compiling" = yes; then
4835  ac_cv_func_fork_works=cross
4836else
4837  cat >conftest.$ac_ext <<_ACEOF
4838/* confdefs.h.  */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h.  */
4843$ac_includes_default
4844int
4845main ()
4846{
4847
4848	  /* By Ruediger Kuhlmann. */
4849	  return fork () < 0;
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest$ac_exeext
4856if { (ac_try="$ac_link"
4857case "(($ac_try" in
4858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859  *) ac_try_echo=$ac_try;;
4860esac
4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862  (eval "$ac_link") 2>&5
4863  ac_status=$?
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4866  { (case "(($ac_try" in
4867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868  *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871  (eval "$ac_try") 2>&5
4872  ac_status=$?
4873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); }; }; then
4875  ac_cv_func_fork_works=yes
4876else
4877  echo "$as_me: program exited with status $ac_status" >&5
4878echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881( exit $ac_status )
4882ac_cv_func_fork_works=no
4883fi
4884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885fi
4886
4887
4888fi
4889{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4890echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
4891
4892else
4893  ac_cv_func_fork_works=$ac_cv_func_fork
4894fi
4895if test "x$ac_cv_func_fork_works" = xcross; then
4896  case $host in
4897    *-*-amigaos* | *-*-msdosdjgpp*)
4898      # Override, as these systems have only a dummy fork() stub
4899      ac_cv_func_fork_works=no
4900      ;;
4901    *)
4902      ac_cv_func_fork_works=yes
4903      ;;
4904  esac
4905  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4906echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4907fi
4908ac_cv_func_vfork_works=$ac_cv_func_vfork
4909if test "x$ac_cv_func_vfork" = xyes; then
4910  { echo "$as_me:$LINENO: checking for working vfork" >&5
4911echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
4912if test "${ac_cv_func_vfork_works+set}" = set; then
4913  echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915  if test "$cross_compiling" = yes; then
4916  ac_cv_func_vfork_works=cross
4917else
4918  cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h.  */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h.  */
4924/* Thanks to Paul Eggert for this test.  */
4925$ac_includes_default
4926#include <sys/wait.h>
4927#ifdef HAVE_VFORK_H
4928# include <vfork.h>
4929#endif
4930/* On some sparc systems, changes by the child to local and incoming
4931   argument registers are propagated back to the parent.  The compiler
4932   is told about this with #include <vfork.h>, but some compilers
4933   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4934   static variable whose address is put into a register that is
4935   clobbered by the vfork.  */
4936static void
4937#ifdef __cplusplus
4938sparc_address_test (int arg)
4939# else
4940sparc_address_test (arg) int arg;
4941#endif
4942{
4943  static pid_t child;
4944  if (!child) {
4945    child = vfork ();
4946    if (child < 0) {
4947      perror ("vfork");
4948      _exit(2);
4949    }
4950    if (!child) {
4951      arg = getpid();
4952      write(-1, "", 0);
4953      _exit (arg);
4954    }
4955  }
4956}
4957
4958int
4959main ()
4960{
4961  pid_t parent = getpid ();
4962  pid_t child;
4963
4964  sparc_address_test (0);
4965
4966  child = vfork ();
4967
4968  if (child == 0) {
4969    /* Here is another test for sparc vfork register problems.  This
4970       test uses lots of local variables, at least as many local
4971       variables as main has allocated so far including compiler
4972       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
4973       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
4974       reuse the register of parent for one of the local variables,
4975       since it will think that parent can't possibly be used any more
4976       in this routine.  Assigning to the local variable will thus
4977       munge parent in the parent process.  */
4978    pid_t
4979      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4980      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4981    /* Convince the compiler that p..p7 are live; otherwise, it might
4982       use the same hardware register for all 8 local variables.  */
4983    if (p != p1 || p != p2 || p != p3 || p != p4
4984	|| p != p5 || p != p6 || p != p7)
4985      _exit(1);
4986
4987    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4988       from child file descriptors.  If the child closes a descriptor
4989       before it execs or exits, this munges the parent's descriptor
4990       as well.  Test for this by closing stdout in the child.  */
4991    _exit(close(fileno(stdout)) != 0);
4992  } else {
4993    int status;
4994    struct stat st;
4995
4996    while (wait(&status) != child)
4997      ;
4998    return (
4999	 /* Was there some problem with vforking?  */
5000	 child < 0
5001
5002	 /* Did the child fail?  (This shouldn't happen.)  */
5003	 || status
5004
5005	 /* Did the vfork/compiler bug occur?  */
5006	 || parent != getpid()
5007
5008	 /* Did the file descriptor bug occur?  */
5009	 || fstat(fileno(stdout), &st) != 0
5010	 );
5011  }
5012}
5013_ACEOF
5014rm -f conftest$ac_exeext
5015if { (ac_try="$ac_link"
5016case "(($ac_try" in
5017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018  *) ac_try_echo=$ac_try;;
5019esac
5020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021  (eval "$ac_link") 2>&5
5022  ac_status=$?
5023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5025  { (case "(($ac_try" in
5026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027  *) ac_try_echo=$ac_try;;
5028esac
5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030  (eval "$ac_try") 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; }; then
5034  ac_cv_func_vfork_works=yes
5035else
5036  echo "$as_me: program exited with status $ac_status" >&5
5037echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5040( exit $ac_status )
5041ac_cv_func_vfork_works=no
5042fi
5043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044fi
5045
5046
5047fi
5048{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5049echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
5050
5051fi;
5052if test "x$ac_cv_func_fork_works" = xcross; then
5053  ac_cv_func_vfork_works=$ac_cv_func_vfork
5054  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5055echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5056fi
5057
5058if test "x$ac_cv_func_vfork_works" = xyes; then
5059
5060cat >>confdefs.h <<\_ACEOF
5061#define HAVE_WORKING_VFORK 1
5062_ACEOF
5063
5064else
5065
5066cat >>confdefs.h <<\_ACEOF
5067#define vfork fork
5068_ACEOF
5069
5070fi
5071if test "x$ac_cv_func_fork_works" = xyes; then
5072
5073cat >>confdefs.h <<\_ACEOF
5074#define HAVE_WORKING_FORK 1
5075_ACEOF
5076
5077fi
5078
5079
5080
5081for ac_func in killpg
5082do
5083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5096   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5097#define $ac_func innocuous_$ac_func
5098
5099/* System header to define __stub macros and hopefully few prototypes,
5100    which can conflict with char $ac_func (); below.
5101    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102    <limits.h> exists even on freestanding compilers.  */
5103
5104#ifdef __STDC__
5105# include <limits.h>
5106#else
5107# include <assert.h>
5108#endif
5109
5110#undef $ac_func
5111
5112/* Override any GCC internal prototype to avoid an error.
5113   Use char because int might match the return type of a GCC
5114   builtin and then its argument prototype would still apply.  */
5115#ifdef __cplusplus
5116extern "C"
5117#endif
5118char $ac_func ();
5119/* The GNU C library defines this for functions which it implements
5120    to always fail with ENOSYS.  Some functions are actually named
5121    something starting with __ and the normal name is an alias.  */
5122#if defined __stub_$ac_func || defined __stub___$ac_func
5123choke me
5124#endif
5125
5126int
5127main ()
5128{
5129return $ac_func ();
5130  ;
5131  return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext conftest$ac_exeext
5135if { (ac_try="$ac_link"
5136case "(($ac_try" in
5137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138  *) ac_try_echo=$ac_try;;
5139esac
5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141  (eval "$ac_link") 2>conftest.er1
5142  ac_status=$?
5143  grep -v '^ *+' conftest.er1 >conftest.err
5144  rm -f conftest.er1
5145  cat conftest.err >&5
5146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147  (exit $ac_status); } && {
5148	 test -z "$ac_c_werror_flag" ||
5149	 test ! -s conftest.err
5150       } && test -s conftest$ac_exeext &&
5151       $as_test_x conftest$ac_exeext; then
5152  eval "$as_ac_var=yes"
5153else
5154  echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157	eval "$as_ac_var=no"
5158fi
5159
5160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5161      conftest$ac_exeext conftest.$ac_ext
5162fi
5163ac_res=`eval echo '${'$as_ac_var'}'`
5164	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5165echo "${ECHO_T}$ac_res" >&6; }
5166if test `eval echo '${'$as_ac_var'}'` = yes; then
5167  cat >>confdefs.h <<_ACEOF
5168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5169_ACEOF
5170
5171fi
5172done
5173
5174
5175
5176
5177# Build options
5178DEFAULT_XRDB=xrdb
5179DEFAULT_XMODMAP=xmodmap
5180DEFAULT_TWM=twm
5181DEFAULT_XCLOCK=xclock
5182DEFAULT_XTERM=xterm
5183# You always want to specify the full path to the X server
5184DEFAULT_XSERVER=${bindir}/X
5185DEFAULT_XAUTH=xauth
5186DEFAULT_XINIT=xinit
5187
5188
5189# Check whether --with-xrdb was given.
5190if test "${with_xrdb+set}" = set; then
5191  withval=$with_xrdb; XRDB="$withval"
5192else
5193  XRDB="$DEFAULT_XRDB"
5194fi
5195
5196
5197
5198# Check whether --with-xmodmap was given.
5199if test "${with_xmodmap+set}" = set; then
5200  withval=$with_xmodmap; XMODMAP="$withval"
5201else
5202  XMODMAP="$DEFAULT_XMODMAP"
5203fi
5204
5205
5206
5207# Check whether --with-twm was given.
5208if test "${with_twm+set}" = set; then
5209  withval=$with_twm; TWM="$withval"
5210else
5211  TWM="$DEFAULT_TWM"
5212fi
5213
5214
5215
5216# Check whether --with-xclock was given.
5217if test "${with_xclock+set}" = set; then
5218  withval=$with_xclock; XCLOCK="$withval"
5219else
5220  XCLOCK="$DEFAULT_XCLOCK"
5221fi
5222
5223
5224
5225# Check whether --with-xterm was given.
5226if test "${with_xterm+set}" = set; then
5227  withval=$with_xterm; XTERM="$withval"
5228else
5229  XTERM="$DEFAULT_XTERM"
5230fi
5231
5232
5233
5234# Check whether --with-xserver was given.
5235if test "${with_xserver+set}" = set; then
5236  withval=$with_xserver; XSERVER="$withval"
5237else
5238  XSERVER="$DEFAULT_XSERVER"
5239fi
5240
5241
5242
5243# Check whether --with-xauth was given.
5244if test "${with_xauth+set}" = set; then
5245  withval=$with_xauth; XAUTH="$withval"
5246else
5247  XAUTH="$DEFAULT_XAUTH"
5248fi
5249
5250
5251
5252# Check whether --with-xinit was given.
5253if test "${with_xinit+set}" = set; then
5254  withval=$with_xinit; XINIT="$withval"
5255else
5256  XINIT="$DEFAULT_XINIT"
5257fi
5258
5259
5260
5261# Check whether --with-launchd was given.
5262if test "${with_launchd+set}" = set; then
5263  withval=$with_launchd; LAUNCHD=$withval
5264else
5265  LAUNCHD=auto
5266fi
5267
5268
5269# Check whether --with-launchagents-dir was given.
5270if test "${with_launchagents_dir+set}" = set; then
5271  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
5272else
5273   launchagentsdir="/Library/LaunchAgents"
5274fi
5275
5276
5277# Check whether --with-launchdaemons-dir was given.
5278if test "${with_launchdaemons_dir+set}" = set; then
5279  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
5280else
5281   launchdaemonsdir="/Library/LaunchDaemons"
5282fi
5283
5284
5285if test "x$LAUNCHD" = "xauto"; then
5286	unset LAUNCHD
5287	case $host_os in
5288		darwin8*)
5289			LAUNCHD=no
5290		;;
5291		*)
5292			# Extract the first word of "launchd", so it can be a program name with args.
5293set dummy launchd; ac_word=$2
5294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5296if test "${ac_cv_prog_LAUNCHD+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  if test -n "$LAUNCHD"; then
5300  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307  for ac_exec_ext in '' $ac_executable_extensions; do
5308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309    ac_cv_prog_LAUNCHD="yes"
5310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314done
5315IFS=$as_save_IFS
5316
5317  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
5318fi
5319fi
5320LAUNCHD=$ac_cv_prog_LAUNCHD
5321if test -n "$LAUNCHD"; then
5322  { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
5323echo "${ECHO_T}$LAUNCHD" >&6; }
5324else
5325  { echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6; }
5327fi
5328
5329
5330		;;
5331	esac
5332fi
5333
5334if test "x$LAUNCHD" = "xyes" ; then
5335
5336cat >>confdefs.h <<\_ACEOF
5337#define HAVE_LAUNCHD 1
5338_ACEOF
5339
5340else
5341        launchagentsdir=""
5342        launchdaemonsdir=""
5343fi
5344
5345
5346 if test "x$LAUNCHD" = "xyes"; then
5347  LAUNCHD_TRUE=
5348  LAUNCHD_FALSE='#'
5349else
5350  LAUNCHD_TRUE='#'
5351  LAUNCHD_FALSE=
5352fi
5353
5354
5355# Checks for pkg-config packages
5356
5357
5358if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5359	if test -n "$ac_tool_prefix"; then
5360  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5361set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  case $PKG_CONFIG in
5368  [\\/]* | ?:[\\/]*)
5369  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5370  ;;
5371  *)
5372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387  ;;
5388esac
5389fi
5390PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5391if test -n "$PKG_CONFIG"; then
5392  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5393echo "${ECHO_T}$PKG_CONFIG" >&6; }
5394else
5395  { echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6; }
5397fi
5398
5399
5400fi
5401if test -z "$ac_cv_path_PKG_CONFIG"; then
5402  ac_pt_PKG_CONFIG=$PKG_CONFIG
5403  # Extract the first word of "pkg-config", so it can be a program name with args.
5404set dummy pkg-config; ac_word=$2
5405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5407if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  case $ac_pt_PKG_CONFIG in
5411  [\\/]* | ?:[\\/]*)
5412  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5413  ;;
5414  *)
5415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418  IFS=$as_save_IFS
5419  test -z "$as_dir" && as_dir=.
5420  for ac_exec_ext in '' $ac_executable_extensions; do
5421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424    break 2
5425  fi
5426done
5427done
5428IFS=$as_save_IFS
5429
5430  ;;
5431esac
5432fi
5433ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5434if test -n "$ac_pt_PKG_CONFIG"; then
5435  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5436echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5437else
5438  { echo "$as_me:$LINENO: result: no" >&5
5439echo "${ECHO_T}no" >&6; }
5440fi
5441
5442  if test "x$ac_pt_PKG_CONFIG" = x; then
5443    PKG_CONFIG=""
5444  else
5445    case $cross_compiling:$ac_tool_warned in
5446yes:)
5447{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5448whose name does not start with the host triplet.  If you think this
5449configuration is useful to you, please write to autoconf@gnu.org." >&5
5450echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5451whose name does not start with the host triplet.  If you think this
5452configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5453ac_tool_warned=yes ;;
5454esac
5455    PKG_CONFIG=$ac_pt_PKG_CONFIG
5456  fi
5457else
5458  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5459fi
5460
5461fi
5462if test -n "$PKG_CONFIG"; then
5463	_pkg_min_version=0.9.0
5464	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5465echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5466	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5467		{ echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6; }
5469	else
5470		{ echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6; }
5472		PKG_CONFIG=""
5473	fi
5474
5475fi
5476
5477pkg_failed=no
5478{ echo "$as_me:$LINENO: checking for XINIT" >&5
5479echo $ECHO_N "checking for XINIT... $ECHO_C" >&6; }
5480
5481if test -n "$XINIT_CFLAGS"; then
5482    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
5483 elif test -n "$PKG_CONFIG"; then
5484    if test -n "$PKG_CONFIG" && \
5485    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5486  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5487  ac_status=$?
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); }; then
5490  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5491else
5492  pkg_failed=yes
5493fi
5494 else
5495    pkg_failed=untried
5496fi
5497if test -n "$XINIT_LIBS"; then
5498    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
5499 elif test -n "$PKG_CONFIG"; then
5500    if test -n "$PKG_CONFIG" && \
5501    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5502  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5503  ac_status=$?
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); }; then
5506  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5507else
5508  pkg_failed=yes
5509fi
5510 else
5511    pkg_failed=untried
5512fi
5513
5514
5515
5516if test $pkg_failed = yes; then
5517
5518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5519        _pkg_short_errors_supported=yes
5520else
5521        _pkg_short_errors_supported=no
5522fi
5523        if test $_pkg_short_errors_supported = yes; then
5524	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5525        else
5526	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5527        fi
5528	# Put the nasty error message in config.log where it belongs
5529	echo "$XINIT_PKG_ERRORS" >&5
5530
5531	{ { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
5532
5533$XINIT_PKG_ERRORS
5534
5535Consider adjusting the PKG_CONFIG_PATH environment variable if you
5536installed software in a non-standard prefix.
5537
5538Alternatively, you may set the environment variables XINIT_CFLAGS
5539and XINIT_LIBS to avoid the need to call pkg-config.
5540See the pkg-config man page for more details.
5541" >&5
5542echo "$as_me: error: Package requirements (x11) were not met:
5543
5544$XINIT_PKG_ERRORS
5545
5546Consider adjusting the PKG_CONFIG_PATH environment variable if you
5547installed software in a non-standard prefix.
5548
5549Alternatively, you may set the environment variables XINIT_CFLAGS
5550and XINIT_LIBS to avoid the need to call pkg-config.
5551See the pkg-config man page for more details.
5552" >&2;}
5553   { (exit 1); exit 1; }; }
5554elif test $pkg_failed = untried; then
5555	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5556is in your PATH or set the PKG_CONFIG environment variable to the full
5557path to pkg-config.
5558
5559Alternatively, you may set the environment variables XINIT_CFLAGS
5560and XINIT_LIBS to avoid the need to call pkg-config.
5561See the pkg-config man page for more details.
5562
5563To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5564See \`config.log' for more details." >&5
5565echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5566is in your PATH or set the PKG_CONFIG environment variable to the full
5567path to pkg-config.
5568
5569Alternatively, you may set the environment variables XINIT_CFLAGS
5570and XINIT_LIBS to avoid the need to call pkg-config.
5571See the pkg-config man page for more details.
5572
5573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5574See \`config.log' for more details." >&2;}
5575   { (exit 1); exit 1; }; }
5576else
5577	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
5578	XINIT_LIBS=$pkg_cv_XINIT_LIBS
5579        { echo "$as_me:$LINENO: result: yes" >&5
5580echo "${ECHO_T}yes" >&6; }
5581	:
5582fi
5583
5584case $host_os in
5585    *bsd*)
5586        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
5587        ;;
5588esac
5589
5590
5591
5592
5593for ac_prog in mcookie
5594do
5595  # Extract the first word of "$ac_prog", so it can be a program name with args.
5596set dummy $ac_prog; ac_word=$2
5597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5599if test "${ac_cv_path_MCOOKIE+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602  case $MCOOKIE in
5603  [\\/]* | ?:[\\/]*)
5604  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
5605  ;;
5606  *)
5607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
5609for as_dir in $as_dummy
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613  for ac_exec_ext in '' $ac_executable_extensions; do
5614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615    ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
5616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620done
5621IFS=$as_save_IFS
5622
5623  ;;
5624esac
5625fi
5626MCOOKIE=$ac_cv_path_MCOOKIE
5627if test -n "$MCOOKIE"; then
5628  { echo "$as_me:$LINENO: result: $MCOOKIE" >&5
5629echo "${ECHO_T}$MCOOKIE" >&6; }
5630else
5631  { echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6; }
5633fi
5634
5635
5636  test -n "$MCOOKIE" && break
5637done
5638test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
5639
5640
5641case $host_os in
5642	*openbsd*)
5643	MCOOKIE='/usr/sbin/openssl rand -hex 16'
5644	;;
5645	*solaris*)
5646	MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
5647	;;
5648esac
5649
5650if test "x$MCOOKIE" != x ; then
5651	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
5652fi
5653
5654
5655# Additional substitutions in startx, xinitrc & man pages
5656case $host_os in
5657    *solaris*)
5658	SHELL_CMD="/bin/ksh"
5659	ARCHMANDEFS=""
5660	;;
5661    *sco*)
5662	SHELL_CMD="/bin/ksh"
5663	ARCHMANDEFS="-D__SCOMAN__"
5664	;;
5665    *)
5666	SHELL_CMD="/bin/sh"
5667	ARCHMANDEFS=""
5668	;;
5669esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682# Defines which X servers are listed in help output in xinit.c
5683# Cheat, lie, and assume all the world is Xorg for now
5684
5685cat >>confdefs.h <<\_ACEOF
5686#define XORG 1
5687_ACEOF
5688
5689
5690
5691
5692
5693if test x$APP_MAN_SUFFIX = x    ; then
5694    APP_MAN_SUFFIX=1
5695fi
5696if test x$APP_MAN_DIR = x    ; then
5697    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5698fi
5699
5700if test x$LIB_MAN_SUFFIX = x    ; then
5701    LIB_MAN_SUFFIX=3
5702fi
5703if test x$LIB_MAN_DIR = x    ; then
5704    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5705fi
5706
5707if test x$FILE_MAN_SUFFIX = x    ; then
5708    case $host_os in
5709	solaris*)	FILE_MAN_SUFFIX=4  ;;
5710	*)		FILE_MAN_SUFFIX=5  ;;
5711    esac
5712fi
5713if test x$FILE_MAN_DIR = x    ; then
5714    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5715fi
5716
5717if test x$MISC_MAN_SUFFIX = x    ; then
5718    case $host_os in
5719	solaris*)	MISC_MAN_SUFFIX=5  ;;
5720	*)		MISC_MAN_SUFFIX=7  ;;
5721    esac
5722fi
5723if test x$MISC_MAN_DIR = x    ; then
5724    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5725fi
5726
5727if test x$DRIVER_MAN_SUFFIX = x    ; then
5728    case $host_os in
5729	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5730	*)		DRIVER_MAN_SUFFIX=4  ;;
5731    esac
5732fi
5733if test x$DRIVER_MAN_DIR = x    ; then
5734    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5735fi
5736
5737if test x$ADMIN_MAN_SUFFIX = x    ; then
5738    case $host_os in
5739	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5740	*)		ADMIN_MAN_SUFFIX=8  ;;
5741    esac
5742fi
5743if test x$ADMIN_MAN_DIR = x    ; then
5744    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5745fi
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763# Check whether --with-release-version was given.
5764if test "${with_release_version+set}" = set; then
5765  withval=$with_release_version; RELEASE_VERSION="$withval"
5766else
5767  RELEASE_VERSION=""
5768fi
5769
5770	if test "x$RELEASE_VERSION" != "x"; then
5771		PACKAGE="$PACKAGE-$RELEASE_VERSION"
5772		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
5773		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
5774echo "$as_me: Building with package name set to $PACKAGE" >&6;}
5775	fi
5776
5777cat >>confdefs.h <<_ACEOF
5778#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5779_ACEOF
5780
5781	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5782	if test "x$PVM" = "x"; then
5783		PVM="0"
5784	fi
5785
5786cat >>confdefs.h <<_ACEOF
5787#define PACKAGE_VERSION_MINOR $PVM
5788_ACEOF
5789
5790	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5791	if test "x$PVP" = "x"; then
5792		PVP="0"
5793	fi
5794
5795cat >>confdefs.h <<_ACEOF
5796#define PACKAGE_VERSION_PATCHLEVEL $PVP
5797_ACEOF
5798
5799
5800
5801ac_config_files="$ac_config_files Makefile"
5802
5803cat >confcache <<\_ACEOF
5804# This file is a shell script that caches the results of configure
5805# tests run on this system so they can be shared between configure
5806# scripts and configure runs, see configure's option --config-cache.
5807# It is not useful on other systems.  If it contains results you don't
5808# want to keep, you may remove or edit it.
5809#
5810# config.status only pays attention to the cache file if you give it
5811# the --recheck option to rerun configure.
5812#
5813# `ac_cv_env_foo' variables (set or unset) will be overridden when
5814# loading this file, other *unset* `ac_cv_foo' will be assigned the
5815# following values.
5816
5817_ACEOF
5818
5819# The following way of writing the cache mishandles newlines in values,
5820# but we know of no workaround that is simple, portable, and efficient.
5821# So, we kill variables containing newlines.
5822# Ultrix sh set writes to stderr and can't be redirected directly,
5823# and sets the high bit in the cache file unless we assign to the vars.
5824(
5825  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5826    eval ac_val=\$$ac_var
5827    case $ac_val in #(
5828    *${as_nl}*)
5829      case $ac_var in #(
5830      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5832      esac
5833      case $ac_var in #(
5834      _ | IFS | as_nl) ;; #(
5835      *) $as_unset $ac_var ;;
5836      esac ;;
5837    esac
5838  done
5839
5840  (set) 2>&1 |
5841    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5842    *${as_nl}ac_space=\ *)
5843      # `set' does not quote correctly, so add quotes (double-quote
5844      # substitution turns \\\\ into \\, and sed turns \\ into \).
5845      sed -n \
5846	"s/'/'\\\\''/g;
5847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5848      ;; #(
5849    *)
5850      # `set' quotes correctly as required by POSIX, so do not add quotes.
5851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5852      ;;
5853    esac |
5854    sort
5855) |
5856  sed '
5857     /^ac_cv_env_/b end
5858     t clear
5859     :clear
5860     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5861     t end
5862     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5863     :end' >>confcache
5864if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5865  if test -w "$cache_file"; then
5866    test "x$cache_file" != "x/dev/null" &&
5867      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5868echo "$as_me: updating cache $cache_file" >&6;}
5869    cat confcache >$cache_file
5870  else
5871    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5872echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5873  fi
5874fi
5875rm -f confcache
5876
5877test "x$prefix" = xNONE && prefix=$ac_default_prefix
5878# Let make expand exec_prefix.
5879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5880
5881DEFS=-DHAVE_CONFIG_H
5882
5883ac_libobjs=
5884ac_ltlibobjs=
5885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5886  # 1. Remove the extension, and $U if already installed.
5887  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5888  ac_i=`echo "$ac_i" | sed "$ac_script"`
5889  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5890  #    will be set to the directory where LIBOBJS objects are built.
5891  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5892  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5893done
5894LIBOBJS=$ac_libobjs
5895
5896LTLIBOBJS=$ac_ltlibobjs
5897
5898
5899if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5900  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5901Usually this means the macro was only invoked conditionally." >&5
5902echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5903Usually this means the macro was only invoked conditionally." >&2;}
5904   { (exit 1); exit 1; }; }
5905fi
5906if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5907  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5908Usually this means the macro was only invoked conditionally." >&5
5909echo "$as_me: error: conditional \"AMDEP\" was never defined.
5910Usually this means the macro was only invoked conditionally." >&2;}
5911   { (exit 1); exit 1; }; }
5912fi
5913if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5914  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5915Usually this means the macro was only invoked conditionally." >&5
5916echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5917Usually this means the macro was only invoked conditionally." >&2;}
5918   { (exit 1); exit 1; }; }
5919fi
5920if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
5921  { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
5922Usually this means the macro was only invoked conditionally." >&5
5923echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
5924Usually this means the macro was only invoked conditionally." >&2;}
5925   { (exit 1); exit 1; }; }
5926fi
5927
5928: ${CONFIG_STATUS=./config.status}
5929ac_clean_files_save=$ac_clean_files
5930ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5931{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5932echo "$as_me: creating $CONFIG_STATUS" >&6;}
5933cat >$CONFIG_STATUS <<_ACEOF
5934#! $SHELL
5935# Generated by $as_me.
5936# Run this file to recreate the current configuration.
5937# Compiler output produced by configure, useful for debugging
5938# configure, is in config.log if it exists.
5939
5940debug=false
5941ac_cs_recheck=false
5942ac_cs_silent=false
5943SHELL=\${CONFIG_SHELL-$SHELL}
5944_ACEOF
5945
5946cat >>$CONFIG_STATUS <<\_ACEOF
5947## --------------------- ##
5948## M4sh Initialization.  ##
5949## --------------------- ##
5950
5951# Be more Bourne compatible
5952DUALCASE=1; export DUALCASE # for MKS sh
5953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5954  emulate sh
5955  NULLCMD=:
5956  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5957  # is contrary to our usage.  Disable this feature.
5958  alias -g '${1+"$@"}'='"$@"'
5959  setopt NO_GLOB_SUBST
5960else
5961  case `(set -o) 2>/dev/null` in
5962  *posix*) set -o posix ;;
5963esac
5964
5965fi
5966
5967
5968
5969
5970# PATH needs CR
5971# Avoid depending upon Character Ranges.
5972as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5973as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5974as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5975as_cr_digits='0123456789'
5976as_cr_alnum=$as_cr_Letters$as_cr_digits
5977
5978# The user is always right.
5979if test "${PATH_SEPARATOR+set}" != set; then
5980  echo "#! /bin/sh" >conf$$.sh
5981  echo  "exit 0"   >>conf$$.sh
5982  chmod +x conf$$.sh
5983  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5984    PATH_SEPARATOR=';'
5985  else
5986    PATH_SEPARATOR=:
5987  fi
5988  rm -f conf$$.sh
5989fi
5990
5991# Support unset when possible.
5992if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5993  as_unset=unset
5994else
5995  as_unset=false
5996fi
5997
5998
5999# IFS
6000# We need space, tab and new line, in precisely that order.  Quoting is
6001# there to prevent editors from complaining about space-tab.
6002# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6003# splitting by setting IFS to empty value.)
6004as_nl='
6005'
6006IFS=" ""	$as_nl"
6007
6008# Find who we are.  Look in the path if we contain no directory separator.
6009case $0 in
6010  *[\\/]* ) as_myself=$0 ;;
6011  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014  IFS=$as_save_IFS
6015  test -z "$as_dir" && as_dir=.
6016  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6017done
6018IFS=$as_save_IFS
6019
6020     ;;
6021esac
6022# We did not find ourselves, most probably we were run as `sh COMMAND'
6023# in which case we are not to be found in the path.
6024if test "x$as_myself" = x; then
6025  as_myself=$0
6026fi
6027if test ! -f "$as_myself"; then
6028  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6029  { (exit 1); exit 1; }
6030fi
6031
6032# Work around bugs in pre-3.0 UWIN ksh.
6033for as_var in ENV MAIL MAILPATH
6034do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6035done
6036PS1='$ '
6037PS2='> '
6038PS4='+ '
6039
6040# NLS nuisances.
6041for as_var in \
6042  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6043  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6044  LC_TELEPHONE LC_TIME
6045do
6046  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6047    eval $as_var=C; export $as_var
6048  else
6049    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6050  fi
6051done
6052
6053# Required to use basename.
6054if expr a : '\(a\)' >/dev/null 2>&1 &&
6055   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6056  as_expr=expr
6057else
6058  as_expr=false
6059fi
6060
6061if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6062  as_basename=basename
6063else
6064  as_basename=false
6065fi
6066
6067
6068# Name of the executable.
6069as_me=`$as_basename -- "$0" ||
6070$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6071	 X"$0" : 'X\(//\)$' \| \
6072	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6073echo X/"$0" |
6074    sed '/^.*\/\([^/][^/]*\)\/*$/{
6075	    s//\1/
6076	    q
6077	  }
6078	  /^X\/\(\/\/\)$/{
6079	    s//\1/
6080	    q
6081	  }
6082	  /^X\/\(\/\).*/{
6083	    s//\1/
6084	    q
6085	  }
6086	  s/.*/./; q'`
6087
6088# CDPATH.
6089$as_unset CDPATH
6090
6091
6092
6093  as_lineno_1=$LINENO
6094  as_lineno_2=$LINENO
6095  test "x$as_lineno_1" != "x$as_lineno_2" &&
6096  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6097
6098  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6099  # uniformly replaced by the line number.  The first 'sed' inserts a
6100  # line-number line after each line using $LINENO; the second 'sed'
6101  # does the real work.  The second script uses 'N' to pair each
6102  # line-number line with the line containing $LINENO, and appends
6103  # trailing '-' during substitution so that $LINENO is not a special
6104  # case at line end.
6105  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6106  # scripts with optimization help from Paolo Bonzini.  Blame Lee
6107  # E. McMahon (1931-1989) for sed's syntax.  :-)
6108  sed -n '
6109    p
6110    /[$]LINENO/=
6111  ' <$as_myself |
6112    sed '
6113      s/[$]LINENO.*/&-/
6114      t lineno
6115      b
6116      :lineno
6117      N
6118      :loop
6119      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6120      t loop
6121      s/-\n.*//
6122    ' >$as_me.lineno &&
6123  chmod +x "$as_me.lineno" ||
6124    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6125   { (exit 1); exit 1; }; }
6126
6127  # Don't try to exec as it changes $[0], causing all sort of problems
6128  # (the dirname of $[0] is not the place where we might find the
6129  # original and so on.  Autoconf is especially sensitive to this).
6130  . "./$as_me.lineno"
6131  # Exit status is that of the last command.
6132  exit
6133}
6134
6135
6136if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6137  as_dirname=dirname
6138else
6139  as_dirname=false
6140fi
6141
6142ECHO_C= ECHO_N= ECHO_T=
6143case `echo -n x` in
6144-n*)
6145  case `echo 'x\c'` in
6146  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6147  *)   ECHO_C='\c';;
6148  esac;;
6149*)
6150  ECHO_N='-n';;
6151esac
6152
6153if expr a : '\(a\)' >/dev/null 2>&1 &&
6154   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6155  as_expr=expr
6156else
6157  as_expr=false
6158fi
6159
6160rm -f conf$$ conf$$.exe conf$$.file
6161if test -d conf$$.dir; then
6162  rm -f conf$$.dir/conf$$.file
6163else
6164  rm -f conf$$.dir
6165  mkdir conf$$.dir
6166fi
6167echo >conf$$.file
6168if ln -s conf$$.file conf$$ 2>/dev/null; then
6169  as_ln_s='ln -s'
6170  # ... but there are two gotchas:
6171  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6172  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6173  # In both cases, we have to default to `cp -p'.
6174  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6175    as_ln_s='cp -p'
6176elif ln conf$$.file conf$$ 2>/dev/null; then
6177  as_ln_s=ln
6178else
6179  as_ln_s='cp -p'
6180fi
6181rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6182rmdir conf$$.dir 2>/dev/null
6183
6184if mkdir -p . 2>/dev/null; then
6185  as_mkdir_p=:
6186else
6187  test -d ./-p && rmdir ./-p
6188  as_mkdir_p=false
6189fi
6190
6191if test -x / >/dev/null 2>&1; then
6192  as_test_x='test -x'
6193else
6194  if ls -dL / >/dev/null 2>&1; then
6195    as_ls_L_option=L
6196  else
6197    as_ls_L_option=
6198  fi
6199  as_test_x='
6200    eval sh -c '\''
6201      if test -d "$1"; then
6202        test -d "$1/.";
6203      else
6204	case $1 in
6205        -*)set "./$1";;
6206	esac;
6207	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6208	???[sx]*):;;*)false;;esac;fi
6209    '\'' sh
6210  '
6211fi
6212as_executable_p=$as_test_x
6213
6214# Sed expression to map a string onto a valid CPP name.
6215as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6216
6217# Sed expression to map a string onto a valid variable name.
6218as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6219
6220
6221exec 6>&1
6222
6223# Save the log message, to keep $[0] and so on meaningful, and to
6224# report actual input values of CONFIG_FILES etc. instead of their
6225# values after options handling.
6226ac_log="
6227This file was extended by xinit $as_me 1.1.0, which was
6228generated by GNU Autoconf 2.61.  Invocation command line was
6229
6230  CONFIG_FILES    = $CONFIG_FILES
6231  CONFIG_HEADERS  = $CONFIG_HEADERS
6232  CONFIG_LINKS    = $CONFIG_LINKS
6233  CONFIG_COMMANDS = $CONFIG_COMMANDS
6234  $ $0 $@
6235
6236on `(hostname || uname -n) 2>/dev/null | sed 1q`
6237"
6238
6239_ACEOF
6240
6241cat >>$CONFIG_STATUS <<_ACEOF
6242# Files that config.status was made for.
6243config_files="$ac_config_files"
6244config_headers="$ac_config_headers"
6245config_commands="$ac_config_commands"
6246
6247_ACEOF
6248
6249cat >>$CONFIG_STATUS <<\_ACEOF
6250ac_cs_usage="\
6251\`$as_me' instantiates files from templates according to the
6252current configuration.
6253
6254Usage: $0 [OPTIONS] [FILE]...
6255
6256  -h, --help       print this help, then exit
6257  -V, --version    print version number and configuration settings, then exit
6258  -q, --quiet      do not print progress messages
6259  -d, --debug      don't remove temporary files
6260      --recheck    update $as_me by reconfiguring in the same conditions
6261  --file=FILE[:TEMPLATE]
6262		   instantiate the configuration file FILE
6263  --header=FILE[:TEMPLATE]
6264		   instantiate the configuration header FILE
6265
6266Configuration files:
6267$config_files
6268
6269Configuration headers:
6270$config_headers
6271
6272Configuration commands:
6273$config_commands
6274
6275Report bugs to <bug-autoconf@gnu.org>."
6276
6277_ACEOF
6278cat >>$CONFIG_STATUS <<_ACEOF
6279ac_cs_version="\\
6280xinit config.status 1.1.0
6281configured by $0, generated by GNU Autoconf 2.61,
6282  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6283
6284Copyright (C) 2006 Free Software Foundation, Inc.
6285This config.status script is free software; the Free Software Foundation
6286gives unlimited permission to copy, distribute and modify it."
6287
6288ac_pwd='$ac_pwd'
6289srcdir='$srcdir'
6290INSTALL='$INSTALL'
6291MKDIR_P='$MKDIR_P'
6292_ACEOF
6293
6294cat >>$CONFIG_STATUS <<\_ACEOF
6295# If no file are specified by the user, then we need to provide default
6296# value.  By we need to know if files were specified by the user.
6297ac_need_defaults=:
6298while test $# != 0
6299do
6300  case $1 in
6301  --*=*)
6302    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6303    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6304    ac_shift=:
6305    ;;
6306  *)
6307    ac_option=$1
6308    ac_optarg=$2
6309    ac_shift=shift
6310    ;;
6311  esac
6312
6313  case $ac_option in
6314  # Handling of the options.
6315  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6316    ac_cs_recheck=: ;;
6317  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6318    echo "$ac_cs_version"; exit ;;
6319  --debug | --debu | --deb | --de | --d | -d )
6320    debug=: ;;
6321  --file | --fil | --fi | --f )
6322    $ac_shift
6323    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6324    ac_need_defaults=false;;
6325  --header | --heade | --head | --hea )
6326    $ac_shift
6327    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6328    ac_need_defaults=false;;
6329  --he | --h)
6330    # Conflict between --help and --header
6331    { echo "$as_me: error: ambiguous option: $1
6332Try \`$0 --help' for more information." >&2
6333   { (exit 1); exit 1; }; };;
6334  --help | --hel | -h )
6335    echo "$ac_cs_usage"; exit ;;
6336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6337  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6338    ac_cs_silent=: ;;
6339
6340  # This is an error.
6341  -*) { echo "$as_me: error: unrecognized option: $1
6342Try \`$0 --help' for more information." >&2
6343   { (exit 1); exit 1; }; } ;;
6344
6345  *) ac_config_targets="$ac_config_targets $1"
6346     ac_need_defaults=false ;;
6347
6348  esac
6349  shift
6350done
6351
6352ac_configure_extra_args=
6353
6354if $ac_cs_silent; then
6355  exec 6>/dev/null
6356  ac_configure_extra_args="$ac_configure_extra_args --silent"
6357fi
6358
6359_ACEOF
6360cat >>$CONFIG_STATUS <<_ACEOF
6361if \$ac_cs_recheck; then
6362  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6363  CONFIG_SHELL=$SHELL
6364  export CONFIG_SHELL
6365  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6366fi
6367
6368_ACEOF
6369cat >>$CONFIG_STATUS <<\_ACEOF
6370exec 5>>config.log
6371{
6372  echo
6373  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6374## Running $as_me. ##
6375_ASBOX
6376  echo "$ac_log"
6377} >&5
6378
6379_ACEOF
6380cat >>$CONFIG_STATUS <<_ACEOF
6381#
6382# INIT-COMMANDS
6383#
6384AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6385
6386_ACEOF
6387
6388cat >>$CONFIG_STATUS <<\_ACEOF
6389
6390# Handling of arguments.
6391for ac_config_target in $ac_config_targets
6392do
6393  case $ac_config_target in
6394    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6395    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6396    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6397
6398  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6399echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6400   { (exit 1); exit 1; }; };;
6401  esac
6402done
6403
6404
6405# If the user did not use the arguments to specify the items to instantiate,
6406# then the envvar interface is used.  Set only those that are not.
6407# We use the long form for the default assignment because of an extremely
6408# bizarre bug on SunOS 4.1.3.
6409if $ac_need_defaults; then
6410  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6411  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6412  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6413fi
6414
6415# Have a temporary directory for convenience.  Make it in the build tree
6416# simply because there is no reason against having it here, and in addition,
6417# creating and moving files from /tmp can sometimes cause problems.
6418# Hook for its removal unless debugging.
6419# Note that there is a small window in which the directory will not be cleaned:
6420# after its creation but before its name has been assigned to `$tmp'.
6421$debug ||
6422{
6423  tmp=
6424  trap 'exit_status=$?
6425  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6426' 0
6427  trap '{ (exit 1); exit 1; }' 1 2 13 15
6428}
6429# Create a (secure) tmp directory for tmp files.
6430
6431{
6432  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6433  test -n "$tmp" && test -d "$tmp"
6434}  ||
6435{
6436  tmp=./conf$$-$RANDOM
6437  (umask 077 && mkdir "$tmp")
6438} ||
6439{
6440   echo "$me: cannot create a temporary directory in ." >&2
6441   { (exit 1); exit 1; }
6442}
6443
6444#
6445# Set up the sed scripts for CONFIG_FILES section.
6446#
6447
6448# No need to generate the scripts if there are no CONFIG_FILES.
6449# This happens for instance when ./config.status config.h
6450if test -n "$CONFIG_FILES"; then
6451
6452_ACEOF
6453
6454
6455
6456ac_delim='%!_!# '
6457for ac_last_try in false false false false false :; do
6458  cat >conf$$subs.sed <<_ACEOF
6459SHELL!$SHELL$ac_delim
6460PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6461PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6462PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6463PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6464PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6465PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6466exec_prefix!$exec_prefix$ac_delim
6467prefix!$prefix$ac_delim
6468program_transform_name!$program_transform_name$ac_delim
6469bindir!$bindir$ac_delim
6470sbindir!$sbindir$ac_delim
6471libexecdir!$libexecdir$ac_delim
6472datarootdir!$datarootdir$ac_delim
6473datadir!$datadir$ac_delim
6474sysconfdir!$sysconfdir$ac_delim
6475sharedstatedir!$sharedstatedir$ac_delim
6476localstatedir!$localstatedir$ac_delim
6477includedir!$includedir$ac_delim
6478oldincludedir!$oldincludedir$ac_delim
6479docdir!$docdir$ac_delim
6480infodir!$infodir$ac_delim
6481htmldir!$htmldir$ac_delim
6482dvidir!$dvidir$ac_delim
6483pdfdir!$pdfdir$ac_delim
6484psdir!$psdir$ac_delim
6485libdir!$libdir$ac_delim
6486localedir!$localedir$ac_delim
6487mandir!$mandir$ac_delim
6488DEFS!$DEFS$ac_delim
6489ECHO_C!$ECHO_C$ac_delim
6490ECHO_N!$ECHO_N$ac_delim
6491ECHO_T!$ECHO_T$ac_delim
6492LIBS!$LIBS$ac_delim
6493build_alias!$build_alias$ac_delim
6494host_alias!$host_alias$ac_delim
6495target_alias!$target_alias$ac_delim
6496INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6497INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6498INSTALL_DATA!$INSTALL_DATA$ac_delim
6499am__isrc!$am__isrc$ac_delim
6500CYGPATH_W!$CYGPATH_W$ac_delim
6501PACKAGE!$PACKAGE$ac_delim
6502VERSION!$VERSION$ac_delim
6503ACLOCAL!$ACLOCAL$ac_delim
6504AUTOCONF!$AUTOCONF$ac_delim
6505AUTOMAKE!$AUTOMAKE$ac_delim
6506AUTOHEADER!$AUTOHEADER$ac_delim
6507MAKEINFO!$MAKEINFO$ac_delim
6508install_sh!$install_sh$ac_delim
6509STRIP!$STRIP$ac_delim
6510INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6511mkdir_p!$mkdir_p$ac_delim
6512AWK!$AWK$ac_delim
6513SET_MAKE!$SET_MAKE$ac_delim
6514am__leading_dot!$am__leading_dot$ac_delim
6515AMTAR!$AMTAR$ac_delim
6516am__tar!$am__tar$ac_delim
6517am__untar!$am__untar$ac_delim
6518MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
6519MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
6520MAINT!$MAINT$ac_delim
6521CC!$CC$ac_delim
6522CFLAGS!$CFLAGS$ac_delim
6523LDFLAGS!$LDFLAGS$ac_delim
6524CPPFLAGS!$CPPFLAGS$ac_delim
6525ac_ct_CC!$ac_ct_CC$ac_delim
6526EXEEXT!$EXEEXT$ac_delim
6527OBJEXT!$OBJEXT$ac_delim
6528DEPDIR!$DEPDIR$ac_delim
6529am__include!$am__include$ac_delim
6530am__quote!$am__quote$ac_delim
6531AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6532AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6533AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6534CCDEPMODE!$CCDEPMODE$ac_delim
6535am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6536am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6537CPP!$CPP$ac_delim
6538RAWCPP!$RAWCPP$ac_delim
6539RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
6540SED!$SED$ac_delim
6541build!$build$ac_delim
6542build_cpu!$build_cpu$ac_delim
6543build_vendor!$build_vendor$ac_delim
6544build_os!$build_os$ac_delim
6545host!$host$ac_delim
6546host_cpu!$host_cpu$ac_delim
6547host_vendor!$host_vendor$ac_delim
6548host_os!$host_os$ac_delim
6549GREP!$GREP$ac_delim
6550EGREP!$EGREP$ac_delim
6551LAUNCHD!$LAUNCHD$ac_delim
6552launchagentsdir!$launchagentsdir$ac_delim
6553launchdaemonsdir!$launchdaemonsdir$ac_delim
6554LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
6555LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
6556_ACEOF
6557
6558  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
6559    break
6560  elif $ac_last_try; then
6561    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6562echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6563   { (exit 1); exit 1; }; }
6564  else
6565    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6566  fi
6567done
6568
6569ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6570if test -n "$ac_eof"; then
6571  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6572  ac_eof=`expr $ac_eof + 1`
6573fi
6574
6575cat >>$CONFIG_STATUS <<_ACEOF
6576cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6578_ACEOF
6579sed '
6580s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6581s/^/s,@/; s/!/@,|#_!!_#|/
6582:n
6583t n
6584s/'"$ac_delim"'$/,g/; t
6585s/$/\\/; p
6586N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6587' >>$CONFIG_STATUS <conf$$subs.sed
6588rm -f conf$$subs.sed
6589cat >>$CONFIG_STATUS <<_ACEOF
6590CEOF$ac_eof
6591_ACEOF
6592
6593
6594ac_delim='%!_!# '
6595for ac_last_try in false false false false false :; do
6596  cat >conf$$subs.sed <<_ACEOF
6597PKG_CONFIG!$PKG_CONFIG$ac_delim
6598XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
6599XINIT_LIBS!$XINIT_LIBS$ac_delim
6600MCOOKIE!$MCOOKIE$ac_delim
6601STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
6602SHELL_CMD!$SHELL_CMD$ac_delim
6603ARCHMANDEFS!$ARCHMANDEFS$ac_delim
6604XRDB!$XRDB$ac_delim
6605XMODMAP!$XMODMAP$ac_delim
6606TWM!$TWM$ac_delim
6607XCLOCK!$XCLOCK$ac_delim
6608XTERM!$XTERM$ac_delim
6609XSERVER!$XSERVER$ac_delim
6610XAUTH!$XAUTH$ac_delim
6611XINIT!$XINIT$ac_delim
6612APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
6613LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
6614FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
6615MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
6616DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
6617ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
6618APP_MAN_DIR!$APP_MAN_DIR$ac_delim
6619LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
6620FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
6621MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
6622DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
6623ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
6624LIBOBJS!$LIBOBJS$ac_delim
6625LTLIBOBJS!$LTLIBOBJS$ac_delim
6626_ACEOF
6627
6628  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
6629    break
6630  elif $ac_last_try; then
6631    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6632echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6633   { (exit 1); exit 1; }; }
6634  else
6635    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6636  fi
6637done
6638
6639ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6640if test -n "$ac_eof"; then
6641  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6642  ac_eof=`expr $ac_eof + 1`
6643fi
6644
6645cat >>$CONFIG_STATUS <<_ACEOF
6646cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
6647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6648_ACEOF
6649sed '
6650s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6651s/^/s,@/; s/!/@,|#_!!_#|/
6652:n
6653t n
6654s/'"$ac_delim"'$/,g/; t
6655s/$/\\/; p
6656N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6657' >>$CONFIG_STATUS <conf$$subs.sed
6658rm -f conf$$subs.sed
6659cat >>$CONFIG_STATUS <<_ACEOF
6660:end
6661s/|#_!!_#|//g
6662CEOF$ac_eof
6663_ACEOF
6664
6665
6666# VPATH may cause trouble with some makes, so we remove $(srcdir),
6667# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6668# trailing colons and then remove the whole line if VPATH becomes empty
6669# (actually we leave an empty line to preserve line numbers).
6670if test "x$srcdir" = x.; then
6671  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6672s/:*\$(srcdir):*/:/
6673s/:*\${srcdir}:*/:/
6674s/:*@srcdir@:*/:/
6675s/^\([^=]*=[	 ]*\):*/\1/
6676s/:*$//
6677s/^[^=]*=[	 ]*$//
6678}'
6679fi
6680
6681cat >>$CONFIG_STATUS <<\_ACEOF
6682fi # test -n "$CONFIG_FILES"
6683
6684
6685for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
6686do
6687  case $ac_tag in
6688  :[FHLC]) ac_mode=$ac_tag; continue;;
6689  esac
6690  case $ac_mode$ac_tag in
6691  :[FHL]*:*);;
6692  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6693echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6694   { (exit 1); exit 1; }; };;
6695  :[FH]-) ac_tag=-:-;;
6696  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6697  esac
6698  ac_save_IFS=$IFS
6699  IFS=:
6700  set x $ac_tag
6701  IFS=$ac_save_IFS
6702  shift
6703  ac_file=$1
6704  shift
6705
6706  case $ac_mode in
6707  :L) ac_source=$1;;
6708  :[FH])
6709    ac_file_inputs=
6710    for ac_f
6711    do
6712      case $ac_f in
6713      -) ac_f="$tmp/stdin";;
6714      *) # Look for the file first in the build tree, then in the source tree
6715	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6716	 # because $ac_f cannot contain `:'.
6717	 test -f "$ac_f" ||
6718	   case $ac_f in
6719	   [\\/$]*) false;;
6720	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6721	   esac ||
6722	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6723echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6724   { (exit 1); exit 1; }; };;
6725      esac
6726      ac_file_inputs="$ac_file_inputs $ac_f"
6727    done
6728
6729    # Let's still pretend it is `configure' which instantiates (i.e., don't
6730    # use $as_me), people would be surprised to read:
6731    #    /* config.h.  Generated by config.status.  */
6732    configure_input="Generated from "`IFS=:
6733	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6734    if test x"$ac_file" != x-; then
6735      configure_input="$ac_file.  $configure_input"
6736      { echo "$as_me:$LINENO: creating $ac_file" >&5
6737echo "$as_me: creating $ac_file" >&6;}
6738    fi
6739
6740    case $ac_tag in
6741    *:-:* | *:-) cat >"$tmp/stdin";;
6742    esac
6743    ;;
6744  esac
6745
6746  ac_dir=`$as_dirname -- "$ac_file" ||
6747$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6748	 X"$ac_file" : 'X\(//\)[^/]' \| \
6749	 X"$ac_file" : 'X\(//\)$' \| \
6750	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6751echo X"$ac_file" |
6752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6753	    s//\1/
6754	    q
6755	  }
6756	  /^X\(\/\/\)[^/].*/{
6757	    s//\1/
6758	    q
6759	  }
6760	  /^X\(\/\/\)$/{
6761	    s//\1/
6762	    q
6763	  }
6764	  /^X\(\/\).*/{
6765	    s//\1/
6766	    q
6767	  }
6768	  s/.*/./; q'`
6769  { as_dir="$ac_dir"
6770  case $as_dir in #(
6771  -*) as_dir=./$as_dir;;
6772  esac
6773  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6774    as_dirs=
6775    while :; do
6776      case $as_dir in #(
6777      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6778      *) as_qdir=$as_dir;;
6779      esac
6780      as_dirs="'$as_qdir' $as_dirs"
6781      as_dir=`$as_dirname -- "$as_dir" ||
6782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783	 X"$as_dir" : 'X\(//\)[^/]' \| \
6784	 X"$as_dir" : 'X\(//\)$' \| \
6785	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6786echo X"$as_dir" |
6787    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6788	    s//\1/
6789	    q
6790	  }
6791	  /^X\(\/\/\)[^/].*/{
6792	    s//\1/
6793	    q
6794	  }
6795	  /^X\(\/\/\)$/{
6796	    s//\1/
6797	    q
6798	  }
6799	  /^X\(\/\).*/{
6800	    s//\1/
6801	    q
6802	  }
6803	  s/.*/./; q'`
6804      test -d "$as_dir" && break
6805    done
6806    test -z "$as_dirs" || eval "mkdir $as_dirs"
6807  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6808echo "$as_me: error: cannot create directory $as_dir" >&2;}
6809   { (exit 1); exit 1; }; }; }
6810  ac_builddir=.
6811
6812case "$ac_dir" in
6813.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6814*)
6815  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6816  # A ".." for each directory in $ac_dir_suffix.
6817  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6818  case $ac_top_builddir_sub in
6819  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6820  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6821  esac ;;
6822esac
6823ac_abs_top_builddir=$ac_pwd
6824ac_abs_builddir=$ac_pwd$ac_dir_suffix
6825# for backward compatibility:
6826ac_top_builddir=$ac_top_build_prefix
6827
6828case $srcdir in
6829  .)  # We are building in place.
6830    ac_srcdir=.
6831    ac_top_srcdir=$ac_top_builddir_sub
6832    ac_abs_top_srcdir=$ac_pwd ;;
6833  [\\/]* | ?:[\\/]* )  # Absolute name.
6834    ac_srcdir=$srcdir$ac_dir_suffix;
6835    ac_top_srcdir=$srcdir
6836    ac_abs_top_srcdir=$srcdir ;;
6837  *) # Relative name.
6838    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6839    ac_top_srcdir=$ac_top_build_prefix$srcdir
6840    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6841esac
6842ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6843
6844
6845  case $ac_mode in
6846  :F)
6847  #
6848  # CONFIG_FILE
6849  #
6850
6851  case $INSTALL in
6852  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6853  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6854  esac
6855  ac_MKDIR_P=$MKDIR_P
6856  case $MKDIR_P in
6857  [\\/$]* | ?:[\\/]* ) ;;
6858  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6859  esac
6860_ACEOF
6861
6862cat >>$CONFIG_STATUS <<\_ACEOF
6863# If the template does not know about datarootdir, expand it.
6864# FIXME: This hack should be removed a few years after 2.60.
6865ac_datarootdir_hack=; ac_datarootdir_seen=
6866
6867case `sed -n '/datarootdir/ {
6868  p
6869  q
6870}
6871/@datadir@/p
6872/@docdir@/p
6873/@infodir@/p
6874/@localedir@/p
6875/@mandir@/p
6876' $ac_file_inputs` in
6877*datarootdir*) ac_datarootdir_seen=yes;;
6878*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6879  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6880echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6881_ACEOF
6882cat >>$CONFIG_STATUS <<_ACEOF
6883  ac_datarootdir_hack='
6884  s&@datadir@&$datadir&g
6885  s&@docdir@&$docdir&g
6886  s&@infodir@&$infodir&g
6887  s&@localedir@&$localedir&g
6888  s&@mandir@&$mandir&g
6889    s&\\\${datarootdir}&$datarootdir&g' ;;
6890esac
6891_ACEOF
6892
6893# Neutralize VPATH when `$srcdir' = `.'.
6894# Shell code in configure.ac might set extrasub.
6895# FIXME: do we really want to maintain this feature?
6896cat >>$CONFIG_STATUS <<_ACEOF
6897  sed "$ac_vpsub
6898$extrasub
6899_ACEOF
6900cat >>$CONFIG_STATUS <<\_ACEOF
6901:t
6902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6903s&@configure_input@&$configure_input&;t t
6904s&@top_builddir@&$ac_top_builddir_sub&;t t
6905s&@srcdir@&$ac_srcdir&;t t
6906s&@abs_srcdir@&$ac_abs_srcdir&;t t
6907s&@top_srcdir@&$ac_top_srcdir&;t t
6908s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6909s&@builddir@&$ac_builddir&;t t
6910s&@abs_builddir@&$ac_abs_builddir&;t t
6911s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6912s&@INSTALL@&$ac_INSTALL&;t t
6913s&@MKDIR_P@&$ac_MKDIR_P&;t t
6914$ac_datarootdir_hack
6915" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
6916
6917test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6918  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6919  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6920  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6921which seems to be undefined.  Please make sure it is defined." >&5
6922echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6923which seems to be undefined.  Please make sure it is defined." >&2;}
6924
6925  rm -f "$tmp/stdin"
6926  case $ac_file in
6927  -) cat "$tmp/out"; rm -f "$tmp/out";;
6928  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6929  esac
6930 ;;
6931  :H)
6932  #
6933  # CONFIG_HEADER
6934  #
6935_ACEOF
6936
6937# Transform confdefs.h into a sed script `conftest.defines', that
6938# substitutes the proper values into config.h.in to produce config.h.
6939rm -f conftest.defines conftest.tail
6940# First, append a space to every undef/define line, to ease matching.
6941echo 's/$/ /' >conftest.defines
6942# Then, protect against being on the right side of a sed subst, or in
6943# an unquoted here document, in config.status.  If some macros were
6944# called several times there might be several #defines for the same
6945# symbol, which is useless.  But do not sort them, since the last
6946# AC_DEFINE must be honored.
6947ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6948# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6949# NAME is the cpp macro being defined, VALUE is the value it is being given.
6950# PARAMS is the parameter list in the macro definition--in most cases, it's
6951# just an empty string.
6952ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
6953ac_dB='\\)[	 (].*,\\1define\\2'
6954ac_dC=' '
6955ac_dD=' ,'
6956
6957uniq confdefs.h |
6958  sed -n '
6959	t rset
6960	:rset
6961	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
6962	t ok
6963	d
6964	:ok
6965	s/[\\&,]/\\&/g
6966	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6967	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6968  ' >>conftest.defines
6969
6970# Remove the space that was appended to ease matching.
6971# Then replace #undef with comments.  This is necessary, for
6972# example, in the case of _POSIX_SOURCE, which is predefined and required
6973# on some systems where configure will not decide to define it.
6974# (The regexp can be short, since the line contains either #define or #undef.)
6975echo 's/ $//
6976s,^[	 #]*u.*,/* & */,' >>conftest.defines
6977
6978# Break up conftest.defines:
6979ac_max_sed_lines=50
6980
6981# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6982# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6983# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6984# et cetera.
6985ac_in='$ac_file_inputs'
6986ac_out='"$tmp/out1"'
6987ac_nxt='"$tmp/out2"'
6988
6989while :
6990do
6991  # Write a here document:
6992    cat >>$CONFIG_STATUS <<_ACEOF
6993    # First, check the format of the line:
6994    cat >"\$tmp/defines.sed" <<\\CEOF
6995/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
6996/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
6997b
6998:def
6999_ACEOF
7000  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7001  echo 'CEOF
7002    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7003  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7004  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7005  grep . conftest.tail >/dev/null || break
7006  rm -f conftest.defines
7007  mv conftest.tail conftest.defines
7008done
7009rm -f conftest.defines conftest.tail
7010
7011echo "ac_result=$ac_in" >>$CONFIG_STATUS
7012cat >>$CONFIG_STATUS <<\_ACEOF
7013  if test x"$ac_file" != x-; then
7014    echo "/* $configure_input  */" >"$tmp/config.h"
7015    cat "$ac_result" >>"$tmp/config.h"
7016    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7017      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7018echo "$as_me: $ac_file is unchanged" >&6;}
7019    else
7020      rm -f $ac_file
7021      mv "$tmp/config.h" $ac_file
7022    fi
7023  else
7024    echo "/* $configure_input  */"
7025    cat "$ac_result"
7026  fi
7027  rm -f "$tmp/out12"
7028# Compute $ac_file's index in $config_headers.
7029_am_arg=$ac_file
7030_am_stamp_count=1
7031for _am_header in $config_headers :; do
7032  case $_am_header in
7033    $_am_arg | $_am_arg:* )
7034      break ;;
7035    * )
7036      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7037  esac
7038done
7039echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7040$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7041	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7042	 X"$_am_arg" : 'X\(//\)$' \| \
7043	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7044echo X"$_am_arg" |
7045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7046	    s//\1/
7047	    q
7048	  }
7049	  /^X\(\/\/\)[^/].*/{
7050	    s//\1/
7051	    q
7052	  }
7053	  /^X\(\/\/\)$/{
7054	    s//\1/
7055	    q
7056	  }
7057	  /^X\(\/\).*/{
7058	    s//\1/
7059	    q
7060	  }
7061	  s/.*/./; q'`/stamp-h$_am_stamp_count
7062 ;;
7063
7064  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7065echo "$as_me: executing $ac_file commands" >&6;}
7066 ;;
7067  esac
7068
7069
7070  case $ac_file$ac_mode in
7071    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7072  # Strip MF so we end up with the name of the file.
7073  mf=`echo "$mf" | sed -e 's/:.*$//'`
7074  # Check whether this is an Automake generated Makefile or not.
7075  # We used to match only the files named `Makefile.in', but
7076  # some people rename them; so instead we look at the file content.
7077  # Grep'ing the first line is not enough: some people post-process
7078  # each Makefile.in and add a new line on top of each file to say so.
7079  # Grep'ing the whole file is not good either: AIX grep has a line
7080  # limit of 2048, but all sed's we know have understand at least 4000.
7081  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7082    dirpart=`$as_dirname -- "$mf" ||
7083$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7084	 X"$mf" : 'X\(//\)[^/]' \| \
7085	 X"$mf" : 'X\(//\)$' \| \
7086	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7087echo X"$mf" |
7088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7089	    s//\1/
7090	    q
7091	  }
7092	  /^X\(\/\/\)[^/].*/{
7093	    s//\1/
7094	    q
7095	  }
7096	  /^X\(\/\/\)$/{
7097	    s//\1/
7098	    q
7099	  }
7100	  /^X\(\/\).*/{
7101	    s//\1/
7102	    q
7103	  }
7104	  s/.*/./; q'`
7105  else
7106    continue
7107  fi
7108  # Extract the definition of DEPDIR, am__include, and am__quote
7109  # from the Makefile without running `make'.
7110  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7111  test -z "$DEPDIR" && continue
7112  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7113  test -z "am__include" && continue
7114  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7115  # When using ansi2knr, U may be empty or an underscore; expand it
7116  U=`sed -n 's/^U = //p' < "$mf"`
7117  # Find all dependency output files, they are included files with
7118  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7119  # simplest approach to changing $(DEPDIR) to its actual value in the
7120  # expansion.
7121  for file in `sed -n "
7122    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7123       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7124    # Make sure the directory exists.
7125    test -f "$dirpart/$file" && continue
7126    fdir=`$as_dirname -- "$file" ||
7127$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7128	 X"$file" : 'X\(//\)[^/]' \| \
7129	 X"$file" : 'X\(//\)$' \| \
7130	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7131echo X"$file" |
7132    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7133	    s//\1/
7134	    q
7135	  }
7136	  /^X\(\/\/\)[^/].*/{
7137	    s//\1/
7138	    q
7139	  }
7140	  /^X\(\/\/\)$/{
7141	    s//\1/
7142	    q
7143	  }
7144	  /^X\(\/\).*/{
7145	    s//\1/
7146	    q
7147	  }
7148	  s/.*/./; q'`
7149    { as_dir=$dirpart/$fdir
7150  case $as_dir in #(
7151  -*) as_dir=./$as_dir;;
7152  esac
7153  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7154    as_dirs=
7155    while :; do
7156      case $as_dir in #(
7157      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7158      *) as_qdir=$as_dir;;
7159      esac
7160      as_dirs="'$as_qdir' $as_dirs"
7161      as_dir=`$as_dirname -- "$as_dir" ||
7162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7163	 X"$as_dir" : 'X\(//\)[^/]' \| \
7164	 X"$as_dir" : 'X\(//\)$' \| \
7165	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7166echo X"$as_dir" |
7167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7168	    s//\1/
7169	    q
7170	  }
7171	  /^X\(\/\/\)[^/].*/{
7172	    s//\1/
7173	    q
7174	  }
7175	  /^X\(\/\/\)$/{
7176	    s//\1/
7177	    q
7178	  }
7179	  /^X\(\/\).*/{
7180	    s//\1/
7181	    q
7182	  }
7183	  s/.*/./; q'`
7184      test -d "$as_dir" && break
7185    done
7186    test -z "$as_dirs" || eval "mkdir $as_dirs"
7187  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7188echo "$as_me: error: cannot create directory $as_dir" >&2;}
7189   { (exit 1); exit 1; }; }; }
7190    # echo "creating $dirpart/$file"
7191    echo '# dummy' > "$dirpart/$file"
7192  done
7193done
7194 ;;
7195
7196  esac
7197done # for ac_tag
7198
7199
7200{ (exit 0); exit 0; }
7201_ACEOF
7202chmod +x $CONFIG_STATUS
7203ac_clean_files=$ac_clean_files_save
7204
7205
7206# configure is writing to config.log, and then calls config.status.
7207# config.status does its own redirection, appending to config.log.
7208# Unfortunately, on DOS this fails, as config.log is still kept open
7209# by configure, so config.status won't be able to write to it; its
7210# output is simply discarded.  So we exec the FD to /dev/null,
7211# effectively closing config.log, so it can be properly (re)opened and
7212# appended to by config.status.  When coming back to configure, we
7213# need to make the FD available again.
7214if test "$no_create" != yes; then
7215  ac_cs_success=:
7216  ac_config_status_args=
7217  test "$silent" = yes &&
7218    ac_config_status_args="$ac_config_status_args --quiet"
7219  exec 5>/dev/null
7220  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7221  exec 5>>config.log
7222  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7223  # would make configure fail if this is the last instruction.
7224  $ac_cs_success || { (exit 1); exit 1; }
7225fi
7226
7227ac_config_files="$ac_config_files privileged_startx/Makefile"
7228
7229cat >confcache <<\_ACEOF
7230# This file is a shell script that caches the results of configure
7231# tests run on this system so they can be shared between configure
7232# scripts and configure runs, see configure's option --config-cache.
7233# It is not useful on other systems.  If it contains results you don't
7234# want to keep, you may remove or edit it.
7235#
7236# config.status only pays attention to the cache file if you give it
7237# the --recheck option to rerun configure.
7238#
7239# `ac_cv_env_foo' variables (set or unset) will be overridden when
7240# loading this file, other *unset* `ac_cv_foo' will be assigned the
7241# following values.
7242
7243_ACEOF
7244
7245# The following way of writing the cache mishandles newlines in values,
7246# but we know of no workaround that is simple, portable, and efficient.
7247# So, we kill variables containing newlines.
7248# Ultrix sh set writes to stderr and can't be redirected directly,
7249# and sets the high bit in the cache file unless we assign to the vars.
7250(
7251  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7252    eval ac_val=\$$ac_var
7253    case $ac_val in #(
7254    *${as_nl}*)
7255      case $ac_var in #(
7256      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7257echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7258      esac
7259      case $ac_var in #(
7260      _ | IFS | as_nl) ;; #(
7261      *) $as_unset $ac_var ;;
7262      esac ;;
7263    esac
7264  done
7265
7266  (set) 2>&1 |
7267    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7268    *${as_nl}ac_space=\ *)
7269      # `set' does not quote correctly, so add quotes (double-quote
7270      # substitution turns \\\\ into \\, and sed turns \\ into \).
7271      sed -n \
7272	"s/'/'\\\\''/g;
7273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7274      ;; #(
7275    *)
7276      # `set' quotes correctly as required by POSIX, so do not add quotes.
7277      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7278      ;;
7279    esac |
7280    sort
7281) |
7282  sed '
7283     /^ac_cv_env_/b end
7284     t clear
7285     :clear
7286     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7287     t end
7288     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7289     :end' >>confcache
7290if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7291  if test -w "$cache_file"; then
7292    test "x$cache_file" != "x/dev/null" &&
7293      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7294echo "$as_me: updating cache $cache_file" >&6;}
7295    cat confcache >$cache_file
7296  else
7297    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7298echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7299  fi
7300fi
7301rm -f confcache
7302
7303test "x$prefix" = xNONE && prefix=$ac_default_prefix
7304# Let make expand exec_prefix.
7305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7306
7307DEFS=-DHAVE_CONFIG_H
7308
7309ac_libobjs=
7310ac_ltlibobjs=
7311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7312  # 1. Remove the extension, and $U if already installed.
7313  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7314  ac_i=`echo "$ac_i" | sed "$ac_script"`
7315  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7316  #    will be set to the directory where LIBOBJS objects are built.
7317  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7318  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7319done
7320LIBOBJS=$ac_libobjs
7321
7322LTLIBOBJS=$ac_ltlibobjs
7323
7324
7325if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7326  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7327Usually this means the macro was only invoked conditionally." >&5
7328echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7329Usually this means the macro was only invoked conditionally." >&2;}
7330   { (exit 1); exit 1; }; }
7331fi
7332if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7333  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7334Usually this means the macro was only invoked conditionally." >&5
7335echo "$as_me: error: conditional \"AMDEP\" was never defined.
7336Usually this means the macro was only invoked conditionally." >&2;}
7337   { (exit 1); exit 1; }; }
7338fi
7339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7340  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7341Usually this means the macro was only invoked conditionally." >&5
7342echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7343Usually this means the macro was only invoked conditionally." >&2;}
7344   { (exit 1); exit 1; }; }
7345fi
7346if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
7347  { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
7348Usually this means the macro was only invoked conditionally." >&5
7349echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
7350Usually this means the macro was only invoked conditionally." >&2;}
7351   { (exit 1); exit 1; }; }
7352fi
7353
7354: ${CONFIG_STATUS=./config.status}
7355ac_clean_files_save=$ac_clean_files
7356ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7357{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7358echo "$as_me: creating $CONFIG_STATUS" >&6;}
7359cat >$CONFIG_STATUS <<_ACEOF
7360#! $SHELL
7361# Generated by $as_me.
7362# Run this file to recreate the current configuration.
7363# Compiler output produced by configure, useful for debugging
7364# configure, is in config.log if it exists.
7365
7366debug=false
7367ac_cs_recheck=false
7368ac_cs_silent=false
7369SHELL=\${CONFIG_SHELL-$SHELL}
7370_ACEOF
7371
7372cat >>$CONFIG_STATUS <<\_ACEOF
7373## --------------------- ##
7374## M4sh Initialization.  ##
7375## --------------------- ##
7376
7377# Be more Bourne compatible
7378DUALCASE=1; export DUALCASE # for MKS sh
7379if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7380  emulate sh
7381  NULLCMD=:
7382  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7383  # is contrary to our usage.  Disable this feature.
7384  alias -g '${1+"$@"}'='"$@"'
7385  setopt NO_GLOB_SUBST
7386else
7387  case `(set -o) 2>/dev/null` in
7388  *posix*) set -o posix ;;
7389esac
7390
7391fi
7392
7393
7394
7395
7396# PATH needs CR
7397# Avoid depending upon Character Ranges.
7398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7401as_cr_digits='0123456789'
7402as_cr_alnum=$as_cr_Letters$as_cr_digits
7403
7404# The user is always right.
7405if test "${PATH_SEPARATOR+set}" != set; then
7406  echo "#! /bin/sh" >conf$$.sh
7407  echo  "exit 0"   >>conf$$.sh
7408  chmod +x conf$$.sh
7409  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7410    PATH_SEPARATOR=';'
7411  else
7412    PATH_SEPARATOR=:
7413  fi
7414  rm -f conf$$.sh
7415fi
7416
7417# Support unset when possible.
7418if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7419  as_unset=unset
7420else
7421  as_unset=false
7422fi
7423
7424
7425# IFS
7426# We need space, tab and new line, in precisely that order.  Quoting is
7427# there to prevent editors from complaining about space-tab.
7428# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7429# splitting by setting IFS to empty value.)
7430as_nl='
7431'
7432IFS=" ""	$as_nl"
7433
7434# Find who we are.  Look in the path if we contain no directory separator.
7435case $0 in
7436  *[\\/]* ) as_myself=$0 ;;
7437  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440  IFS=$as_save_IFS
7441  test -z "$as_dir" && as_dir=.
7442  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7443done
7444IFS=$as_save_IFS
7445
7446     ;;
7447esac
7448# We did not find ourselves, most probably we were run as `sh COMMAND'
7449# in which case we are not to be found in the path.
7450if test "x$as_myself" = x; then
7451  as_myself=$0
7452fi
7453if test ! -f "$as_myself"; then
7454  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7455  { (exit 1); exit 1; }
7456fi
7457
7458# Work around bugs in pre-3.0 UWIN ksh.
7459for as_var in ENV MAIL MAILPATH
7460do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7461done
7462PS1='$ '
7463PS2='> '
7464PS4='+ '
7465
7466# NLS nuisances.
7467for as_var in \
7468  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7469  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7470  LC_TELEPHONE LC_TIME
7471do
7472  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7473    eval $as_var=C; export $as_var
7474  else
7475    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7476  fi
7477done
7478
7479# Required to use basename.
7480if expr a : '\(a\)' >/dev/null 2>&1 &&
7481   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7482  as_expr=expr
7483else
7484  as_expr=false
7485fi
7486
7487if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7488  as_basename=basename
7489else
7490  as_basename=false
7491fi
7492
7493
7494# Name of the executable.
7495as_me=`$as_basename -- "$0" ||
7496$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7497	 X"$0" : 'X\(//\)$' \| \
7498	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7499echo X/"$0" |
7500    sed '/^.*\/\([^/][^/]*\)\/*$/{
7501	    s//\1/
7502	    q
7503	  }
7504	  /^X\/\(\/\/\)$/{
7505	    s//\1/
7506	    q
7507	  }
7508	  /^X\/\(\/\).*/{
7509	    s//\1/
7510	    q
7511	  }
7512	  s/.*/./; q'`
7513
7514# CDPATH.
7515$as_unset CDPATH
7516
7517
7518
7519  as_lineno_1=$LINENO
7520  as_lineno_2=$LINENO
7521  test "x$as_lineno_1" != "x$as_lineno_2" &&
7522  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7523
7524  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7525  # uniformly replaced by the line number.  The first 'sed' inserts a
7526  # line-number line after each line using $LINENO; the second 'sed'
7527  # does the real work.  The second script uses 'N' to pair each
7528  # line-number line with the line containing $LINENO, and appends
7529  # trailing '-' during substitution so that $LINENO is not a special
7530  # case at line end.
7531  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7532  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7533  # E. McMahon (1931-1989) for sed's syntax.  :-)
7534  sed -n '
7535    p
7536    /[$]LINENO/=
7537  ' <$as_myself |
7538    sed '
7539      s/[$]LINENO.*/&-/
7540      t lineno
7541      b
7542      :lineno
7543      N
7544      :loop
7545      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7546      t loop
7547      s/-\n.*//
7548    ' >$as_me.lineno &&
7549  chmod +x "$as_me.lineno" ||
7550    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7551   { (exit 1); exit 1; }; }
7552
7553  # Don't try to exec as it changes $[0], causing all sort of problems
7554  # (the dirname of $[0] is not the place where we might find the
7555  # original and so on.  Autoconf is especially sensitive to this).
7556  . "./$as_me.lineno"
7557  # Exit status is that of the last command.
7558  exit
7559}
7560
7561
7562if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7563  as_dirname=dirname
7564else
7565  as_dirname=false
7566fi
7567
7568ECHO_C= ECHO_N= ECHO_T=
7569case `echo -n x` in
7570-n*)
7571  case `echo 'x\c'` in
7572  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7573  *)   ECHO_C='\c';;
7574  esac;;
7575*)
7576  ECHO_N='-n';;
7577esac
7578
7579if expr a : '\(a\)' >/dev/null 2>&1 &&
7580   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7581  as_expr=expr
7582else
7583  as_expr=false
7584fi
7585
7586rm -f conf$$ conf$$.exe conf$$.file
7587if test -d conf$$.dir; then
7588  rm -f conf$$.dir/conf$$.file
7589else
7590  rm -f conf$$.dir
7591  mkdir conf$$.dir
7592fi
7593echo >conf$$.file
7594if ln -s conf$$.file conf$$ 2>/dev/null; then
7595  as_ln_s='ln -s'
7596  # ... but there are two gotchas:
7597  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7598  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7599  # In both cases, we have to default to `cp -p'.
7600  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7601    as_ln_s='cp -p'
7602elif ln conf$$.file conf$$ 2>/dev/null; then
7603  as_ln_s=ln
7604else
7605  as_ln_s='cp -p'
7606fi
7607rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7608rmdir conf$$.dir 2>/dev/null
7609
7610if mkdir -p . 2>/dev/null; then
7611  as_mkdir_p=:
7612else
7613  test -d ./-p && rmdir ./-p
7614  as_mkdir_p=false
7615fi
7616
7617if test -x / >/dev/null 2>&1; then
7618  as_test_x='test -x'
7619else
7620  if ls -dL / >/dev/null 2>&1; then
7621    as_ls_L_option=L
7622  else
7623    as_ls_L_option=
7624  fi
7625  as_test_x='
7626    eval sh -c '\''
7627      if test -d "$1"; then
7628        test -d "$1/.";
7629      else
7630	case $1 in
7631        -*)set "./$1";;
7632	esac;
7633	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7634	???[sx]*):;;*)false;;esac;fi
7635    '\'' sh
7636  '
7637fi
7638as_executable_p=$as_test_x
7639
7640# Sed expression to map a string onto a valid CPP name.
7641as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7642
7643# Sed expression to map a string onto a valid variable name.
7644as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7645
7646
7647exec 6>&1
7648
7649# Save the log message, to keep $[0] and so on meaningful, and to
7650# report actual input values of CONFIG_FILES etc. instead of their
7651# values after options handling.
7652ac_log="
7653This file was extended by xinit $as_me 1.1.0, which was
7654generated by GNU Autoconf 2.61.  Invocation command line was
7655
7656  CONFIG_FILES    = $CONFIG_FILES
7657  CONFIG_HEADERS  = $CONFIG_HEADERS
7658  CONFIG_LINKS    = $CONFIG_LINKS
7659  CONFIG_COMMANDS = $CONFIG_COMMANDS
7660  $ $0 $@
7661
7662on `(hostname || uname -n) 2>/dev/null | sed 1q`
7663"
7664
7665_ACEOF
7666
7667cat >>$CONFIG_STATUS <<_ACEOF
7668# Files that config.status was made for.
7669config_files="$ac_config_files"
7670config_headers="$ac_config_headers"
7671config_commands="$ac_config_commands"
7672
7673_ACEOF
7674
7675cat >>$CONFIG_STATUS <<\_ACEOF
7676ac_cs_usage="\
7677\`$as_me' instantiates files from templates according to the
7678current configuration.
7679
7680Usage: $0 [OPTIONS] [FILE]...
7681
7682  -h, --help       print this help, then exit
7683  -V, --version    print version number and configuration settings, then exit
7684  -q, --quiet      do not print progress messages
7685  -d, --debug      don't remove temporary files
7686      --recheck    update $as_me by reconfiguring in the same conditions
7687  --file=FILE[:TEMPLATE]
7688		   instantiate the configuration file FILE
7689  --header=FILE[:TEMPLATE]
7690		   instantiate the configuration header FILE
7691
7692Configuration files:
7693$config_files
7694
7695Configuration headers:
7696$config_headers
7697
7698Configuration commands:
7699$config_commands
7700
7701Report bugs to <bug-autoconf@gnu.org>."
7702
7703_ACEOF
7704cat >>$CONFIG_STATUS <<_ACEOF
7705ac_cs_version="\\
7706xinit config.status 1.1.0
7707configured by $0, generated by GNU Autoconf 2.61,
7708  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7709
7710Copyright (C) 2006 Free Software Foundation, Inc.
7711This config.status script is free software; the Free Software Foundation
7712gives unlimited permission to copy, distribute and modify it."
7713
7714ac_pwd='$ac_pwd'
7715srcdir='$srcdir'
7716INSTALL='$INSTALL'
7717MKDIR_P='$MKDIR_P'
7718_ACEOF
7719
7720cat >>$CONFIG_STATUS <<\_ACEOF
7721# If no file are specified by the user, then we need to provide default
7722# value.  By we need to know if files were specified by the user.
7723ac_need_defaults=:
7724while test $# != 0
7725do
7726  case $1 in
7727  --*=*)
7728    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7729    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7730    ac_shift=:
7731    ;;
7732  *)
7733    ac_option=$1
7734    ac_optarg=$2
7735    ac_shift=shift
7736    ;;
7737  esac
7738
7739  case $ac_option in
7740  # Handling of the options.
7741  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7742    ac_cs_recheck=: ;;
7743  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7744    echo "$ac_cs_version"; exit ;;
7745  --debug | --debu | --deb | --de | --d | -d )
7746    debug=: ;;
7747  --file | --fil | --fi | --f )
7748    $ac_shift
7749    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7750    ac_need_defaults=false;;
7751  --header | --heade | --head | --hea )
7752    $ac_shift
7753    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7754    ac_need_defaults=false;;
7755  --he | --h)
7756    # Conflict between --help and --header
7757    { echo "$as_me: error: ambiguous option: $1
7758Try \`$0 --help' for more information." >&2
7759   { (exit 1); exit 1; }; };;
7760  --help | --hel | -h )
7761    echo "$ac_cs_usage"; exit ;;
7762  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7763  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7764    ac_cs_silent=: ;;
7765
7766  # This is an error.
7767  -*) { echo "$as_me: error: unrecognized option: $1
7768Try \`$0 --help' for more information." >&2
7769   { (exit 1); exit 1; }; } ;;
7770
7771  *) ac_config_targets="$ac_config_targets $1"
7772     ac_need_defaults=false ;;
7773
7774  esac
7775  shift
7776done
7777
7778ac_configure_extra_args=
7779
7780if $ac_cs_silent; then
7781  exec 6>/dev/null
7782  ac_configure_extra_args="$ac_configure_extra_args --silent"
7783fi
7784
7785_ACEOF
7786cat >>$CONFIG_STATUS <<_ACEOF
7787if \$ac_cs_recheck; then
7788  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7789  CONFIG_SHELL=$SHELL
7790  export CONFIG_SHELL
7791  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7792fi
7793
7794_ACEOF
7795cat >>$CONFIG_STATUS <<\_ACEOF
7796exec 5>>config.log
7797{
7798  echo
7799  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7800## Running $as_me. ##
7801_ASBOX
7802  echo "$ac_log"
7803} >&5
7804
7805_ACEOF
7806cat >>$CONFIG_STATUS <<_ACEOF
7807#
7808# INIT-COMMANDS
7809#
7810AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7811
7812_ACEOF
7813
7814cat >>$CONFIG_STATUS <<\_ACEOF
7815
7816# Handling of arguments.
7817for ac_config_target in $ac_config_targets
7818do
7819  case $ac_config_target in
7820    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7821    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7822    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7823    "privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES privileged_startx/Makefile" ;;
7824
7825  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7826echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7827   { (exit 1); exit 1; }; };;
7828  esac
7829done
7830
7831
7832# If the user did not use the arguments to specify the items to instantiate,
7833# then the envvar interface is used.  Set only those that are not.
7834# We use the long form for the default assignment because of an extremely
7835# bizarre bug on SunOS 4.1.3.
7836if $ac_need_defaults; then
7837  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7838  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7839  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7840fi
7841
7842# Have a temporary directory for convenience.  Make it in the build tree
7843# simply because there is no reason against having it here, and in addition,
7844# creating and moving files from /tmp can sometimes cause problems.
7845# Hook for its removal unless debugging.
7846# Note that there is a small window in which the directory will not be cleaned:
7847# after its creation but before its name has been assigned to `$tmp'.
7848$debug ||
7849{
7850  tmp=
7851  trap 'exit_status=$?
7852  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7853' 0
7854  trap '{ (exit 1); exit 1; }' 1 2 13 15
7855}
7856# Create a (secure) tmp directory for tmp files.
7857
7858{
7859  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7860  test -n "$tmp" && test -d "$tmp"
7861}  ||
7862{
7863  tmp=./conf$$-$RANDOM
7864  (umask 077 && mkdir "$tmp")
7865} ||
7866{
7867   echo "$me: cannot create a temporary directory in ." >&2
7868   { (exit 1); exit 1; }
7869}
7870
7871#
7872# Set up the sed scripts for CONFIG_FILES section.
7873#
7874
7875# No need to generate the scripts if there are no CONFIG_FILES.
7876# This happens for instance when ./config.status config.h
7877if test -n "$CONFIG_FILES"; then
7878
7879_ACEOF
7880
7881
7882
7883ac_delim='%!_!# '
7884for ac_last_try in false false false false false :; do
7885  cat >conf$$subs.sed <<_ACEOF
7886SHELL!$SHELL$ac_delim
7887PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7888PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7889PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7890PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7891PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7892PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7893exec_prefix!$exec_prefix$ac_delim
7894prefix!$prefix$ac_delim
7895program_transform_name!$program_transform_name$ac_delim
7896bindir!$bindir$ac_delim
7897sbindir!$sbindir$ac_delim
7898libexecdir!$libexecdir$ac_delim
7899datarootdir!$datarootdir$ac_delim
7900datadir!$datadir$ac_delim
7901sysconfdir!$sysconfdir$ac_delim
7902sharedstatedir!$sharedstatedir$ac_delim
7903localstatedir!$localstatedir$ac_delim
7904includedir!$includedir$ac_delim
7905oldincludedir!$oldincludedir$ac_delim
7906docdir!$docdir$ac_delim
7907infodir!$infodir$ac_delim
7908htmldir!$htmldir$ac_delim
7909dvidir!$dvidir$ac_delim
7910pdfdir!$pdfdir$ac_delim
7911psdir!$psdir$ac_delim
7912libdir!$libdir$ac_delim
7913localedir!$localedir$ac_delim
7914mandir!$mandir$ac_delim
7915DEFS!$DEFS$ac_delim
7916ECHO_C!$ECHO_C$ac_delim
7917ECHO_N!$ECHO_N$ac_delim
7918ECHO_T!$ECHO_T$ac_delim
7919LIBS!$LIBS$ac_delim
7920build_alias!$build_alias$ac_delim
7921host_alias!$host_alias$ac_delim
7922target_alias!$target_alias$ac_delim
7923INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7924INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7925INSTALL_DATA!$INSTALL_DATA$ac_delim
7926am__isrc!$am__isrc$ac_delim
7927CYGPATH_W!$CYGPATH_W$ac_delim
7928PACKAGE!$PACKAGE$ac_delim
7929VERSION!$VERSION$ac_delim
7930ACLOCAL!$ACLOCAL$ac_delim
7931AUTOCONF!$AUTOCONF$ac_delim
7932AUTOMAKE!$AUTOMAKE$ac_delim
7933AUTOHEADER!$AUTOHEADER$ac_delim
7934MAKEINFO!$MAKEINFO$ac_delim
7935install_sh!$install_sh$ac_delim
7936STRIP!$STRIP$ac_delim
7937INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7938mkdir_p!$mkdir_p$ac_delim
7939AWK!$AWK$ac_delim
7940SET_MAKE!$SET_MAKE$ac_delim
7941am__leading_dot!$am__leading_dot$ac_delim
7942AMTAR!$AMTAR$ac_delim
7943am__tar!$am__tar$ac_delim
7944am__untar!$am__untar$ac_delim
7945MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7946MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7947MAINT!$MAINT$ac_delim
7948CC!$CC$ac_delim
7949CFLAGS!$CFLAGS$ac_delim
7950LDFLAGS!$LDFLAGS$ac_delim
7951CPPFLAGS!$CPPFLAGS$ac_delim
7952ac_ct_CC!$ac_ct_CC$ac_delim
7953EXEEXT!$EXEEXT$ac_delim
7954OBJEXT!$OBJEXT$ac_delim
7955DEPDIR!$DEPDIR$ac_delim
7956am__include!$am__include$ac_delim
7957am__quote!$am__quote$ac_delim
7958AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7959AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7960AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7961CCDEPMODE!$CCDEPMODE$ac_delim
7962am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7963am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7964CPP!$CPP$ac_delim
7965RAWCPP!$RAWCPP$ac_delim
7966RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
7967SED!$SED$ac_delim
7968build!$build$ac_delim
7969build_cpu!$build_cpu$ac_delim
7970build_vendor!$build_vendor$ac_delim
7971build_os!$build_os$ac_delim
7972host!$host$ac_delim
7973host_cpu!$host_cpu$ac_delim
7974host_vendor!$host_vendor$ac_delim
7975host_os!$host_os$ac_delim
7976GREP!$GREP$ac_delim
7977EGREP!$EGREP$ac_delim
7978LAUNCHD!$LAUNCHD$ac_delim
7979launchagentsdir!$launchagentsdir$ac_delim
7980launchdaemonsdir!$launchdaemonsdir$ac_delim
7981LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
7982LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
7983_ACEOF
7984
7985  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7986    break
7987  elif $ac_last_try; then
7988    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7989echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7990   { (exit 1); exit 1; }; }
7991  else
7992    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7993  fi
7994done
7995
7996ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7997if test -n "$ac_eof"; then
7998  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7999  ac_eof=`expr $ac_eof + 1`
8000fi
8001
8002cat >>$CONFIG_STATUS <<_ACEOF
8003cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8005_ACEOF
8006sed '
8007s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8008s/^/s,@/; s/!/@,|#_!!_#|/
8009:n
8010t n
8011s/'"$ac_delim"'$/,g/; t
8012s/$/\\/; p
8013N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8014' >>$CONFIG_STATUS <conf$$subs.sed
8015rm -f conf$$subs.sed
8016cat >>$CONFIG_STATUS <<_ACEOF
8017CEOF$ac_eof
8018_ACEOF
8019
8020
8021ac_delim='%!_!# '
8022for ac_last_try in false false false false false :; do
8023  cat >conf$$subs.sed <<_ACEOF
8024PKG_CONFIG!$PKG_CONFIG$ac_delim
8025XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
8026XINIT_LIBS!$XINIT_LIBS$ac_delim
8027MCOOKIE!$MCOOKIE$ac_delim
8028STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
8029SHELL_CMD!$SHELL_CMD$ac_delim
8030ARCHMANDEFS!$ARCHMANDEFS$ac_delim
8031XRDB!$XRDB$ac_delim
8032XMODMAP!$XMODMAP$ac_delim
8033TWM!$TWM$ac_delim
8034XCLOCK!$XCLOCK$ac_delim
8035XTERM!$XTERM$ac_delim
8036XSERVER!$XSERVER$ac_delim
8037XAUTH!$XAUTH$ac_delim
8038XINIT!$XINIT$ac_delim
8039APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
8040LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
8041FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
8042MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
8043DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
8044ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
8045APP_MAN_DIR!$APP_MAN_DIR$ac_delim
8046LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
8047FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
8048MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
8049DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
8050ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
8051LIBOBJS!$LIBOBJS$ac_delim
8052LTLIBOBJS!$LTLIBOBJS$ac_delim
8053_ACEOF
8054
8055  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
8056    break
8057  elif $ac_last_try; then
8058    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8059echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8060   { (exit 1); exit 1; }; }
8061  else
8062    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8063  fi
8064done
8065
8066ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8067if test -n "$ac_eof"; then
8068  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8069  ac_eof=`expr $ac_eof + 1`
8070fi
8071
8072cat >>$CONFIG_STATUS <<_ACEOF
8073cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8075_ACEOF
8076sed '
8077s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8078s/^/s,@/; s/!/@,|#_!!_#|/
8079:n
8080t n
8081s/'"$ac_delim"'$/,g/; t
8082s/$/\\/; p
8083N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8084' >>$CONFIG_STATUS <conf$$subs.sed
8085rm -f conf$$subs.sed
8086cat >>$CONFIG_STATUS <<_ACEOF
8087:end
8088s/|#_!!_#|//g
8089CEOF$ac_eof
8090_ACEOF
8091
8092
8093# VPATH may cause trouble with some makes, so we remove $(srcdir),
8094# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8095# trailing colons and then remove the whole line if VPATH becomes empty
8096# (actually we leave an empty line to preserve line numbers).
8097if test "x$srcdir" = x.; then
8098  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8099s/:*\$(srcdir):*/:/
8100s/:*\${srcdir}:*/:/
8101s/:*@srcdir@:*/:/
8102s/^\([^=]*=[	 ]*\):*/\1/
8103s/:*$//
8104s/^[^=]*=[	 ]*$//
8105}'
8106fi
8107
8108cat >>$CONFIG_STATUS <<\_ACEOF
8109fi # test -n "$CONFIG_FILES"
8110
8111
8112for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
8113do
8114  case $ac_tag in
8115  :[FHLC]) ac_mode=$ac_tag; continue;;
8116  esac
8117  case $ac_mode$ac_tag in
8118  :[FHL]*:*);;
8119  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8120echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8121   { (exit 1); exit 1; }; };;
8122  :[FH]-) ac_tag=-:-;;
8123  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8124  esac
8125  ac_save_IFS=$IFS
8126  IFS=:
8127  set x $ac_tag
8128  IFS=$ac_save_IFS
8129  shift
8130  ac_file=$1
8131  shift
8132
8133  case $ac_mode in
8134  :L) ac_source=$1;;
8135  :[FH])
8136    ac_file_inputs=
8137    for ac_f
8138    do
8139      case $ac_f in
8140      -) ac_f="$tmp/stdin";;
8141      *) # Look for the file first in the build tree, then in the source tree
8142	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8143	 # because $ac_f cannot contain `:'.
8144	 test -f "$ac_f" ||
8145	   case $ac_f in
8146	   [\\/$]*) false;;
8147	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8148	   esac ||
8149	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8150echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8151   { (exit 1); exit 1; }; };;
8152      esac
8153      ac_file_inputs="$ac_file_inputs $ac_f"
8154    done
8155
8156    # Let's still pretend it is `configure' which instantiates (i.e., don't
8157    # use $as_me), people would be surprised to read:
8158    #    /* config.h.  Generated by config.status.  */
8159    configure_input="Generated from "`IFS=:
8160	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8161    if test x"$ac_file" != x-; then
8162      configure_input="$ac_file.  $configure_input"
8163      { echo "$as_me:$LINENO: creating $ac_file" >&5
8164echo "$as_me: creating $ac_file" >&6;}
8165    fi
8166
8167    case $ac_tag in
8168    *:-:* | *:-) cat >"$tmp/stdin";;
8169    esac
8170    ;;
8171  esac
8172
8173  ac_dir=`$as_dirname -- "$ac_file" ||
8174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8175	 X"$ac_file" : 'X\(//\)[^/]' \| \
8176	 X"$ac_file" : 'X\(//\)$' \| \
8177	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8178echo X"$ac_file" |
8179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8180	    s//\1/
8181	    q
8182	  }
8183	  /^X\(\/\/\)[^/].*/{
8184	    s//\1/
8185	    q
8186	  }
8187	  /^X\(\/\/\)$/{
8188	    s//\1/
8189	    q
8190	  }
8191	  /^X\(\/\).*/{
8192	    s//\1/
8193	    q
8194	  }
8195	  s/.*/./; q'`
8196  { as_dir="$ac_dir"
8197  case $as_dir in #(
8198  -*) as_dir=./$as_dir;;
8199  esac
8200  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8201    as_dirs=
8202    while :; do
8203      case $as_dir in #(
8204      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8205      *) as_qdir=$as_dir;;
8206      esac
8207      as_dirs="'$as_qdir' $as_dirs"
8208      as_dir=`$as_dirname -- "$as_dir" ||
8209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8210	 X"$as_dir" : 'X\(//\)[^/]' \| \
8211	 X"$as_dir" : 'X\(//\)$' \| \
8212	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8213echo X"$as_dir" |
8214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8215	    s//\1/
8216	    q
8217	  }
8218	  /^X\(\/\/\)[^/].*/{
8219	    s//\1/
8220	    q
8221	  }
8222	  /^X\(\/\/\)$/{
8223	    s//\1/
8224	    q
8225	  }
8226	  /^X\(\/\).*/{
8227	    s//\1/
8228	    q
8229	  }
8230	  s/.*/./; q'`
8231      test -d "$as_dir" && break
8232    done
8233    test -z "$as_dirs" || eval "mkdir $as_dirs"
8234  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8235echo "$as_me: error: cannot create directory $as_dir" >&2;}
8236   { (exit 1); exit 1; }; }; }
8237  ac_builddir=.
8238
8239case "$ac_dir" in
8240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8241*)
8242  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8243  # A ".." for each directory in $ac_dir_suffix.
8244  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8245  case $ac_top_builddir_sub in
8246  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8247  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8248  esac ;;
8249esac
8250ac_abs_top_builddir=$ac_pwd
8251ac_abs_builddir=$ac_pwd$ac_dir_suffix
8252# for backward compatibility:
8253ac_top_builddir=$ac_top_build_prefix
8254
8255case $srcdir in
8256  .)  # We are building in place.
8257    ac_srcdir=.
8258    ac_top_srcdir=$ac_top_builddir_sub
8259    ac_abs_top_srcdir=$ac_pwd ;;
8260  [\\/]* | ?:[\\/]* )  # Absolute name.
8261    ac_srcdir=$srcdir$ac_dir_suffix;
8262    ac_top_srcdir=$srcdir
8263    ac_abs_top_srcdir=$srcdir ;;
8264  *) # Relative name.
8265    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8266    ac_top_srcdir=$ac_top_build_prefix$srcdir
8267    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8268esac
8269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8270
8271
8272  case $ac_mode in
8273  :F)
8274  #
8275  # CONFIG_FILE
8276  #
8277
8278  case $INSTALL in
8279  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8280  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8281  esac
8282  ac_MKDIR_P=$MKDIR_P
8283  case $MKDIR_P in
8284  [\\/$]* | ?:[\\/]* ) ;;
8285  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8286  esac
8287_ACEOF
8288
8289cat >>$CONFIG_STATUS <<\_ACEOF
8290# If the template does not know about datarootdir, expand it.
8291# FIXME: This hack should be removed a few years after 2.60.
8292ac_datarootdir_hack=; ac_datarootdir_seen=
8293
8294case `sed -n '/datarootdir/ {
8295  p
8296  q
8297}
8298/@datadir@/p
8299/@docdir@/p
8300/@infodir@/p
8301/@localedir@/p
8302/@mandir@/p
8303' $ac_file_inputs` in
8304*datarootdir*) ac_datarootdir_seen=yes;;
8305*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8306  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8307echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8308_ACEOF
8309cat >>$CONFIG_STATUS <<_ACEOF
8310  ac_datarootdir_hack='
8311  s&@datadir@&$datadir&g
8312  s&@docdir@&$docdir&g
8313  s&@infodir@&$infodir&g
8314  s&@localedir@&$localedir&g
8315  s&@mandir@&$mandir&g
8316    s&\\\${datarootdir}&$datarootdir&g' ;;
8317esac
8318_ACEOF
8319
8320# Neutralize VPATH when `$srcdir' = `.'.
8321# Shell code in configure.ac might set extrasub.
8322# FIXME: do we really want to maintain this feature?
8323cat >>$CONFIG_STATUS <<_ACEOF
8324  sed "$ac_vpsub
8325$extrasub
8326_ACEOF
8327cat >>$CONFIG_STATUS <<\_ACEOF
8328:t
8329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8330s&@configure_input@&$configure_input&;t t
8331s&@top_builddir@&$ac_top_builddir_sub&;t t
8332s&@srcdir@&$ac_srcdir&;t t
8333s&@abs_srcdir@&$ac_abs_srcdir&;t t
8334s&@top_srcdir@&$ac_top_srcdir&;t t
8335s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8336s&@builddir@&$ac_builddir&;t t
8337s&@abs_builddir@&$ac_abs_builddir&;t t
8338s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8339s&@INSTALL@&$ac_INSTALL&;t t
8340s&@MKDIR_P@&$ac_MKDIR_P&;t t
8341$ac_datarootdir_hack
8342" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8343
8344test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8345  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8346  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8347  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8348which seems to be undefined.  Please make sure it is defined." >&5
8349echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8350which seems to be undefined.  Please make sure it is defined." >&2;}
8351
8352  rm -f "$tmp/stdin"
8353  case $ac_file in
8354  -) cat "$tmp/out"; rm -f "$tmp/out";;
8355  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8356  esac
8357 ;;
8358  :H)
8359  #
8360  # CONFIG_HEADER
8361  #
8362_ACEOF
8363
8364# Transform confdefs.h into a sed script `conftest.defines', that
8365# substitutes the proper values into config.h.in to produce config.h.
8366rm -f conftest.defines conftest.tail
8367# First, append a space to every undef/define line, to ease matching.
8368echo 's/$/ /' >conftest.defines
8369# Then, protect against being on the right side of a sed subst, or in
8370# an unquoted here document, in config.status.  If some macros were
8371# called several times there might be several #defines for the same
8372# symbol, which is useless.  But do not sort them, since the last
8373# AC_DEFINE must be honored.
8374ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8375# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8376# NAME is the cpp macro being defined, VALUE is the value it is being given.
8377# PARAMS is the parameter list in the macro definition--in most cases, it's
8378# just an empty string.
8379ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
8380ac_dB='\\)[	 (].*,\\1define\\2'
8381ac_dC=' '
8382ac_dD=' ,'
8383
8384uniq confdefs.h |
8385  sed -n '
8386	t rset
8387	:rset
8388	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
8389	t ok
8390	d
8391	:ok
8392	s/[\\&,]/\\&/g
8393	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8394	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8395  ' >>conftest.defines
8396
8397# Remove the space that was appended to ease matching.
8398# Then replace #undef with comments.  This is necessary, for
8399# example, in the case of _POSIX_SOURCE, which is predefined and required
8400# on some systems where configure will not decide to define it.
8401# (The regexp can be short, since the line contains either #define or #undef.)
8402echo 's/ $//
8403s,^[	 #]*u.*,/* & */,' >>conftest.defines
8404
8405# Break up conftest.defines:
8406ac_max_sed_lines=50
8407
8408# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8409# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8410# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8411# et cetera.
8412ac_in='$ac_file_inputs'
8413ac_out='"$tmp/out1"'
8414ac_nxt='"$tmp/out2"'
8415
8416while :
8417do
8418  # Write a here document:
8419    cat >>$CONFIG_STATUS <<_ACEOF
8420    # First, check the format of the line:
8421    cat >"\$tmp/defines.sed" <<\\CEOF
8422/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
8423/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
8424b
8425:def
8426_ACEOF
8427  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8428  echo 'CEOF
8429    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8430  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8431  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8432  grep . conftest.tail >/dev/null || break
8433  rm -f conftest.defines
8434  mv conftest.tail conftest.defines
8435done
8436rm -f conftest.defines conftest.tail
8437
8438echo "ac_result=$ac_in" >>$CONFIG_STATUS
8439cat >>$CONFIG_STATUS <<\_ACEOF
8440  if test x"$ac_file" != x-; then
8441    echo "/* $configure_input  */" >"$tmp/config.h"
8442    cat "$ac_result" >>"$tmp/config.h"
8443    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8444      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8445echo "$as_me: $ac_file is unchanged" >&6;}
8446    else
8447      rm -f $ac_file
8448      mv "$tmp/config.h" $ac_file
8449    fi
8450  else
8451    echo "/* $configure_input  */"
8452    cat "$ac_result"
8453  fi
8454  rm -f "$tmp/out12"
8455# Compute $ac_file's index in $config_headers.
8456_am_arg=$ac_file
8457_am_stamp_count=1
8458for _am_header in $config_headers :; do
8459  case $_am_header in
8460    $_am_arg | $_am_arg:* )
8461      break ;;
8462    * )
8463      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8464  esac
8465done
8466echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8467$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8468	 X"$_am_arg" : 'X\(//\)[^/]' \| \
8469	 X"$_am_arg" : 'X\(//\)$' \| \
8470	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8471echo X"$_am_arg" |
8472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8473	    s//\1/
8474	    q
8475	  }
8476	  /^X\(\/\/\)[^/].*/{
8477	    s//\1/
8478	    q
8479	  }
8480	  /^X\(\/\/\)$/{
8481	    s//\1/
8482	    q
8483	  }
8484	  /^X\(\/\).*/{
8485	    s//\1/
8486	    q
8487	  }
8488	  s/.*/./; q'`/stamp-h$_am_stamp_count
8489 ;;
8490
8491  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8492echo "$as_me: executing $ac_file commands" >&6;}
8493 ;;
8494  esac
8495
8496
8497  case $ac_file$ac_mode in
8498    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8499  # Strip MF so we end up with the name of the file.
8500  mf=`echo "$mf" | sed -e 's/:.*$//'`
8501  # Check whether this is an Automake generated Makefile or not.
8502  # We used to match only the files named `Makefile.in', but
8503  # some people rename them; so instead we look at the file content.
8504  # Grep'ing the first line is not enough: some people post-process
8505  # each Makefile.in and add a new line on top of each file to say so.
8506  # Grep'ing the whole file is not good either: AIX grep has a line
8507  # limit of 2048, but all sed's we know have understand at least 4000.
8508  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8509    dirpart=`$as_dirname -- "$mf" ||
8510$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8511	 X"$mf" : 'X\(//\)[^/]' \| \
8512	 X"$mf" : 'X\(//\)$' \| \
8513	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8514echo X"$mf" |
8515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8516	    s//\1/
8517	    q
8518	  }
8519	  /^X\(\/\/\)[^/].*/{
8520	    s//\1/
8521	    q
8522	  }
8523	  /^X\(\/\/\)$/{
8524	    s//\1/
8525	    q
8526	  }
8527	  /^X\(\/\).*/{
8528	    s//\1/
8529	    q
8530	  }
8531	  s/.*/./; q'`
8532  else
8533    continue
8534  fi
8535  # Extract the definition of DEPDIR, am__include, and am__quote
8536  # from the Makefile without running `make'.
8537  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8538  test -z "$DEPDIR" && continue
8539  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8540  test -z "am__include" && continue
8541  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8542  # When using ansi2knr, U may be empty or an underscore; expand it
8543  U=`sed -n 's/^U = //p' < "$mf"`
8544  # Find all dependency output files, they are included files with
8545  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8546  # simplest approach to changing $(DEPDIR) to its actual value in the
8547  # expansion.
8548  for file in `sed -n "
8549    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8550       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8551    # Make sure the directory exists.
8552    test -f "$dirpart/$file" && continue
8553    fdir=`$as_dirname -- "$file" ||
8554$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8555	 X"$file" : 'X\(//\)[^/]' \| \
8556	 X"$file" : 'X\(//\)$' \| \
8557	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8558echo X"$file" |
8559    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8560	    s//\1/
8561	    q
8562	  }
8563	  /^X\(\/\/\)[^/].*/{
8564	    s//\1/
8565	    q
8566	  }
8567	  /^X\(\/\/\)$/{
8568	    s//\1/
8569	    q
8570	  }
8571	  /^X\(\/\).*/{
8572	    s//\1/
8573	    q
8574	  }
8575	  s/.*/./; q'`
8576    { as_dir=$dirpart/$fdir
8577  case $as_dir in #(
8578  -*) as_dir=./$as_dir;;
8579  esac
8580  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8581    as_dirs=
8582    while :; do
8583      case $as_dir in #(
8584      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8585      *) as_qdir=$as_dir;;
8586      esac
8587      as_dirs="'$as_qdir' $as_dirs"
8588      as_dir=`$as_dirname -- "$as_dir" ||
8589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8590	 X"$as_dir" : 'X\(//\)[^/]' \| \
8591	 X"$as_dir" : 'X\(//\)$' \| \
8592	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8593echo X"$as_dir" |
8594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8595	    s//\1/
8596	    q
8597	  }
8598	  /^X\(\/\/\)[^/].*/{
8599	    s//\1/
8600	    q
8601	  }
8602	  /^X\(\/\/\)$/{
8603	    s//\1/
8604	    q
8605	  }
8606	  /^X\(\/\).*/{
8607	    s//\1/
8608	    q
8609	  }
8610	  s/.*/./; q'`
8611      test -d "$as_dir" && break
8612    done
8613    test -z "$as_dirs" || eval "mkdir $as_dirs"
8614  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8615echo "$as_me: error: cannot create directory $as_dir" >&2;}
8616   { (exit 1); exit 1; }; }; }
8617    # echo "creating $dirpart/$file"
8618    echo '# dummy' > "$dirpart/$file"
8619  done
8620done
8621 ;;
8622
8623  esac
8624done # for ac_tag
8625
8626
8627{ (exit 0); exit 0; }
8628_ACEOF
8629chmod +x $CONFIG_STATUS
8630ac_clean_files=$ac_clean_files_save
8631
8632
8633# configure is writing to config.log, and then calls config.status.
8634# config.status does its own redirection, appending to config.log.
8635# Unfortunately, on DOS this fails, as config.log is still kept open
8636# by configure, so config.status won't be able to write to it; its
8637# output is simply discarded.  So we exec the FD to /dev/null,
8638# effectively closing config.log, so it can be properly (re)opened and
8639# appended to by config.status.  When coming back to configure, we
8640# need to make the FD available again.
8641if test "$no_create" != yes; then
8642  ac_cs_success=:
8643  ac_config_status_args=
8644  test "$silent" = yes &&
8645    ac_config_status_args="$ac_config_status_args --quiet"
8646  exec 5>/dev/null
8647  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8648  exec 5>>config.log
8649  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8650  # would make configure fail if this is the last instruction.
8651  $ac_cs_success || { (exit 1); exit 1; }
8652fi
8653
8654