configure revision c9e2be55
1c9e2be55Smrg#! /bin/sh
2c9e2be55Smrg# Guess values for system-dependent variables and create Makefiles.
3c9e2be55Smrg# Generated by GNU Autoconf 2.59 for xmh 1.0.1.
4c9e2be55Smrg#
5c9e2be55Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6c9e2be55Smrg#
7c9e2be55Smrg# Copyright (C) 2003 Free Software Foundation, Inc.
8c9e2be55Smrg# This configure script is free software; the Free Software Foundation
9c9e2be55Smrg# gives unlimited permission to copy, distribute and modify it.
10c9e2be55Smrg## --------------------- ##
11c9e2be55Smrg## M4sh Initialization.  ##
12c9e2be55Smrg## --------------------- ##
13c9e2be55Smrg
14c9e2be55Smrg# Be Bourne compatible
15c9e2be55Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16c9e2be55Smrg  emulate sh
17c9e2be55Smrg  NULLCMD=:
18c9e2be55Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19c9e2be55Smrg  # is contrary to our usage.  Disable this feature.
20c9e2be55Smrg  alias -g '${1+"$@"}'='"$@"'
21c9e2be55Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22c9e2be55Smrg  set -o posix
23c9e2be55Smrgfi
24c9e2be55SmrgDUALCASE=1; export DUALCASE # for MKS sh
25c9e2be55Smrg
26c9e2be55Smrg# Support unset when possible.
27c9e2be55Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28c9e2be55Smrg  as_unset=unset
29c9e2be55Smrgelse
30c9e2be55Smrg  as_unset=false
31c9e2be55Smrgfi
32c9e2be55Smrg
33c9e2be55Smrg
34c9e2be55Smrg# Work around bugs in pre-3.0 UWIN ksh.
35c9e2be55Smrg$as_unset ENV MAIL MAILPATH
36c9e2be55SmrgPS1='$ '
37c9e2be55SmrgPS2='> '
38c9e2be55SmrgPS4='+ '
39c9e2be55Smrg
40c9e2be55Smrg# NLS nuisances.
41c9e2be55Smrgfor as_var in \
42c9e2be55Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43c9e2be55Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44c9e2be55Smrg  LC_TELEPHONE LC_TIME
45c9e2be55Smrgdo
46c9e2be55Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47c9e2be55Smrg    eval $as_var=C; export $as_var
48c9e2be55Smrg  else
49c9e2be55Smrg    $as_unset $as_var
50c9e2be55Smrg  fi
51c9e2be55Smrgdone
52c9e2be55Smrg
53c9e2be55Smrg# Required to use basename.
54c9e2be55Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
55c9e2be55Smrg  as_expr=expr
56c9e2be55Smrgelse
57c9e2be55Smrg  as_expr=false
58c9e2be55Smrgfi
59c9e2be55Smrg
60c9e2be55Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61c9e2be55Smrg  as_basename=basename
62c9e2be55Smrgelse
63c9e2be55Smrg  as_basename=false
64c9e2be55Smrgfi
65c9e2be55Smrg
66c9e2be55Smrg
67c9e2be55Smrg# Name of the executable.
68c9e2be55Smrgas_me=`$as_basename "$0" ||
69c9e2be55Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70c9e2be55Smrg	 X"$0" : 'X\(//\)$' \| \
71c9e2be55Smrg	 X"$0" : 'X\(/\)$' \| \
72c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
73c9e2be55Smrgecho X/"$0" |
74c9e2be55Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75c9e2be55Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76c9e2be55Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
77c9e2be55Smrg  	  s/.*/./; q'`
78c9e2be55Smrg
79c9e2be55Smrg
80c9e2be55Smrg# PATH needs CR, and LINENO needs CR and PATH.
81c9e2be55Smrg# Avoid depending upon Character Ranges.
82c9e2be55Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
83c9e2be55Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84c9e2be55Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
85c9e2be55Smrgas_cr_digits='0123456789'
86c9e2be55Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
87c9e2be55Smrg
88c9e2be55Smrg# The user is always right.
89c9e2be55Smrgif test "${PATH_SEPARATOR+set}" != set; then
90c9e2be55Smrg  echo "#! /bin/sh" >conf$$.sh
91c9e2be55Smrg  echo  "exit 0"   >>conf$$.sh
92c9e2be55Smrg  chmod +x conf$$.sh
93c9e2be55Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94c9e2be55Smrg    PATH_SEPARATOR=';'
95c9e2be55Smrg  else
96c9e2be55Smrg    PATH_SEPARATOR=:
97c9e2be55Smrg  fi
98c9e2be55Smrg  rm -f conf$$.sh
99c9e2be55Smrgfi
100c9e2be55Smrg
101c9e2be55Smrg
102c9e2be55Smrg  as_lineno_1=$LINENO
103c9e2be55Smrg  as_lineno_2=$LINENO
104c9e2be55Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105c9e2be55Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
106c9e2be55Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107c9e2be55Smrg  # Find who we are.  Look in the path if we contain no path at all
108c9e2be55Smrg  # relative or not.
109c9e2be55Smrg  case $0 in
110c9e2be55Smrg    *[\\/]* ) as_myself=$0 ;;
111c9e2be55Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112c9e2be55Smrgfor as_dir in $PATH
113c9e2be55Smrgdo
114c9e2be55Smrg  IFS=$as_save_IFS
115c9e2be55Smrg  test -z "$as_dir" && as_dir=.
116c9e2be55Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117c9e2be55Smrgdone
118c9e2be55Smrg
119c9e2be55Smrg       ;;
120c9e2be55Smrg  esac
121c9e2be55Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
122c9e2be55Smrg  # in which case we are not to be found in the path.
123c9e2be55Smrg  if test "x$as_myself" = x; then
124c9e2be55Smrg    as_myself=$0
125c9e2be55Smrg  fi
126c9e2be55Smrg  if test ! -f "$as_myself"; then
127c9e2be55Smrg    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128c9e2be55Smrg   { (exit 1); exit 1; }; }
129c9e2be55Smrg  fi
130c9e2be55Smrg  case $CONFIG_SHELL in
131c9e2be55Smrg  '')
132c9e2be55Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133c9e2be55Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134c9e2be55Smrgdo
135c9e2be55Smrg  IFS=$as_save_IFS
136c9e2be55Smrg  test -z "$as_dir" && as_dir=.
137c9e2be55Smrg  for as_base in sh bash ksh sh5; do
138c9e2be55Smrg	 case $as_dir in
139c9e2be55Smrg	 /*)
140c9e2be55Smrg	   if ("$as_dir/$as_base" -c '
141c9e2be55Smrg  as_lineno_1=$LINENO
142c9e2be55Smrg  as_lineno_2=$LINENO
143c9e2be55Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144c9e2be55Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
145c9e2be55Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146c9e2be55Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147c9e2be55Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148c9e2be55Smrg	     CONFIG_SHELL=$as_dir/$as_base
149c9e2be55Smrg	     export CONFIG_SHELL
150c9e2be55Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151c9e2be55Smrg	   fi;;
152c9e2be55Smrg	 esac
153c9e2be55Smrg       done
154c9e2be55Smrgdone
155c9e2be55Smrg;;
156c9e2be55Smrg  esac
157c9e2be55Smrg
158c9e2be55Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159c9e2be55Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
160c9e2be55Smrg  # line-number line before each line; the second 'sed' does the real
161c9e2be55Smrg  # work.  The second script uses 'N' to pair each line-number line
162c9e2be55Smrg  # with the numbered line, and appends trailing '-' during
163c9e2be55Smrg  # substitution so that $LINENO is not a special case at line end.
164c9e2be55Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165c9e2be55Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166c9e2be55Smrg  sed '=' <$as_myself |
167c9e2be55Smrg    sed '
168c9e2be55Smrg      N
169c9e2be55Smrg      s,$,-,
170c9e2be55Smrg      : loop
171c9e2be55Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172c9e2be55Smrg      t loop
173c9e2be55Smrg      s,-$,,
174c9e2be55Smrg      s,^['$as_cr_digits']*\n,,
175c9e2be55Smrg    ' >$as_me.lineno &&
176c9e2be55Smrg  chmod +x $as_me.lineno ||
177c9e2be55Smrg    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178c9e2be55Smrg   { (exit 1); exit 1; }; }
179c9e2be55Smrg
180c9e2be55Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
181c9e2be55Smrg  # (the dirname of $[0] is not the place where we might find the
182c9e2be55Smrg  # original and so on.  Autoconf is especially sensible to this).
183c9e2be55Smrg  . ./$as_me.lineno
184c9e2be55Smrg  # Exit status is that of the last command.
185c9e2be55Smrg  exit
186c9e2be55Smrg}
187c9e2be55Smrg
188c9e2be55Smrg
189c9e2be55Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190c9e2be55Smrg  *c*,-n*) ECHO_N= ECHO_C='
191c9e2be55Smrg' ECHO_T='	' ;;
192c9e2be55Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193c9e2be55Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194c9e2be55Smrgesac
195c9e2be55Smrg
196c9e2be55Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
197c9e2be55Smrg  as_expr=expr
198c9e2be55Smrgelse
199c9e2be55Smrg  as_expr=false
200c9e2be55Smrgfi
201c9e2be55Smrg
202c9e2be55Smrgrm -f conf$$ conf$$.exe conf$$.file
203c9e2be55Smrgecho >conf$$.file
204c9e2be55Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
205c9e2be55Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
206c9e2be55Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207c9e2be55Smrg  if test -f conf$$.exe; then
208c9e2be55Smrg    # Don't use ln at all; we don't have any links
209c9e2be55Smrg    as_ln_s='cp -p'
210c9e2be55Smrg  else
211c9e2be55Smrg    as_ln_s='ln -s'
212c9e2be55Smrg  fi
213c9e2be55Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
214c9e2be55Smrg  as_ln_s=ln
215c9e2be55Smrgelse
216c9e2be55Smrg  as_ln_s='cp -p'
217c9e2be55Smrgfi
218c9e2be55Smrgrm -f conf$$ conf$$.exe conf$$.file
219c9e2be55Smrg
220c9e2be55Smrgif mkdir -p . 2>/dev/null; then
221c9e2be55Smrg  as_mkdir_p=:
222c9e2be55Smrgelse
223c9e2be55Smrg  test -d ./-p && rmdir ./-p
224c9e2be55Smrg  as_mkdir_p=false
225c9e2be55Smrgfi
226c9e2be55Smrg
227c9e2be55Smrgas_executable_p="test -f"
228c9e2be55Smrg
229c9e2be55Smrg# Sed expression to map a string onto a valid CPP name.
230c9e2be55Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231c9e2be55Smrg
232c9e2be55Smrg# Sed expression to map a string onto a valid variable name.
233c9e2be55Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234c9e2be55Smrg
235c9e2be55Smrg
236c9e2be55Smrg# IFS
237c9e2be55Smrg# We need space, tab and new line, in precisely that order.
238c9e2be55Smrgas_nl='
239c9e2be55Smrg'
240c9e2be55SmrgIFS=" 	$as_nl"
241c9e2be55Smrg
242c9e2be55Smrg# CDPATH.
243c9e2be55Smrg$as_unset CDPATH
244c9e2be55Smrg
245c9e2be55Smrg
246c9e2be55Smrg# Name of the host.
247c9e2be55Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248c9e2be55Smrg# so uname gets run too.
249c9e2be55Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250c9e2be55Smrg
251c9e2be55Smrgexec 6>&1
252c9e2be55Smrg
253c9e2be55Smrg#
254c9e2be55Smrg# Initializations.
255c9e2be55Smrg#
256c9e2be55Smrgac_default_prefix=/usr/local
257c9e2be55Smrgac_config_libobj_dir=.
258c9e2be55Smrgcross_compiling=no
259c9e2be55Smrgsubdirs=
260c9e2be55SmrgMFLAGS=
261c9e2be55SmrgMAKEFLAGS=
262c9e2be55SmrgSHELL=${CONFIG_SHELL-/bin/sh}
263c9e2be55Smrg
264c9e2be55Smrg# Maximum number of lines to put in a shell here document.
265c9e2be55Smrg# This variable seems obsolete.  It should probably be removed, and
266c9e2be55Smrg# only ac_max_sed_lines should be used.
267c9e2be55Smrg: ${ac_max_here_lines=38}
268c9e2be55Smrg
269c9e2be55Smrg# Identity of this package.
270c9e2be55SmrgPACKAGE_NAME='xmh'
271c9e2be55SmrgPACKAGE_TARNAME='xmh'
272c9e2be55SmrgPACKAGE_VERSION='1.0.1'
273c9e2be55SmrgPACKAGE_STRING='xmh 1.0.1'
274c9e2be55SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
275c9e2be55Smrg
276c9e2be55Smrgac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE XMH_CFLAGS XMH_LIBS APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
277c9e2be55Smrgac_subst_files=''
278c9e2be55Smrg
279c9e2be55Smrg# Initialize some variables set by options.
280c9e2be55Smrgac_init_help=
281c9e2be55Smrgac_init_version=false
282c9e2be55Smrg# The variables have the same names as the options, with
283c9e2be55Smrg# dashes changed to underlines.
284c9e2be55Smrgcache_file=/dev/null
285c9e2be55Smrgexec_prefix=NONE
286c9e2be55Smrgno_create=
287c9e2be55Smrgno_recursion=
288c9e2be55Smrgprefix=NONE
289c9e2be55Smrgprogram_prefix=NONE
290c9e2be55Smrgprogram_suffix=NONE
291c9e2be55Smrgprogram_transform_name=s,x,x,
292c9e2be55Smrgsilent=
293c9e2be55Smrgsite=
294c9e2be55Smrgsrcdir=
295c9e2be55Smrgverbose=
296c9e2be55Smrgx_includes=NONE
297c9e2be55Smrgx_libraries=NONE
298c9e2be55Smrg
299c9e2be55Smrg# Installation directory options.
300c9e2be55Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
301c9e2be55Smrg# and all the variables that are supposed to be based on exec_prefix
302c9e2be55Smrg# by default will actually change.
303c9e2be55Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
304c9e2be55Smrgbindir='${exec_prefix}/bin'
305c9e2be55Smrgsbindir='${exec_prefix}/sbin'
306c9e2be55Smrglibexecdir='${exec_prefix}/libexec'
307c9e2be55Smrgdatadir='${prefix}/share'
308c9e2be55Smrgsysconfdir='${prefix}/etc'
309c9e2be55Smrgsharedstatedir='${prefix}/com'
310c9e2be55Smrglocalstatedir='${prefix}/var'
311c9e2be55Smrglibdir='${exec_prefix}/lib'
312c9e2be55Smrgincludedir='${prefix}/include'
313c9e2be55Smrgoldincludedir='/usr/include'
314c9e2be55Smrginfodir='${prefix}/info'
315c9e2be55Smrgmandir='${prefix}/man'
316c9e2be55Smrg
317c9e2be55Smrgac_prev=
318c9e2be55Smrgfor ac_option
319c9e2be55Smrgdo
320c9e2be55Smrg  # If the previous option needs an argument, assign it.
321c9e2be55Smrg  if test -n "$ac_prev"; then
322c9e2be55Smrg    eval "$ac_prev=\$ac_option"
323c9e2be55Smrg    ac_prev=
324c9e2be55Smrg    continue
325c9e2be55Smrg  fi
326c9e2be55Smrg
327c9e2be55Smrg  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328c9e2be55Smrg
329c9e2be55Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
330c9e2be55Smrg
331c9e2be55Smrg  case $ac_option in
332c9e2be55Smrg
333c9e2be55Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
334c9e2be55Smrg    ac_prev=bindir ;;
335c9e2be55Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336c9e2be55Smrg    bindir=$ac_optarg ;;
337c9e2be55Smrg
338c9e2be55Smrg  -build | --build | --buil | --bui | --bu)
339c9e2be55Smrg    ac_prev=build_alias ;;
340c9e2be55Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341c9e2be55Smrg    build_alias=$ac_optarg ;;
342c9e2be55Smrg
343c9e2be55Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
344c9e2be55Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345c9e2be55Smrg    ac_prev=cache_file ;;
346c9e2be55Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347c9e2be55Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348c9e2be55Smrg    cache_file=$ac_optarg ;;
349c9e2be55Smrg
350c9e2be55Smrg  --config-cache | -C)
351c9e2be55Smrg    cache_file=config.cache ;;
352c9e2be55Smrg
353c9e2be55Smrg  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354c9e2be55Smrg    ac_prev=datadir ;;
355c9e2be55Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356c9e2be55Smrg  | --da=*)
357c9e2be55Smrg    datadir=$ac_optarg ;;
358c9e2be55Smrg
359c9e2be55Smrg  -disable-* | --disable-*)
360c9e2be55Smrg    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361c9e2be55Smrg    # Reject names that are not valid shell variable names.
362c9e2be55Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363c9e2be55Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364c9e2be55Smrg   { (exit 1); exit 1; }; }
365c9e2be55Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366c9e2be55Smrg    eval "enable_$ac_feature=no" ;;
367c9e2be55Smrg
368c9e2be55Smrg  -enable-* | --enable-*)
369c9e2be55Smrg    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370c9e2be55Smrg    # Reject names that are not valid shell variable names.
371c9e2be55Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372c9e2be55Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373c9e2be55Smrg   { (exit 1); exit 1; }; }
374c9e2be55Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375c9e2be55Smrg    case $ac_option in
376c9e2be55Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377c9e2be55Smrg      *) ac_optarg=yes ;;
378c9e2be55Smrg    esac
379c9e2be55Smrg    eval "enable_$ac_feature='$ac_optarg'" ;;
380c9e2be55Smrg
381c9e2be55Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382c9e2be55Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383c9e2be55Smrg  | --exec | --exe | --ex)
384c9e2be55Smrg    ac_prev=exec_prefix ;;
385c9e2be55Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386c9e2be55Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387c9e2be55Smrg  | --exec=* | --exe=* | --ex=*)
388c9e2be55Smrg    exec_prefix=$ac_optarg ;;
389c9e2be55Smrg
390c9e2be55Smrg  -gas | --gas | --ga | --g)
391c9e2be55Smrg    # Obsolete; use --with-gas.
392c9e2be55Smrg    with_gas=yes ;;
393c9e2be55Smrg
394c9e2be55Smrg  -help | --help | --hel | --he | -h)
395c9e2be55Smrg    ac_init_help=long ;;
396c9e2be55Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397c9e2be55Smrg    ac_init_help=recursive ;;
398c9e2be55Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399c9e2be55Smrg    ac_init_help=short ;;
400c9e2be55Smrg
401c9e2be55Smrg  -host | --host | --hos | --ho)
402c9e2be55Smrg    ac_prev=host_alias ;;
403c9e2be55Smrg  -host=* | --host=* | --hos=* | --ho=*)
404c9e2be55Smrg    host_alias=$ac_optarg ;;
405c9e2be55Smrg
406c9e2be55Smrg  -includedir | --includedir | --includedi | --included | --include \
407c9e2be55Smrg  | --includ | --inclu | --incl | --inc)
408c9e2be55Smrg    ac_prev=includedir ;;
409c9e2be55Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410c9e2be55Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
411c9e2be55Smrg    includedir=$ac_optarg ;;
412c9e2be55Smrg
413c9e2be55Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
414c9e2be55Smrg    ac_prev=infodir ;;
415c9e2be55Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416c9e2be55Smrg    infodir=$ac_optarg ;;
417c9e2be55Smrg
418c9e2be55Smrg  -libdir | --libdir | --libdi | --libd)
419c9e2be55Smrg    ac_prev=libdir ;;
420c9e2be55Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
421c9e2be55Smrg    libdir=$ac_optarg ;;
422c9e2be55Smrg
423c9e2be55Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424c9e2be55Smrg  | --libexe | --libex | --libe)
425c9e2be55Smrg    ac_prev=libexecdir ;;
426c9e2be55Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427c9e2be55Smrg  | --libexe=* | --libex=* | --libe=*)
428c9e2be55Smrg    libexecdir=$ac_optarg ;;
429c9e2be55Smrg
430c9e2be55Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
431c9e2be55Smrg  | --localstate | --localstat | --localsta | --localst \
432c9e2be55Smrg  | --locals | --local | --loca | --loc | --lo)
433c9e2be55Smrg    ac_prev=localstatedir ;;
434c9e2be55Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435c9e2be55Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436c9e2be55Smrg  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437c9e2be55Smrg    localstatedir=$ac_optarg ;;
438c9e2be55Smrg
439c9e2be55Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440c9e2be55Smrg    ac_prev=mandir ;;
441c9e2be55Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442c9e2be55Smrg    mandir=$ac_optarg ;;
443c9e2be55Smrg
444c9e2be55Smrg  -nfp | --nfp | --nf)
445c9e2be55Smrg    # Obsolete; use --without-fp.
446c9e2be55Smrg    with_fp=no ;;
447c9e2be55Smrg
448c9e2be55Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449c9e2be55Smrg  | --no-cr | --no-c | -n)
450c9e2be55Smrg    no_create=yes ;;
451c9e2be55Smrg
452c9e2be55Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453c9e2be55Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454c9e2be55Smrg    no_recursion=yes ;;
455c9e2be55Smrg
456c9e2be55Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457c9e2be55Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458c9e2be55Smrg  | --oldin | --oldi | --old | --ol | --o)
459c9e2be55Smrg    ac_prev=oldincludedir ;;
460c9e2be55Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461c9e2be55Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462c9e2be55Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463c9e2be55Smrg    oldincludedir=$ac_optarg ;;
464c9e2be55Smrg
465c9e2be55Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466c9e2be55Smrg    ac_prev=prefix ;;
467c9e2be55Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468c9e2be55Smrg    prefix=$ac_optarg ;;
469c9e2be55Smrg
470c9e2be55Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
471c9e2be55Smrg  | --program-pre | --program-pr | --program-p)
472c9e2be55Smrg    ac_prev=program_prefix ;;
473c9e2be55Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
474c9e2be55Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475c9e2be55Smrg    program_prefix=$ac_optarg ;;
476c9e2be55Smrg
477c9e2be55Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
478c9e2be55Smrg  | --program-suf | --program-su | --program-s)
479c9e2be55Smrg    ac_prev=program_suffix ;;
480c9e2be55Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
481c9e2be55Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482c9e2be55Smrg    program_suffix=$ac_optarg ;;
483c9e2be55Smrg
484c9e2be55Smrg  -program-transform-name | --program-transform-name \
485c9e2be55Smrg  | --program-transform-nam | --program-transform-na \
486c9e2be55Smrg  | --program-transform-n | --program-transform- \
487c9e2be55Smrg  | --program-transform | --program-transfor \
488c9e2be55Smrg  | --program-transfo | --program-transf \
489c9e2be55Smrg  | --program-trans | --program-tran \
490c9e2be55Smrg  | --progr-tra | --program-tr | --program-t)
491c9e2be55Smrg    ac_prev=program_transform_name ;;
492c9e2be55Smrg  -program-transform-name=* | --program-transform-name=* \
493c9e2be55Smrg  | --program-transform-nam=* | --program-transform-na=* \
494c9e2be55Smrg  | --program-transform-n=* | --program-transform-=* \
495c9e2be55Smrg  | --program-transform=* | --program-transfor=* \
496c9e2be55Smrg  | --program-transfo=* | --program-transf=* \
497c9e2be55Smrg  | --program-trans=* | --program-tran=* \
498c9e2be55Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
499c9e2be55Smrg    program_transform_name=$ac_optarg ;;
500c9e2be55Smrg
501c9e2be55Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502c9e2be55Smrg  | -silent | --silent | --silen | --sile | --sil)
503c9e2be55Smrg    silent=yes ;;
504c9e2be55Smrg
505c9e2be55Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506c9e2be55Smrg    ac_prev=sbindir ;;
507c9e2be55Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508c9e2be55Smrg  | --sbi=* | --sb=*)
509c9e2be55Smrg    sbindir=$ac_optarg ;;
510c9e2be55Smrg
511c9e2be55Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
512c9e2be55Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513c9e2be55Smrg  | --sharedst | --shareds | --shared | --share | --shar \
514c9e2be55Smrg  | --sha | --sh)
515c9e2be55Smrg    ac_prev=sharedstatedir ;;
516c9e2be55Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517c9e2be55Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518c9e2be55Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519c9e2be55Smrg  | --sha=* | --sh=*)
520c9e2be55Smrg    sharedstatedir=$ac_optarg ;;
521c9e2be55Smrg
522c9e2be55Smrg  -site | --site | --sit)
523c9e2be55Smrg    ac_prev=site ;;
524c9e2be55Smrg  -site=* | --site=* | --sit=*)
525c9e2be55Smrg    site=$ac_optarg ;;
526c9e2be55Smrg
527c9e2be55Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528c9e2be55Smrg    ac_prev=srcdir ;;
529c9e2be55Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530c9e2be55Smrg    srcdir=$ac_optarg ;;
531c9e2be55Smrg
532c9e2be55Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533c9e2be55Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
534c9e2be55Smrg    ac_prev=sysconfdir ;;
535c9e2be55Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536c9e2be55Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537c9e2be55Smrg    sysconfdir=$ac_optarg ;;
538c9e2be55Smrg
539c9e2be55Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
540c9e2be55Smrg    ac_prev=target_alias ;;
541c9e2be55Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542c9e2be55Smrg    target_alias=$ac_optarg ;;
543c9e2be55Smrg
544c9e2be55Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
545c9e2be55Smrg    verbose=yes ;;
546c9e2be55Smrg
547c9e2be55Smrg  -version | --version | --versio | --versi | --vers | -V)
548c9e2be55Smrg    ac_init_version=: ;;
549c9e2be55Smrg
550c9e2be55Smrg  -with-* | --with-*)
551c9e2be55Smrg    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552c9e2be55Smrg    # Reject names that are not valid shell variable names.
553c9e2be55Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554c9e2be55Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
555c9e2be55Smrg   { (exit 1); exit 1; }; }
556c9e2be55Smrg    ac_package=`echo $ac_package| sed 's/-/_/g'`
557c9e2be55Smrg    case $ac_option in
558c9e2be55Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559c9e2be55Smrg      *) ac_optarg=yes ;;
560c9e2be55Smrg    esac
561c9e2be55Smrg    eval "with_$ac_package='$ac_optarg'" ;;
562c9e2be55Smrg
563c9e2be55Smrg  -without-* | --without-*)
564c9e2be55Smrg    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565c9e2be55Smrg    # Reject names that are not valid shell variable names.
566c9e2be55Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567c9e2be55Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
568c9e2be55Smrg   { (exit 1); exit 1; }; }
569c9e2be55Smrg    ac_package=`echo $ac_package | sed 's/-/_/g'`
570c9e2be55Smrg    eval "with_$ac_package=no" ;;
571c9e2be55Smrg
572c9e2be55Smrg  --x)
573c9e2be55Smrg    # Obsolete; use --with-x.
574c9e2be55Smrg    with_x=yes ;;
575c9e2be55Smrg
576c9e2be55Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577c9e2be55Smrg  | --x-incl | --x-inc | --x-in | --x-i)
578c9e2be55Smrg    ac_prev=x_includes ;;
579c9e2be55Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580c9e2be55Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581c9e2be55Smrg    x_includes=$ac_optarg ;;
582c9e2be55Smrg
583c9e2be55Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
584c9e2be55Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585c9e2be55Smrg    ac_prev=x_libraries ;;
586c9e2be55Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587c9e2be55Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588c9e2be55Smrg    x_libraries=$ac_optarg ;;
589c9e2be55Smrg
590c9e2be55Smrg  -*) { echo "$as_me: error: unrecognized option: $ac_option
591c9e2be55SmrgTry \`$0 --help' for more information." >&2
592c9e2be55Smrg   { (exit 1); exit 1; }; }
593c9e2be55Smrg    ;;
594c9e2be55Smrg
595c9e2be55Smrg  *=*)
596c9e2be55Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597c9e2be55Smrg    # Reject names that are not valid shell variable names.
598c9e2be55Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599c9e2be55Smrg      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600c9e2be55Smrg   { (exit 1); exit 1; }; }
601c9e2be55Smrg    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602c9e2be55Smrg    eval "$ac_envvar='$ac_optarg'"
603c9e2be55Smrg    export $ac_envvar ;;
604c9e2be55Smrg
605c9e2be55Smrg  *)
606c9e2be55Smrg    # FIXME: should be removed in autoconf 3.0.
607c9e2be55Smrg    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608c9e2be55Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609c9e2be55Smrg      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610c9e2be55Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611c9e2be55Smrg    ;;
612c9e2be55Smrg
613c9e2be55Smrg  esac
614c9e2be55Smrgdone
615c9e2be55Smrg
616c9e2be55Smrgif test -n "$ac_prev"; then
617c9e2be55Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618c9e2be55Smrg  { echo "$as_me: error: missing argument to $ac_option" >&2
619c9e2be55Smrg   { (exit 1); exit 1; }; }
620c9e2be55Smrgfi
621c9e2be55Smrg
622c9e2be55Smrg# Be sure to have absolute paths.
623c9e2be55Smrgfor ac_var in exec_prefix prefix
624c9e2be55Smrgdo
625c9e2be55Smrg  eval ac_val=$`echo $ac_var`
626c9e2be55Smrg  case $ac_val in
627c9e2be55Smrg    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628c9e2be55Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629c9e2be55Smrg   { (exit 1); exit 1; }; };;
630c9e2be55Smrg  esac
631c9e2be55Smrgdone
632c9e2be55Smrg
633c9e2be55Smrg# Be sure to have absolute paths.
634c9e2be55Smrgfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635c9e2be55Smrg	      localstatedir libdir includedir oldincludedir infodir mandir
636c9e2be55Smrgdo
637c9e2be55Smrg  eval ac_val=$`echo $ac_var`
638c9e2be55Smrg  case $ac_val in
639c9e2be55Smrg    [\\/$]* | ?:[\\/]* ) ;;
640c9e2be55Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641c9e2be55Smrg   { (exit 1); exit 1; }; };;
642c9e2be55Smrg  esac
643c9e2be55Smrgdone
644c9e2be55Smrg
645c9e2be55Smrg# There might be people who depend on the old broken behavior: `$host'
646c9e2be55Smrg# used to hold the argument of --host etc.
647c9e2be55Smrg# FIXME: To remove some day.
648c9e2be55Smrgbuild=$build_alias
649c9e2be55Smrghost=$host_alias
650c9e2be55Smrgtarget=$target_alias
651c9e2be55Smrg
652c9e2be55Smrg# FIXME: To remove some day.
653c9e2be55Smrgif test "x$host_alias" != x; then
654c9e2be55Smrg  if test "x$build_alias" = x; then
655c9e2be55Smrg    cross_compiling=maybe
656c9e2be55Smrg    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657c9e2be55Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
658c9e2be55Smrg  elif test "x$build_alias" != "x$host_alias"; then
659c9e2be55Smrg    cross_compiling=yes
660c9e2be55Smrg  fi
661c9e2be55Smrgfi
662c9e2be55Smrg
663c9e2be55Smrgac_tool_prefix=
664c9e2be55Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
665c9e2be55Smrg
666c9e2be55Smrgtest "$silent" = yes && exec 6>/dev/null
667c9e2be55Smrg
668c9e2be55Smrg
669c9e2be55Smrg# Find the source files, if location was not specified.
670c9e2be55Smrgif test -z "$srcdir"; then
671c9e2be55Smrg  ac_srcdir_defaulted=yes
672c9e2be55Smrg  # Try the directory containing this script, then its parent.
673c9e2be55Smrg  ac_confdir=`(dirname "$0") 2>/dev/null ||
674c9e2be55Smrg$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675c9e2be55Smrg	 X"$0" : 'X\(//\)[^/]' \| \
676c9e2be55Smrg	 X"$0" : 'X\(//\)$' \| \
677c9e2be55Smrg	 X"$0" : 'X\(/\)' \| \
678c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
679c9e2be55Smrgecho X"$0" |
680c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
683c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
684c9e2be55Smrg  	  s/.*/./; q'`
685c9e2be55Smrg  srcdir=$ac_confdir
686c9e2be55Smrg  if test ! -r $srcdir/$ac_unique_file; then
687c9e2be55Smrg    srcdir=..
688c9e2be55Smrg  fi
689c9e2be55Smrgelse
690c9e2be55Smrg  ac_srcdir_defaulted=no
691c9e2be55Smrgfi
692c9e2be55Smrgif test ! -r $srcdir/$ac_unique_file; then
693c9e2be55Smrg  if test "$ac_srcdir_defaulted" = yes; then
694c9e2be55Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695c9e2be55Smrg   { (exit 1); exit 1; }; }
696c9e2be55Smrg  else
697c9e2be55Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698c9e2be55Smrg   { (exit 1); exit 1; }; }
699c9e2be55Smrg  fi
700c9e2be55Smrgfi
701c9e2be55Smrg(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702c9e2be55Smrg  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703c9e2be55Smrg   { (exit 1); exit 1; }; }
704c9e2be55Smrgsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705c9e2be55Smrgac_env_build_alias_set=${build_alias+set}
706c9e2be55Smrgac_env_build_alias_value=$build_alias
707c9e2be55Smrgac_cv_env_build_alias_set=${build_alias+set}
708c9e2be55Smrgac_cv_env_build_alias_value=$build_alias
709c9e2be55Smrgac_env_host_alias_set=${host_alias+set}
710c9e2be55Smrgac_env_host_alias_value=$host_alias
711c9e2be55Smrgac_cv_env_host_alias_set=${host_alias+set}
712c9e2be55Smrgac_cv_env_host_alias_value=$host_alias
713c9e2be55Smrgac_env_target_alias_set=${target_alias+set}
714c9e2be55Smrgac_env_target_alias_value=$target_alias
715c9e2be55Smrgac_cv_env_target_alias_set=${target_alias+set}
716c9e2be55Smrgac_cv_env_target_alias_value=$target_alias
717c9e2be55Smrgac_env_CC_set=${CC+set}
718c9e2be55Smrgac_env_CC_value=$CC
719c9e2be55Smrgac_cv_env_CC_set=${CC+set}
720c9e2be55Smrgac_cv_env_CC_value=$CC
721c9e2be55Smrgac_env_CFLAGS_set=${CFLAGS+set}
722c9e2be55Smrgac_env_CFLAGS_value=$CFLAGS
723c9e2be55Smrgac_cv_env_CFLAGS_set=${CFLAGS+set}
724c9e2be55Smrgac_cv_env_CFLAGS_value=$CFLAGS
725c9e2be55Smrgac_env_LDFLAGS_set=${LDFLAGS+set}
726c9e2be55Smrgac_env_LDFLAGS_value=$LDFLAGS
727c9e2be55Smrgac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728c9e2be55Smrgac_cv_env_LDFLAGS_value=$LDFLAGS
729c9e2be55Smrgac_env_CPPFLAGS_set=${CPPFLAGS+set}
730c9e2be55Smrgac_env_CPPFLAGS_value=$CPPFLAGS
731c9e2be55Smrgac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732c9e2be55Smrgac_cv_env_CPPFLAGS_value=$CPPFLAGS
733c9e2be55Smrgac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
734c9e2be55Smrgac_env_PKG_CONFIG_value=$PKG_CONFIG
735c9e2be55Smrgac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
736c9e2be55Smrgac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
737c9e2be55Smrgac_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
738c9e2be55Smrgac_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
739c9e2be55Smrgac_cv_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
740c9e2be55Smrgac_cv_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
741c9e2be55Smrgac_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
742c9e2be55Smrgac_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
743c9e2be55Smrgac_cv_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
744c9e2be55Smrgac_cv_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
745c9e2be55Smrgac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
746c9e2be55Smrgac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
747c9e2be55Smrgac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
748c9e2be55Smrgac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
749c9e2be55Smrgac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
750c9e2be55Smrgac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
751c9e2be55Smrgac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
752c9e2be55Smrgac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
753c9e2be55Smrg
754c9e2be55Smrg#
755c9e2be55Smrg# Report the --help message.
756c9e2be55Smrg#
757c9e2be55Smrgif test "$ac_init_help" = "long"; then
758c9e2be55Smrg  # Omit some internal or obsolete options to make the list less imposing.
759c9e2be55Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
760c9e2be55Smrg  cat <<_ACEOF
761c9e2be55Smrg\`configure' configures xmh 1.0.1 to adapt to many kinds of systems.
762c9e2be55Smrg
763c9e2be55SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
764c9e2be55Smrg
765c9e2be55SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
766c9e2be55SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
767c9e2be55Smrg
768c9e2be55SmrgDefaults for the options are specified in brackets.
769c9e2be55Smrg
770c9e2be55SmrgConfiguration:
771c9e2be55Smrg  -h, --help              display this help and exit
772c9e2be55Smrg      --help=short        display options specific to this package
773c9e2be55Smrg      --help=recursive    display the short help of all the included packages
774c9e2be55Smrg  -V, --version           display version information and exit
775c9e2be55Smrg  -q, --quiet, --silent   do not print \`checking...' messages
776c9e2be55Smrg      --cache-file=FILE   cache test results in FILE [disabled]
777c9e2be55Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
778c9e2be55Smrg  -n, --no-create         do not create output files
779c9e2be55Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
780c9e2be55Smrg
781c9e2be55Smrg_ACEOF
782c9e2be55Smrg
783c9e2be55Smrg  cat <<_ACEOF
784c9e2be55SmrgInstallation directories:
785c9e2be55Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
786c9e2be55Smrg			  [$ac_default_prefix]
787c9e2be55Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
788c9e2be55Smrg			  [PREFIX]
789c9e2be55Smrg
790c9e2be55SmrgBy default, \`make install' will install all the files in
791c9e2be55Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
792c9e2be55Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
793c9e2be55Smrgfor instance \`--prefix=\$HOME'.
794c9e2be55Smrg
795c9e2be55SmrgFor better control, use the options below.
796c9e2be55Smrg
797c9e2be55SmrgFine tuning of the installation directories:
798c9e2be55Smrg  --bindir=DIR           user executables [EPREFIX/bin]
799c9e2be55Smrg  --sbindir=DIR          system admin executables [EPREFIX/sbin]
800c9e2be55Smrg  --libexecdir=DIR       program executables [EPREFIX/libexec]
801c9e2be55Smrg  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
802c9e2be55Smrg  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
803c9e2be55Smrg  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
804c9e2be55Smrg  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
805c9e2be55Smrg  --libdir=DIR           object code libraries [EPREFIX/lib]
806c9e2be55Smrg  --includedir=DIR       C header files [PREFIX/include]
807c9e2be55Smrg  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
808c9e2be55Smrg  --infodir=DIR          info documentation [PREFIX/info]
809c9e2be55Smrg  --mandir=DIR           man documentation [PREFIX/man]
810c9e2be55Smrg_ACEOF
811c9e2be55Smrg
812c9e2be55Smrg  cat <<\_ACEOF
813c9e2be55Smrg
814c9e2be55SmrgProgram names:
815c9e2be55Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
816c9e2be55Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
817c9e2be55Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
818c9e2be55Smrg
819c9e2be55SmrgSystem types:
820c9e2be55Smrg  --build=BUILD     configure for building on BUILD [guessed]
821c9e2be55Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
822c9e2be55Smrg_ACEOF
823c9e2be55Smrgfi
824c9e2be55Smrg
825c9e2be55Smrgif test -n "$ac_init_help"; then
826c9e2be55Smrg  case $ac_init_help in
827c9e2be55Smrg     short | recursive ) echo "Configuration of xmh 1.0.1:";;
828c9e2be55Smrg   esac
829c9e2be55Smrg  cat <<\_ACEOF
830c9e2be55Smrg
831c9e2be55SmrgOptional Features:
832c9e2be55Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
833c9e2be55Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
834c9e2be55Smrg  --enable-maintainer-mode enable make rules and dependencies not useful
835c9e2be55Smrg                          (and sometimes confusing) to the casual installer
836c9e2be55Smrg  --disable-dependency-tracking Speeds up one-time builds
837c9e2be55Smrg  --enable-dependency-tracking  Do not reject slow dependency extractors
838c9e2be55Smrg  --enable-xprint         Enable XPrint support
839c9e2be55Smrg
840c9e2be55SmrgOptional Packages:
841c9e2be55Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842c9e2be55Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843c9e2be55Smrg  --with-release-version=STRING
844c9e2be55Smrg                          Use release version string in package name
845c9e2be55Smrg
846c9e2be55SmrgSome influential environment variables:
847c9e2be55Smrg  CC          C compiler command
848c9e2be55Smrg  CFLAGS      C compiler flags
849c9e2be55Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
850c9e2be55Smrg              nonstandard directory <lib dir>
851c9e2be55Smrg  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
852c9e2be55Smrg              headers in a nonstandard directory <include dir>
853c9e2be55Smrg  PKG_CONFIG  path to pkg-config utility
854c9e2be55Smrg  TMP_XAW_CFLAGS
855c9e2be55Smrg              C compiler flags for TMP_XAW, overriding pkg-config
856c9e2be55Smrg  TMP_XAW_LIBS
857c9e2be55Smrg              linker flags for TMP_XAW, overriding pkg-config
858c9e2be55Smrg  APPDEFS_CFLAGS
859c9e2be55Smrg              C compiler flags for APPDEFS, overriding pkg-config
860c9e2be55Smrg  APPDEFS_LIBS
861c9e2be55Smrg              linker flags for APPDEFS, overriding pkg-config
862c9e2be55Smrg
863c9e2be55SmrgUse these variables to override the choices made by `configure' or to help
864c9e2be55Smrgit to find libraries and programs with nonstandard names/locations.
865c9e2be55Smrg
866c9e2be55SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
867c9e2be55Smrg_ACEOF
868c9e2be55Smrgfi
869c9e2be55Smrg
870c9e2be55Smrgif test "$ac_init_help" = "recursive"; then
871c9e2be55Smrg  # If there are subdirs, report their specific --help.
872c9e2be55Smrg  ac_popdir=`pwd`
873c9e2be55Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874c9e2be55Smrg    test -d $ac_dir || continue
875c9e2be55Smrg    ac_builddir=.
876c9e2be55Smrg
877c9e2be55Smrgif test "$ac_dir" != .; then
878c9e2be55Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879c9e2be55Smrg  # A "../" for each directory in $ac_dir_suffix.
880c9e2be55Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881c9e2be55Smrgelse
882c9e2be55Smrg  ac_dir_suffix= ac_top_builddir=
883c9e2be55Smrgfi
884c9e2be55Smrg
885c9e2be55Smrgcase $srcdir in
886c9e2be55Smrg  .)  # No --srcdir option.  We are building in place.
887c9e2be55Smrg    ac_srcdir=.
888c9e2be55Smrg    if test -z "$ac_top_builddir"; then
889c9e2be55Smrg       ac_top_srcdir=.
890c9e2be55Smrg    else
891c9e2be55Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892c9e2be55Smrg    fi ;;
893c9e2be55Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
894c9e2be55Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
895c9e2be55Smrg    ac_top_srcdir=$srcdir ;;
896c9e2be55Smrg  *) # Relative path.
897c9e2be55Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898c9e2be55Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
899c9e2be55Smrgesac
900c9e2be55Smrg
901c9e2be55Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
902c9e2be55Smrg# the directories may not exist.
903c9e2be55Smrgcase `pwd` in
904c9e2be55Smrg.) ac_abs_builddir="$ac_dir";;
905c9e2be55Smrg*)
906c9e2be55Smrg  case "$ac_dir" in
907c9e2be55Smrg  .) ac_abs_builddir=`pwd`;;
908c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909c9e2be55Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
910c9e2be55Smrg  esac;;
911c9e2be55Smrgesac
912c9e2be55Smrgcase $ac_abs_builddir in
913c9e2be55Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
914c9e2be55Smrg*)
915c9e2be55Smrg  case ${ac_top_builddir}. in
916c9e2be55Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
917c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918c9e2be55Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919c9e2be55Smrg  esac;;
920c9e2be55Smrgesac
921c9e2be55Smrgcase $ac_abs_builddir in
922c9e2be55Smrg.) ac_abs_srcdir=$ac_srcdir;;
923c9e2be55Smrg*)
924c9e2be55Smrg  case $ac_srcdir in
925c9e2be55Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
926c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927c9e2be55Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928c9e2be55Smrg  esac;;
929c9e2be55Smrgesac
930c9e2be55Smrgcase $ac_abs_builddir in
931c9e2be55Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
932c9e2be55Smrg*)
933c9e2be55Smrg  case $ac_top_srcdir in
934c9e2be55Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
935c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936c9e2be55Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937c9e2be55Smrg  esac;;
938c9e2be55Smrgesac
939c9e2be55Smrg
940c9e2be55Smrg    cd $ac_dir
941c9e2be55Smrg    # Check for guested configure; otherwise get Cygnus style configure.
942c9e2be55Smrg    if test -f $ac_srcdir/configure.gnu; then
943c9e2be55Smrg      echo
944c9e2be55Smrg      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945c9e2be55Smrg    elif test -f $ac_srcdir/configure; then
946c9e2be55Smrg      echo
947c9e2be55Smrg      $SHELL $ac_srcdir/configure  --help=recursive
948c9e2be55Smrg    elif test -f $ac_srcdir/configure.ac ||
949c9e2be55Smrg	   test -f $ac_srcdir/configure.in; then
950c9e2be55Smrg      echo
951c9e2be55Smrg      $ac_configure --help
952c9e2be55Smrg    else
953c9e2be55Smrg      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954c9e2be55Smrg    fi
955c9e2be55Smrg    cd $ac_popdir
956c9e2be55Smrg  done
957c9e2be55Smrgfi
958c9e2be55Smrg
959c9e2be55Smrgtest -n "$ac_init_help" && exit 0
960c9e2be55Smrgif $ac_init_version; then
961c9e2be55Smrg  cat <<\_ACEOF
962c9e2be55Smrgxmh configure 1.0.1
963c9e2be55Smrggenerated by GNU Autoconf 2.59
964c9e2be55Smrg
965c9e2be55SmrgCopyright (C) 2003 Free Software Foundation, Inc.
966c9e2be55SmrgThis configure script is free software; the Free Software Foundation
967c9e2be55Smrggives unlimited permission to copy, distribute and modify it.
968c9e2be55Smrg_ACEOF
969c9e2be55Smrg  exit 0
970c9e2be55Smrgfi
971c9e2be55Smrgexec 5>config.log
972c9e2be55Smrgcat >&5 <<_ACEOF
973c9e2be55SmrgThis file contains any messages produced by compilers while
974c9e2be55Smrgrunning configure, to aid debugging if configure makes a mistake.
975c9e2be55Smrg
976c9e2be55SmrgIt was created by xmh $as_me 1.0.1, which was
977c9e2be55Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
978c9e2be55Smrg
979c9e2be55Smrg  $ $0 $@
980c9e2be55Smrg
981c9e2be55Smrg_ACEOF
982c9e2be55Smrg{
983c9e2be55Smrgcat <<_ASUNAME
984c9e2be55Smrg## --------- ##
985c9e2be55Smrg## Platform. ##
986c9e2be55Smrg## --------- ##
987c9e2be55Smrg
988c9e2be55Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989c9e2be55Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
990c9e2be55Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
991c9e2be55Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
992c9e2be55Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
993c9e2be55Smrg
994c9e2be55Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995c9e2be55Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
996c9e2be55Smrg
997c9e2be55Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
998c9e2be55Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
999c9e2be55Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000c9e2be55Smrghostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1001c9e2be55Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1002c9e2be55Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1003c9e2be55Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1004c9e2be55Smrg
1005c9e2be55Smrg_ASUNAME
1006c9e2be55Smrg
1007c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008c9e2be55Smrgfor as_dir in $PATH
1009c9e2be55Smrgdo
1010c9e2be55Smrg  IFS=$as_save_IFS
1011c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1012c9e2be55Smrg  echo "PATH: $as_dir"
1013c9e2be55Smrgdone
1014c9e2be55Smrg
1015c9e2be55Smrg} >&5
1016c9e2be55Smrg
1017c9e2be55Smrgcat >&5 <<_ACEOF
1018c9e2be55Smrg
1019c9e2be55Smrg
1020c9e2be55Smrg## ----------- ##
1021c9e2be55Smrg## Core tests. ##
1022c9e2be55Smrg## ----------- ##
1023c9e2be55Smrg
1024c9e2be55Smrg_ACEOF
1025c9e2be55Smrg
1026c9e2be55Smrg
1027c9e2be55Smrg# Keep a trace of the command line.
1028c9e2be55Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1029c9e2be55Smrg# Strip out --silent because we don't want to record it for future runs.
1030c9e2be55Smrg# Also quote any args containing shell meta-characters.
1031c9e2be55Smrg# Make two passes to allow for proper duplicate-argument suppression.
1032c9e2be55Smrgac_configure_args=
1033c9e2be55Smrgac_configure_args0=
1034c9e2be55Smrgac_configure_args1=
1035c9e2be55Smrgac_sep=
1036c9e2be55Smrgac_must_keep_next=false
1037c9e2be55Smrgfor ac_pass in 1 2
1038c9e2be55Smrgdo
1039c9e2be55Smrg  for ac_arg
1040c9e2be55Smrg  do
1041c9e2be55Smrg    case $ac_arg in
1042c9e2be55Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043c9e2be55Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044c9e2be55Smrg    | -silent | --silent | --silen | --sile | --sil)
1045c9e2be55Smrg      continue ;;
1046c9e2be55Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047c9e2be55Smrg      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048c9e2be55Smrg    esac
1049c9e2be55Smrg    case $ac_pass in
1050c9e2be55Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051c9e2be55Smrg    2)
1052c9e2be55Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053c9e2be55Smrg      if test $ac_must_keep_next = true; then
1054c9e2be55Smrg	ac_must_keep_next=false # Got value, back to normal.
1055c9e2be55Smrg      else
1056c9e2be55Smrg	case $ac_arg in
1057c9e2be55Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1058c9e2be55Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059c9e2be55Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060c9e2be55Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1061c9e2be55Smrg	    case "$ac_configure_args0 " in
1062c9e2be55Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063c9e2be55Smrg	    esac
1064c9e2be55Smrg	    ;;
1065c9e2be55Smrg	  -* ) ac_must_keep_next=true ;;
1066c9e2be55Smrg	esac
1067c9e2be55Smrg      fi
1068c9e2be55Smrg      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069c9e2be55Smrg      # Get rid of the leading space.
1070c9e2be55Smrg      ac_sep=" "
1071c9e2be55Smrg      ;;
1072c9e2be55Smrg    esac
1073c9e2be55Smrg  done
1074c9e2be55Smrgdone
1075c9e2be55Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076c9e2be55Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077c9e2be55Smrg
1078c9e2be55Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1079c9e2be55Smrg# config.log.  We remove comments because anyway the quotes in there
1080c9e2be55Smrg# would cause problems or look ugly.
1081c9e2be55Smrg# WARNING: Be sure not to use single quotes in there, as some shells,
1082c9e2be55Smrg# such as our DU 5.0 friend, will then `close' the trap.
1083c9e2be55Smrgtrap 'exit_status=$?
1084c9e2be55Smrg  # Save into config.log some information that might help in debugging.
1085c9e2be55Smrg  {
1086c9e2be55Smrg    echo
1087c9e2be55Smrg
1088c9e2be55Smrg    cat <<\_ASBOX
1089c9e2be55Smrg## ---------------- ##
1090c9e2be55Smrg## Cache variables. ##
1091c9e2be55Smrg## ---------------- ##
1092c9e2be55Smrg_ASBOX
1093c9e2be55Smrg    echo
1094c9e2be55Smrg    # The following way of writing the cache mishandles newlines in values,
1095c9e2be55Smrg{
1096c9e2be55Smrg  (set) 2>&1 |
1097c9e2be55Smrg    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098c9e2be55Smrg    *ac_space=\ *)
1099c9e2be55Smrg      sed -n \
1100c9e2be55Smrg	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101c9e2be55Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102c9e2be55Smrg      ;;
1103c9e2be55Smrg    *)
1104c9e2be55Smrg      sed -n \
1105c9e2be55Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106c9e2be55Smrg      ;;
1107c9e2be55Smrg    esac;
1108c9e2be55Smrg}
1109c9e2be55Smrg    echo
1110c9e2be55Smrg
1111c9e2be55Smrg    cat <<\_ASBOX
1112c9e2be55Smrg## ----------------- ##
1113c9e2be55Smrg## Output variables. ##
1114c9e2be55Smrg## ----------------- ##
1115c9e2be55Smrg_ASBOX
1116c9e2be55Smrg    echo
1117c9e2be55Smrg    for ac_var in $ac_subst_vars
1118c9e2be55Smrg    do
1119c9e2be55Smrg      eval ac_val=$`echo $ac_var`
1120c9e2be55Smrg      echo "$ac_var='"'"'$ac_val'"'"'"
1121c9e2be55Smrg    done | sort
1122c9e2be55Smrg    echo
1123c9e2be55Smrg
1124c9e2be55Smrg    if test -n "$ac_subst_files"; then
1125c9e2be55Smrg      cat <<\_ASBOX
1126c9e2be55Smrg## ------------- ##
1127c9e2be55Smrg## Output files. ##
1128c9e2be55Smrg## ------------- ##
1129c9e2be55Smrg_ASBOX
1130c9e2be55Smrg      echo
1131c9e2be55Smrg      for ac_var in $ac_subst_files
1132c9e2be55Smrg      do
1133c9e2be55Smrg	eval ac_val=$`echo $ac_var`
1134c9e2be55Smrg	echo "$ac_var='"'"'$ac_val'"'"'"
1135c9e2be55Smrg      done | sort
1136c9e2be55Smrg      echo
1137c9e2be55Smrg    fi
1138c9e2be55Smrg
1139c9e2be55Smrg    if test -s confdefs.h; then
1140c9e2be55Smrg      cat <<\_ASBOX
1141c9e2be55Smrg## ----------- ##
1142c9e2be55Smrg## confdefs.h. ##
1143c9e2be55Smrg## ----------- ##
1144c9e2be55Smrg_ASBOX
1145c9e2be55Smrg      echo
1146c9e2be55Smrg      sed "/^$/d" confdefs.h | sort
1147c9e2be55Smrg      echo
1148c9e2be55Smrg    fi
1149c9e2be55Smrg    test "$ac_signal" != 0 &&
1150c9e2be55Smrg      echo "$as_me: caught signal $ac_signal"
1151c9e2be55Smrg    echo "$as_me: exit $exit_status"
1152c9e2be55Smrg  } >&5
1153c9e2be55Smrg  rm -f core *.core &&
1154c9e2be55Smrg  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155c9e2be55Smrg    exit $exit_status
1156c9e2be55Smrg     ' 0
1157c9e2be55Smrgfor ac_signal in 1 2 13 15; do
1158c9e2be55Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159c9e2be55Smrgdone
1160c9e2be55Smrgac_signal=0
1161c9e2be55Smrg
1162c9e2be55Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1163c9e2be55Smrgrm -rf conftest* confdefs.h
1164c9e2be55Smrg# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165c9e2be55Smrgecho >confdefs.h
1166c9e2be55Smrg
1167c9e2be55Smrg# Predefined preprocessor variables.
1168c9e2be55Smrg
1169c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1170c9e2be55Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1171c9e2be55Smrg_ACEOF
1172c9e2be55Smrg
1173c9e2be55Smrg
1174c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1175c9e2be55Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176c9e2be55Smrg_ACEOF
1177c9e2be55Smrg
1178c9e2be55Smrg
1179c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1180c9e2be55Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1181c9e2be55Smrg_ACEOF
1182c9e2be55Smrg
1183c9e2be55Smrg
1184c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1185c9e2be55Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1186c9e2be55Smrg_ACEOF
1187c9e2be55Smrg
1188c9e2be55Smrg
1189c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1190c9e2be55Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191c9e2be55Smrg_ACEOF
1192c9e2be55Smrg
1193c9e2be55Smrg
1194c9e2be55Smrg# Let the site file select an alternate cache file if it wants to.
1195c9e2be55Smrg# Prefer explicitly selected file to automatically selected ones.
1196c9e2be55Smrgif test -z "$CONFIG_SITE"; then
1197c9e2be55Smrg  if test "x$prefix" != xNONE; then
1198c9e2be55Smrg    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199c9e2be55Smrg  else
1200c9e2be55Smrg    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201c9e2be55Smrg  fi
1202c9e2be55Smrgfi
1203c9e2be55Smrgfor ac_site_file in $CONFIG_SITE; do
1204c9e2be55Smrg  if test -r "$ac_site_file"; then
1205c9e2be55Smrg    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206c9e2be55Smrgecho "$as_me: loading site script $ac_site_file" >&6;}
1207c9e2be55Smrg    sed 's/^/| /' "$ac_site_file" >&5
1208c9e2be55Smrg    . "$ac_site_file"
1209c9e2be55Smrg  fi
1210c9e2be55Smrgdone
1211c9e2be55Smrg
1212c9e2be55Smrgif test -r "$cache_file"; then
1213c9e2be55Smrg  # Some versions of bash will fail to source /dev/null (special
1214c9e2be55Smrg  # files actually), so we avoid doing that.
1215c9e2be55Smrg  if test -f "$cache_file"; then
1216c9e2be55Smrg    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217c9e2be55Smrgecho "$as_me: loading cache $cache_file" >&6;}
1218c9e2be55Smrg    case $cache_file in
1219c9e2be55Smrg      [\\/]* | ?:[\\/]* ) . $cache_file;;
1220c9e2be55Smrg      *)                      . ./$cache_file;;
1221c9e2be55Smrg    esac
1222c9e2be55Smrg  fi
1223c9e2be55Smrgelse
1224c9e2be55Smrg  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225c9e2be55Smrgecho "$as_me: creating cache $cache_file" >&6;}
1226c9e2be55Smrg  >$cache_file
1227c9e2be55Smrgfi
1228c9e2be55Smrg
1229c9e2be55Smrg# Check that the precious variables saved in the cache have kept the same
1230c9e2be55Smrg# value.
1231c9e2be55Smrgac_cache_corrupted=false
1232c9e2be55Smrgfor ac_var in `(set) 2>&1 |
1233c9e2be55Smrg	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234c9e2be55Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235c9e2be55Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1236c9e2be55Smrg  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237c9e2be55Smrg  eval ac_new_val="\$ac_env_${ac_var}_value"
1238c9e2be55Smrg  case $ac_old_set,$ac_new_set in
1239c9e2be55Smrg    set,)
1240c9e2be55Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241c9e2be55Smrgecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242c9e2be55Smrg      ac_cache_corrupted=: ;;
1243c9e2be55Smrg    ,set)
1244c9e2be55Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245c9e2be55Smrgecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246c9e2be55Smrg      ac_cache_corrupted=: ;;
1247c9e2be55Smrg    ,);;
1248c9e2be55Smrg    *)
1249c9e2be55Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1250c9e2be55Smrg	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1251c9e2be55Smrgecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1252c9e2be55Smrg	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1253c9e2be55Smrgecho "$as_me:   former value:  $ac_old_val" >&2;}
1254c9e2be55Smrg	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1255c9e2be55Smrgecho "$as_me:   current value: $ac_new_val" >&2;}
1256c9e2be55Smrg	ac_cache_corrupted=:
1257c9e2be55Smrg      fi;;
1258c9e2be55Smrg  esac
1259c9e2be55Smrg  # Pass precious variables to config.status.
1260c9e2be55Smrg  if test "$ac_new_set" = set; then
1261c9e2be55Smrg    case $ac_new_val in
1262c9e2be55Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263c9e2be55Smrg      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1264c9e2be55Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
1265c9e2be55Smrg    esac
1266c9e2be55Smrg    case " $ac_configure_args " in
1267c9e2be55Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1268c9e2be55Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269c9e2be55Smrg    esac
1270c9e2be55Smrg  fi
1271c9e2be55Smrgdone
1272c9e2be55Smrgif $ac_cache_corrupted; then
1273c9e2be55Smrg  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274c9e2be55Smrgecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1275c9e2be55Smrg  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1276c9e2be55Smrgecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277c9e2be55Smrg   { (exit 1); exit 1; }; }
1278c9e2be55Smrgfi
1279c9e2be55Smrg
1280c9e2be55Smrgac_ext=c
1281c9e2be55Smrgac_cpp='$CPP $CPPFLAGS'
1282c9e2be55Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283c9e2be55Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284c9e2be55Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1285c9e2be55Smrg
1286c9e2be55Smrg
1287c9e2be55Smrg
1288c9e2be55Smrg
1289c9e2be55Smrg
1290c9e2be55Smrg
1291c9e2be55Smrg
1292c9e2be55Smrg
1293c9e2be55Smrg
1294c9e2be55Smrg
1295c9e2be55Smrg
1296c9e2be55Smrg
1297c9e2be55Smrg
1298c9e2be55Smrg
1299c9e2be55Smrg
1300c9e2be55Smrg
1301c9e2be55Smrg
1302c9e2be55Smrg
1303c9e2be55Smrg
1304c9e2be55Smrg
1305c9e2be55Smrg
1306c9e2be55Smrg
1307c9e2be55Smrg
1308c9e2be55Smrg
1309c9e2be55Smrg
1310c9e2be55Smrg
1311c9e2be55Smrg
1312c9e2be55Smrgam__api_version="1.7"
1313c9e2be55Smrgac_aux_dir=
1314c9e2be55Smrgfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1315c9e2be55Smrg  if test -f $ac_dir/install-sh; then
1316c9e2be55Smrg    ac_aux_dir=$ac_dir
1317c9e2be55Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
1318c9e2be55Smrg    break
1319c9e2be55Smrg  elif test -f $ac_dir/install.sh; then
1320c9e2be55Smrg    ac_aux_dir=$ac_dir
1321c9e2be55Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
1322c9e2be55Smrg    break
1323c9e2be55Smrg  elif test -f $ac_dir/shtool; then
1324c9e2be55Smrg    ac_aux_dir=$ac_dir
1325c9e2be55Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
1326c9e2be55Smrg    break
1327c9e2be55Smrg  fi
1328c9e2be55Smrgdone
1329c9e2be55Smrgif test -z "$ac_aux_dir"; then
1330c9e2be55Smrg  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331c9e2be55Smrgecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332c9e2be55Smrg   { (exit 1); exit 1; }; }
1333c9e2be55Smrgfi
1334c9e2be55Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335c9e2be55Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336c9e2be55Smrgac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1337c9e2be55Smrg
1338c9e2be55Smrg# Find a good install program.  We prefer a C program (faster),
1339c9e2be55Smrg# so one script is as good as another.  But avoid the broken or
1340c9e2be55Smrg# incompatible versions:
1341c9e2be55Smrg# SysV /etc/install, /usr/sbin/install
1342c9e2be55Smrg# SunOS /usr/etc/install
1343c9e2be55Smrg# IRIX /sbin/install
1344c9e2be55Smrg# AIX /bin/install
1345c9e2be55Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
1346c9e2be55Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1347c9e2be55Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1348c9e2be55Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1349c9e2be55Smrg# OS/2's system install, which has a completely different semantic
1350c9e2be55Smrg# ./install, which can be erroneously created by make from ./install.sh.
1351c9e2be55Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1352c9e2be55Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1353c9e2be55Smrgif test -z "$INSTALL"; then
1354c9e2be55Smrgif test "${ac_cv_path_install+set}" = set; then
1355c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1356c9e2be55Smrgelse
1357c9e2be55Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358c9e2be55Smrgfor as_dir in $PATH
1359c9e2be55Smrgdo
1360c9e2be55Smrg  IFS=$as_save_IFS
1361c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1362c9e2be55Smrg  # Account for people who put trailing slashes in PATH elements.
1363c9e2be55Smrgcase $as_dir/ in
1364c9e2be55Smrg  ./ | .// | /cC/* | \
1365c9e2be55Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1366c9e2be55Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1367c9e2be55Smrg  /usr/ucb/* ) ;;
1368c9e2be55Smrg  *)
1369c9e2be55Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
1370c9e2be55Smrg    # Don't use installbsd from OSF since it installs stuff as root
1371c9e2be55Smrg    # by default.
1372c9e2be55Smrg    for ac_prog in ginstall scoinst install; do
1373c9e2be55Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
1374c9e2be55Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1375c9e2be55Smrg	  if test $ac_prog = install &&
1376c9e2be55Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1377c9e2be55Smrg	    # AIX install.  It has an incompatible calling convention.
1378c9e2be55Smrg	    :
1379c9e2be55Smrg	  elif test $ac_prog = install &&
1380c9e2be55Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1381c9e2be55Smrg	    # program-specific install script used by HP pwplus--don't use.
1382c9e2be55Smrg	    :
1383c9e2be55Smrg	  else
1384c9e2be55Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1385c9e2be55Smrg	    break 3
1386c9e2be55Smrg	  fi
1387c9e2be55Smrg	fi
1388c9e2be55Smrg      done
1389c9e2be55Smrg    done
1390c9e2be55Smrg    ;;
1391c9e2be55Smrgesac
1392c9e2be55Smrgdone
1393c9e2be55Smrg
1394c9e2be55Smrg
1395c9e2be55Smrgfi
1396c9e2be55Smrg  if test "${ac_cv_path_install+set}" = set; then
1397c9e2be55Smrg    INSTALL=$ac_cv_path_install
1398c9e2be55Smrg  else
1399c9e2be55Smrg    # As a last resort, use the slow shell script.  We don't cache a
1400c9e2be55Smrg    # path for INSTALL within a source directory, because that will
1401c9e2be55Smrg    # break other packages using the cache if that directory is
1402c9e2be55Smrg    # removed, or if the path is relative.
1403c9e2be55Smrg    INSTALL=$ac_install_sh
1404c9e2be55Smrg  fi
1405c9e2be55Smrgfi
1406c9e2be55Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
1407c9e2be55Smrgecho "${ECHO_T}$INSTALL" >&6
1408c9e2be55Smrg
1409c9e2be55Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1410c9e2be55Smrg# It thinks the first close brace ends the variable substitution.
1411c9e2be55Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1412c9e2be55Smrg
1413c9e2be55Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1414c9e2be55Smrg
1415c9e2be55Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1416c9e2be55Smrg
1417c9e2be55Smrgecho "$as_me:$LINENO: checking whether build environment is sane" >&5
1418c9e2be55Smrgecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1419c9e2be55Smrg# Just in case
1420c9e2be55Smrgsleep 1
1421c9e2be55Smrgecho timestamp > conftest.file
1422c9e2be55Smrg# Do `set' in a subshell so we don't clobber the current shell's
1423c9e2be55Smrg# arguments.  Must try -L first in case configure is actually a
1424c9e2be55Smrg# symlink; some systems play weird games with the mod time of symlinks
1425c9e2be55Smrg# (eg FreeBSD returns the mod time of the symlink's containing
1426c9e2be55Smrg# directory).
1427c9e2be55Smrgif (
1428c9e2be55Smrg   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1429c9e2be55Smrg   if test "$*" = "X"; then
1430c9e2be55Smrg      # -L didn't work.
1431c9e2be55Smrg      set X `ls -t $srcdir/configure conftest.file`
1432c9e2be55Smrg   fi
1433c9e2be55Smrg   rm -f conftest.file
1434c9e2be55Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
1435c9e2be55Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
1436c9e2be55Smrg
1437c9e2be55Smrg      # If neither matched, then we have a broken ls.  This can happen
1438c9e2be55Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
1439c9e2be55Smrg      # broken ls alias from the environment.  This has actually
1440c9e2be55Smrg      # happened.  Such a system could not be considered "sane".
1441c9e2be55Smrg      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1442c9e2be55Smrgalias in your environment" >&5
1443c9e2be55Smrgecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1444c9e2be55Smrgalias in your environment" >&2;}
1445c9e2be55Smrg   { (exit 1); exit 1; }; }
1446c9e2be55Smrg   fi
1447c9e2be55Smrg
1448c9e2be55Smrg   test "$2" = conftest.file
1449c9e2be55Smrg   )
1450c9e2be55Smrgthen
1451c9e2be55Smrg   # Ok.
1452c9e2be55Smrg   :
1453c9e2be55Smrgelse
1454c9e2be55Smrg   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1455c9e2be55SmrgCheck your system clock" >&5
1456c9e2be55Smrgecho "$as_me: error: newly created file is older than distributed files!
1457c9e2be55SmrgCheck your system clock" >&2;}
1458c9e2be55Smrg   { (exit 1); exit 1; }; }
1459c9e2be55Smrgfi
1460c9e2be55Smrgecho "$as_me:$LINENO: result: yes" >&5
1461c9e2be55Smrgecho "${ECHO_T}yes" >&6
1462c9e2be55Smrgtest "$program_prefix" != NONE &&
1463c9e2be55Smrg  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1464c9e2be55Smrg# Use a double $ so make ignores it.
1465c9e2be55Smrgtest "$program_suffix" != NONE &&
1466c9e2be55Smrg  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1467c9e2be55Smrg# Double any \ or $.  echo might interpret backslashes.
1468c9e2be55Smrg# By default was `s,x,x', remove it if useless.
1469c9e2be55Smrgcat <<\_ACEOF >conftest.sed
1470c9e2be55Smrgs/[\\$]/&&/g;s/;s,x,x,$//
1471c9e2be55Smrg_ACEOF
1472c9e2be55Smrgprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1473c9e2be55Smrgrm conftest.sed
1474c9e2be55Smrg
1475c9e2be55Smrg
1476c9e2be55Smrg# expand $ac_aux_dir to an absolute path
1477c9e2be55Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
1478c9e2be55Smrg
1479c9e2be55Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1480c9e2be55Smrg# Use eval to expand $SHELL
1481c9e2be55Smrgif eval "$MISSING --run true"; then
1482c9e2be55Smrg  am_missing_run="$MISSING --run "
1483c9e2be55Smrgelse
1484c9e2be55Smrg  am_missing_run=
1485c9e2be55Smrg  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1486c9e2be55Smrgecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1487c9e2be55Smrgfi
1488c9e2be55Smrg
1489c9e2be55Smrgfor ac_prog in gawk mawk nawk awk
1490c9e2be55Smrgdo
1491c9e2be55Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
1492c9e2be55Smrgset dummy $ac_prog; ac_word=$2
1493c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1494c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495c9e2be55Smrgif test "${ac_cv_prog_AWK+set}" = set; then
1496c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1497c9e2be55Smrgelse
1498c9e2be55Smrg  if test -n "$AWK"; then
1499c9e2be55Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1500c9e2be55Smrgelse
1501c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502c9e2be55Smrgfor as_dir in $PATH
1503c9e2be55Smrgdo
1504c9e2be55Smrg  IFS=$as_save_IFS
1505c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1506c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1507c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508c9e2be55Smrg    ac_cv_prog_AWK="$ac_prog"
1509c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510c9e2be55Smrg    break 2
1511c9e2be55Smrg  fi
1512c9e2be55Smrgdone
1513c9e2be55Smrgdone
1514c9e2be55Smrg
1515c9e2be55Smrgfi
1516c9e2be55Smrgfi
1517c9e2be55SmrgAWK=$ac_cv_prog_AWK
1518c9e2be55Smrgif test -n "$AWK"; then
1519c9e2be55Smrg  echo "$as_me:$LINENO: result: $AWK" >&5
1520c9e2be55Smrgecho "${ECHO_T}$AWK" >&6
1521c9e2be55Smrgelse
1522c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1523c9e2be55Smrgecho "${ECHO_T}no" >&6
1524c9e2be55Smrgfi
1525c9e2be55Smrg
1526c9e2be55Smrg  test -n "$AWK" && break
1527c9e2be55Smrgdone
1528c9e2be55Smrg
1529c9e2be55Smrgecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1530c9e2be55Smrgecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1531c9e2be55Smrgset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1532c9e2be55Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1533c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1534c9e2be55Smrgelse
1535c9e2be55Smrg  cat >conftest.make <<\_ACEOF
1536c9e2be55Smrgall:
1537c9e2be55Smrg	@echo 'ac_maketemp="$(MAKE)"'
1538c9e2be55Smrg_ACEOF
1539c9e2be55Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1540c9e2be55Smrgeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1541c9e2be55Smrgif test -n "$ac_maketemp"; then
1542c9e2be55Smrg  eval ac_cv_prog_make_${ac_make}_set=yes
1543c9e2be55Smrgelse
1544c9e2be55Smrg  eval ac_cv_prog_make_${ac_make}_set=no
1545c9e2be55Smrgfi
1546c9e2be55Smrgrm -f conftest.make
1547c9e2be55Smrgfi
1548c9e2be55Smrgif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1549c9e2be55Smrg  echo "$as_me:$LINENO: result: yes" >&5
1550c9e2be55Smrgecho "${ECHO_T}yes" >&6
1551c9e2be55Smrg  SET_MAKE=
1552c9e2be55Smrgelse
1553c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1554c9e2be55Smrgecho "${ECHO_T}no" >&6
1555c9e2be55Smrg  SET_MAKE="MAKE=${MAKE-make}"
1556c9e2be55Smrgfi
1557c9e2be55Smrg
1558c9e2be55Smrgrm -rf .tst 2>/dev/null
1559c9e2be55Smrgmkdir .tst 2>/dev/null
1560c9e2be55Smrgif test -d .tst; then
1561c9e2be55Smrg  am__leading_dot=.
1562c9e2be55Smrgelse
1563c9e2be55Smrg  am__leading_dot=_
1564c9e2be55Smrgfi
1565c9e2be55Smrgrmdir .tst 2>/dev/null
1566c9e2be55Smrg
1567c9e2be55Smrg # test to see if srcdir already configured
1568c9e2be55Smrgif test "`cd $srcdir && pwd`" != "`pwd`" &&
1569c9e2be55Smrg   test -f $srcdir/config.status; then
1570c9e2be55Smrg  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1571c9e2be55Smrgecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1572c9e2be55Smrg   { (exit 1); exit 1; }; }
1573c9e2be55Smrgfi
1574c9e2be55Smrg
1575c9e2be55Smrg# test whether we have cygpath
1576c9e2be55Smrgif test -z "$CYGPATH_W"; then
1577c9e2be55Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
1578c9e2be55Smrg    CYGPATH_W='cygpath -w'
1579c9e2be55Smrg  else
1580c9e2be55Smrg    CYGPATH_W=echo
1581c9e2be55Smrg  fi
1582c9e2be55Smrgfi
1583c9e2be55Smrg
1584c9e2be55Smrg
1585c9e2be55Smrg# Define the identity of the package.
1586c9e2be55Smrg PACKAGE='xmh'
1587c9e2be55Smrg VERSION='1.0.1'
1588c9e2be55Smrg
1589c9e2be55Smrg
1590c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1591c9e2be55Smrg#define PACKAGE "$PACKAGE"
1592c9e2be55Smrg_ACEOF
1593c9e2be55Smrg
1594c9e2be55Smrg
1595c9e2be55Smrgcat >>confdefs.h <<_ACEOF
1596c9e2be55Smrg#define VERSION "$VERSION"
1597c9e2be55Smrg_ACEOF
1598c9e2be55Smrg
1599c9e2be55Smrg# Some tools Automake needs.
1600c9e2be55Smrg
1601c9e2be55SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1602c9e2be55Smrg
1603c9e2be55Smrg
1604c9e2be55SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1605c9e2be55Smrg
1606c9e2be55Smrg
1607c9e2be55SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1608c9e2be55Smrg
1609c9e2be55Smrg
1610c9e2be55SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1611c9e2be55Smrg
1612c9e2be55Smrg
1613c9e2be55SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1614c9e2be55Smrg
1615c9e2be55Smrg
1616c9e2be55SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
1617c9e2be55Smrg
1618c9e2be55Smrginstall_sh=${install_sh-"$am_aux_dir/install-sh"}
1619c9e2be55Smrg
1620c9e2be55Smrg# Installed binaries are usually stripped using `strip' when the user
1621c9e2be55Smrg# run `make install-strip'.  However `strip' might not be the right
1622c9e2be55Smrg# tool to use in cross-compilation environments, therefore Automake
1623c9e2be55Smrg# will honor the `STRIP' environment variable to overrule this program.
1624c9e2be55Smrgif test "$cross_compiling" != no; then
1625c9e2be55Smrg  if test -n "$ac_tool_prefix"; then
1626c9e2be55Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1627c9e2be55Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
1628c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1629c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630c9e2be55Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
1631c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1632c9e2be55Smrgelse
1633c9e2be55Smrg  if test -n "$STRIP"; then
1634c9e2be55Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1635c9e2be55Smrgelse
1636c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637c9e2be55Smrgfor as_dir in $PATH
1638c9e2be55Smrgdo
1639c9e2be55Smrg  IFS=$as_save_IFS
1640c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1641c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1642c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643c9e2be55Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1644c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645c9e2be55Smrg    break 2
1646c9e2be55Smrg  fi
1647c9e2be55Smrgdone
1648c9e2be55Smrgdone
1649c9e2be55Smrg
1650c9e2be55Smrgfi
1651c9e2be55Smrgfi
1652c9e2be55SmrgSTRIP=$ac_cv_prog_STRIP
1653c9e2be55Smrgif test -n "$STRIP"; then
1654c9e2be55Smrg  echo "$as_me:$LINENO: result: $STRIP" >&5
1655c9e2be55Smrgecho "${ECHO_T}$STRIP" >&6
1656c9e2be55Smrgelse
1657c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1658c9e2be55Smrgecho "${ECHO_T}no" >&6
1659c9e2be55Smrgfi
1660c9e2be55Smrg
1661c9e2be55Smrgfi
1662c9e2be55Smrgif test -z "$ac_cv_prog_STRIP"; then
1663c9e2be55Smrg  ac_ct_STRIP=$STRIP
1664c9e2be55Smrg  # Extract the first word of "strip", so it can be a program name with args.
1665c9e2be55Smrgset dummy strip; ac_word=$2
1666c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1667c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668c9e2be55Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1669c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1670c9e2be55Smrgelse
1671c9e2be55Smrg  if test -n "$ac_ct_STRIP"; then
1672c9e2be55Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1673c9e2be55Smrgelse
1674c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675c9e2be55Smrgfor as_dir in $PATH
1676c9e2be55Smrgdo
1677c9e2be55Smrg  IFS=$as_save_IFS
1678c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1679c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1680c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681c9e2be55Smrg    ac_cv_prog_ac_ct_STRIP="strip"
1682c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683c9e2be55Smrg    break 2
1684c9e2be55Smrg  fi
1685c9e2be55Smrgdone
1686c9e2be55Smrgdone
1687c9e2be55Smrg
1688c9e2be55Smrg  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1689c9e2be55Smrgfi
1690c9e2be55Smrgfi
1691c9e2be55Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1692c9e2be55Smrgif test -n "$ac_ct_STRIP"; then
1693c9e2be55Smrg  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1694c9e2be55Smrgecho "${ECHO_T}$ac_ct_STRIP" >&6
1695c9e2be55Smrgelse
1696c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1697c9e2be55Smrgecho "${ECHO_T}no" >&6
1698c9e2be55Smrgfi
1699c9e2be55Smrg
1700c9e2be55Smrg  STRIP=$ac_ct_STRIP
1701c9e2be55Smrgelse
1702c9e2be55Smrg  STRIP="$ac_cv_prog_STRIP"
1703c9e2be55Smrgfi
1704c9e2be55Smrg
1705c9e2be55Smrgfi
1706c9e2be55SmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1707c9e2be55Smrg
1708c9e2be55Smrg# We need awk for the "check" target.  The system "awk" is bad on
1709c9e2be55Smrg# some platforms.
1710c9e2be55Smrg
1711c9e2be55Smrg
1712c9e2be55Smrg
1713c9e2be55Smrgecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1714c9e2be55Smrgecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1715c9e2be55Smrg    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1716c9e2be55Smrgif test "${enable_maintainer_mode+set}" = set; then
1717c9e2be55Smrg  enableval="$enable_maintainer_mode"
1718c9e2be55Smrg  USE_MAINTAINER_MODE=$enableval
1719c9e2be55Smrgelse
1720c9e2be55Smrg  USE_MAINTAINER_MODE=no
1721c9e2be55Smrgfi;
1722c9e2be55Smrg  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1723c9e2be55Smrgecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1724c9e2be55Smrg
1725c9e2be55Smrg
1726c9e2be55Smrgif test $USE_MAINTAINER_MODE = yes; then
1727c9e2be55Smrg  MAINTAINER_MODE_TRUE=
1728c9e2be55Smrg  MAINTAINER_MODE_FALSE='#'
1729c9e2be55Smrgelse
1730c9e2be55Smrg  MAINTAINER_MODE_TRUE='#'
1731c9e2be55Smrg  MAINTAINER_MODE_FALSE=
1732c9e2be55Smrgfi
1733c9e2be55Smrg
1734c9e2be55Smrg  MAINT=$MAINTAINER_MODE_TRUE
1735c9e2be55Smrg
1736c9e2be55Smrg
1737c9e2be55Smrg
1738c9e2be55Smrg          ac_config_headers="$ac_config_headers config.h"
1739c9e2be55Smrg
1740c9e2be55Smrg
1741c9e2be55Smrgac_ext=c
1742c9e2be55Smrgac_cpp='$CPP $CPPFLAGS'
1743c9e2be55Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1744c9e2be55Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1745c9e2be55Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1746c9e2be55Smrgif test -n "$ac_tool_prefix"; then
1747c9e2be55Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1748c9e2be55Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
1749c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1750c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751c9e2be55Smrgif test "${ac_cv_prog_CC+set}" = set; then
1752c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1753c9e2be55Smrgelse
1754c9e2be55Smrg  if test -n "$CC"; then
1755c9e2be55Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1756c9e2be55Smrgelse
1757c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758c9e2be55Smrgfor as_dir in $PATH
1759c9e2be55Smrgdo
1760c9e2be55Smrg  IFS=$as_save_IFS
1761c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1762c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1763c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764c9e2be55Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1765c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766c9e2be55Smrg    break 2
1767c9e2be55Smrg  fi
1768c9e2be55Smrgdone
1769c9e2be55Smrgdone
1770c9e2be55Smrg
1771c9e2be55Smrgfi
1772c9e2be55Smrgfi
1773c9e2be55SmrgCC=$ac_cv_prog_CC
1774c9e2be55Smrgif test -n "$CC"; then
1775c9e2be55Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1776c9e2be55Smrgecho "${ECHO_T}$CC" >&6
1777c9e2be55Smrgelse
1778c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1779c9e2be55Smrgecho "${ECHO_T}no" >&6
1780c9e2be55Smrgfi
1781c9e2be55Smrg
1782c9e2be55Smrgfi
1783c9e2be55Smrgif test -z "$ac_cv_prog_CC"; then
1784c9e2be55Smrg  ac_ct_CC=$CC
1785c9e2be55Smrg  # Extract the first word of "gcc", so it can be a program name with args.
1786c9e2be55Smrgset dummy gcc; ac_word=$2
1787c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1788c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789c9e2be55Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1791c9e2be55Smrgelse
1792c9e2be55Smrg  if test -n "$ac_ct_CC"; then
1793c9e2be55Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794c9e2be55Smrgelse
1795c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796c9e2be55Smrgfor as_dir in $PATH
1797c9e2be55Smrgdo
1798c9e2be55Smrg  IFS=$as_save_IFS
1799c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1800c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1801c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802c9e2be55Smrg    ac_cv_prog_ac_ct_CC="gcc"
1803c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804c9e2be55Smrg    break 2
1805c9e2be55Smrg  fi
1806c9e2be55Smrgdone
1807c9e2be55Smrgdone
1808c9e2be55Smrg
1809c9e2be55Smrgfi
1810c9e2be55Smrgfi
1811c9e2be55Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
1812c9e2be55Smrgif test -n "$ac_ct_CC"; then
1813c9e2be55Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814c9e2be55Smrgecho "${ECHO_T}$ac_ct_CC" >&6
1815c9e2be55Smrgelse
1816c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1817c9e2be55Smrgecho "${ECHO_T}no" >&6
1818c9e2be55Smrgfi
1819c9e2be55Smrg
1820c9e2be55Smrg  CC=$ac_ct_CC
1821c9e2be55Smrgelse
1822c9e2be55Smrg  CC="$ac_cv_prog_CC"
1823c9e2be55Smrgfi
1824c9e2be55Smrg
1825c9e2be55Smrgif test -z "$CC"; then
1826c9e2be55Smrg  if test -n "$ac_tool_prefix"; then
1827c9e2be55Smrg  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1828c9e2be55Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
1829c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1830c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831c9e2be55Smrgif test "${ac_cv_prog_CC+set}" = set; then
1832c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1833c9e2be55Smrgelse
1834c9e2be55Smrg  if test -n "$CC"; then
1835c9e2be55Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1836c9e2be55Smrgelse
1837c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838c9e2be55Smrgfor as_dir in $PATH
1839c9e2be55Smrgdo
1840c9e2be55Smrg  IFS=$as_save_IFS
1841c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1842c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1843c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844c9e2be55Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
1845c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846c9e2be55Smrg    break 2
1847c9e2be55Smrg  fi
1848c9e2be55Smrgdone
1849c9e2be55Smrgdone
1850c9e2be55Smrg
1851c9e2be55Smrgfi
1852c9e2be55Smrgfi
1853c9e2be55SmrgCC=$ac_cv_prog_CC
1854c9e2be55Smrgif test -n "$CC"; then
1855c9e2be55Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1856c9e2be55Smrgecho "${ECHO_T}$CC" >&6
1857c9e2be55Smrgelse
1858c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1859c9e2be55Smrgecho "${ECHO_T}no" >&6
1860c9e2be55Smrgfi
1861c9e2be55Smrg
1862c9e2be55Smrgfi
1863c9e2be55Smrgif test -z "$ac_cv_prog_CC"; then
1864c9e2be55Smrg  ac_ct_CC=$CC
1865c9e2be55Smrg  # Extract the first word of "cc", so it can be a program name with args.
1866c9e2be55Smrgset dummy cc; ac_word=$2
1867c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1868c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869c9e2be55Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1871c9e2be55Smrgelse
1872c9e2be55Smrg  if test -n "$ac_ct_CC"; then
1873c9e2be55Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874c9e2be55Smrgelse
1875c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876c9e2be55Smrgfor as_dir in $PATH
1877c9e2be55Smrgdo
1878c9e2be55Smrg  IFS=$as_save_IFS
1879c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1880c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1881c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882c9e2be55Smrg    ac_cv_prog_ac_ct_CC="cc"
1883c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884c9e2be55Smrg    break 2
1885c9e2be55Smrg  fi
1886c9e2be55Smrgdone
1887c9e2be55Smrgdone
1888c9e2be55Smrg
1889c9e2be55Smrgfi
1890c9e2be55Smrgfi
1891c9e2be55Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
1892c9e2be55Smrgif test -n "$ac_ct_CC"; then
1893c9e2be55Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894c9e2be55Smrgecho "${ECHO_T}$ac_ct_CC" >&6
1895c9e2be55Smrgelse
1896c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1897c9e2be55Smrgecho "${ECHO_T}no" >&6
1898c9e2be55Smrgfi
1899c9e2be55Smrg
1900c9e2be55Smrg  CC=$ac_ct_CC
1901c9e2be55Smrgelse
1902c9e2be55Smrg  CC="$ac_cv_prog_CC"
1903c9e2be55Smrgfi
1904c9e2be55Smrg
1905c9e2be55Smrgfi
1906c9e2be55Smrgif test -z "$CC"; then
1907c9e2be55Smrg  # Extract the first word of "cc", so it can be a program name with args.
1908c9e2be55Smrgset dummy cc; ac_word=$2
1909c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1910c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911c9e2be55Smrgif test "${ac_cv_prog_CC+set}" = set; then
1912c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1913c9e2be55Smrgelse
1914c9e2be55Smrg  if test -n "$CC"; then
1915c9e2be55Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1916c9e2be55Smrgelse
1917c9e2be55Smrg  ac_prog_rejected=no
1918c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919c9e2be55Smrgfor as_dir in $PATH
1920c9e2be55Smrgdo
1921c9e2be55Smrg  IFS=$as_save_IFS
1922c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1923c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1924c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925c9e2be55Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1926c9e2be55Smrg       ac_prog_rejected=yes
1927c9e2be55Smrg       continue
1928c9e2be55Smrg     fi
1929c9e2be55Smrg    ac_cv_prog_CC="cc"
1930c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931c9e2be55Smrg    break 2
1932c9e2be55Smrg  fi
1933c9e2be55Smrgdone
1934c9e2be55Smrgdone
1935c9e2be55Smrg
1936c9e2be55Smrgif test $ac_prog_rejected = yes; then
1937c9e2be55Smrg  # We found a bogon in the path, so make sure we never use it.
1938c9e2be55Smrg  set dummy $ac_cv_prog_CC
1939c9e2be55Smrg  shift
1940c9e2be55Smrg  if test $# != 0; then
1941c9e2be55Smrg    # We chose a different compiler from the bogus one.
1942c9e2be55Smrg    # However, it has the same basename, so the bogon will be chosen
1943c9e2be55Smrg    # first if we set CC to just the basename; use the full file name.
1944c9e2be55Smrg    shift
1945c9e2be55Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1946c9e2be55Smrg  fi
1947c9e2be55Smrgfi
1948c9e2be55Smrgfi
1949c9e2be55Smrgfi
1950c9e2be55SmrgCC=$ac_cv_prog_CC
1951c9e2be55Smrgif test -n "$CC"; then
1952c9e2be55Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1953c9e2be55Smrgecho "${ECHO_T}$CC" >&6
1954c9e2be55Smrgelse
1955c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1956c9e2be55Smrgecho "${ECHO_T}no" >&6
1957c9e2be55Smrgfi
1958c9e2be55Smrg
1959c9e2be55Smrgfi
1960c9e2be55Smrgif test -z "$CC"; then
1961c9e2be55Smrg  if test -n "$ac_tool_prefix"; then
1962c9e2be55Smrg  for ac_prog in cl
1963c9e2be55Smrg  do
1964c9e2be55Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1965c9e2be55Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1966c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1967c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968c9e2be55Smrgif test "${ac_cv_prog_CC+set}" = set; then
1969c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1970c9e2be55Smrgelse
1971c9e2be55Smrg  if test -n "$CC"; then
1972c9e2be55Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1973c9e2be55Smrgelse
1974c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975c9e2be55Smrgfor as_dir in $PATH
1976c9e2be55Smrgdo
1977c9e2be55Smrg  IFS=$as_save_IFS
1978c9e2be55Smrg  test -z "$as_dir" && as_dir=.
1979c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1980c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981c9e2be55Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1982c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983c9e2be55Smrg    break 2
1984c9e2be55Smrg  fi
1985c9e2be55Smrgdone
1986c9e2be55Smrgdone
1987c9e2be55Smrg
1988c9e2be55Smrgfi
1989c9e2be55Smrgfi
1990c9e2be55SmrgCC=$ac_cv_prog_CC
1991c9e2be55Smrgif test -n "$CC"; then
1992c9e2be55Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1993c9e2be55Smrgecho "${ECHO_T}$CC" >&6
1994c9e2be55Smrgelse
1995c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
1996c9e2be55Smrgecho "${ECHO_T}no" >&6
1997c9e2be55Smrgfi
1998c9e2be55Smrg
1999c9e2be55Smrg    test -n "$CC" && break
2000c9e2be55Smrg  done
2001c9e2be55Smrgfi
2002c9e2be55Smrgif test -z "$CC"; then
2003c9e2be55Smrg  ac_ct_CC=$CC
2004c9e2be55Smrg  for ac_prog in cl
2005c9e2be55Smrgdo
2006c9e2be55Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2007c9e2be55Smrgset dummy $ac_prog; ac_word=$2
2008c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
2009c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010c9e2be55Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2012c9e2be55Smrgelse
2013c9e2be55Smrg  if test -n "$ac_ct_CC"; then
2014c9e2be55Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015c9e2be55Smrgelse
2016c9e2be55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017c9e2be55Smrgfor as_dir in $PATH
2018c9e2be55Smrgdo
2019c9e2be55Smrg  IFS=$as_save_IFS
2020c9e2be55Smrg  test -z "$as_dir" && as_dir=.
2021c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2022c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023c9e2be55Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2024c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025c9e2be55Smrg    break 2
2026c9e2be55Smrg  fi
2027c9e2be55Smrgdone
2028c9e2be55Smrgdone
2029c9e2be55Smrg
2030c9e2be55Smrgfi
2031c9e2be55Smrgfi
2032c9e2be55Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2033c9e2be55Smrgif test -n "$ac_ct_CC"; then
2034c9e2be55Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035c9e2be55Smrgecho "${ECHO_T}$ac_ct_CC" >&6
2036c9e2be55Smrgelse
2037c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
2038c9e2be55Smrgecho "${ECHO_T}no" >&6
2039c9e2be55Smrgfi
2040c9e2be55Smrg
2041c9e2be55Smrg  test -n "$ac_ct_CC" && break
2042c9e2be55Smrgdone
2043c9e2be55Smrg
2044c9e2be55Smrg  CC=$ac_ct_CC
2045c9e2be55Smrgfi
2046c9e2be55Smrg
2047c9e2be55Smrgfi
2048c9e2be55Smrg
2049c9e2be55Smrg
2050c9e2be55Smrgtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2051c9e2be55SmrgSee \`config.log' for more details." >&5
2052c9e2be55Smrgecho "$as_me: error: no acceptable C compiler found in \$PATH
2053c9e2be55SmrgSee \`config.log' for more details." >&2;}
2054c9e2be55Smrg   { (exit 1); exit 1; }; }
2055c9e2be55Smrg
2056c9e2be55Smrg# Provide some information about the compiler.
2057c9e2be55Smrgecho "$as_me:$LINENO:" \
2058c9e2be55Smrg     "checking for C compiler version" >&5
2059c9e2be55Smrgac_compiler=`set X $ac_compile; echo $2`
2060c9e2be55Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2061c9e2be55Smrg  (eval $ac_compiler --version </dev/null >&5) 2>&5
2062c9e2be55Smrg  ac_status=$?
2063c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064c9e2be55Smrg  (exit $ac_status); }
2065c9e2be55Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2066c9e2be55Smrg  (eval $ac_compiler -v </dev/null >&5) 2>&5
2067c9e2be55Smrg  ac_status=$?
2068c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069c9e2be55Smrg  (exit $ac_status); }
2070c9e2be55Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2071c9e2be55Smrg  (eval $ac_compiler -V </dev/null >&5) 2>&5
2072c9e2be55Smrg  ac_status=$?
2073c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074c9e2be55Smrg  (exit $ac_status); }
2075c9e2be55Smrg
2076c9e2be55Smrgcat >conftest.$ac_ext <<_ACEOF
2077c9e2be55Smrg/* confdefs.h.  */
2078c9e2be55Smrg_ACEOF
2079c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2080c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2081c9e2be55Smrg/* end confdefs.h.  */
2082c9e2be55Smrg
2083c9e2be55Smrgint
2084c9e2be55Smrgmain ()
2085c9e2be55Smrg{
2086c9e2be55Smrg
2087c9e2be55Smrg  ;
2088c9e2be55Smrg  return 0;
2089c9e2be55Smrg}
2090c9e2be55Smrg_ACEOF
2091c9e2be55Smrgac_clean_files_save=$ac_clean_files
2092c9e2be55Smrgac_clean_files="$ac_clean_files a.out a.exe b.out"
2093c9e2be55Smrg# Try to create an executable without -o first, disregard a.out.
2094c9e2be55Smrg# It will help us diagnose broken compilers, and finding out an intuition
2095c9e2be55Smrg# of exeext.
2096c9e2be55Smrgecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
2097c9e2be55Smrgecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2098c9e2be55Smrgac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2099c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2100c9e2be55Smrg  (eval $ac_link_default) 2>&5
2101c9e2be55Smrg  ac_status=$?
2102c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103c9e2be55Smrg  (exit $ac_status); }; then
2104c9e2be55Smrg  # Find the output, starting from the most likely.  This scheme is
2105c9e2be55Smrg# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2106c9e2be55Smrg# resort.
2107c9e2be55Smrg
2108c9e2be55Smrg# Be careful to initialize this variable, since it used to be cached.
2109c9e2be55Smrg# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2110c9e2be55Smrgac_cv_exeext=
2111c9e2be55Smrg# b.out is created by i960 compilers.
2112c9e2be55Smrgfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2113c9e2be55Smrgdo
2114c9e2be55Smrg  test -f "$ac_file" || continue
2115c9e2be55Smrg  case $ac_file in
2116c9e2be55Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2117c9e2be55Smrg	;;
2118c9e2be55Smrg    conftest.$ac_ext )
2119c9e2be55Smrg	# This is the source file.
2120c9e2be55Smrg	;;
2121c9e2be55Smrg    [ab].out )
2122c9e2be55Smrg	# We found the default executable, but exeext='' is most
2123c9e2be55Smrg	# certainly right.
2124c9e2be55Smrg	break;;
2125c9e2be55Smrg    *.* )
2126c9e2be55Smrg	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127c9e2be55Smrg	# FIXME: I believe we export ac_cv_exeext for Libtool,
2128c9e2be55Smrg	# but it would be cool to find out if it's true.  Does anybody
2129c9e2be55Smrg	# maintain Libtool? --akim.
2130c9e2be55Smrg	export ac_cv_exeext
2131c9e2be55Smrg	break;;
2132c9e2be55Smrg    * )
2133c9e2be55Smrg	break;;
2134c9e2be55Smrg  esac
2135c9e2be55Smrgdone
2136c9e2be55Smrgelse
2137c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2138c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2139c9e2be55Smrg
2140c9e2be55Smrg{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2141c9e2be55SmrgSee \`config.log' for more details." >&5
2142c9e2be55Smrgecho "$as_me: error: C compiler cannot create executables
2143c9e2be55SmrgSee \`config.log' for more details." >&2;}
2144c9e2be55Smrg   { (exit 77); exit 77; }; }
2145c9e2be55Smrgfi
2146c9e2be55Smrg
2147c9e2be55Smrgac_exeext=$ac_cv_exeext
2148c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_file" >&5
2149c9e2be55Smrgecho "${ECHO_T}$ac_file" >&6
2150c9e2be55Smrg
2151c9e2be55Smrg# Check the compiler produces executables we can run.  If not, either
2152c9e2be55Smrg# the compiler is broken, or we cross compile.
2153c9e2be55Smrgecho "$as_me:$LINENO: checking whether the C compiler works" >&5
2154c9e2be55Smrgecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2155c9e2be55Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2156c9e2be55Smrg# If not cross compiling, check that we can run a simple program.
2157c9e2be55Smrgif test "$cross_compiling" != yes; then
2158c9e2be55Smrg  if { ac_try='./$ac_file'
2159c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160c9e2be55Smrg  (eval $ac_try) 2>&5
2161c9e2be55Smrg  ac_status=$?
2162c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163c9e2be55Smrg  (exit $ac_status); }; }; then
2164c9e2be55Smrg    cross_compiling=no
2165c9e2be55Smrg  else
2166c9e2be55Smrg    if test "$cross_compiling" = maybe; then
2167c9e2be55Smrg	cross_compiling=yes
2168c9e2be55Smrg    else
2169c9e2be55Smrg	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2170c9e2be55SmrgIf you meant to cross compile, use \`--host'.
2171c9e2be55SmrgSee \`config.log' for more details." >&5
2172c9e2be55Smrgecho "$as_me: error: cannot run C compiled programs.
2173c9e2be55SmrgIf you meant to cross compile, use \`--host'.
2174c9e2be55SmrgSee \`config.log' for more details." >&2;}
2175c9e2be55Smrg   { (exit 1); exit 1; }; }
2176c9e2be55Smrg    fi
2177c9e2be55Smrg  fi
2178c9e2be55Smrgfi
2179c9e2be55Smrgecho "$as_me:$LINENO: result: yes" >&5
2180c9e2be55Smrgecho "${ECHO_T}yes" >&6
2181c9e2be55Smrg
2182c9e2be55Smrgrm -f a.out a.exe conftest$ac_cv_exeext b.out
2183c9e2be55Smrgac_clean_files=$ac_clean_files_save
2184c9e2be55Smrg# Check the compiler produces executables we can run.  If not, either
2185c9e2be55Smrg# the compiler is broken, or we cross compile.
2186c9e2be55Smrgecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2187c9e2be55Smrgecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2188c9e2be55Smrgecho "$as_me:$LINENO: result: $cross_compiling" >&5
2189c9e2be55Smrgecho "${ECHO_T}$cross_compiling" >&6
2190c9e2be55Smrg
2191c9e2be55Smrgecho "$as_me:$LINENO: checking for suffix of executables" >&5
2192c9e2be55Smrgecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2193c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2194c9e2be55Smrg  (eval $ac_link) 2>&5
2195c9e2be55Smrg  ac_status=$?
2196c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197c9e2be55Smrg  (exit $ac_status); }; then
2198c9e2be55Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2199c9e2be55Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2200c9e2be55Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
2201c9e2be55Smrg# `rm'.
2202c9e2be55Smrgfor ac_file in conftest.exe conftest conftest.*; do
2203c9e2be55Smrg  test -f "$ac_file" || continue
2204c9e2be55Smrg  case $ac_file in
2205c9e2be55Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2206c9e2be55Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207c9e2be55Smrg	  export ac_cv_exeext
2208c9e2be55Smrg	  break;;
2209c9e2be55Smrg    * ) break;;
2210c9e2be55Smrg  esac
2211c9e2be55Smrgdone
2212c9e2be55Smrgelse
2213c9e2be55Smrg  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2214c9e2be55SmrgSee \`config.log' for more details." >&5
2215c9e2be55Smrgecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2216c9e2be55SmrgSee \`config.log' for more details." >&2;}
2217c9e2be55Smrg   { (exit 1); exit 1; }; }
2218c9e2be55Smrgfi
2219c9e2be55Smrg
2220c9e2be55Smrgrm -f conftest$ac_cv_exeext
2221c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2222c9e2be55Smrgecho "${ECHO_T}$ac_cv_exeext" >&6
2223c9e2be55Smrg
2224c9e2be55Smrgrm -f conftest.$ac_ext
2225c9e2be55SmrgEXEEXT=$ac_cv_exeext
2226c9e2be55Smrgac_exeext=$EXEEXT
2227c9e2be55Smrgecho "$as_me:$LINENO: checking for suffix of object files" >&5
2228c9e2be55Smrgecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2229c9e2be55Smrgif test "${ac_cv_objext+set}" = set; then
2230c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2231c9e2be55Smrgelse
2232c9e2be55Smrg  cat >conftest.$ac_ext <<_ACEOF
2233c9e2be55Smrg/* confdefs.h.  */
2234c9e2be55Smrg_ACEOF
2235c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2236c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2237c9e2be55Smrg/* end confdefs.h.  */
2238c9e2be55Smrg
2239c9e2be55Smrgint
2240c9e2be55Smrgmain ()
2241c9e2be55Smrg{
2242c9e2be55Smrg
2243c9e2be55Smrg  ;
2244c9e2be55Smrg  return 0;
2245c9e2be55Smrg}
2246c9e2be55Smrg_ACEOF
2247c9e2be55Smrgrm -f conftest.o conftest.obj
2248c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249c9e2be55Smrg  (eval $ac_compile) 2>&5
2250c9e2be55Smrg  ac_status=$?
2251c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252c9e2be55Smrg  (exit $ac_status); }; then
2253c9e2be55Smrg  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2254c9e2be55Smrg  case $ac_file in
2255c9e2be55Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2256c9e2be55Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2257c9e2be55Smrg       break;;
2258c9e2be55Smrg  esac
2259c9e2be55Smrgdone
2260c9e2be55Smrgelse
2261c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2262c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2263c9e2be55Smrg
2264c9e2be55Smrg{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2265c9e2be55SmrgSee \`config.log' for more details." >&5
2266c9e2be55Smrgecho "$as_me: error: cannot compute suffix of object files: cannot compile
2267c9e2be55SmrgSee \`config.log' for more details." >&2;}
2268c9e2be55Smrg   { (exit 1); exit 1; }; }
2269c9e2be55Smrgfi
2270c9e2be55Smrg
2271c9e2be55Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
2272c9e2be55Smrgfi
2273c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2274c9e2be55Smrgecho "${ECHO_T}$ac_cv_objext" >&6
2275c9e2be55SmrgOBJEXT=$ac_cv_objext
2276c9e2be55Smrgac_objext=$OBJEXT
2277c9e2be55Smrgecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2278c9e2be55Smrgecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2279c9e2be55Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
2280c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2281c9e2be55Smrgelse
2282c9e2be55Smrg  cat >conftest.$ac_ext <<_ACEOF
2283c9e2be55Smrg/* confdefs.h.  */
2284c9e2be55Smrg_ACEOF
2285c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2286c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2287c9e2be55Smrg/* end confdefs.h.  */
2288c9e2be55Smrg
2289c9e2be55Smrgint
2290c9e2be55Smrgmain ()
2291c9e2be55Smrg{
2292c9e2be55Smrg#ifndef __GNUC__
2293c9e2be55Smrg       choke me
2294c9e2be55Smrg#endif
2295c9e2be55Smrg
2296c9e2be55Smrg  ;
2297c9e2be55Smrg  return 0;
2298c9e2be55Smrg}
2299c9e2be55Smrg_ACEOF
2300c9e2be55Smrgrm -f conftest.$ac_objext
2301c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2303c9e2be55Smrg  ac_status=$?
2304c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2305c9e2be55Smrg  rm -f conftest.er1
2306c9e2be55Smrg  cat conftest.err >&5
2307c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308c9e2be55Smrg  (exit $ac_status); } &&
2309c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2310c9e2be55Smrg			 || test ! -s conftest.err'
2311c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312c9e2be55Smrg  (eval $ac_try) 2>&5
2313c9e2be55Smrg  ac_status=$?
2314c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315c9e2be55Smrg  (exit $ac_status); }; } &&
2316c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2317c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318c9e2be55Smrg  (eval $ac_try) 2>&5
2319c9e2be55Smrg  ac_status=$?
2320c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321c9e2be55Smrg  (exit $ac_status); }; }; then
2322c9e2be55Smrg  ac_compiler_gnu=yes
2323c9e2be55Smrgelse
2324c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2325c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2326c9e2be55Smrg
2327c9e2be55Smrgac_compiler_gnu=no
2328c9e2be55Smrgfi
2329c9e2be55Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2330c9e2be55Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
2331c9e2be55Smrg
2332c9e2be55Smrgfi
2333c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2334c9e2be55Smrgecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2335c9e2be55SmrgGCC=`test $ac_compiler_gnu = yes && echo yes`
2336c9e2be55Smrgac_test_CFLAGS=${CFLAGS+set}
2337c9e2be55Smrgac_save_CFLAGS=$CFLAGS
2338c9e2be55SmrgCFLAGS="-g"
2339c9e2be55Smrgecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2340c9e2be55Smrgecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2341c9e2be55Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
2342c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2343c9e2be55Smrgelse
2344c9e2be55Smrg  cat >conftest.$ac_ext <<_ACEOF
2345c9e2be55Smrg/* confdefs.h.  */
2346c9e2be55Smrg_ACEOF
2347c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2348c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2349c9e2be55Smrg/* end confdefs.h.  */
2350c9e2be55Smrg
2351c9e2be55Smrgint
2352c9e2be55Smrgmain ()
2353c9e2be55Smrg{
2354c9e2be55Smrg
2355c9e2be55Smrg  ;
2356c9e2be55Smrg  return 0;
2357c9e2be55Smrg}
2358c9e2be55Smrg_ACEOF
2359c9e2be55Smrgrm -f conftest.$ac_objext
2360c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2362c9e2be55Smrg  ac_status=$?
2363c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2364c9e2be55Smrg  rm -f conftest.er1
2365c9e2be55Smrg  cat conftest.err >&5
2366c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367c9e2be55Smrg  (exit $ac_status); } &&
2368c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2369c9e2be55Smrg			 || test ! -s conftest.err'
2370c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371c9e2be55Smrg  (eval $ac_try) 2>&5
2372c9e2be55Smrg  ac_status=$?
2373c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374c9e2be55Smrg  (exit $ac_status); }; } &&
2375c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2376c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377c9e2be55Smrg  (eval $ac_try) 2>&5
2378c9e2be55Smrg  ac_status=$?
2379c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380c9e2be55Smrg  (exit $ac_status); }; }; then
2381c9e2be55Smrg  ac_cv_prog_cc_g=yes
2382c9e2be55Smrgelse
2383c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2384c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2385c9e2be55Smrg
2386c9e2be55Smrgac_cv_prog_cc_g=no
2387c9e2be55Smrgfi
2388c9e2be55Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389c9e2be55Smrgfi
2390c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2391c9e2be55Smrgecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2392c9e2be55Smrgif test "$ac_test_CFLAGS" = set; then
2393c9e2be55Smrg  CFLAGS=$ac_save_CFLAGS
2394c9e2be55Smrgelif test $ac_cv_prog_cc_g = yes; then
2395c9e2be55Smrg  if test "$GCC" = yes; then
2396c9e2be55Smrg    CFLAGS="-g -O2"
2397c9e2be55Smrg  else
2398c9e2be55Smrg    CFLAGS="-g"
2399c9e2be55Smrg  fi
2400c9e2be55Smrgelse
2401c9e2be55Smrg  if test "$GCC" = yes; then
2402c9e2be55Smrg    CFLAGS="-O2"
2403c9e2be55Smrg  else
2404c9e2be55Smrg    CFLAGS=
2405c9e2be55Smrg  fi
2406c9e2be55Smrgfi
2407c9e2be55Smrgecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2408c9e2be55Smrgecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2409c9e2be55Smrgif test "${ac_cv_prog_cc_stdc+set}" = set; then
2410c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2411c9e2be55Smrgelse
2412c9e2be55Smrg  ac_cv_prog_cc_stdc=no
2413c9e2be55Smrgac_save_CC=$CC
2414c9e2be55Smrgcat >conftest.$ac_ext <<_ACEOF
2415c9e2be55Smrg/* confdefs.h.  */
2416c9e2be55Smrg_ACEOF
2417c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2418c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2419c9e2be55Smrg/* end confdefs.h.  */
2420c9e2be55Smrg#include <stdarg.h>
2421c9e2be55Smrg#include <stdio.h>
2422c9e2be55Smrg#include <sys/types.h>
2423c9e2be55Smrg#include <sys/stat.h>
2424c9e2be55Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2425c9e2be55Smrgstruct buf { int x; };
2426c9e2be55SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
2427c9e2be55Smrgstatic char *e (p, i)
2428c9e2be55Smrg     char **p;
2429c9e2be55Smrg     int i;
2430c9e2be55Smrg{
2431c9e2be55Smrg  return p[i];
2432c9e2be55Smrg}
2433c9e2be55Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2434c9e2be55Smrg{
2435c9e2be55Smrg  char *s;
2436c9e2be55Smrg  va_list v;
2437c9e2be55Smrg  va_start (v,p);
2438c9e2be55Smrg  s = g (p, va_arg (v,int));
2439c9e2be55Smrg  va_end (v);
2440c9e2be55Smrg  return s;
2441c9e2be55Smrg}
2442c9e2be55Smrg
2443c9e2be55Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2444c9e2be55Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
2445c9e2be55Smrg   These don't provoke an error unfortunately, instead are silently treated
2446c9e2be55Smrg   as 'x'.  The following induces an error, until -std1 is added to get
2447c9e2be55Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2448c9e2be55Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
2449c9e2be55Smrg   that's true only with -std1.  */
2450c9e2be55Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2451c9e2be55Smrg
2452c9e2be55Smrgint test (int i, double x);
2453c9e2be55Smrgstruct s1 {int (*f) (int a);};
2454c9e2be55Smrgstruct s2 {int (*f) (double a);};
2455c9e2be55Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2456c9e2be55Smrgint argc;
2457c9e2be55Smrgchar **argv;
2458c9e2be55Smrgint
2459c9e2be55Smrgmain ()
2460c9e2be55Smrg{
2461c9e2be55Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2462c9e2be55Smrg  ;
2463c9e2be55Smrg  return 0;
2464c9e2be55Smrg}
2465c9e2be55Smrg_ACEOF
2466c9e2be55Smrg# Don't try gcc -ansi; that turns off useful extensions and
2467c9e2be55Smrg# breaks some systems' header files.
2468c9e2be55Smrg# AIX			-qlanglvl=ansi
2469c9e2be55Smrg# Ultrix and OSF/1	-std1
2470c9e2be55Smrg# HP-UX 10.20 and later	-Ae
2471c9e2be55Smrg# HP-UX older versions	-Aa -D_HPUX_SOURCE
2472c9e2be55Smrg# SVR4			-Xc -D__EXTENSIONS__
2473c9e2be55Smrgfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2474c9e2be55Smrgdo
2475c9e2be55Smrg  CC="$ac_save_CC $ac_arg"
2476c9e2be55Smrg  rm -f conftest.$ac_objext
2477c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2479c9e2be55Smrg  ac_status=$?
2480c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2481c9e2be55Smrg  rm -f conftest.er1
2482c9e2be55Smrg  cat conftest.err >&5
2483c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484c9e2be55Smrg  (exit $ac_status); } &&
2485c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2486c9e2be55Smrg			 || test ! -s conftest.err'
2487c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488c9e2be55Smrg  (eval $ac_try) 2>&5
2489c9e2be55Smrg  ac_status=$?
2490c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491c9e2be55Smrg  (exit $ac_status); }; } &&
2492c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2493c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494c9e2be55Smrg  (eval $ac_try) 2>&5
2495c9e2be55Smrg  ac_status=$?
2496c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497c9e2be55Smrg  (exit $ac_status); }; }; then
2498c9e2be55Smrg  ac_cv_prog_cc_stdc=$ac_arg
2499c9e2be55Smrgbreak
2500c9e2be55Smrgelse
2501c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2502c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2503c9e2be55Smrg
2504c9e2be55Smrgfi
2505c9e2be55Smrgrm -f conftest.err conftest.$ac_objext
2506c9e2be55Smrgdone
2507c9e2be55Smrgrm -f conftest.$ac_ext conftest.$ac_objext
2508c9e2be55SmrgCC=$ac_save_CC
2509c9e2be55Smrg
2510c9e2be55Smrgfi
2511c9e2be55Smrg
2512c9e2be55Smrgcase "x$ac_cv_prog_cc_stdc" in
2513c9e2be55Smrg  x|xno)
2514c9e2be55Smrg    echo "$as_me:$LINENO: result: none needed" >&5
2515c9e2be55Smrgecho "${ECHO_T}none needed" >&6 ;;
2516c9e2be55Smrg  *)
2517c9e2be55Smrg    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2518c9e2be55Smrgecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2519c9e2be55Smrg    CC="$CC $ac_cv_prog_cc_stdc" ;;
2520c9e2be55Smrgesac
2521c9e2be55Smrg
2522c9e2be55Smrg# Some people use a C++ compiler to compile C.  Since we use `exit',
2523c9e2be55Smrg# in C++ we need to declare it.  In case someone uses the same compiler
2524c9e2be55Smrg# for both compiling C and C++ we need to have the C++ compiler decide
2525c9e2be55Smrg# the declaration of exit, since it's the most demanding environment.
2526c9e2be55Smrgcat >conftest.$ac_ext <<_ACEOF
2527c9e2be55Smrg#ifndef __cplusplus
2528c9e2be55Smrg  choke me
2529c9e2be55Smrg#endif
2530c9e2be55Smrg_ACEOF
2531c9e2be55Smrgrm -f conftest.$ac_objext
2532c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2534c9e2be55Smrg  ac_status=$?
2535c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2536c9e2be55Smrg  rm -f conftest.er1
2537c9e2be55Smrg  cat conftest.err >&5
2538c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539c9e2be55Smrg  (exit $ac_status); } &&
2540c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2541c9e2be55Smrg			 || test ! -s conftest.err'
2542c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543c9e2be55Smrg  (eval $ac_try) 2>&5
2544c9e2be55Smrg  ac_status=$?
2545c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546c9e2be55Smrg  (exit $ac_status); }; } &&
2547c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2548c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549c9e2be55Smrg  (eval $ac_try) 2>&5
2550c9e2be55Smrg  ac_status=$?
2551c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552c9e2be55Smrg  (exit $ac_status); }; }; then
2553c9e2be55Smrg  for ac_declaration in \
2554c9e2be55Smrg   '' \
2555c9e2be55Smrg   'extern "C" void std::exit (int) throw (); using std::exit;' \
2556c9e2be55Smrg   'extern "C" void std::exit (int); using std::exit;' \
2557c9e2be55Smrg   'extern "C" void exit (int) throw ();' \
2558c9e2be55Smrg   'extern "C" void exit (int);' \
2559c9e2be55Smrg   'void exit (int);'
2560c9e2be55Smrgdo
2561c9e2be55Smrg  cat >conftest.$ac_ext <<_ACEOF
2562c9e2be55Smrg/* confdefs.h.  */
2563c9e2be55Smrg_ACEOF
2564c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2565c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2566c9e2be55Smrg/* end confdefs.h.  */
2567c9e2be55Smrg$ac_declaration
2568c9e2be55Smrg#include <stdlib.h>
2569c9e2be55Smrgint
2570c9e2be55Smrgmain ()
2571c9e2be55Smrg{
2572c9e2be55Smrgexit (42);
2573c9e2be55Smrg  ;
2574c9e2be55Smrg  return 0;
2575c9e2be55Smrg}
2576c9e2be55Smrg_ACEOF
2577c9e2be55Smrgrm -f conftest.$ac_objext
2578c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2580c9e2be55Smrg  ac_status=$?
2581c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2582c9e2be55Smrg  rm -f conftest.er1
2583c9e2be55Smrg  cat conftest.err >&5
2584c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585c9e2be55Smrg  (exit $ac_status); } &&
2586c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2587c9e2be55Smrg			 || test ! -s conftest.err'
2588c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589c9e2be55Smrg  (eval $ac_try) 2>&5
2590c9e2be55Smrg  ac_status=$?
2591c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592c9e2be55Smrg  (exit $ac_status); }; } &&
2593c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2594c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595c9e2be55Smrg  (eval $ac_try) 2>&5
2596c9e2be55Smrg  ac_status=$?
2597c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598c9e2be55Smrg  (exit $ac_status); }; }; then
2599c9e2be55Smrg  :
2600c9e2be55Smrgelse
2601c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2602c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2603c9e2be55Smrg
2604c9e2be55Smrgcontinue
2605c9e2be55Smrgfi
2606c9e2be55Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607c9e2be55Smrg  cat >conftest.$ac_ext <<_ACEOF
2608c9e2be55Smrg/* confdefs.h.  */
2609c9e2be55Smrg_ACEOF
2610c9e2be55Smrgcat confdefs.h >>conftest.$ac_ext
2611c9e2be55Smrgcat >>conftest.$ac_ext <<_ACEOF
2612c9e2be55Smrg/* end confdefs.h.  */
2613c9e2be55Smrg$ac_declaration
2614c9e2be55Smrgint
2615c9e2be55Smrgmain ()
2616c9e2be55Smrg{
2617c9e2be55Smrgexit (42);
2618c9e2be55Smrg  ;
2619c9e2be55Smrg  return 0;
2620c9e2be55Smrg}
2621c9e2be55Smrg_ACEOF
2622c9e2be55Smrgrm -f conftest.$ac_objext
2623c9e2be55Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624c9e2be55Smrg  (eval $ac_compile) 2>conftest.er1
2625c9e2be55Smrg  ac_status=$?
2626c9e2be55Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2627c9e2be55Smrg  rm -f conftest.er1
2628c9e2be55Smrg  cat conftest.err >&5
2629c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630c9e2be55Smrg  (exit $ac_status); } &&
2631c9e2be55Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2632c9e2be55Smrg			 || test ! -s conftest.err'
2633c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634c9e2be55Smrg  (eval $ac_try) 2>&5
2635c9e2be55Smrg  ac_status=$?
2636c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637c9e2be55Smrg  (exit $ac_status); }; } &&
2638c9e2be55Smrg	 { ac_try='test -s conftest.$ac_objext'
2639c9e2be55Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640c9e2be55Smrg  (eval $ac_try) 2>&5
2641c9e2be55Smrg  ac_status=$?
2642c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643c9e2be55Smrg  (exit $ac_status); }; }; then
2644c9e2be55Smrg  break
2645c9e2be55Smrgelse
2646c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2647c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2648c9e2be55Smrg
2649c9e2be55Smrgfi
2650c9e2be55Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651c9e2be55Smrgdone
2652c9e2be55Smrgrm -f conftest*
2653c9e2be55Smrgif test -n "$ac_declaration"; then
2654c9e2be55Smrg  echo '#ifdef __cplusplus' >>confdefs.h
2655c9e2be55Smrg  echo $ac_declaration      >>confdefs.h
2656c9e2be55Smrg  echo '#endif'             >>confdefs.h
2657c9e2be55Smrgfi
2658c9e2be55Smrg
2659c9e2be55Smrgelse
2660c9e2be55Smrg  echo "$as_me: failed program was:" >&5
2661c9e2be55Smrgsed 's/^/| /' conftest.$ac_ext >&5
2662c9e2be55Smrg
2663c9e2be55Smrgfi
2664c9e2be55Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665c9e2be55Smrgac_ext=c
2666c9e2be55Smrgac_cpp='$CPP $CPPFLAGS'
2667c9e2be55Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668c9e2be55Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669c9e2be55Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2670c9e2be55SmrgDEPDIR="${am__leading_dot}deps"
2671c9e2be55Smrg
2672c9e2be55Smrg          ac_config_commands="$ac_config_commands depfiles"
2673c9e2be55Smrg
2674c9e2be55Smrg
2675c9e2be55Smrgam_make=${MAKE-make}
2676c9e2be55Smrgcat > confinc << 'END'
2677c9e2be55Smrgam__doit:
2678c9e2be55Smrg	@echo done
2679c9e2be55Smrg.PHONY: am__doit
2680c9e2be55SmrgEND
2681c9e2be55Smrg# If we don't find an include directive, just comment out the code.
2682c9e2be55Smrgecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2683c9e2be55Smrgecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2684c9e2be55Smrgam__include="#"
2685c9e2be55Smrgam__quote=
2686c9e2be55Smrg_am_result=none
2687c9e2be55Smrg# First try GNU make style include.
2688c9e2be55Smrgecho "include confinc" > confmf
2689c9e2be55Smrg# We grep out `Entering directory' and `Leaving directory'
2690c9e2be55Smrg# messages which can occur if `w' ends up in MAKEFLAGS.
2691c9e2be55Smrg# In particular we don't look at `^make:' because GNU make might
2692c9e2be55Smrg# be invoked under some other name (usually "gmake"), in which
2693c9e2be55Smrg# case it prints its new name instead of `make'.
2694c9e2be55Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2695c9e2be55Smrg   am__include=include
2696c9e2be55Smrg   am__quote=
2697c9e2be55Smrg   _am_result=GNU
2698c9e2be55Smrgfi
2699c9e2be55Smrg# Now try BSD make style include.
2700c9e2be55Smrgif test "$am__include" = "#"; then
2701c9e2be55Smrg   echo '.include "confinc"' > confmf
2702c9e2be55Smrg   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2703c9e2be55Smrg      am__include=.include
2704c9e2be55Smrg      am__quote="\""
2705c9e2be55Smrg      _am_result=BSD
2706c9e2be55Smrg   fi
2707c9e2be55Smrgfi
2708c9e2be55Smrg
2709c9e2be55Smrg
2710c9e2be55Smrgecho "$as_me:$LINENO: result: $_am_result" >&5
2711c9e2be55Smrgecho "${ECHO_T}$_am_result" >&6
2712c9e2be55Smrgrm -f confinc confmf
2713c9e2be55Smrg
2714c9e2be55Smrg# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2715c9e2be55Smrgif test "${enable_dependency_tracking+set}" = set; then
2716c9e2be55Smrg  enableval="$enable_dependency_tracking"
2717c9e2be55Smrg
2718c9e2be55Smrgfi;
2719c9e2be55Smrgif test "x$enable_dependency_tracking" != xno; then
2720c9e2be55Smrg  am_depcomp="$ac_aux_dir/depcomp"
2721c9e2be55Smrg  AMDEPBACKSLASH='\'
2722c9e2be55Smrgfi
2723c9e2be55Smrg
2724c9e2be55Smrg
2725c9e2be55Smrgif test "x$enable_dependency_tracking" != xno; then
2726c9e2be55Smrg  AMDEP_TRUE=
2727c9e2be55Smrg  AMDEP_FALSE='#'
2728c9e2be55Smrgelse
2729c9e2be55Smrg  AMDEP_TRUE='#'
2730c9e2be55Smrg  AMDEP_FALSE=
2731c9e2be55Smrgfi
2732c9e2be55Smrg
2733c9e2be55Smrg
2734c9e2be55Smrg
2735c9e2be55Smrg
2736c9e2be55Smrgdepcc="$CC"   am_compiler_list=
2737c9e2be55Smrg
2738c9e2be55Smrgecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
2739c9e2be55Smrgecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2740c9e2be55Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2741c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2742c9e2be55Smrgelse
2743c9e2be55Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2744c9e2be55Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
2745c9e2be55Smrg  # making bogus files that we don't know about and never remove.  For
2746c9e2be55Smrg  # instance it was reported that on HP-UX the gcc test will end up
2747c9e2be55Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
2748c9e2be55Smrg  # in D'.
2749c9e2be55Smrg  mkdir conftest.dir
2750c9e2be55Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
2751c9e2be55Smrg  # using a relative directory.
2752c9e2be55Smrg  cp "$am_depcomp" conftest.dir
2753c9e2be55Smrg  cd conftest.dir
2754c9e2be55Smrg  # We will build objects and dependencies in a subdirectory because
2755c9e2be55Smrg  # it helps to detect inapplicable dependency modes.  For instance
2756c9e2be55Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
2757c9e2be55Smrg  # side effect of compilation, but ICC will put the dependencies in
2758c9e2be55Smrg  # the current directory while Tru64 will put them in the object
2759c9e2be55Smrg  # directory.
2760c9e2be55Smrg  mkdir sub
2761c9e2be55Smrg
2762c9e2be55Smrg  am_cv_CC_dependencies_compiler_type=none
2763c9e2be55Smrg  if test "$am_compiler_list" = ""; then
2764c9e2be55Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2765c9e2be55Smrg  fi
2766c9e2be55Smrg  for depmode in $am_compiler_list; do
2767c9e2be55Smrg    # Setup a source with many dependencies, because some compilers
2768c9e2be55Smrg    # like to wrap large dependency lists on column 80 (with \), and
2769c9e2be55Smrg    # we should not choose a depcomp mode which is confused by this.
2770c9e2be55Smrg    #
2771c9e2be55Smrg    # We need to recreate these files for each test, as the compiler may
2772c9e2be55Smrg    # overwrite some of them when testing with obscure command lines.
2773c9e2be55Smrg    # This happens at least with the AIX C compiler.
2774c9e2be55Smrg    : > sub/conftest.c
2775c9e2be55Smrg    for i in 1 2 3 4 5 6; do
2776c9e2be55Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2777c9e2be55Smrg      : > sub/conftst$i.h
2778c9e2be55Smrg    done
2779c9e2be55Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2780c9e2be55Smrg
2781c9e2be55Smrg    case $depmode in
2782c9e2be55Smrg    nosideeffect)
2783c9e2be55Smrg      # after this tag, mechanisms are not by side-effect, so they'll
2784c9e2be55Smrg      # only be used when explicitly requested
2785c9e2be55Smrg      if test "x$enable_dependency_tracking" = xyes; then
2786c9e2be55Smrg	continue
2787c9e2be55Smrg      else
2788c9e2be55Smrg	break
2789c9e2be55Smrg      fi
2790c9e2be55Smrg      ;;
2791c9e2be55Smrg    none) break ;;
2792c9e2be55Smrg    esac
2793c9e2be55Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2794c9e2be55Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
2795c9e2be55Smrg    # handle `-M -o', and we need to detect this.
2796c9e2be55Smrg    if depmode=$depmode \
2797c9e2be55Smrg       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2798c9e2be55Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2799c9e2be55Smrg       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2800c9e2be55Smrg         >/dev/null 2>conftest.err &&
2801c9e2be55Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2802c9e2be55Smrg       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2803c9e2be55Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2804c9e2be55Smrg      # icc doesn't choke on unknown options, it will just issue warnings
2805c9e2be55Smrg      # (even with -Werror).  So we grep stderr for any message
2806c9e2be55Smrg      # that says an option was ignored.
2807c9e2be55Smrg      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2808c9e2be55Smrg        am_cv_CC_dependencies_compiler_type=$depmode
2809c9e2be55Smrg        break
2810c9e2be55Smrg      fi
2811c9e2be55Smrg    fi
2812c9e2be55Smrg  done
2813c9e2be55Smrg
2814c9e2be55Smrg  cd ..
2815c9e2be55Smrg  rm -rf conftest.dir
2816c9e2be55Smrgelse
2817c9e2be55Smrg  am_cv_CC_dependencies_compiler_type=none
2818c9e2be55Smrgfi
2819c9e2be55Smrg
2820c9e2be55Smrgfi
2821c9e2be55Smrgecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2822c9e2be55Smrgecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2823c9e2be55SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2824c9e2be55Smrg
2825c9e2be55Smrg
2826c9e2be55Smrg
2827c9e2be55Smrgif
2828c9e2be55Smrg  test "x$enable_dependency_tracking" != xno \
2829c9e2be55Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2830c9e2be55Smrg  am__fastdepCC_TRUE=
2831c9e2be55Smrg  am__fastdepCC_FALSE='#'
2832c9e2be55Smrgelse
2833c9e2be55Smrg  am__fastdepCC_TRUE='#'
2834c9e2be55Smrg  am__fastdepCC_FALSE=
2835c9e2be55Smrgfi
2836c9e2be55Smrg
2837c9e2be55Smrg
2838c9e2be55Smrg# Find a good install program.  We prefer a C program (faster),
2839c9e2be55Smrg# so one script is as good as another.  But avoid the broken or
2840c9e2be55Smrg# incompatible versions:
2841c9e2be55Smrg# SysV /etc/install, /usr/sbin/install
2842c9e2be55Smrg# SunOS /usr/etc/install
2843c9e2be55Smrg# IRIX /sbin/install
2844c9e2be55Smrg# AIX /bin/install
2845c9e2be55Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2846c9e2be55Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2847c9e2be55Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2848c9e2be55Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2849c9e2be55Smrg# OS/2's system install, which has a completely different semantic
2850c9e2be55Smrg# ./install, which can be erroneously created by make from ./install.sh.
2851c9e2be55Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2852c9e2be55Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2853c9e2be55Smrgif test -z "$INSTALL"; then
2854c9e2be55Smrgif test "${ac_cv_path_install+set}" = set; then
2855c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2856c9e2be55Smrgelse
2857c9e2be55Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858c9e2be55Smrgfor as_dir in $PATH
2859c9e2be55Smrgdo
2860c9e2be55Smrg  IFS=$as_save_IFS
2861c9e2be55Smrg  test -z "$as_dir" && as_dir=.
2862c9e2be55Smrg  # Account for people who put trailing slashes in PATH elements.
2863c9e2be55Smrgcase $as_dir/ in
2864c9e2be55Smrg  ./ | .// | /cC/* | \
2865c9e2be55Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2866c9e2be55Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2867c9e2be55Smrg  /usr/ucb/* ) ;;
2868c9e2be55Smrg  *)
2869c9e2be55Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2870c9e2be55Smrg    # Don't use installbsd from OSF since it installs stuff as root
2871c9e2be55Smrg    # by default.
2872c9e2be55Smrg    for ac_prog in ginstall scoinst install; do
2873c9e2be55Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2874c9e2be55Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2875c9e2be55Smrg	  if test $ac_prog = install &&
2876c9e2be55Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877c9e2be55Smrg	    # AIX install.  It has an incompatible calling convention.
2878c9e2be55Smrg	    :
2879c9e2be55Smrg	  elif test $ac_prog = install &&
2880c9e2be55Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2881c9e2be55Smrg	    # program-specific install script used by HP pwplus--don't use.
2882c9e2be55Smrg	    :
2883c9e2be55Smrg	  else
2884c9e2be55Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2885c9e2be55Smrg	    break 3
2886c9e2be55Smrg	  fi
2887c9e2be55Smrg	fi
2888c9e2be55Smrg      done
2889c9e2be55Smrg    done
2890c9e2be55Smrg    ;;
2891c9e2be55Smrgesac
2892c9e2be55Smrgdone
2893c9e2be55Smrg
2894c9e2be55Smrg
2895c9e2be55Smrgfi
2896c9e2be55Smrg  if test "${ac_cv_path_install+set}" = set; then
2897c9e2be55Smrg    INSTALL=$ac_cv_path_install
2898c9e2be55Smrg  else
2899c9e2be55Smrg    # As a last resort, use the slow shell script.  We don't cache a
2900c9e2be55Smrg    # path for INSTALL within a source directory, because that will
2901c9e2be55Smrg    # break other packages using the cache if that directory is
2902c9e2be55Smrg    # removed, or if the path is relative.
2903c9e2be55Smrg    INSTALL=$ac_install_sh
2904c9e2be55Smrg  fi
2905c9e2be55Smrgfi
2906c9e2be55Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
2907c9e2be55Smrgecho "${ECHO_T}$INSTALL" >&6
2908c9e2be55Smrg
2909c9e2be55Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2910c9e2be55Smrg# It thinks the first close brace ends the variable substitution.
2911c9e2be55Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912c9e2be55Smrg
2913c9e2be55Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914c9e2be55Smrg
2915c9e2be55Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2916c9e2be55Smrg
2917c9e2be55Smrg
2918c9e2be55Smrg# Checks for pkg-config packages
2919c9e2be55Smrg
2920c9e2be55Smrg
2921c9e2be55Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2922c9e2be55Smrg	if test -n "$ac_tool_prefix"; then
2923c9e2be55Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2924c9e2be55Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2925c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
2926c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927c9e2be55Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2928c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2929c9e2be55Smrgelse
2930c9e2be55Smrg  case $PKG_CONFIG in
2931c9e2be55Smrg  [\\/]* | ?:[\\/]*)
2932c9e2be55Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2933c9e2be55Smrg  ;;
2934c9e2be55Smrg  *)
2935c9e2be55Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936c9e2be55Smrgfor as_dir in $PATH
2937c9e2be55Smrgdo
2938c9e2be55Smrg  IFS=$as_save_IFS
2939c9e2be55Smrg  test -z "$as_dir" && as_dir=.
2940c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2941c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942c9e2be55Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2943c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944c9e2be55Smrg    break 2
2945c9e2be55Smrg  fi
2946c9e2be55Smrgdone
2947c9e2be55Smrgdone
2948c9e2be55Smrg
2949c9e2be55Smrg  ;;
2950c9e2be55Smrgesac
2951c9e2be55Smrgfi
2952c9e2be55SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
2953c9e2be55Smrg
2954c9e2be55Smrgif test -n "$PKG_CONFIG"; then
2955c9e2be55Smrg  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2956c9e2be55Smrgecho "${ECHO_T}$PKG_CONFIG" >&6
2957c9e2be55Smrgelse
2958c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
2959c9e2be55Smrgecho "${ECHO_T}no" >&6
2960c9e2be55Smrgfi
2961c9e2be55Smrg
2962c9e2be55Smrgfi
2963c9e2be55Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
2964c9e2be55Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
2965c9e2be55Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
2966c9e2be55Smrgset dummy pkg-config; ac_word=$2
2967c9e2be55Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
2968c9e2be55Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969c9e2be55Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2970c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2971c9e2be55Smrgelse
2972c9e2be55Smrg  case $ac_pt_PKG_CONFIG in
2973c9e2be55Smrg  [\\/]* | ?:[\\/]*)
2974c9e2be55Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2975c9e2be55Smrg  ;;
2976c9e2be55Smrg  *)
2977c9e2be55Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978c9e2be55Smrgfor as_dir in $PATH
2979c9e2be55Smrgdo
2980c9e2be55Smrg  IFS=$as_save_IFS
2981c9e2be55Smrg  test -z "$as_dir" && as_dir=.
2982c9e2be55Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2983c9e2be55Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984c9e2be55Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2985c9e2be55Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986c9e2be55Smrg    break 2
2987c9e2be55Smrg  fi
2988c9e2be55Smrgdone
2989c9e2be55Smrgdone
2990c9e2be55Smrg
2991c9e2be55Smrg  ;;
2992c9e2be55Smrgesac
2993c9e2be55Smrgfi
2994c9e2be55Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2995c9e2be55Smrg
2996c9e2be55Smrgif test -n "$ac_pt_PKG_CONFIG"; then
2997c9e2be55Smrg  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2998c9e2be55Smrgecho "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2999c9e2be55Smrgelse
3000c9e2be55Smrg  echo "$as_me:$LINENO: result: no" >&5
3001c9e2be55Smrgecho "${ECHO_T}no" >&6
3002c9e2be55Smrgfi
3003c9e2be55Smrg
3004c9e2be55Smrg  PKG_CONFIG=$ac_pt_PKG_CONFIG
3005c9e2be55Smrgelse
3006c9e2be55Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3007c9e2be55Smrgfi
3008c9e2be55Smrg
3009c9e2be55Smrgfi
3010c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3011c9e2be55Smrg	_pkg_min_version=0.9.0
3012c9e2be55Smrg	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3013c9e2be55Smrgecho $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3014c9e2be55Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3015c9e2be55Smrg		echo "$as_me:$LINENO: result: yes" >&5
3016c9e2be55Smrgecho "${ECHO_T}yes" >&6
3017c9e2be55Smrg	else
3018c9e2be55Smrg		echo "$as_me:$LINENO: result: no" >&5
3019c9e2be55Smrgecho "${ECHO_T}no" >&6
3020c9e2be55Smrg		PKG_CONFIG=""
3021c9e2be55Smrg	fi
3022c9e2be55Smrg
3023c9e2be55Smrgfi
3024c9e2be55Smrg
3025c9e2be55Smrg	# Check whether --enable-xprint or --disable-xprint was given.
3026c9e2be55Smrgif test "${enable_xprint+set}" = set; then
3027c9e2be55Smrg  enableval="$enable_xprint"
3028c9e2be55Smrg  use_xprint=$enableval
3029c9e2be55Smrgelse
3030c9e2be55Smrg  use_xprint=auto
3031c9e2be55Smrgfi;
3032c9e2be55Smrg	if test "x$use_xprint" = "xyes"; then
3033c9e2be55Smrg		TMP_CHECK1=xaw8
3034c9e2be55Smrg		TMP_CHECK2=
3035c9e2be55Smrg		xaw_use_xprint=yes
3036c9e2be55Smrg	elif test "x$use_xprint" = "xno"; then
3037c9e2be55Smrg		TMP_CHECK1=xaw7
3038c9e2be55Smrg		TMP_CHECK2=
3039c9e2be55Smrg		xaw_use_xprint=no
3040c9e2be55Smrg	else
3041c9e2be55Smrg		TMP_CHECK1=xaw8
3042c9e2be55Smrg		TMP_CHECK2=xaw7
3043c9e2be55Smrg		xaw_use_xprint=yes
3044c9e2be55Smrg	fi
3045c9e2be55Smrg
3046c9e2be55Smrg
3047c9e2be55Smrgpkg_failed=no
3048c9e2be55Smrgecho "$as_me:$LINENO: checking for TMP_XAW" >&5
3049c9e2be55Smrgecho $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
3050c9e2be55Smrg
3051c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3052c9e2be55Smrg    if test -n "$TMP_XAW_CFLAGS"; then
3053c9e2be55Smrg        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
3054c9e2be55Smrg    else
3055c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3056c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3057c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3058c9e2be55Smrg  ac_status=$?
3059c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060c9e2be55Smrg  (exit $ac_status); }; then
3061c9e2be55Smrg  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK1" 2>/dev/null`
3062c9e2be55Smrgelse
3063c9e2be55Smrg  pkg_failed=yes
3064c9e2be55Smrgfi
3065c9e2be55Smrg    fi
3066c9e2be55Smrgelse
3067c9e2be55Smrg	pkg_failed=untried
3068c9e2be55Smrgfi
3069c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3070c9e2be55Smrg    if test -n "$TMP_XAW_LIBS"; then
3071c9e2be55Smrg        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
3072c9e2be55Smrg    else
3073c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3074c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3075c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3076c9e2be55Smrg  ac_status=$?
3077c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078c9e2be55Smrg  (exit $ac_status); }; then
3079c9e2be55Smrg  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK1" 2>/dev/null`
3080c9e2be55Smrgelse
3081c9e2be55Smrg  pkg_failed=yes
3082c9e2be55Smrgfi
3083c9e2be55Smrg    fi
3084c9e2be55Smrgelse
3085c9e2be55Smrg	pkg_failed=untried
3086c9e2be55Smrgfi
3087c9e2be55Smrg
3088c9e2be55Smrg
3089c9e2be55Smrg
3090c9e2be55Smrgif test $pkg_failed = yes; then
3091c9e2be55Smrg
3092c9e2be55Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3093c9e2be55Smrg        _pkg_short_errors_supported=yes
3094c9e2be55Smrgelse
3095c9e2be55Smrg        _pkg_short_errors_supported=no
3096c9e2be55Smrgfi
3097c9e2be55Smrg        if test $_pkg_short_errors_supported = yes; then
3098c9e2be55Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"`
3099c9e2be55Smrg        else
3100c9e2be55Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
3101c9e2be55Smrg        fi
3102c9e2be55Smrg	# Put the nasty error message in config.log where it belongs
3103c9e2be55Smrg	echo "$TMP_XAW_PKG_ERRORS" >&5
3104c9e2be55Smrg
3105c9e2be55Smrg	success=no
3106c9e2be55Smrgelif test $pkg_failed = untried; then
3107c9e2be55Smrg	success=no
3108c9e2be55Smrgelse
3109c9e2be55Smrg	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3110c9e2be55Smrg	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3111c9e2be55Smrg        echo "$as_me:$LINENO: result: yes" >&5
3112c9e2be55Smrgecho "${ECHO_T}yes" >&6
3113c9e2be55Smrg	success=yes
3114c9e2be55Smrgfi
3115c9e2be55Smrg	if [ ! -z $TMP_CHECK2 ] ; then
3116c9e2be55Smrg		if test $success = no ; then
3117c9e2be55Smrg
3118c9e2be55Smrgpkg_failed=no
3119c9e2be55Smrgecho "$as_me:$LINENO: checking for TMP_XAW" >&5
3120c9e2be55Smrgecho $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
3121c9e2be55Smrg
3122c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3123c9e2be55Smrg    if test -n "$TMP_XAW_CFLAGS"; then
3124c9e2be55Smrg        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
3125c9e2be55Smrg    else
3126c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3127c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3128c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3129c9e2be55Smrg  ac_status=$?
3130c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131c9e2be55Smrg  (exit $ac_status); }; then
3132c9e2be55Smrg  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK2" 2>/dev/null`
3133c9e2be55Smrgelse
3134c9e2be55Smrg  pkg_failed=yes
3135c9e2be55Smrgfi
3136c9e2be55Smrg    fi
3137c9e2be55Smrgelse
3138c9e2be55Smrg	pkg_failed=untried
3139c9e2be55Smrgfi
3140c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3141c9e2be55Smrg    if test -n "$TMP_XAW_LIBS"; then
3142c9e2be55Smrg        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
3143c9e2be55Smrg    else
3144c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3145c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3146c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3147c9e2be55Smrg  ac_status=$?
3148c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149c9e2be55Smrg  (exit $ac_status); }; then
3150c9e2be55Smrg  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK2" 2>/dev/null`
3151c9e2be55Smrgelse
3152c9e2be55Smrg  pkg_failed=yes
3153c9e2be55Smrgfi
3154c9e2be55Smrg    fi
3155c9e2be55Smrgelse
3156c9e2be55Smrg	pkg_failed=untried
3157c9e2be55Smrgfi
3158c9e2be55Smrg
3159c9e2be55Smrg
3160c9e2be55Smrg
3161c9e2be55Smrgif test $pkg_failed = yes; then
3162c9e2be55Smrg
3163c9e2be55Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3164c9e2be55Smrg        _pkg_short_errors_supported=yes
3165c9e2be55Smrgelse
3166c9e2be55Smrg        _pkg_short_errors_supported=no
3167c9e2be55Smrgfi
3168c9e2be55Smrg        if test $_pkg_short_errors_supported = yes; then
3169c9e2be55Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"`
3170c9e2be55Smrg        else
3171c9e2be55Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
3172c9e2be55Smrg        fi
3173c9e2be55Smrg	# Put the nasty error message in config.log where it belongs
3174c9e2be55Smrg	echo "$TMP_XAW_PKG_ERRORS" >&5
3175c9e2be55Smrg
3176c9e2be55Smrg	success=no
3177c9e2be55Smrgelif test $pkg_failed = untried; then
3178c9e2be55Smrg	success=no
3179c9e2be55Smrgelse
3180c9e2be55Smrg	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3181c9e2be55Smrg	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3182c9e2be55Smrg        echo "$as_me:$LINENO: result: yes" >&5
3183c9e2be55Smrgecho "${ECHO_T}yes" >&6
3184c9e2be55Smrg	success=yes
3185c9e2be55Smrgfi
3186c9e2be55Smrg			xaw_use_xprint=no
3187c9e2be55Smrg		fi
3188c9e2be55Smrg	fi
3189c9e2be55Smrg
3190c9e2be55Smrg	if test "x$success" = "xyes"; then
3191c9e2be55Smrg		XMH_CFLAGS=$TMP_XAW_CFLAGS
3192c9e2be55Smrg		XMH_LIBS=$TMP_XAW_LIBS
3193c9e2be55Smrg
3194c9e2be55Smrg
3195c9e2be55Smrg
3196c9e2be55Smrgif test "x$xaw_use_xprint" = "xyes"; then
3197c9e2be55Smrg  XAW_USE_XPRINT_TRUE=
3198c9e2be55Smrg  XAW_USE_XPRINT_FALSE='#'
3199c9e2be55Smrgelse
3200c9e2be55Smrg  XAW_USE_XPRINT_TRUE='#'
3201c9e2be55Smrg  XAW_USE_XPRINT_FALSE=
3202c9e2be55Smrgfi
3203c9e2be55Smrg
3204c9e2be55Smrg	else
3205c9e2be55Smrg		{ { echo "$as_me:$LINENO: error: No suitable version of Xaw found" >&5
3206c9e2be55Smrgecho "$as_me: error: No suitable version of Xaw found" >&2;}
3207c9e2be55Smrg   { (exit 1); exit 1; }; }
3208c9e2be55Smrg	fi
3209c9e2be55Smrg
3210c9e2be55Smrg
3211c9e2be55Smrg
3212c9e2be55Smrg
3213c9e2be55Smrg
3214c9e2be55Smrgpkg_failed=no
3215c9e2be55Smrgecho "$as_me:$LINENO: checking for APPDEFS" >&5
3216c9e2be55Smrgecho $ECHO_N "checking for APPDEFS... $ECHO_C" >&6
3217c9e2be55Smrg
3218c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3219c9e2be55Smrg    if test -n "$APPDEFS_CFLAGS"; then
3220c9e2be55Smrg        pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
3221c9e2be55Smrg    else
3222c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3223c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
3224c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
3225c9e2be55Smrg  ac_status=$?
3226c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227c9e2be55Smrg  (exit $ac_status); }; then
3228c9e2be55Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
3229c9e2be55Smrgelse
3230c9e2be55Smrg  pkg_failed=yes
3231c9e2be55Smrgfi
3232c9e2be55Smrg    fi
3233c9e2be55Smrgelse
3234c9e2be55Smrg	pkg_failed=untried
3235c9e2be55Smrgfi
3236c9e2be55Smrgif test -n "$PKG_CONFIG"; then
3237c9e2be55Smrg    if test -n "$APPDEFS_LIBS"; then
3238c9e2be55Smrg        pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
3239c9e2be55Smrg    else
3240c9e2be55Smrg        if test -n "$PKG_CONFIG" && \
3241c9e2be55Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
3242c9e2be55Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
3243c9e2be55Smrg  ac_status=$?
3244c9e2be55Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245c9e2be55Smrg  (exit $ac_status); }; then
3246c9e2be55Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
3247c9e2be55Smrgelse
3248c9e2be55Smrg  pkg_failed=yes
3249c9e2be55Smrgfi
3250c9e2be55Smrg    fi
3251c9e2be55Smrgelse
3252c9e2be55Smrg	pkg_failed=untried
3253c9e2be55Smrgfi
3254c9e2be55Smrg
3255c9e2be55Smrg
3256c9e2be55Smrg
3257c9e2be55Smrgif test $pkg_failed = yes; then
3258c9e2be55Smrg
3259c9e2be55Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3260c9e2be55Smrg        _pkg_short_errors_supported=yes
3261c9e2be55Smrgelse
3262c9e2be55Smrg        _pkg_short_errors_supported=no
3263c9e2be55Smrgfi
3264c9e2be55Smrg        if test $_pkg_short_errors_supported = yes; then
3265c9e2be55Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
3266c9e2be55Smrg        else
3267c9e2be55Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
3268c9e2be55Smrg        fi
3269c9e2be55Smrg	# Put the nasty error message in config.log where it belongs
3270c9e2be55Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
3271c9e2be55Smrg
3272c9e2be55Smrg	{ { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
3273c9e2be55Smrg
3274c9e2be55Smrg$APPDEFS_PKG_ERRORS
3275c9e2be55Smrg
3276c9e2be55SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
3277c9e2be55Smrginstalled software in a non-standard prefix.
3278c9e2be55Smrg
3279c9e2be55SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
3280c9e2be55Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
3281c9e2be55SmrgSee the pkg-config man page for more details.
3282c9e2be55Smrg" >&5
3283c9e2be55Smrgecho "$as_me: error: Package requirements (xt) were not met:
3284c9e2be55Smrg
3285c9e2be55Smrg$APPDEFS_PKG_ERRORS
3286c9e2be55Smrg
3287c9e2be55SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
3288c9e2be55Smrginstalled software in a non-standard prefix.
3289c9e2be55Smrg
3290c9e2be55SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
3291c9e2be55Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
3292c9e2be55SmrgSee the pkg-config man page for more details.
3293c9e2be55Smrg" >&2;}
3294c9e2be55Smrg   { (exit 1); exit 1; }; }
3295c9e2be55Smrgelif test $pkg_failed = untried; then
3296c9e2be55Smrg	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
3297c9e2be55Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
3298c9e2be55Smrgpath to pkg-config.
3299c9e2be55Smrg
3300c9e2be55SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
3301c9e2be55Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
3302c9e2be55SmrgSee the pkg-config man page for more details.
3303c9e2be55Smrg
3304c9e2be55SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3305c9e2be55SmrgSee \`config.log' for more details." >&5
3306c9e2be55Smrgecho "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
3307c9e2be55Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
3308c9e2be55Smrgpath to pkg-config.
3309c9e2be55Smrg
3310c9e2be55SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
3311c9e2be55Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
3312c9e2be55SmrgSee the pkg-config man page for more details.
3313c9e2be55Smrg
3314c9e2be55SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3315c9e2be55SmrgSee \`config.log' for more details." >&2;}
3316c9e2be55Smrg   { (exit 1); exit 1; }; }
3317c9e2be55Smrgelse
3318c9e2be55Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
3319c9e2be55Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
3320c9e2be55Smrg        echo "$as_me:$LINENO: result: yes" >&5
3321c9e2be55Smrgecho "${ECHO_T}yes" >&6
3322c9e2be55Smrg	:
3323c9e2be55Smrgfi
3324c9e2be55Smrgappdefaultdir=$(pkg-config --variable=appdefaultdir xt)
3325c9e2be55Smrg
3326c9e2be55Smrg
3327c9e2be55Smrg# Make sure we can run config.sub.
3328c9e2be55Smrg$ac_config_sub sun4 >/dev/null 2>&1 ||
3329c9e2be55Smrg  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3330c9e2be55Smrgecho "$as_me: error: cannot run $ac_config_sub" >&2;}
3331c9e2be55Smrg   { (exit 1); exit 1; }; }
3332c9e2be55Smrg
3333c9e2be55Smrgecho "$as_me:$LINENO: checking build system type" >&5
3334c9e2be55Smrgecho $ECHO_N "checking build system type... $ECHO_C" >&6
3335c9e2be55Smrgif test "${ac_cv_build+set}" = set; then
3336c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3337c9e2be55Smrgelse
3338c9e2be55Smrg  ac_cv_build_alias=$build_alias
3339c9e2be55Smrgtest -z "$ac_cv_build_alias" &&
3340c9e2be55Smrg  ac_cv_build_alias=`$ac_config_guess`
3341c9e2be55Smrgtest -z "$ac_cv_build_alias" &&
3342c9e2be55Smrg  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3343c9e2be55Smrgecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
3344c9e2be55Smrg   { (exit 1); exit 1; }; }
3345c9e2be55Smrgac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3346c9e2be55Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3347c9e2be55Smrgecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3348c9e2be55Smrg   { (exit 1); exit 1; }; }
3349c9e2be55Smrg
3350c9e2be55Smrgfi
3351c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_build" >&5
3352c9e2be55Smrgecho "${ECHO_T}$ac_cv_build" >&6
3353c9e2be55Smrgbuild=$ac_cv_build
3354c9e2be55Smrgbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3355c9e2be55Smrgbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3356c9e2be55Smrgbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3357c9e2be55Smrg
3358c9e2be55Smrg
3359c9e2be55Smrgecho "$as_me:$LINENO: checking host system type" >&5
3360c9e2be55Smrgecho $ECHO_N "checking host system type... $ECHO_C" >&6
3361c9e2be55Smrgif test "${ac_cv_host+set}" = set; then
3362c9e2be55Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3363c9e2be55Smrgelse
3364c9e2be55Smrg  ac_cv_host_alias=$host_alias
3365c9e2be55Smrgtest -z "$ac_cv_host_alias" &&
3366c9e2be55Smrg  ac_cv_host_alias=$ac_cv_build_alias
3367c9e2be55Smrgac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3368c9e2be55Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3369c9e2be55Smrgecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3370c9e2be55Smrg   { (exit 1); exit 1; }; }
3371c9e2be55Smrg
3372c9e2be55Smrgfi
3373c9e2be55Smrgecho "$as_me:$LINENO: result: $ac_cv_host" >&5
3374c9e2be55Smrgecho "${ECHO_T}$ac_cv_host" >&6
3375c9e2be55Smrghost=$ac_cv_host
3376c9e2be55Smrghost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3377c9e2be55Smrghost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3378c9e2be55Smrghost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3379c9e2be55Smrg
3380c9e2be55Smrg
3381c9e2be55Smrg
3382c9e2be55Smrg
3383c9e2be55Smrg
3384c9e2be55Smrgif test x$APP_MAN_SUFFIX = x    ; then
3385c9e2be55Smrg    case $host_os in
3386c9e2be55Smrg	linux*)	APP_MAN_SUFFIX=1x ;;
3387c9e2be55Smrg	*)	APP_MAN_SUFFIX=1  ;;
3388c9e2be55Smrg    esac
3389c9e2be55Smrgfi
3390c9e2be55Smrgif test x$APP_MAN_DIR = x    ; then
3391c9e2be55Smrg    case $host_os in
3392c9e2be55Smrg	linux*)	APP_MAN_DIR='$(mandir)/man1' ;;
3393c9e2be55Smrg	*)	APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
3394c9e2be55Smrg    esac
3395c9e2be55Smrgfi
3396c9e2be55Smrg
3397c9e2be55Smrgif test x$LIB_MAN_SUFFIX = x    ; then
3398c9e2be55Smrg    case $host_os in
3399c9e2be55Smrg	linux*)	LIB_MAN_SUFFIX=3x ;;
3400c9e2be55Smrg	*)	LIB_MAN_SUFFIX=3  ;;
3401c9e2be55Smrg    esac
3402c9e2be55Smrgfi
3403c9e2be55Smrgif test x$LIB_MAN_DIR = x    ; then
3404c9e2be55Smrg    case $host_os in
3405c9e2be55Smrg	linux*)	LIB_MAN_DIR='$(mandir)/man3' ;;
3406c9e2be55Smrg	*)	LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
3407c9e2be55Smrg    esac
3408c9e2be55Smrgfi
3409c9e2be55Smrg
3410c9e2be55Smrgif test x$FILE_MAN_SUFFIX = x    ; then
3411c9e2be55Smrg    case $host_os in
3412c9e2be55Smrg	linux*)		FILE_MAN_SUFFIX=5x ;;
3413c9e2be55Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
3414c9e2be55Smrg	*)		FILE_MAN_SUFFIX=5  ;;
3415c9e2be55Smrg    esac
3416c9e2be55Smrgfi
3417c9e2be55Smrgif test x$FILE_MAN_DIR = x    ; then
3418c9e2be55Smrg    case $host_os in
3419c9e2be55Smrg	linux*)	FILE_MAN_DIR='$(mandir)/man5' ;;
3420c9e2be55Smrg	*)	FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
3421c9e2be55Smrg    esac
3422c9e2be55Smrgfi
3423c9e2be55Smrg
3424c9e2be55Smrg# In Imake's linux.cf, the misc man suffix & dir was only changed for
3425c9e2be55Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
3426c9e2be55Smrgif test x$MISC_MAN_SUFFIX = x    ; then
3427c9e2be55Smrg    case $host_os in
3428c9e2be55Smrg#	linux*)		MISC_MAN_SUFFIX=7x ;;
3429c9e2be55Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
3430c9e2be55Smrg	*)		MISC_MAN_SUFFIX=7  ;;
3431c9e2be55Smrg    esac
3432c9e2be55Smrgfi
3433c9e2be55Smrgif test x$MISC_MAN_DIR = x    ; then
3434c9e2be55Smrg    case $host_os in
3435c9e2be55Smrg#	linux*)	MISC_MAN_DIR='$(mandir)/man7' ;;
3436c9e2be55Smrg	*)	MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
3437c9e2be55Smrg    esac
3438c9e2be55Smrgfi
3439c9e2be55Smrg
3440c9e2be55Smrg# In Imake's linux.cf, the driver man suffix & dir was only changed for
3441c9e2be55Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
3442c9e2be55Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
3443c9e2be55Smrg    case $host_os in
3444c9e2be55Smrg#	linux*)		DRIVER_MAN_SUFFIX=4x ;;
3445c9e2be55Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
3446c9e2be55Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
3447c9e2be55Smrg    esac
3448c9e2be55Smrgfi
3449c9e2be55Smrgif test x$DRIVER_MAN_DIR = x    ; then
3450c9e2be55Smrg    case $host_os in
3451c9e2be55Smrg#	linux*)	DRIVER_MAN_DIR='$(mandir)/man4' ;;
3452c9e2be55Smrg	*)	DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
3453c9e2be55Smrg    esac
3454c9e2be55Smrgfi
3455c9e2be55Smrg
3456c9e2be55Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
3457c9e2be55Smrg    case $host_os in
3458c9e2be55Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
3459c9e2be55Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
3460c9e2be55Smrg    esac
3461c9e2be55Smrgfi
3462c9e2be55Smrgif test x$ADMIN_MAN_DIR = x    ; then
3463c9e2be55Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3464c9e2be55Smrgfi
3465c9e2be55Smrg
3466c9e2be55Smrg
3467c9e2be55Smrg
3468c9e2be55Smrg
3469c9e2be55Smrg
3470c9e2be55Smrg
3471c9e2be55Smrg
3472c9e2be55Smrg
3473c9e2be55Smrg
3474c9e2be55Smrg
3475c9e2be55Smrg
3476c9e2be55Smrg
3477c9e2be55Smrg
3478c9e2be55Smrg
3479c9e2be55Smrg
3480c9e2be55Smrg
3481c9e2be55Smrg
3482c9e2be55Smrg# Check whether --with-release-version or --without-release-version was given.
3483c9e2be55Smrgif test "${with_release_version+set}" = set; then
3484c9e2be55Smrg  withval="$with_release_version"
3485c9e2be55Smrg  RELEASE_VERSION="$withval"
3486c9e2be55Smrgelse
3487c9e2be55Smrg  RELEASE_VERSION=""
3488c9e2be55Smrgfi;
3489c9e2be55Smrg	if test "x$RELEASE_VERSION" != "x"; then
3490c9e2be55Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
3491c9e2be55Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
3492c9e2be55Smrg		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
3493c9e2be55Smrgecho "$as_me: Building with package name set to $PACKAGE" >&6;}
3494c9e2be55Smrg	fi
3495c9e2be55Smrg
3496c9e2be55Smrg
3497c9e2be55Smrg          ac_config_files="$ac_config_files Makefile"
3498c9e2be55Smrgcat >confcache <<\_ACEOF
3499c9e2be55Smrg# This file is a shell script that caches the results of configure
3500c9e2be55Smrg# tests run on this system so they can be shared between configure
3501c9e2be55Smrg# scripts and configure runs, see configure's option --config-cache.
3502c9e2be55Smrg# It is not useful on other systems.  If it contains results you don't
3503c9e2be55Smrg# want to keep, you may remove or edit it.
3504c9e2be55Smrg#
3505c9e2be55Smrg# config.status only pays attention to the cache file if you give it
3506c9e2be55Smrg# the --recheck option to rerun configure.
3507c9e2be55Smrg#
3508c9e2be55Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
3509c9e2be55Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
3510c9e2be55Smrg# following values.
3511c9e2be55Smrg
3512c9e2be55Smrg_ACEOF
3513c9e2be55Smrg
3514c9e2be55Smrg# The following way of writing the cache mishandles newlines in values,
3515c9e2be55Smrg# but we know of no workaround that is simple, portable, and efficient.
3516c9e2be55Smrg# So, don't put newlines in cache variables' values.
3517c9e2be55Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
3518c9e2be55Smrg# and sets the high bit in the cache file unless we assign to the vars.
3519c9e2be55Smrg{
3520c9e2be55Smrg  (set) 2>&1 |
3521c9e2be55Smrg    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3522c9e2be55Smrg    *ac_space=\ *)
3523c9e2be55Smrg      # `set' does not quote correctly, so add quotes (double-quote
3524c9e2be55Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
3525c9e2be55Smrg      sed -n \
3526c9e2be55Smrg	"s/'/'\\\\''/g;
3527c9e2be55Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3528c9e2be55Smrg      ;;
3529c9e2be55Smrg    *)
3530c9e2be55Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
3531c9e2be55Smrg      sed -n \
3532c9e2be55Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3533c9e2be55Smrg      ;;
3534c9e2be55Smrg    esac;
3535c9e2be55Smrg} |
3536c9e2be55Smrg  sed '
3537c9e2be55Smrg     t clear
3538c9e2be55Smrg     : clear
3539c9e2be55Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3540c9e2be55Smrg     t end
3541c9e2be55Smrg     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3542c9e2be55Smrg     : end' >>confcache
3543c9e2be55Smrgif diff $cache_file confcache >/dev/null 2>&1; then :; else
3544c9e2be55Smrg  if test -w $cache_file; then
3545c9e2be55Smrg    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3546c9e2be55Smrg    cat confcache >$cache_file
3547c9e2be55Smrg  else
3548c9e2be55Smrg    echo "not updating unwritable cache $cache_file"
3549c9e2be55Smrg  fi
3550c9e2be55Smrgfi
3551c9e2be55Smrgrm -f confcache
3552c9e2be55Smrg
3553c9e2be55Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
3554c9e2be55Smrg# Let make expand exec_prefix.
3555c9e2be55Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3556c9e2be55Smrg
3557c9e2be55Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
3558c9e2be55Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3559c9e2be55Smrg# trailing colons and then remove the whole line if VPATH becomes empty
3560c9e2be55Smrg# (actually we leave an empty line to preserve line numbers).
3561c9e2be55Smrgif test "x$srcdir" = x.; then
3562c9e2be55Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
3563c9e2be55Smrgs/:*\$(srcdir):*/:/;
3564c9e2be55Smrgs/:*\${srcdir}:*/:/;
3565c9e2be55Smrgs/:*@srcdir@:*/:/;
3566c9e2be55Smrgs/^\([^=]*=[	 ]*\):*/\1/;
3567c9e2be55Smrgs/:*$//;
3568c9e2be55Smrgs/^[^=]*=[	 ]*$//;
3569c9e2be55Smrg}'
3570c9e2be55Smrgfi
3571c9e2be55Smrg
3572c9e2be55SmrgDEFS=-DHAVE_CONFIG_H
3573c9e2be55Smrg
3574c9e2be55Smrgac_libobjs=
3575c9e2be55Smrgac_ltlibobjs=
3576c9e2be55Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3577c9e2be55Smrg  # 1. Remove the extension, and $U if already installed.
3578c9e2be55Smrg  ac_i=`echo "$ac_i" |
3579c9e2be55Smrg	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3580c9e2be55Smrg  # 2. Add them.
3581c9e2be55Smrg  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3582c9e2be55Smrg  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3583c9e2be55Smrgdone
3584c9e2be55SmrgLIBOBJS=$ac_libobjs
3585c9e2be55Smrg
3586c9e2be55SmrgLTLIBOBJS=$ac_ltlibobjs
3587c9e2be55Smrg
3588c9e2be55Smrg
3589c9e2be55Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3590c9e2be55Smrg  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3591c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&5
3592c9e2be55Smrgecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3593c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&2;}
3594c9e2be55Smrg   { (exit 1); exit 1; }; }
3595c9e2be55Smrgfi
3596c9e2be55Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3597c9e2be55Smrg  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3598c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&5
3599c9e2be55Smrgecho "$as_me: error: conditional \"AMDEP\" was never defined.
3600c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&2;}
3601c9e2be55Smrg   { (exit 1); exit 1; }; }
3602c9e2be55Smrgfi
3603c9e2be55Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3604c9e2be55Smrg  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3605c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&5
3606c9e2be55Smrgecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3607c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&2;}
3608c9e2be55Smrg   { (exit 1); exit 1; }; }
3609c9e2be55Smrgfi
3610c9e2be55Smrgif test -z "${XAW_USE_XPRINT_TRUE}" && test -z "${XAW_USE_XPRINT_FALSE}"; then
3611c9e2be55Smrg  { { echo "$as_me:$LINENO: error: conditional \"XAW_USE_XPRINT\" was never defined.
3612c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&5
3613c9e2be55Smrgecho "$as_me: error: conditional \"XAW_USE_XPRINT\" was never defined.
3614c9e2be55SmrgUsually this means the macro was only invoked conditionally." >&2;}
3615c9e2be55Smrg   { (exit 1); exit 1; }; }
3616c9e2be55Smrgfi
3617c9e2be55Smrg
3618c9e2be55Smrg: ${CONFIG_STATUS=./config.status}
3619c9e2be55Smrgac_clean_files_save=$ac_clean_files
3620c9e2be55Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
3621c9e2be55Smrg{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3622c9e2be55Smrgecho "$as_me: creating $CONFIG_STATUS" >&6;}
3623c9e2be55Smrgcat >$CONFIG_STATUS <<_ACEOF
3624c9e2be55Smrg#! $SHELL
3625c9e2be55Smrg# Generated by $as_me.
3626c9e2be55Smrg# Run this file to recreate the current configuration.
3627c9e2be55Smrg# Compiler output produced by configure, useful for debugging
3628c9e2be55Smrg# configure, is in config.log if it exists.
3629c9e2be55Smrg
3630c9e2be55Smrgdebug=false
3631c9e2be55Smrgac_cs_recheck=false
3632c9e2be55Smrgac_cs_silent=false
3633c9e2be55SmrgSHELL=\${CONFIG_SHELL-$SHELL}
3634c9e2be55Smrg_ACEOF
3635c9e2be55Smrg
3636c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
3637c9e2be55Smrg## --------------------- ##
3638c9e2be55Smrg## M4sh Initialization.  ##
3639c9e2be55Smrg## --------------------- ##
3640c9e2be55Smrg
3641c9e2be55Smrg# Be Bourne compatible
3642c9e2be55Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3643c9e2be55Smrg  emulate sh
3644c9e2be55Smrg  NULLCMD=:
3645c9e2be55Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3646c9e2be55Smrg  # is contrary to our usage.  Disable this feature.
3647c9e2be55Smrg  alias -g '${1+"$@"}'='"$@"'
3648c9e2be55Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3649c9e2be55Smrg  set -o posix
3650c9e2be55Smrgfi
3651c9e2be55SmrgDUALCASE=1; export DUALCASE # for MKS sh
3652c9e2be55Smrg
3653c9e2be55Smrg# Support unset when possible.
3654c9e2be55Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3655c9e2be55Smrg  as_unset=unset
3656c9e2be55Smrgelse
3657c9e2be55Smrg  as_unset=false
3658c9e2be55Smrgfi
3659c9e2be55Smrg
3660c9e2be55Smrg
3661c9e2be55Smrg# Work around bugs in pre-3.0 UWIN ksh.
3662c9e2be55Smrg$as_unset ENV MAIL MAILPATH
3663c9e2be55SmrgPS1='$ '
3664c9e2be55SmrgPS2='> '
3665c9e2be55SmrgPS4='+ '
3666c9e2be55Smrg
3667c9e2be55Smrg# NLS nuisances.
3668c9e2be55Smrgfor as_var in \
3669c9e2be55Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3670c9e2be55Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3671c9e2be55Smrg  LC_TELEPHONE LC_TIME
3672c9e2be55Smrgdo
3673c9e2be55Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3674c9e2be55Smrg    eval $as_var=C; export $as_var
3675c9e2be55Smrg  else
3676c9e2be55Smrg    $as_unset $as_var
3677c9e2be55Smrg  fi
3678c9e2be55Smrgdone
3679c9e2be55Smrg
3680c9e2be55Smrg# Required to use basename.
3681c9e2be55Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
3682c9e2be55Smrg  as_expr=expr
3683c9e2be55Smrgelse
3684c9e2be55Smrg  as_expr=false
3685c9e2be55Smrgfi
3686c9e2be55Smrg
3687c9e2be55Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3688c9e2be55Smrg  as_basename=basename
3689c9e2be55Smrgelse
3690c9e2be55Smrg  as_basename=false
3691c9e2be55Smrgfi
3692c9e2be55Smrg
3693c9e2be55Smrg
3694c9e2be55Smrg# Name of the executable.
3695c9e2be55Smrgas_me=`$as_basename "$0" ||
3696c9e2be55Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3697c9e2be55Smrg	 X"$0" : 'X\(//\)$' \| \
3698c9e2be55Smrg	 X"$0" : 'X\(/\)$' \| \
3699c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
3700c9e2be55Smrgecho X/"$0" |
3701c9e2be55Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3702c9e2be55Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3703c9e2be55Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
3704c9e2be55Smrg  	  s/.*/./; q'`
3705c9e2be55Smrg
3706c9e2be55Smrg
3707c9e2be55Smrg# PATH needs CR, and LINENO needs CR and PATH.
3708c9e2be55Smrg# Avoid depending upon Character Ranges.
3709c9e2be55Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3710c9e2be55Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3711c9e2be55Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3712c9e2be55Smrgas_cr_digits='0123456789'
3713c9e2be55Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
3714c9e2be55Smrg
3715c9e2be55Smrg# The user is always right.
3716c9e2be55Smrgif test "${PATH_SEPARATOR+set}" != set; then
3717c9e2be55Smrg  echo "#! /bin/sh" >conf$$.sh
3718c9e2be55Smrg  echo  "exit 0"   >>conf$$.sh
3719c9e2be55Smrg  chmod +x conf$$.sh
3720c9e2be55Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3721c9e2be55Smrg    PATH_SEPARATOR=';'
3722c9e2be55Smrg  else
3723c9e2be55Smrg    PATH_SEPARATOR=:
3724c9e2be55Smrg  fi
3725c9e2be55Smrg  rm -f conf$$.sh
3726c9e2be55Smrgfi
3727c9e2be55Smrg
3728c9e2be55Smrg
3729c9e2be55Smrg  as_lineno_1=$LINENO
3730c9e2be55Smrg  as_lineno_2=$LINENO
3731c9e2be55Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3732c9e2be55Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3733c9e2be55Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3734c9e2be55Smrg  # Find who we are.  Look in the path if we contain no path at all
3735c9e2be55Smrg  # relative or not.
3736c9e2be55Smrg  case $0 in
3737c9e2be55Smrg    *[\\/]* ) as_myself=$0 ;;
3738c9e2be55Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739c9e2be55Smrgfor as_dir in $PATH
3740c9e2be55Smrgdo
3741c9e2be55Smrg  IFS=$as_save_IFS
3742c9e2be55Smrg  test -z "$as_dir" && as_dir=.
3743c9e2be55Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3744c9e2be55Smrgdone
3745c9e2be55Smrg
3746c9e2be55Smrg       ;;
3747c9e2be55Smrg  esac
3748c9e2be55Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
3749c9e2be55Smrg  # in which case we are not to be found in the path.
3750c9e2be55Smrg  if test "x$as_myself" = x; then
3751c9e2be55Smrg    as_myself=$0
3752c9e2be55Smrg  fi
3753c9e2be55Smrg  if test ! -f "$as_myself"; then
3754c9e2be55Smrg    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3755c9e2be55Smrgecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3756c9e2be55Smrg   { (exit 1); exit 1; }; }
3757c9e2be55Smrg  fi
3758c9e2be55Smrg  case $CONFIG_SHELL in
3759c9e2be55Smrg  '')
3760c9e2be55Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761c9e2be55Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3762c9e2be55Smrgdo
3763c9e2be55Smrg  IFS=$as_save_IFS
3764c9e2be55Smrg  test -z "$as_dir" && as_dir=.
3765c9e2be55Smrg  for as_base in sh bash ksh sh5; do
3766c9e2be55Smrg	 case $as_dir in
3767c9e2be55Smrg	 /*)
3768c9e2be55Smrg	   if ("$as_dir/$as_base" -c '
3769c9e2be55Smrg  as_lineno_1=$LINENO
3770c9e2be55Smrg  as_lineno_2=$LINENO
3771c9e2be55Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3772c9e2be55Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3773c9e2be55Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3774c9e2be55Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3775c9e2be55Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3776c9e2be55Smrg	     CONFIG_SHELL=$as_dir/$as_base
3777c9e2be55Smrg	     export CONFIG_SHELL
3778c9e2be55Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3779c9e2be55Smrg	   fi;;
3780c9e2be55Smrg	 esac
3781c9e2be55Smrg       done
3782c9e2be55Smrgdone
3783c9e2be55Smrg;;
3784c9e2be55Smrg  esac
3785c9e2be55Smrg
3786c9e2be55Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3787c9e2be55Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
3788c9e2be55Smrg  # line-number line before each line; the second 'sed' does the real
3789c9e2be55Smrg  # work.  The second script uses 'N' to pair each line-number line
3790c9e2be55Smrg  # with the numbered line, and appends trailing '-' during
3791c9e2be55Smrg  # substitution so that $LINENO is not a special case at line end.
3792c9e2be55Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3793c9e2be55Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3794c9e2be55Smrg  sed '=' <$as_myself |
3795c9e2be55Smrg    sed '
3796c9e2be55Smrg      N
3797c9e2be55Smrg      s,$,-,
3798c9e2be55Smrg      : loop
3799c9e2be55Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3800c9e2be55Smrg      t loop
3801c9e2be55Smrg      s,-$,,
3802c9e2be55Smrg      s,^['$as_cr_digits']*\n,,
3803c9e2be55Smrg    ' >$as_me.lineno &&
3804c9e2be55Smrg  chmod +x $as_me.lineno ||
3805c9e2be55Smrg    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3806c9e2be55Smrgecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3807c9e2be55Smrg   { (exit 1); exit 1; }; }
3808c9e2be55Smrg
3809c9e2be55Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
3810c9e2be55Smrg  # (the dirname of $[0] is not the place where we might find the
3811c9e2be55Smrg  # original and so on.  Autoconf is especially sensible to this).
3812c9e2be55Smrg  . ./$as_me.lineno
3813c9e2be55Smrg  # Exit status is that of the last command.
3814c9e2be55Smrg  exit
3815c9e2be55Smrg}
3816c9e2be55Smrg
3817c9e2be55Smrg
3818c9e2be55Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3819c9e2be55Smrg  *c*,-n*) ECHO_N= ECHO_C='
3820c9e2be55Smrg' ECHO_T='	' ;;
3821c9e2be55Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3822c9e2be55Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3823c9e2be55Smrgesac
3824c9e2be55Smrg
3825c9e2be55Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
3826c9e2be55Smrg  as_expr=expr
3827c9e2be55Smrgelse
3828c9e2be55Smrg  as_expr=false
3829c9e2be55Smrgfi
3830c9e2be55Smrg
3831c9e2be55Smrgrm -f conf$$ conf$$.exe conf$$.file
3832c9e2be55Smrgecho >conf$$.file
3833c9e2be55Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
3834c9e2be55Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
3835c9e2be55Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3836c9e2be55Smrg  if test -f conf$$.exe; then
3837c9e2be55Smrg    # Don't use ln at all; we don't have any links
3838c9e2be55Smrg    as_ln_s='cp -p'
3839c9e2be55Smrg  else
3840c9e2be55Smrg    as_ln_s='ln -s'
3841c9e2be55Smrg  fi
3842c9e2be55Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
3843c9e2be55Smrg  as_ln_s=ln
3844c9e2be55Smrgelse
3845c9e2be55Smrg  as_ln_s='cp -p'
3846c9e2be55Smrgfi
3847c9e2be55Smrgrm -f conf$$ conf$$.exe conf$$.file
3848c9e2be55Smrg
3849c9e2be55Smrgif mkdir -p . 2>/dev/null; then
3850c9e2be55Smrg  as_mkdir_p=:
3851c9e2be55Smrgelse
3852c9e2be55Smrg  test -d ./-p && rmdir ./-p
3853c9e2be55Smrg  as_mkdir_p=false
3854c9e2be55Smrgfi
3855c9e2be55Smrg
3856c9e2be55Smrgas_executable_p="test -f"
3857c9e2be55Smrg
3858c9e2be55Smrg# Sed expression to map a string onto a valid CPP name.
3859c9e2be55Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3860c9e2be55Smrg
3861c9e2be55Smrg# Sed expression to map a string onto a valid variable name.
3862c9e2be55Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3863c9e2be55Smrg
3864c9e2be55Smrg
3865c9e2be55Smrg# IFS
3866c9e2be55Smrg# We need space, tab and new line, in precisely that order.
3867c9e2be55Smrgas_nl='
3868c9e2be55Smrg'
3869c9e2be55SmrgIFS=" 	$as_nl"
3870c9e2be55Smrg
3871c9e2be55Smrg# CDPATH.
3872c9e2be55Smrg$as_unset CDPATH
3873c9e2be55Smrg
3874c9e2be55Smrgexec 6>&1
3875c9e2be55Smrg
3876c9e2be55Smrg# Open the log real soon, to keep \$[0] and so on meaningful, and to
3877c9e2be55Smrg# report actual input values of CONFIG_FILES etc. instead of their
3878c9e2be55Smrg# values after options handling.  Logging --version etc. is OK.
3879c9e2be55Smrgexec 5>>config.log
3880c9e2be55Smrg{
3881c9e2be55Smrg  echo
3882c9e2be55Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3883c9e2be55Smrg## Running $as_me. ##
3884c9e2be55Smrg_ASBOX
3885c9e2be55Smrg} >&5
3886c9e2be55Smrgcat >&5 <<_CSEOF
3887c9e2be55Smrg
3888c9e2be55SmrgThis file was extended by xmh $as_me 1.0.1, which was
3889c9e2be55Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
3890c9e2be55Smrg
3891c9e2be55Smrg  CONFIG_FILES    = $CONFIG_FILES
3892c9e2be55Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
3893c9e2be55Smrg  CONFIG_LINKS    = $CONFIG_LINKS
3894c9e2be55Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
3895c9e2be55Smrg  $ $0 $@
3896c9e2be55Smrg
3897c9e2be55Smrg_CSEOF
3898c9e2be55Smrgecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3899c9e2be55Smrgecho >&5
3900c9e2be55Smrg_ACEOF
3901c9e2be55Smrg
3902c9e2be55Smrg# Files that config.status was made for.
3903c9e2be55Smrgif test -n "$ac_config_files"; then
3904c9e2be55Smrg  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3905c9e2be55Smrgfi
3906c9e2be55Smrg
3907c9e2be55Smrgif test -n "$ac_config_headers"; then
3908c9e2be55Smrg  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3909c9e2be55Smrgfi
3910c9e2be55Smrg
3911c9e2be55Smrgif test -n "$ac_config_links"; then
3912c9e2be55Smrg  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3913c9e2be55Smrgfi
3914c9e2be55Smrg
3915c9e2be55Smrgif test -n "$ac_config_commands"; then
3916c9e2be55Smrg  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3917c9e2be55Smrgfi
3918c9e2be55Smrg
3919c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
3920c9e2be55Smrg
3921c9e2be55Smrgac_cs_usage="\
3922c9e2be55Smrg\`$as_me' instantiates files from templates according to the
3923c9e2be55Smrgcurrent configuration.
3924c9e2be55Smrg
3925c9e2be55SmrgUsage: $0 [OPTIONS] [FILE]...
3926c9e2be55Smrg
3927c9e2be55Smrg  -h, --help       print this help, then exit
3928c9e2be55Smrg  -V, --version    print version number, then exit
3929c9e2be55Smrg  -q, --quiet      do not print progress messages
3930c9e2be55Smrg  -d, --debug      don't remove temporary files
3931c9e2be55Smrg      --recheck    update $as_me by reconfiguring in the same conditions
3932c9e2be55Smrg  --file=FILE[:TEMPLATE]
3933c9e2be55Smrg		   instantiate the configuration file FILE
3934c9e2be55Smrg  --header=FILE[:TEMPLATE]
3935c9e2be55Smrg		   instantiate the configuration header FILE
3936c9e2be55Smrg
3937c9e2be55SmrgConfiguration files:
3938c9e2be55Smrg$config_files
3939c9e2be55Smrg
3940c9e2be55SmrgConfiguration headers:
3941c9e2be55Smrg$config_headers
3942c9e2be55Smrg
3943c9e2be55SmrgConfiguration commands:
3944c9e2be55Smrg$config_commands
3945c9e2be55Smrg
3946c9e2be55SmrgReport bugs to <bug-autoconf@gnu.org>."
3947c9e2be55Smrg_ACEOF
3948c9e2be55Smrg
3949c9e2be55Smrgcat >>$CONFIG_STATUS <<_ACEOF
3950c9e2be55Smrgac_cs_version="\\
3951c9e2be55Smrgxmh config.status 1.0.1
3952c9e2be55Smrgconfigured by $0, generated by GNU Autoconf 2.59,
3953c9e2be55Smrg  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3954c9e2be55Smrg
3955c9e2be55SmrgCopyright (C) 2003 Free Software Foundation, Inc.
3956c9e2be55SmrgThis config.status script is free software; the Free Software Foundation
3957c9e2be55Smrggives unlimited permission to copy, distribute and modify it."
3958c9e2be55Smrgsrcdir=$srcdir
3959c9e2be55SmrgINSTALL="$INSTALL"
3960c9e2be55Smrg_ACEOF
3961c9e2be55Smrg
3962c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
3963c9e2be55Smrg# If no file are specified by the user, then we need to provide default
3964c9e2be55Smrg# value.  By we need to know if files were specified by the user.
3965c9e2be55Smrgac_need_defaults=:
3966c9e2be55Smrgwhile test $# != 0
3967c9e2be55Smrgdo
3968c9e2be55Smrg  case $1 in
3969c9e2be55Smrg  --*=*)
3970c9e2be55Smrg    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3971c9e2be55Smrg    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3972c9e2be55Smrg    ac_shift=:
3973c9e2be55Smrg    ;;
3974c9e2be55Smrg  -*)
3975c9e2be55Smrg    ac_option=$1
3976c9e2be55Smrg    ac_optarg=$2
3977c9e2be55Smrg    ac_shift=shift
3978c9e2be55Smrg    ;;
3979c9e2be55Smrg  *) # This is not an option, so the user has probably given explicit
3980c9e2be55Smrg     # arguments.
3981c9e2be55Smrg     ac_option=$1
3982c9e2be55Smrg     ac_need_defaults=false;;
3983c9e2be55Smrg  esac
3984c9e2be55Smrg
3985c9e2be55Smrg  case $ac_option in
3986c9e2be55Smrg  # Handling of the options.
3987c9e2be55Smrg_ACEOF
3988c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
3989c9e2be55Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3990c9e2be55Smrg    ac_cs_recheck=: ;;
3991c9e2be55Smrg  --version | --vers* | -V )
3992c9e2be55Smrg    echo "$ac_cs_version"; exit 0 ;;
3993c9e2be55Smrg  --he | --h)
3994c9e2be55Smrg    # Conflict between --help and --header
3995c9e2be55Smrg    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3996c9e2be55SmrgTry \`$0 --help' for more information." >&5
3997c9e2be55Smrgecho "$as_me: error: ambiguous option: $1
3998c9e2be55SmrgTry \`$0 --help' for more information." >&2;}
3999c9e2be55Smrg   { (exit 1); exit 1; }; };;
4000c9e2be55Smrg  --help | --hel | -h )
4001c9e2be55Smrg    echo "$ac_cs_usage"; exit 0 ;;
4002c9e2be55Smrg  --debug | --d* | -d )
4003c9e2be55Smrg    debug=: ;;
4004c9e2be55Smrg  --file | --fil | --fi | --f )
4005c9e2be55Smrg    $ac_shift
4006c9e2be55Smrg    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4007c9e2be55Smrg    ac_need_defaults=false;;
4008c9e2be55Smrg  --header | --heade | --head | --hea )
4009c9e2be55Smrg    $ac_shift
4010c9e2be55Smrg    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4011c9e2be55Smrg    ac_need_defaults=false;;
4012c9e2be55Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4013c9e2be55Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4014c9e2be55Smrg    ac_cs_silent=: ;;
4015c9e2be55Smrg
4016c9e2be55Smrg  # This is an error.
4017c9e2be55Smrg  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4018c9e2be55SmrgTry \`$0 --help' for more information." >&5
4019c9e2be55Smrgecho "$as_me: error: unrecognized option: $1
4020c9e2be55SmrgTry \`$0 --help' for more information." >&2;}
4021c9e2be55Smrg   { (exit 1); exit 1; }; } ;;
4022c9e2be55Smrg
4023c9e2be55Smrg  *) ac_config_targets="$ac_config_targets $1" ;;
4024c9e2be55Smrg
4025c9e2be55Smrg  esac
4026c9e2be55Smrg  shift
4027c9e2be55Smrgdone
4028c9e2be55Smrg
4029c9e2be55Smrgac_configure_extra_args=
4030c9e2be55Smrg
4031c9e2be55Smrgif $ac_cs_silent; then
4032c9e2be55Smrg  exec 6>/dev/null
4033c9e2be55Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
4034c9e2be55Smrgfi
4035c9e2be55Smrg
4036c9e2be55Smrg_ACEOF
4037c9e2be55Smrgcat >>$CONFIG_STATUS <<_ACEOF
4038c9e2be55Smrgif \$ac_cs_recheck; then
4039c9e2be55Smrg  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4040c9e2be55Smrg  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4041c9e2be55Smrgfi
4042c9e2be55Smrg
4043c9e2be55Smrg_ACEOF
4044c9e2be55Smrg
4045c9e2be55Smrgcat >>$CONFIG_STATUS <<_ACEOF
4046c9e2be55Smrg#
4047c9e2be55Smrg# INIT-COMMANDS section.
4048c9e2be55Smrg#
4049c9e2be55Smrg
4050c9e2be55SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4051c9e2be55Smrg
4052c9e2be55Smrg_ACEOF
4053c9e2be55Smrg
4054c9e2be55Smrg
4055c9e2be55Smrg
4056c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4057c9e2be55Smrgfor ac_config_target in $ac_config_targets
4058c9e2be55Smrgdo
4059c9e2be55Smrg  case "$ac_config_target" in
4060c9e2be55Smrg  # Handling of arguments.
4061c9e2be55Smrg  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4062c9e2be55Smrg  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4063c9e2be55Smrg  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4064c9e2be55Smrg  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4065c9e2be55Smrgecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
4066c9e2be55Smrg   { (exit 1); exit 1; }; };;
4067c9e2be55Smrg  esac
4068c9e2be55Smrgdone
4069c9e2be55Smrg
4070c9e2be55Smrg# If the user did not use the arguments to specify the items to instantiate,
4071c9e2be55Smrg# then the envvar interface is used.  Set only those that are not.
4072c9e2be55Smrg# We use the long form for the default assignment because of an extremely
4073c9e2be55Smrg# bizarre bug on SunOS 4.1.3.
4074c9e2be55Smrgif $ac_need_defaults; then
4075c9e2be55Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4076c9e2be55Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4077c9e2be55Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4078c9e2be55Smrgfi
4079c9e2be55Smrg
4080c9e2be55Smrg# Have a temporary directory for convenience.  Make it in the build tree
4081c9e2be55Smrg# simply because there is no reason to put it here, and in addition,
4082c9e2be55Smrg# creating and moving files from /tmp can sometimes cause problems.
4083c9e2be55Smrg# Create a temporary directory, and hook for its removal unless debugging.
4084c9e2be55Smrg$debug ||
4085c9e2be55Smrg{
4086c9e2be55Smrg  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4087c9e2be55Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
4088c9e2be55Smrg}
4089c9e2be55Smrg
4090c9e2be55Smrg# Create a (secure) tmp directory for tmp files.
4091c9e2be55Smrg
4092c9e2be55Smrg{
4093c9e2be55Smrg  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4094c9e2be55Smrg  test -n "$tmp" && test -d "$tmp"
4095c9e2be55Smrg}  ||
4096c9e2be55Smrg{
4097c9e2be55Smrg  tmp=./confstat$$-$RANDOM
4098c9e2be55Smrg  (umask 077 && mkdir $tmp)
4099c9e2be55Smrg} ||
4100c9e2be55Smrg{
4101c9e2be55Smrg   echo "$me: cannot create a temporary directory in ." >&2
4102c9e2be55Smrg   { (exit 1); exit 1; }
4103c9e2be55Smrg}
4104c9e2be55Smrg
4105c9e2be55Smrg_ACEOF
4106c9e2be55Smrg
4107c9e2be55Smrgcat >>$CONFIG_STATUS <<_ACEOF
4108c9e2be55Smrg
4109c9e2be55Smrg#
4110c9e2be55Smrg# CONFIG_FILES section.
4111c9e2be55Smrg#
4112c9e2be55Smrg
4113c9e2be55Smrg# No need to generate the scripts if there are no CONFIG_FILES.
4114c9e2be55Smrg# This happens for instance when ./config.status config.h
4115c9e2be55Smrgif test -n "\$CONFIG_FILES"; then
4116c9e2be55Smrg  # Protect against being on the right side of a sed subst in config.status.
4117c9e2be55Smrg  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4118c9e2be55Smrg   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4119c9e2be55Smrgs,@SHELL@,$SHELL,;t t
4120c9e2be55Smrgs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4121c9e2be55Smrgs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4122c9e2be55Smrgs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4123c9e2be55Smrgs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4124c9e2be55Smrgs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4125c9e2be55Smrgs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4126c9e2be55Smrgs,@exec_prefix@,$exec_prefix,;t t
4127c9e2be55Smrgs,@prefix@,$prefix,;t t
4128c9e2be55Smrgs,@program_transform_name@,$program_transform_name,;t t
4129c9e2be55Smrgs,@bindir@,$bindir,;t t
4130c9e2be55Smrgs,@sbindir@,$sbindir,;t t
4131c9e2be55Smrgs,@libexecdir@,$libexecdir,;t t
4132c9e2be55Smrgs,@datadir@,$datadir,;t t
4133c9e2be55Smrgs,@sysconfdir@,$sysconfdir,;t t
4134c9e2be55Smrgs,@sharedstatedir@,$sharedstatedir,;t t
4135c9e2be55Smrgs,@localstatedir@,$localstatedir,;t t
4136c9e2be55Smrgs,@libdir@,$libdir,;t t
4137c9e2be55Smrgs,@includedir@,$includedir,;t t
4138c9e2be55Smrgs,@oldincludedir@,$oldincludedir,;t t
4139c9e2be55Smrgs,@infodir@,$infodir,;t t
4140c9e2be55Smrgs,@mandir@,$mandir,;t t
4141c9e2be55Smrgs,@build_alias@,$build_alias,;t t
4142c9e2be55Smrgs,@host_alias@,$host_alias,;t t
4143c9e2be55Smrgs,@target_alias@,$target_alias,;t t
4144c9e2be55Smrgs,@DEFS@,$DEFS,;t t
4145c9e2be55Smrgs,@ECHO_C@,$ECHO_C,;t t
4146c9e2be55Smrgs,@ECHO_N@,$ECHO_N,;t t
4147c9e2be55Smrgs,@ECHO_T@,$ECHO_T,;t t
4148c9e2be55Smrgs,@LIBS@,$LIBS,;t t
4149c9e2be55Smrgs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4150c9e2be55Smrgs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4151c9e2be55Smrgs,@INSTALL_DATA@,$INSTALL_DATA,;t t
4152c9e2be55Smrgs,@CYGPATH_W@,$CYGPATH_W,;t t
4153c9e2be55Smrgs,@PACKAGE@,$PACKAGE,;t t
4154c9e2be55Smrgs,@VERSION@,$VERSION,;t t
4155c9e2be55Smrgs,@ACLOCAL@,$ACLOCAL,;t t
4156c9e2be55Smrgs,@AUTOCONF@,$AUTOCONF,;t t
4157c9e2be55Smrgs,@AUTOMAKE@,$AUTOMAKE,;t t
4158c9e2be55Smrgs,@AUTOHEADER@,$AUTOHEADER,;t t
4159c9e2be55Smrgs,@MAKEINFO@,$MAKEINFO,;t t
4160c9e2be55Smrgs,@AMTAR@,$AMTAR,;t t
4161c9e2be55Smrgs,@install_sh@,$install_sh,;t t
4162c9e2be55Smrgs,@STRIP@,$STRIP,;t t
4163c9e2be55Smrgs,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4164c9e2be55Smrgs,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4165c9e2be55Smrgs,@AWK@,$AWK,;t t
4166c9e2be55Smrgs,@SET_MAKE@,$SET_MAKE,;t t
4167c9e2be55Smrgs,@am__leading_dot@,$am__leading_dot,;t t
4168c9e2be55Smrgs,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4169c9e2be55Smrgs,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4170c9e2be55Smrgs,@MAINT@,$MAINT,;t t
4171c9e2be55Smrgs,@CC@,$CC,;t t
4172c9e2be55Smrgs,@CFLAGS@,$CFLAGS,;t t
4173c9e2be55Smrgs,@LDFLAGS@,$LDFLAGS,;t t
4174c9e2be55Smrgs,@CPPFLAGS@,$CPPFLAGS,;t t
4175c9e2be55Smrgs,@ac_ct_CC@,$ac_ct_CC,;t t
4176c9e2be55Smrgs,@EXEEXT@,$EXEEXT,;t t
4177c9e2be55Smrgs,@OBJEXT@,$OBJEXT,;t t
4178c9e2be55Smrgs,@DEPDIR@,$DEPDIR,;t t
4179c9e2be55Smrgs,@am__include@,$am__include,;t t
4180c9e2be55Smrgs,@am__quote@,$am__quote,;t t
4181c9e2be55Smrgs,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4182c9e2be55Smrgs,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4183c9e2be55Smrgs,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4184c9e2be55Smrgs,@CCDEPMODE@,$CCDEPMODE,;t t
4185c9e2be55Smrgs,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4186c9e2be55Smrgs,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4187c9e2be55Smrgs,@PKG_CONFIG@,$PKG_CONFIG,;t t
4188c9e2be55Smrgs,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4189c9e2be55Smrgs,@TMP_XAW_CFLAGS@,$TMP_XAW_CFLAGS,;t t
4190c9e2be55Smrgs,@TMP_XAW_LIBS@,$TMP_XAW_LIBS,;t t
4191c9e2be55Smrgs,@XAW_USE_XPRINT_TRUE@,$XAW_USE_XPRINT_TRUE,;t t
4192c9e2be55Smrgs,@XAW_USE_XPRINT_FALSE@,$XAW_USE_XPRINT_FALSE,;t t
4193c9e2be55Smrgs,@XMH_CFLAGS@,$XMH_CFLAGS,;t t
4194c9e2be55Smrgs,@XMH_LIBS@,$XMH_LIBS,;t t
4195c9e2be55Smrgs,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t
4196c9e2be55Smrgs,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t
4197c9e2be55Smrgs,@appdefaultdir@,$appdefaultdir,;t t
4198c9e2be55Smrgs,@build@,$build,;t t
4199c9e2be55Smrgs,@build_cpu@,$build_cpu,;t t
4200c9e2be55Smrgs,@build_vendor@,$build_vendor,;t t
4201c9e2be55Smrgs,@build_os@,$build_os,;t t
4202c9e2be55Smrgs,@host@,$host,;t t
4203c9e2be55Smrgs,@host_cpu@,$host_cpu,;t t
4204c9e2be55Smrgs,@host_vendor@,$host_vendor,;t t
4205c9e2be55Smrgs,@host_os@,$host_os,;t t
4206c9e2be55Smrgs,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
4207c9e2be55Smrgs,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
4208c9e2be55Smrgs,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
4209c9e2be55Smrgs,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
4210c9e2be55Smrgs,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
4211c9e2be55Smrgs,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
4212c9e2be55Smrgs,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
4213c9e2be55Smrgs,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
4214c9e2be55Smrgs,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
4215c9e2be55Smrgs,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
4216c9e2be55Smrgs,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
4217c9e2be55Smrgs,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
4218c9e2be55Smrgs,@LIBOBJS@,$LIBOBJS,;t t
4219c9e2be55Smrgs,@LTLIBOBJS@,$LTLIBOBJS,;t t
4220c9e2be55SmrgCEOF
4221c9e2be55Smrg
4222c9e2be55Smrg_ACEOF
4223c9e2be55Smrg
4224c9e2be55Smrg  cat >>$CONFIG_STATUS <<\_ACEOF
4225c9e2be55Smrg  # Split the substitutions into bite-sized pieces for seds with
4226c9e2be55Smrg  # small command number limits, like on Digital OSF/1 and HP-UX.
4227c9e2be55Smrg  ac_max_sed_lines=48
4228c9e2be55Smrg  ac_sed_frag=1 # Number of current file.
4229c9e2be55Smrg  ac_beg=1 # First line for current file.
4230c9e2be55Smrg  ac_end=$ac_max_sed_lines # Line after last line for current file.
4231c9e2be55Smrg  ac_more_lines=:
4232c9e2be55Smrg  ac_sed_cmds=
4233c9e2be55Smrg  while $ac_more_lines; do
4234c9e2be55Smrg    if test $ac_beg -gt 1; then
4235c9e2be55Smrg      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4236c9e2be55Smrg    else
4237c9e2be55Smrg      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4238c9e2be55Smrg    fi
4239c9e2be55Smrg    if test ! -s $tmp/subs.frag; then
4240c9e2be55Smrg      ac_more_lines=false
4241c9e2be55Smrg    else
4242c9e2be55Smrg      # The purpose of the label and of the branching condition is to
4243c9e2be55Smrg      # speed up the sed processing (if there are no `@' at all, there
4244c9e2be55Smrg      # is no need to browse any of the substitutions).
4245c9e2be55Smrg      # These are the two extra sed commands mentioned above.
4246c9e2be55Smrg      (echo ':t
4247c9e2be55Smrg  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4248c9e2be55Smrg      if test -z "$ac_sed_cmds"; then
4249c9e2be55Smrg	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4250c9e2be55Smrg      else
4251c9e2be55Smrg	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4252c9e2be55Smrg      fi
4253c9e2be55Smrg      ac_sed_frag=`expr $ac_sed_frag + 1`
4254c9e2be55Smrg      ac_beg=$ac_end
4255c9e2be55Smrg      ac_end=`expr $ac_end + $ac_max_sed_lines`
4256c9e2be55Smrg    fi
4257c9e2be55Smrg  done
4258c9e2be55Smrg  if test -z "$ac_sed_cmds"; then
4259c9e2be55Smrg    ac_sed_cmds=cat
4260c9e2be55Smrg  fi
4261c9e2be55Smrgfi # test -n "$CONFIG_FILES"
4262c9e2be55Smrg
4263c9e2be55Smrg_ACEOF
4264c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4265c9e2be55Smrgfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4266c9e2be55Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4267c9e2be55Smrg  case $ac_file in
4268c9e2be55Smrg  - | *:- | *:-:* ) # input from stdin
4269c9e2be55Smrg	cat >$tmp/stdin
4270c9e2be55Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4271c9e2be55Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4272c9e2be55Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4273c9e2be55Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4274c9e2be55Smrg  * )   ac_file_in=$ac_file.in ;;
4275c9e2be55Smrg  esac
4276c9e2be55Smrg
4277c9e2be55Smrg  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4278c9e2be55Smrg  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4279c9e2be55Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4280c9e2be55Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
4281c9e2be55Smrg	 X"$ac_file" : 'X\(//\)$' \| \
4282c9e2be55Smrg	 X"$ac_file" : 'X\(/\)' \| \
4283c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4284c9e2be55Smrgecho X"$ac_file" |
4285c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4286c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4287c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4288c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4289c9e2be55Smrg  	  s/.*/./; q'`
4290c9e2be55Smrg  { if $as_mkdir_p; then
4291c9e2be55Smrg    mkdir -p "$ac_dir"
4292c9e2be55Smrg  else
4293c9e2be55Smrg    as_dir="$ac_dir"
4294c9e2be55Smrg    as_dirs=
4295c9e2be55Smrg    while test ! -d "$as_dir"; do
4296c9e2be55Smrg      as_dirs="$as_dir $as_dirs"
4297c9e2be55Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4298c9e2be55Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4299c9e2be55Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4300c9e2be55Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4301c9e2be55Smrg	 X"$as_dir" : 'X\(/\)' \| \
4302c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4303c9e2be55Smrgecho X"$as_dir" |
4304c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4305c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4306c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4307c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4308c9e2be55Smrg  	  s/.*/./; q'`
4309c9e2be55Smrg    done
4310c9e2be55Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4311c9e2be55Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4312c9e2be55Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4313c9e2be55Smrg   { (exit 1); exit 1; }; }; }
4314c9e2be55Smrg
4315c9e2be55Smrg  ac_builddir=.
4316c9e2be55Smrg
4317c9e2be55Smrgif test "$ac_dir" != .; then
4318c9e2be55Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4319c9e2be55Smrg  # A "../" for each directory in $ac_dir_suffix.
4320c9e2be55Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4321c9e2be55Smrgelse
4322c9e2be55Smrg  ac_dir_suffix= ac_top_builddir=
4323c9e2be55Smrgfi
4324c9e2be55Smrg
4325c9e2be55Smrgcase $srcdir in
4326c9e2be55Smrg  .)  # No --srcdir option.  We are building in place.
4327c9e2be55Smrg    ac_srcdir=.
4328c9e2be55Smrg    if test -z "$ac_top_builddir"; then
4329c9e2be55Smrg       ac_top_srcdir=.
4330c9e2be55Smrg    else
4331c9e2be55Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4332c9e2be55Smrg    fi ;;
4333c9e2be55Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
4334c9e2be55Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
4335c9e2be55Smrg    ac_top_srcdir=$srcdir ;;
4336c9e2be55Smrg  *) # Relative path.
4337c9e2be55Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4338c9e2be55Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4339c9e2be55Smrgesac
4340c9e2be55Smrg
4341c9e2be55Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
4342c9e2be55Smrg# the directories may not exist.
4343c9e2be55Smrgcase `pwd` in
4344c9e2be55Smrg.) ac_abs_builddir="$ac_dir";;
4345c9e2be55Smrg*)
4346c9e2be55Smrg  case "$ac_dir" in
4347c9e2be55Smrg  .) ac_abs_builddir=`pwd`;;
4348c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4349c9e2be55Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4350c9e2be55Smrg  esac;;
4351c9e2be55Smrgesac
4352c9e2be55Smrgcase $ac_abs_builddir in
4353c9e2be55Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
4354c9e2be55Smrg*)
4355c9e2be55Smrg  case ${ac_top_builddir}. in
4356c9e2be55Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
4357c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4358c9e2be55Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4359c9e2be55Smrg  esac;;
4360c9e2be55Smrgesac
4361c9e2be55Smrgcase $ac_abs_builddir in
4362c9e2be55Smrg.) ac_abs_srcdir=$ac_srcdir;;
4363c9e2be55Smrg*)
4364c9e2be55Smrg  case $ac_srcdir in
4365c9e2be55Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
4366c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4367c9e2be55Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4368c9e2be55Smrg  esac;;
4369c9e2be55Smrgesac
4370c9e2be55Smrgcase $ac_abs_builddir in
4371c9e2be55Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
4372c9e2be55Smrg*)
4373c9e2be55Smrg  case $ac_top_srcdir in
4374c9e2be55Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4375c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4376c9e2be55Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4377c9e2be55Smrg  esac;;
4378c9e2be55Smrgesac
4379c9e2be55Smrg
4380c9e2be55Smrg
4381c9e2be55Smrg  case $INSTALL in
4382c9e2be55Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4383c9e2be55Smrg  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4384c9e2be55Smrg  esac
4385c9e2be55Smrg
4386c9e2be55Smrg  if test x"$ac_file" != x-; then
4387c9e2be55Smrg    { echo "$as_me:$LINENO: creating $ac_file" >&5
4388c9e2be55Smrgecho "$as_me: creating $ac_file" >&6;}
4389c9e2be55Smrg    rm -f "$ac_file"
4390c9e2be55Smrg  fi
4391c9e2be55Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
4392c9e2be55Smrg  # use $as_me), people would be surprised to read:
4393c9e2be55Smrg  #    /* config.h.  Generated by config.status.  */
4394c9e2be55Smrg  if test x"$ac_file" = x-; then
4395c9e2be55Smrg    configure_input=
4396c9e2be55Smrg  else
4397c9e2be55Smrg    configure_input="$ac_file.  "
4398c9e2be55Smrg  fi
4399c9e2be55Smrg  configure_input=$configure_input"Generated from `echo $ac_file_in |
4400c9e2be55Smrg				     sed 's,.*/,,'` by configure."
4401c9e2be55Smrg
4402c9e2be55Smrg  # First look for the input files in the build tree, otherwise in the
4403c9e2be55Smrg  # src tree.
4404c9e2be55Smrg  ac_file_inputs=`IFS=:
4405c9e2be55Smrg    for f in $ac_file_in; do
4406c9e2be55Smrg      case $f in
4407c9e2be55Smrg      -) echo $tmp/stdin ;;
4408c9e2be55Smrg      [\\/$]*)
4409c9e2be55Smrg	 # Absolute (can't be DOS-style, as IFS=:)
4410c9e2be55Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4411c9e2be55Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4412c9e2be55Smrg   { (exit 1); exit 1; }; }
4413c9e2be55Smrg	 echo "$f";;
4414c9e2be55Smrg      *) # Relative
4415c9e2be55Smrg	 if test -f "$f"; then
4416c9e2be55Smrg	   # Build tree
4417c9e2be55Smrg	   echo "$f"
4418c9e2be55Smrg	 elif test -f "$srcdir/$f"; then
4419c9e2be55Smrg	   # Source tree
4420c9e2be55Smrg	   echo "$srcdir/$f"
4421c9e2be55Smrg	 else
4422c9e2be55Smrg	   # /dev/null tree
4423c9e2be55Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4424c9e2be55Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4425c9e2be55Smrg   { (exit 1); exit 1; }; }
4426c9e2be55Smrg	 fi;;
4427c9e2be55Smrg      esac
4428c9e2be55Smrg    done` || { (exit 1); exit 1; }
4429c9e2be55Smrg_ACEOF
4430c9e2be55Smrgcat >>$CONFIG_STATUS <<_ACEOF
4431c9e2be55Smrg  sed "$ac_vpsub
4432c9e2be55Smrg$extrasub
4433c9e2be55Smrg_ACEOF
4434c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4435c9e2be55Smrg:t
4436c9e2be55Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4437c9e2be55Smrgs,@configure_input@,$configure_input,;t t
4438c9e2be55Smrgs,@srcdir@,$ac_srcdir,;t t
4439c9e2be55Smrgs,@abs_srcdir@,$ac_abs_srcdir,;t t
4440c9e2be55Smrgs,@top_srcdir@,$ac_top_srcdir,;t t
4441c9e2be55Smrgs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4442c9e2be55Smrgs,@builddir@,$ac_builddir,;t t
4443c9e2be55Smrgs,@abs_builddir@,$ac_abs_builddir,;t t
4444c9e2be55Smrgs,@top_builddir@,$ac_top_builddir,;t t
4445c9e2be55Smrgs,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4446c9e2be55Smrgs,@INSTALL@,$ac_INSTALL,;t t
4447c9e2be55Smrg" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4448c9e2be55Smrg  rm -f $tmp/stdin
4449c9e2be55Smrg  if test x"$ac_file" != x-; then
4450c9e2be55Smrg    mv $tmp/out $ac_file
4451c9e2be55Smrg  else
4452c9e2be55Smrg    cat $tmp/out
4453c9e2be55Smrg    rm -f $tmp/out
4454c9e2be55Smrg  fi
4455c9e2be55Smrg
4456c9e2be55Smrgdone
4457c9e2be55Smrg_ACEOF
4458c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4459c9e2be55Smrg
4460c9e2be55Smrg#
4461c9e2be55Smrg# CONFIG_HEADER section.
4462c9e2be55Smrg#
4463c9e2be55Smrg
4464c9e2be55Smrg# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4465c9e2be55Smrg# NAME is the cpp macro being defined and VALUE is the value it is being given.
4466c9e2be55Smrg#
4467c9e2be55Smrg# ac_d sets the value in "#define NAME VALUE" lines.
4468c9e2be55Smrgac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
4469c9e2be55Smrgac_dB='[	 ].*$,\1#\2'
4470c9e2be55Smrgac_dC=' '
4471c9e2be55Smrgac_dD=',;t'
4472c9e2be55Smrg# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4473c9e2be55Smrgac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
4474c9e2be55Smrgac_uB='$,\1#\2define\3'
4475c9e2be55Smrgac_uC=' '
4476c9e2be55Smrgac_uD=',;t'
4477c9e2be55Smrg
4478c9e2be55Smrgfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4479c9e2be55Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4480c9e2be55Smrg  case $ac_file in
4481c9e2be55Smrg  - | *:- | *:-:* ) # input from stdin
4482c9e2be55Smrg	cat >$tmp/stdin
4483c9e2be55Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4484c9e2be55Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4485c9e2be55Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4486c9e2be55Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4487c9e2be55Smrg  * )   ac_file_in=$ac_file.in ;;
4488c9e2be55Smrg  esac
4489c9e2be55Smrg
4490c9e2be55Smrg  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4491c9e2be55Smrgecho "$as_me: creating $ac_file" >&6;}
4492c9e2be55Smrg
4493c9e2be55Smrg  # First look for the input files in the build tree, otherwise in the
4494c9e2be55Smrg  # src tree.
4495c9e2be55Smrg  ac_file_inputs=`IFS=:
4496c9e2be55Smrg    for f in $ac_file_in; do
4497c9e2be55Smrg      case $f in
4498c9e2be55Smrg      -) echo $tmp/stdin ;;
4499c9e2be55Smrg      [\\/$]*)
4500c9e2be55Smrg	 # Absolute (can't be DOS-style, as IFS=:)
4501c9e2be55Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4502c9e2be55Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4503c9e2be55Smrg   { (exit 1); exit 1; }; }
4504c9e2be55Smrg	 # Do quote $f, to prevent DOS paths from being IFS'd.
4505c9e2be55Smrg	 echo "$f";;
4506c9e2be55Smrg      *) # Relative
4507c9e2be55Smrg	 if test -f "$f"; then
4508c9e2be55Smrg	   # Build tree
4509c9e2be55Smrg	   echo "$f"
4510c9e2be55Smrg	 elif test -f "$srcdir/$f"; then
4511c9e2be55Smrg	   # Source tree
4512c9e2be55Smrg	   echo "$srcdir/$f"
4513c9e2be55Smrg	 else
4514c9e2be55Smrg	   # /dev/null tree
4515c9e2be55Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4516c9e2be55Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4517c9e2be55Smrg   { (exit 1); exit 1; }; }
4518c9e2be55Smrg	 fi;;
4519c9e2be55Smrg      esac
4520c9e2be55Smrg    done` || { (exit 1); exit 1; }
4521c9e2be55Smrg  # Remove the trailing spaces.
4522c9e2be55Smrg  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
4523c9e2be55Smrg
4524c9e2be55Smrg_ACEOF
4525c9e2be55Smrg
4526c9e2be55Smrg# Transform confdefs.h into two sed scripts, `conftest.defines' and
4527c9e2be55Smrg# `conftest.undefs', that substitutes the proper values into
4528c9e2be55Smrg# config.h.in to produce config.h.  The first handles `#define'
4529c9e2be55Smrg# templates, and the second `#undef' templates.
4530c9e2be55Smrg# And first: Protect against being on the right side of a sed subst in
4531c9e2be55Smrg# config.status.  Protect against being in an unquoted here document
4532c9e2be55Smrg# in config.status.
4533c9e2be55Smrgrm -f conftest.defines conftest.undefs
4534c9e2be55Smrg# Using a here document instead of a string reduces the quoting nightmare.
4535c9e2be55Smrg# Putting comments in sed scripts is not portable.
4536c9e2be55Smrg#
4537c9e2be55Smrg# `end' is used to avoid that the second main sed command (meant for
4538c9e2be55Smrg# 0-ary CPP macros) applies to n-ary macro definitions.
4539c9e2be55Smrg# See the Autoconf documentation for `clear'.
4540c9e2be55Smrgcat >confdef2sed.sed <<\_ACEOF
4541c9e2be55Smrgs/[\\&,]/\\&/g
4542c9e2be55Smrgs,[\\$`],\\&,g
4543c9e2be55Smrgt clear
4544c9e2be55Smrg: clear
4545c9e2be55Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4546c9e2be55Smrgt end
4547c9e2be55Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4548c9e2be55Smrg: end
4549c9e2be55Smrg_ACEOF
4550c9e2be55Smrg# If some macros were called several times there might be several times
4551c9e2be55Smrg# the same #defines, which is useless.  Nevertheless, we may not want to
4552c9e2be55Smrg# sort them, since we want the *last* AC-DEFINE to be honored.
4553c9e2be55Smrguniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4554c9e2be55Smrgsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4555c9e2be55Smrgrm -f confdef2sed.sed
4556c9e2be55Smrg
4557c9e2be55Smrg# This sed command replaces #undef with comments.  This is necessary, for
4558c9e2be55Smrg# example, in the case of _POSIX_SOURCE, which is predefined and required
4559c9e2be55Smrg# on some systems where configure will not decide to define it.
4560c9e2be55Smrgcat >>conftest.undefs <<\_ACEOF
4561c9e2be55Smrgs,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4562c9e2be55Smrg_ACEOF
4563c9e2be55Smrg
4564c9e2be55Smrg# Break up conftest.defines because some shells have a limit on the size
4565c9e2be55Smrg# of here documents, and old seds have small limits too (100 cmds).
4566c9e2be55Smrgecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4567c9e2be55Smrgecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4568c9e2be55Smrgecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4569c9e2be55Smrgecho '  :' >>$CONFIG_STATUS
4570c9e2be55Smrgrm -f conftest.tail
4571c9e2be55Smrgwhile grep . conftest.defines >/dev/null
4572c9e2be55Smrgdo
4573c9e2be55Smrg  # Write a limited-size here document to $tmp/defines.sed.
4574c9e2be55Smrg  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4575c9e2be55Smrg  # Speed up: don't consider the non `#define' lines.
4576c9e2be55Smrg  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
4577c9e2be55Smrg  # Work around the forget-to-reset-the-flag bug.
4578c9e2be55Smrg  echo 't clr' >>$CONFIG_STATUS
4579c9e2be55Smrg  echo ': clr' >>$CONFIG_STATUS
4580c9e2be55Smrg  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4581c9e2be55Smrg  echo 'CEOF
4582c9e2be55Smrg  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4583c9e2be55Smrg  rm -f $tmp/in
4584c9e2be55Smrg  mv $tmp/out $tmp/in
4585c9e2be55Smrg' >>$CONFIG_STATUS
4586c9e2be55Smrg  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4587c9e2be55Smrg  rm -f conftest.defines
4588c9e2be55Smrg  mv conftest.tail conftest.defines
4589c9e2be55Smrgdone
4590c9e2be55Smrgrm -f conftest.defines
4591c9e2be55Smrgecho '  fi # grep' >>$CONFIG_STATUS
4592c9e2be55Smrgecho >>$CONFIG_STATUS
4593c9e2be55Smrg
4594c9e2be55Smrg# Break up conftest.undefs because some shells have a limit on the size
4595c9e2be55Smrg# of here documents, and old seds have small limits too (100 cmds).
4596c9e2be55Smrgecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
4597c9e2be55Smrgrm -f conftest.tail
4598c9e2be55Smrgwhile grep . conftest.undefs >/dev/null
4599c9e2be55Smrgdo
4600c9e2be55Smrg  # Write a limited-size here document to $tmp/undefs.sed.
4601c9e2be55Smrg  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4602c9e2be55Smrg  # Speed up: don't consider the non `#undef'
4603c9e2be55Smrg  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
4604c9e2be55Smrg  # Work around the forget-to-reset-the-flag bug.
4605c9e2be55Smrg  echo 't clr' >>$CONFIG_STATUS
4606c9e2be55Smrg  echo ': clr' >>$CONFIG_STATUS
4607c9e2be55Smrg  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4608c9e2be55Smrg  echo 'CEOF
4609c9e2be55Smrg  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4610c9e2be55Smrg  rm -f $tmp/in
4611c9e2be55Smrg  mv $tmp/out $tmp/in
4612c9e2be55Smrg' >>$CONFIG_STATUS
4613c9e2be55Smrg  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4614c9e2be55Smrg  rm -f conftest.undefs
4615c9e2be55Smrg  mv conftest.tail conftest.undefs
4616c9e2be55Smrgdone
4617c9e2be55Smrgrm -f conftest.undefs
4618c9e2be55Smrg
4619c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4620c9e2be55Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
4621c9e2be55Smrg  # use $as_me), people would be surprised to read:
4622c9e2be55Smrg  #    /* config.h.  Generated by config.status.  */
4623c9e2be55Smrg  if test x"$ac_file" = x-; then
4624c9e2be55Smrg    echo "/* Generated by configure.  */" >$tmp/config.h
4625c9e2be55Smrg  else
4626c9e2be55Smrg    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4627c9e2be55Smrg  fi
4628c9e2be55Smrg  cat $tmp/in >>$tmp/config.h
4629c9e2be55Smrg  rm -f $tmp/in
4630c9e2be55Smrg  if test x"$ac_file" != x-; then
4631c9e2be55Smrg    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4632c9e2be55Smrg      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4633c9e2be55Smrgecho "$as_me: $ac_file is unchanged" >&6;}
4634c9e2be55Smrg    else
4635c9e2be55Smrg      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4636c9e2be55Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4637c9e2be55Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
4638c9e2be55Smrg	 X"$ac_file" : 'X\(//\)$' \| \
4639c9e2be55Smrg	 X"$ac_file" : 'X\(/\)' \| \
4640c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4641c9e2be55Smrgecho X"$ac_file" |
4642c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4643c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4644c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4645c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4646c9e2be55Smrg  	  s/.*/./; q'`
4647c9e2be55Smrg      { if $as_mkdir_p; then
4648c9e2be55Smrg    mkdir -p "$ac_dir"
4649c9e2be55Smrg  else
4650c9e2be55Smrg    as_dir="$ac_dir"
4651c9e2be55Smrg    as_dirs=
4652c9e2be55Smrg    while test ! -d "$as_dir"; do
4653c9e2be55Smrg      as_dirs="$as_dir $as_dirs"
4654c9e2be55Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4655c9e2be55Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656c9e2be55Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4657c9e2be55Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4658c9e2be55Smrg	 X"$as_dir" : 'X\(/\)' \| \
4659c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4660c9e2be55Smrgecho X"$as_dir" |
4661c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4662c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4663c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4664c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4665c9e2be55Smrg  	  s/.*/./; q'`
4666c9e2be55Smrg    done
4667c9e2be55Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4668c9e2be55Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4669c9e2be55Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4670c9e2be55Smrg   { (exit 1); exit 1; }; }; }
4671c9e2be55Smrg
4672c9e2be55Smrg      rm -f $ac_file
4673c9e2be55Smrg      mv $tmp/config.h $ac_file
4674c9e2be55Smrg    fi
4675c9e2be55Smrg  else
4676c9e2be55Smrg    cat $tmp/config.h
4677c9e2be55Smrg    rm -f $tmp/config.h
4678c9e2be55Smrg  fi
4679c9e2be55Smrg# Compute $ac_file's index in $config_headers.
4680c9e2be55Smrg_am_stamp_count=1
4681c9e2be55Smrgfor _am_header in $config_headers :; do
4682c9e2be55Smrg  case $_am_header in
4683c9e2be55Smrg    $ac_file | $ac_file:* )
4684c9e2be55Smrg      break ;;
4685c9e2be55Smrg    * )
4686c9e2be55Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4687c9e2be55Smrg  esac
4688c9e2be55Smrgdone
4689c9e2be55Smrgecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4690c9e2be55Smrg$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4691c9e2be55Smrg	 X$ac_file : 'X\(//\)[^/]' \| \
4692c9e2be55Smrg	 X$ac_file : 'X\(//\)$' \| \
4693c9e2be55Smrg	 X$ac_file : 'X\(/\)' \| \
4694c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4695c9e2be55Smrgecho X$ac_file |
4696c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4697c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4698c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4699c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4700c9e2be55Smrg  	  s/.*/./; q'`/stamp-h$_am_stamp_count
4701c9e2be55Smrgdone
4702c9e2be55Smrg_ACEOF
4703c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4704c9e2be55Smrg
4705c9e2be55Smrg#
4706c9e2be55Smrg# CONFIG_COMMANDS section.
4707c9e2be55Smrg#
4708c9e2be55Smrgfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4709c9e2be55Smrg  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4710c9e2be55Smrg  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4711c9e2be55Smrg  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4712c9e2be55Smrg$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4713c9e2be55Smrg	 X"$ac_dest" : 'X\(//\)[^/]' \| \
4714c9e2be55Smrg	 X"$ac_dest" : 'X\(//\)$' \| \
4715c9e2be55Smrg	 X"$ac_dest" : 'X\(/\)' \| \
4716c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4717c9e2be55Smrgecho X"$ac_dest" |
4718c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4719c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4720c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4721c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4722c9e2be55Smrg  	  s/.*/./; q'`
4723c9e2be55Smrg  { if $as_mkdir_p; then
4724c9e2be55Smrg    mkdir -p "$ac_dir"
4725c9e2be55Smrg  else
4726c9e2be55Smrg    as_dir="$ac_dir"
4727c9e2be55Smrg    as_dirs=
4728c9e2be55Smrg    while test ! -d "$as_dir"; do
4729c9e2be55Smrg      as_dirs="$as_dir $as_dirs"
4730c9e2be55Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4731c9e2be55Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4732c9e2be55Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4733c9e2be55Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4734c9e2be55Smrg	 X"$as_dir" : 'X\(/\)' \| \
4735c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4736c9e2be55Smrgecho X"$as_dir" |
4737c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4738c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4739c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4740c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4741c9e2be55Smrg  	  s/.*/./; q'`
4742c9e2be55Smrg    done
4743c9e2be55Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4744c9e2be55Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4745c9e2be55Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4746c9e2be55Smrg   { (exit 1); exit 1; }; }; }
4747c9e2be55Smrg
4748c9e2be55Smrg  ac_builddir=.
4749c9e2be55Smrg
4750c9e2be55Smrgif test "$ac_dir" != .; then
4751c9e2be55Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4752c9e2be55Smrg  # A "../" for each directory in $ac_dir_suffix.
4753c9e2be55Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4754c9e2be55Smrgelse
4755c9e2be55Smrg  ac_dir_suffix= ac_top_builddir=
4756c9e2be55Smrgfi
4757c9e2be55Smrg
4758c9e2be55Smrgcase $srcdir in
4759c9e2be55Smrg  .)  # No --srcdir option.  We are building in place.
4760c9e2be55Smrg    ac_srcdir=.
4761c9e2be55Smrg    if test -z "$ac_top_builddir"; then
4762c9e2be55Smrg       ac_top_srcdir=.
4763c9e2be55Smrg    else
4764c9e2be55Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4765c9e2be55Smrg    fi ;;
4766c9e2be55Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
4767c9e2be55Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
4768c9e2be55Smrg    ac_top_srcdir=$srcdir ;;
4769c9e2be55Smrg  *) # Relative path.
4770c9e2be55Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4771c9e2be55Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4772c9e2be55Smrgesac
4773c9e2be55Smrg
4774c9e2be55Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
4775c9e2be55Smrg# the directories may not exist.
4776c9e2be55Smrgcase `pwd` in
4777c9e2be55Smrg.) ac_abs_builddir="$ac_dir";;
4778c9e2be55Smrg*)
4779c9e2be55Smrg  case "$ac_dir" in
4780c9e2be55Smrg  .) ac_abs_builddir=`pwd`;;
4781c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4782c9e2be55Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4783c9e2be55Smrg  esac;;
4784c9e2be55Smrgesac
4785c9e2be55Smrgcase $ac_abs_builddir in
4786c9e2be55Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
4787c9e2be55Smrg*)
4788c9e2be55Smrg  case ${ac_top_builddir}. in
4789c9e2be55Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
4790c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4791c9e2be55Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4792c9e2be55Smrg  esac;;
4793c9e2be55Smrgesac
4794c9e2be55Smrgcase $ac_abs_builddir in
4795c9e2be55Smrg.) ac_abs_srcdir=$ac_srcdir;;
4796c9e2be55Smrg*)
4797c9e2be55Smrg  case $ac_srcdir in
4798c9e2be55Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
4799c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4800c9e2be55Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4801c9e2be55Smrg  esac;;
4802c9e2be55Smrgesac
4803c9e2be55Smrgcase $ac_abs_builddir in
4804c9e2be55Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
4805c9e2be55Smrg*)
4806c9e2be55Smrg  case $ac_top_srcdir in
4807c9e2be55Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4808c9e2be55Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4809c9e2be55Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4810c9e2be55Smrg  esac;;
4811c9e2be55Smrgesac
4812c9e2be55Smrg
4813c9e2be55Smrg
4814c9e2be55Smrg  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4815c9e2be55Smrgecho "$as_me: executing $ac_dest commands" >&6;}
4816c9e2be55Smrg  case $ac_dest in
4817c9e2be55Smrg    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4818c9e2be55Smrg  # Strip MF so we end up with the name of the file.
4819c9e2be55Smrg  mf=`echo "$mf" | sed -e 's/:.*$//'`
4820c9e2be55Smrg  # Check whether this is an Automake generated Makefile or not.
4821c9e2be55Smrg  # We used to match only the files named `Makefile.in', but
4822c9e2be55Smrg  # some people rename them; so instead we look at the file content.
4823c9e2be55Smrg  # Grep'ing the first line is not enough: some people post-process
4824c9e2be55Smrg  # each Makefile.in and add a new line on top of each file to say so.
4825c9e2be55Smrg  # So let's grep whole file.
4826c9e2be55Smrg  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4827c9e2be55Smrg    dirpart=`(dirname "$mf") 2>/dev/null ||
4828c9e2be55Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4829c9e2be55Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
4830c9e2be55Smrg	 X"$mf" : 'X\(//\)$' \| \
4831c9e2be55Smrg	 X"$mf" : 'X\(/\)' \| \
4832c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4833c9e2be55Smrgecho X"$mf" |
4834c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4835c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4836c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4837c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4838c9e2be55Smrg  	  s/.*/./; q'`
4839c9e2be55Smrg  else
4840c9e2be55Smrg    continue
4841c9e2be55Smrg  fi
4842c9e2be55Smrg  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4843c9e2be55Smrg  # Extract the definition of DEP_FILES from the Makefile without
4844c9e2be55Smrg  # running `make'.
4845c9e2be55Smrg  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4846c9e2be55Smrg  test -z "$DEPDIR" && continue
4847c9e2be55Smrg  # When using ansi2knr, U may be empty or an underscore; expand it
4848c9e2be55Smrg  U=`sed -n -e '/^U = / s///p' < "$mf"`
4849c9e2be55Smrg  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4850c9e2be55Smrg  # We invoke sed twice because it is the simplest approach to
4851c9e2be55Smrg  # changing $(DEPDIR) to its actual value in the expansion.
4852c9e2be55Smrg  for file in `sed -n -e '
4853c9e2be55Smrg    /^DEP_FILES = .*\\\\$/ {
4854c9e2be55Smrg      s/^DEP_FILES = //
4855c9e2be55Smrg      :loop
4856c9e2be55Smrg	s/\\\\$//
4857c9e2be55Smrg	p
4858c9e2be55Smrg	n
4859c9e2be55Smrg	/\\\\$/ b loop
4860c9e2be55Smrg      p
4861c9e2be55Smrg    }
4862c9e2be55Smrg    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4863c9e2be55Smrg       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4864c9e2be55Smrg    # Make sure the directory exists.
4865c9e2be55Smrg    test -f "$dirpart/$file" && continue
4866c9e2be55Smrg    fdir=`(dirname "$file") 2>/dev/null ||
4867c9e2be55Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4868c9e2be55Smrg	 X"$file" : 'X\(//\)[^/]' \| \
4869c9e2be55Smrg	 X"$file" : 'X\(//\)$' \| \
4870c9e2be55Smrg	 X"$file" : 'X\(/\)' \| \
4871c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4872c9e2be55Smrgecho X"$file" |
4873c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4874c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4875c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4876c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4877c9e2be55Smrg  	  s/.*/./; q'`
4878c9e2be55Smrg    { if $as_mkdir_p; then
4879c9e2be55Smrg    mkdir -p $dirpart/$fdir
4880c9e2be55Smrg  else
4881c9e2be55Smrg    as_dir=$dirpart/$fdir
4882c9e2be55Smrg    as_dirs=
4883c9e2be55Smrg    while test ! -d "$as_dir"; do
4884c9e2be55Smrg      as_dirs="$as_dir $as_dirs"
4885c9e2be55Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4886c9e2be55Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4887c9e2be55Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4888c9e2be55Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4889c9e2be55Smrg	 X"$as_dir" : 'X\(/\)' \| \
4890c9e2be55Smrg	 .     : '\(.\)' 2>/dev/null ||
4891c9e2be55Smrgecho X"$as_dir" |
4892c9e2be55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4893c9e2be55Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4894c9e2be55Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4895c9e2be55Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4896c9e2be55Smrg  	  s/.*/./; q'`
4897c9e2be55Smrg    done
4898c9e2be55Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4899c9e2be55Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4900c9e2be55Smrgecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4901c9e2be55Smrg   { (exit 1); exit 1; }; }; }
4902c9e2be55Smrg
4903c9e2be55Smrg    # echo "creating $dirpart/$file"
4904c9e2be55Smrg    echo '# dummy' > "$dirpart/$file"
4905c9e2be55Smrg  done
4906c9e2be55Smrgdone
4907c9e2be55Smrg ;;
4908c9e2be55Smrg  esac
4909c9e2be55Smrgdone
4910c9e2be55Smrg_ACEOF
4911c9e2be55Smrg
4912c9e2be55Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4913c9e2be55Smrg
4914c9e2be55Smrg{ (exit 0); exit 0; }
4915c9e2be55Smrg_ACEOF
4916c9e2be55Smrgchmod +x $CONFIG_STATUS
4917c9e2be55Smrgac_clean_files=$ac_clean_files_save
4918c9e2be55Smrg
4919c9e2be55Smrg
4920c9e2be55Smrg# configure is writing to config.log, and then calls config.status.
4921c9e2be55Smrg# config.status does its own redirection, appending to config.log.
4922c9e2be55Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
4923c9e2be55Smrg# by configure, so config.status won't be able to write to it; its
4924c9e2be55Smrg# output is simply discarded.  So we exec the FD to /dev/null,
4925c9e2be55Smrg# effectively closing config.log, so it can be properly (re)opened and
4926c9e2be55Smrg# appended to by config.status.  When coming back to configure, we
4927c9e2be55Smrg# need to make the FD available again.
4928c9e2be55Smrgif test "$no_create" != yes; then
4929c9e2be55Smrg  ac_cs_success=:
4930c9e2be55Smrg  ac_config_status_args=
4931c9e2be55Smrg  test "$silent" = yes &&
4932c9e2be55Smrg    ac_config_status_args="$ac_config_status_args --quiet"
4933c9e2be55Smrg  exec 5>/dev/null
4934c9e2be55Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4935c9e2be55Smrg  exec 5>>config.log
4936c9e2be55Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4937c9e2be55Smrg  # would make configure fail if this is the last instruction.
4938c9e2be55Smrg  $ac_cs_success || { (exit 1); exit 1; }
4939c9e2be55Smrgfi
4940c9e2be55Smrg
4941