configure revision dbe7da2e
1a8fdb4bcSmrg#! /bin/sh
2a8fdb4bcSmrg# Guess values for system-dependent variables and create Makefiles.
3dbe7da2eSmrg# Generated by GNU Autoconf 2.65 for luit 1.0.5.
4a8fdb4bcSmrg#
5a8fdb4bcSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a8fdb4bcSmrg#
7dbe7da2eSmrg#
8a8fdb4bcSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9dbe7da2eSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10dbe7da2eSmrg# Inc.
11dbe7da2eSmrg#
12dbe7da2eSmrg#
13a8fdb4bcSmrg# This configure script is free software; the Free Software Foundation
14a8fdb4bcSmrg# gives unlimited permission to copy, distribute and modify it.
15dbe7da2eSmrg## -------------------- ##
16dbe7da2eSmrg## M4sh Initialization. ##
17dbe7da2eSmrg## -------------------- ##
18a8fdb4bcSmrg
19a8fdb4bcSmrg# Be more Bourne compatible
20a8fdb4bcSmrgDUALCASE=1; export DUALCASE # for MKS sh
21dbe7da2eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a8fdb4bcSmrg  emulate sh
23a8fdb4bcSmrg  NULLCMD=:
24dbe7da2eSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a8fdb4bcSmrg  # is contrary to our usage.  Disable this feature.
26a8fdb4bcSmrg  alias -g '${1+"$@"}'='"$@"'
27a8fdb4bcSmrg  setopt NO_GLOB_SUBST
28a8fdb4bcSmrgelse
29dbe7da2eSmrg  case `(set -o) 2>/dev/null` in #(
30dbe7da2eSmrg  *posix*) :
31dbe7da2eSmrg    set -o posix ;; #(
32dbe7da2eSmrg  *) :
33dbe7da2eSmrg     ;;
34a8fdb4bcSmrgesac
35a8fdb4bcSmrgfi
36a8fdb4bcSmrg
37a8fdb4bcSmrg
38dbe7da2eSmrgas_nl='
39dbe7da2eSmrg'
40dbe7da2eSmrgexport as_nl
41dbe7da2eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42dbe7da2eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45dbe7da2eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46dbe7da2eSmrg# but without wasting forks for bash or zsh.
47dbe7da2eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48dbe7da2eSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49dbe7da2eSmrg  as_echo='print -r --'
50dbe7da2eSmrg  as_echo_n='print -rn --'
51dbe7da2eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52dbe7da2eSmrg  as_echo='printf %s\n'
53dbe7da2eSmrg  as_echo_n='printf %s'
54dbe7da2eSmrgelse
55dbe7da2eSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56dbe7da2eSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57dbe7da2eSmrg    as_echo_n='/usr/ucb/echo -n'
58a8fdb4bcSmrg  else
59dbe7da2eSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60dbe7da2eSmrg    as_echo_n_body='eval
61dbe7da2eSmrg      arg=$1;
62dbe7da2eSmrg      case $arg in #(
63dbe7da2eSmrg      *"$as_nl"*)
64dbe7da2eSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65dbe7da2eSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66dbe7da2eSmrg      esac;
67dbe7da2eSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68dbe7da2eSmrg    '
69dbe7da2eSmrg    export as_echo_n_body
70dbe7da2eSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a8fdb4bcSmrg  fi
72dbe7da2eSmrg  export as_echo_body
73dbe7da2eSmrg  as_echo='sh -c $as_echo_body as_echo'
74a8fdb4bcSmrgfi
75a8fdb4bcSmrg
76dbe7da2eSmrg# The user is always right.
77dbe7da2eSmrgif test "${PATH_SEPARATOR+set}" != set; then
78dbe7da2eSmrg  PATH_SEPARATOR=:
79dbe7da2eSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80dbe7da2eSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81dbe7da2eSmrg      PATH_SEPARATOR=';'
82dbe7da2eSmrg  }
83a8fdb4bcSmrgfi
84a8fdb4bcSmrg
85a8fdb4bcSmrg
86a8fdb4bcSmrg# IFS
87a8fdb4bcSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a8fdb4bcSmrg# there to prevent editors from complaining about space-tab.
89a8fdb4bcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a8fdb4bcSmrg# splitting by setting IFS to empty value.)
91a8fdb4bcSmrgIFS=" ""	$as_nl"
92a8fdb4bcSmrg
93a8fdb4bcSmrg# Find who we are.  Look in the path if we contain no directory separator.
94dbe7da2eSmrgcase $0 in #((
95a8fdb4bcSmrg  *[\\/]* ) as_myself=$0 ;;
96a8fdb4bcSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97a8fdb4bcSmrgfor as_dir in $PATH
98a8fdb4bcSmrgdo
99a8fdb4bcSmrg  IFS=$as_save_IFS
100a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
101dbe7da2eSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102dbe7da2eSmrg  done
103a8fdb4bcSmrgIFS=$as_save_IFS
104a8fdb4bcSmrg
105a8fdb4bcSmrg     ;;
106a8fdb4bcSmrgesac
107a8fdb4bcSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
108a8fdb4bcSmrg# in which case we are not to be found in the path.
109a8fdb4bcSmrgif test "x$as_myself" = x; then
110a8fdb4bcSmrg  as_myself=$0
111a8fdb4bcSmrgfi
112a8fdb4bcSmrgif test ! -f "$as_myself"; then
113dbe7da2eSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114dbe7da2eSmrg  exit 1
115a8fdb4bcSmrgfi
116a8fdb4bcSmrg
117dbe7da2eSmrg# Unset variables that we do not need and which cause bugs (e.g. in
118dbe7da2eSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119dbe7da2eSmrg# suppresses any "Segmentation fault" message there.  '((' could
120dbe7da2eSmrg# trigger a bug in pdksh 5.2.14.
121dbe7da2eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
122dbe7da2eSmrgdo eval test x\${$as_var+set} = xset \
123dbe7da2eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124a8fdb4bcSmrgdone
125a8fdb4bcSmrgPS1='$ '
126a8fdb4bcSmrgPS2='> '
127a8fdb4bcSmrgPS4='+ '
128a8fdb4bcSmrg
129a8fdb4bcSmrg# NLS nuisances.
130dbe7da2eSmrgLC_ALL=C
131dbe7da2eSmrgexport LC_ALL
132dbe7da2eSmrgLANGUAGE=C
133dbe7da2eSmrgexport LANGUAGE
134a8fdb4bcSmrg
135a8fdb4bcSmrg# CDPATH.
136dbe7da2eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137a8fdb4bcSmrg
138a8fdb4bcSmrgif test "x$CONFIG_SHELL" = x; then
139dbe7da2eSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140dbe7da2eSmrg  emulate sh
141dbe7da2eSmrg  NULLCMD=:
142dbe7da2eSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143dbe7da2eSmrg  # is contrary to our usage.  Disable this feature.
144dbe7da2eSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145dbe7da2eSmrg  setopt NO_GLOB_SUBST
146a8fdb4bcSmrgelse
147dbe7da2eSmrg  case \`(set -o) 2>/dev/null\` in #(
148dbe7da2eSmrg  *posix*) :
149dbe7da2eSmrg    set -o posix ;; #(
150dbe7da2eSmrg  *) :
151dbe7da2eSmrg     ;;
152dbe7da2eSmrgesac
153a8fdb4bcSmrgfi
154dbe7da2eSmrg"
155dbe7da2eSmrg  as_required="as_fn_return () { (exit \$1); }
156dbe7da2eSmrgas_fn_success () { as_fn_return 0; }
157dbe7da2eSmrgas_fn_failure () { as_fn_return 1; }
158dbe7da2eSmrgas_fn_ret_success () { return 0; }
159dbe7da2eSmrgas_fn_ret_failure () { return 1; }
160a8fdb4bcSmrg
161a8fdb4bcSmrgexitcode=0
162dbe7da2eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
163dbe7da2eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164dbe7da2eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165dbe7da2eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166dbe7da2eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167a8fdb4bcSmrg
168a8fdb4bcSmrgelse
169dbe7da2eSmrg  exitcode=1; echo positional parameters were not saved.
170dbe7da2eSmrgfi
171dbe7da2eSmrgtest x\$exitcode = x0 || exit 1"
172dbe7da2eSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173dbe7da2eSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174dbe7da2eSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175dbe7da2eSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176dbe7da2eSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
177dbe7da2eSmrg  if (eval "$as_required") 2>/dev/null; then :
178dbe7da2eSmrg  as_have_required=yes
179a8fdb4bcSmrgelse
180dbe7da2eSmrg  as_have_required=no
181a8fdb4bcSmrgfi
182dbe7da2eSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183a8fdb4bcSmrg
184a8fdb4bcSmrgelse
185dbe7da2eSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186dbe7da2eSmrgas_found=false
187a8fdb4bcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188a8fdb4bcSmrgdo
189a8fdb4bcSmrg  IFS=$as_save_IFS
190a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
191dbe7da2eSmrg  as_found=:
192dbe7da2eSmrg  case $as_dir in #(
193a8fdb4bcSmrg	 /*)
194a8fdb4bcSmrg	   for as_base in sh bash ksh sh5; do
195dbe7da2eSmrg	     # Try only shells that exist, to save several forks.
196dbe7da2eSmrg	     as_shell=$as_dir/$as_base
197dbe7da2eSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198dbe7da2eSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199dbe7da2eSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
200dbe7da2eSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201dbe7da2eSmrg  break 2
202dbe7da2eSmrgfi
203dbe7da2eSmrgfi
204a8fdb4bcSmrg	   done;;
205a8fdb4bcSmrg       esac
206dbe7da2eSmrg  as_found=false
207a8fdb4bcSmrgdone
208dbe7da2eSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209dbe7da2eSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210dbe7da2eSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
211dbe7da2eSmrgfi; }
212a8fdb4bcSmrgIFS=$as_save_IFS
213a8fdb4bcSmrg
214a8fdb4bcSmrg
215dbe7da2eSmrg      if test "x$CONFIG_SHELL" != x; then :
216dbe7da2eSmrg  # We cannot yet assume a decent shell, so we have to provide a
217dbe7da2eSmrg	# neutralization value for shells without unset; and this also
218dbe7da2eSmrg	# works around shells that cannot unset nonexistent variables.
219dbe7da2eSmrg	BASH_ENV=/dev/null
220dbe7da2eSmrg	ENV=/dev/null
221dbe7da2eSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222dbe7da2eSmrg	export CONFIG_SHELL
223dbe7da2eSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224a8fdb4bcSmrgfi
225a8fdb4bcSmrg
226dbe7da2eSmrg    if test x$as_have_required = xno; then :
227dbe7da2eSmrg  $as_echo "$0: This script requires a shell more modern than all"
228dbe7da2eSmrg  $as_echo "$0: the shells that I found on your system."
229dbe7da2eSmrg  if test x${ZSH_VERSION+set} = xset ; then
230dbe7da2eSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231dbe7da2eSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232dbe7da2eSmrg  else
233dbe7da2eSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234dbe7da2eSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235dbe7da2eSmrg$0: about your system, including any error possibly output
236dbe7da2eSmrg$0: before this message. Then install a modern shell, or
237dbe7da2eSmrg$0: manually run the script under such a shell if you do
238dbe7da2eSmrg$0: have one."
239dbe7da2eSmrg  fi
240dbe7da2eSmrg  exit 1
241a8fdb4bcSmrgfi
242dbe7da2eSmrgfi
243dbe7da2eSmrgfi
244dbe7da2eSmrgSHELL=${CONFIG_SHELL-/bin/sh}
245dbe7da2eSmrgexport SHELL
246dbe7da2eSmrg# Unset more variables known to interfere with behavior of common tools.
247dbe7da2eSmrgCLICOLOR_FORCE= GREP_OPTIONS=
248dbe7da2eSmrgunset CLICOLOR_FORCE GREP_OPTIONS
249a8fdb4bcSmrg
250dbe7da2eSmrg## --------------------- ##
251dbe7da2eSmrg## M4sh Shell Functions. ##
252dbe7da2eSmrg## --------------------- ##
253dbe7da2eSmrg# as_fn_unset VAR
254dbe7da2eSmrg# ---------------
255dbe7da2eSmrg# Portably unset VAR.
256dbe7da2eSmrgas_fn_unset ()
257dbe7da2eSmrg{
258dbe7da2eSmrg  { eval $1=; unset $1;}
259a8fdb4bcSmrg}
260dbe7da2eSmrgas_unset=as_fn_unset
261a8fdb4bcSmrg
262dbe7da2eSmrg# as_fn_set_status STATUS
263dbe7da2eSmrg# -----------------------
264dbe7da2eSmrg# Set $? to STATUS, without forking.
265dbe7da2eSmrgas_fn_set_status ()
266dbe7da2eSmrg{
267dbe7da2eSmrg  return $1
268dbe7da2eSmrg} # as_fn_set_status
269a8fdb4bcSmrg
270dbe7da2eSmrg# as_fn_exit STATUS
271dbe7da2eSmrg# -----------------
272dbe7da2eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273dbe7da2eSmrgas_fn_exit ()
274dbe7da2eSmrg{
275dbe7da2eSmrg  set +e
276dbe7da2eSmrg  as_fn_set_status $1
277dbe7da2eSmrg  exit $1
278dbe7da2eSmrg} # as_fn_exit
279dbe7da2eSmrg
280dbe7da2eSmrg# as_fn_mkdir_p
281dbe7da2eSmrg# -------------
282dbe7da2eSmrg# Create "$as_dir" as a directory, including parents if necessary.
283dbe7da2eSmrgas_fn_mkdir_p ()
284dbe7da2eSmrg{
285a8fdb4bcSmrg
286dbe7da2eSmrg  case $as_dir in #(
287dbe7da2eSmrg  -*) as_dir=./$as_dir;;
288dbe7da2eSmrg  esac
289dbe7da2eSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
290dbe7da2eSmrg    as_dirs=
291dbe7da2eSmrg    while :; do
292dbe7da2eSmrg      case $as_dir in #(
293dbe7da2eSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294dbe7da2eSmrg      *) as_qdir=$as_dir;;
295dbe7da2eSmrg      esac
296dbe7da2eSmrg      as_dirs="'$as_qdir' $as_dirs"
297dbe7da2eSmrg      as_dir=`$as_dirname -- "$as_dir" ||
298dbe7da2eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299dbe7da2eSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
300dbe7da2eSmrg	 X"$as_dir" : 'X\(//\)$' \| \
301dbe7da2eSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302dbe7da2eSmrg$as_echo X"$as_dir" |
303dbe7da2eSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304dbe7da2eSmrg	    s//\1/
305dbe7da2eSmrg	    q
306dbe7da2eSmrg	  }
307dbe7da2eSmrg	  /^X\(\/\/\)[^/].*/{
308dbe7da2eSmrg	    s//\1/
309dbe7da2eSmrg	    q
310dbe7da2eSmrg	  }
311dbe7da2eSmrg	  /^X\(\/\/\)$/{
312dbe7da2eSmrg	    s//\1/
313dbe7da2eSmrg	    q
314dbe7da2eSmrg	  }
315dbe7da2eSmrg	  /^X\(\/\).*/{
316dbe7da2eSmrg	    s//\1/
317dbe7da2eSmrg	    q
318dbe7da2eSmrg	  }
319dbe7da2eSmrg	  s/.*/./; q'`
320dbe7da2eSmrg      test -d "$as_dir" && break
321dbe7da2eSmrg    done
322dbe7da2eSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
323dbe7da2eSmrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324dbe7da2eSmrg
325dbe7da2eSmrg
326dbe7da2eSmrg} # as_fn_mkdir_p
327dbe7da2eSmrg# as_fn_append VAR VALUE
328dbe7da2eSmrg# ----------------------
329dbe7da2eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
330dbe7da2eSmrg# advantage of any shell optimizations that allow amortized linear growth over
331dbe7da2eSmrg# repeated appends, instead of the typical quadratic growth present in naive
332dbe7da2eSmrg# implementations.
333dbe7da2eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334dbe7da2eSmrg  eval 'as_fn_append ()
335dbe7da2eSmrg  {
336dbe7da2eSmrg    eval $1+=\$2
337dbe7da2eSmrg  }'
338a8fdb4bcSmrgelse
339dbe7da2eSmrg  as_fn_append ()
340dbe7da2eSmrg  {
341dbe7da2eSmrg    eval $1=\$$1\$2
342dbe7da2eSmrg  }
343dbe7da2eSmrgfi # as_fn_append
344dbe7da2eSmrg
345dbe7da2eSmrg# as_fn_arith ARG...
346dbe7da2eSmrg# ------------------
347dbe7da2eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
348dbe7da2eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
349dbe7da2eSmrg# must be portable across $(()) and expr.
350dbe7da2eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351dbe7da2eSmrg  eval 'as_fn_arith ()
352dbe7da2eSmrg  {
353dbe7da2eSmrg    as_val=$(( $* ))
354dbe7da2eSmrg  }'
355a8fdb4bcSmrgelse
356dbe7da2eSmrg  as_fn_arith ()
357dbe7da2eSmrg  {
358dbe7da2eSmrg    as_val=`expr "$@" || test $? -eq 1`
359dbe7da2eSmrg  }
360dbe7da2eSmrgfi # as_fn_arith
361a8fdb4bcSmrg
362a8fdb4bcSmrg
363dbe7da2eSmrg# as_fn_error ERROR [LINENO LOG_FD]
364dbe7da2eSmrg# ---------------------------------
365dbe7da2eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366dbe7da2eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367dbe7da2eSmrg# script with status $?, using 1 if that was 0.
368dbe7da2eSmrgas_fn_error ()
369dbe7da2eSmrg{
370dbe7da2eSmrg  as_status=$?; test $as_status -eq 0 && as_status=1
371dbe7da2eSmrg  if test "$3"; then
372dbe7da2eSmrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374dbe7da2eSmrg  fi
375dbe7da2eSmrg  $as_echo "$as_me: error: $1" >&2
376dbe7da2eSmrg  as_fn_exit $as_status
377dbe7da2eSmrg} # as_fn_error
378a8fdb4bcSmrg
379dbe7da2eSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
380dbe7da2eSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381dbe7da2eSmrg  as_expr=expr
382a8fdb4bcSmrgelse
383dbe7da2eSmrg  as_expr=false
384a8fdb4bcSmrgfi
385a8fdb4bcSmrg
386dbe7da2eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387dbe7da2eSmrg  as_basename=basename
388a8fdb4bcSmrgelse
389dbe7da2eSmrg  as_basename=false
390a8fdb4bcSmrgfi
391a8fdb4bcSmrg
392dbe7da2eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393dbe7da2eSmrg  as_dirname=dirname
394a8fdb4bcSmrgelse
395dbe7da2eSmrg  as_dirname=false
396a8fdb4bcSmrgfi
397a8fdb4bcSmrg
398dbe7da2eSmrgas_me=`$as_basename -- "$0" ||
399dbe7da2eSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400dbe7da2eSmrg	 X"$0" : 'X\(//\)$' \| \
401dbe7da2eSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402dbe7da2eSmrg$as_echo X/"$0" |
403dbe7da2eSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
404dbe7da2eSmrg	    s//\1/
405dbe7da2eSmrg	    q
406dbe7da2eSmrg	  }
407dbe7da2eSmrg	  /^X\/\(\/\/\)$/{
408dbe7da2eSmrg	    s//\1/
409dbe7da2eSmrg	    q
410dbe7da2eSmrg	  }
411dbe7da2eSmrg	  /^X\/\(\/\).*/{
412dbe7da2eSmrg	    s//\1/
413dbe7da2eSmrg	    q
414dbe7da2eSmrg	  }
415dbe7da2eSmrg	  s/.*/./; q'`
416a8fdb4bcSmrg
417dbe7da2eSmrg# Avoid depending upon Character Ranges.
418dbe7da2eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
419dbe7da2eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420dbe7da2eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
421dbe7da2eSmrgas_cr_digits='0123456789'
422dbe7da2eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
423a8fdb4bcSmrg
424a8fdb4bcSmrg
425dbe7da2eSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426dbe7da2eSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427dbe7da2eSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428dbe7da2eSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429dbe7da2eSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430a8fdb4bcSmrg  sed -n '
431a8fdb4bcSmrg    p
432a8fdb4bcSmrg    /[$]LINENO/=
433a8fdb4bcSmrg  ' <$as_myself |
434a8fdb4bcSmrg    sed '
435a8fdb4bcSmrg      s/[$]LINENO.*/&-/
436a8fdb4bcSmrg      t lineno
437a8fdb4bcSmrg      b
438a8fdb4bcSmrg      :lineno
439a8fdb4bcSmrg      N
440a8fdb4bcSmrg      :loop
441a8fdb4bcSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442a8fdb4bcSmrg      t loop
443a8fdb4bcSmrg      s/-\n.*//
444a8fdb4bcSmrg    ' >$as_me.lineno &&
445a8fdb4bcSmrg  chmod +x "$as_me.lineno" ||
446dbe7da2eSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447a8fdb4bcSmrg
448a8fdb4bcSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
449a8fdb4bcSmrg  # (the dirname of $[0] is not the place where we might find the
450a8fdb4bcSmrg  # original and so on.  Autoconf is especially sensitive to this).
451a8fdb4bcSmrg  . "./$as_me.lineno"
452a8fdb4bcSmrg  # Exit status is that of the last command.
453a8fdb4bcSmrg  exit
454a8fdb4bcSmrg}
455a8fdb4bcSmrg
456a8fdb4bcSmrgECHO_C= ECHO_N= ECHO_T=
457dbe7da2eSmrgcase `echo -n x` in #(((((
458a8fdb4bcSmrg-n*)
459dbe7da2eSmrg  case `echo 'xy\c'` in
460a8fdb4bcSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461dbe7da2eSmrg  xy)  ECHO_C='\c';;
462dbe7da2eSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463dbe7da2eSmrg       ECHO_T='	';;
464a8fdb4bcSmrg  esac;;
465a8fdb4bcSmrg*)
466a8fdb4bcSmrg  ECHO_N='-n';;
467a8fdb4bcSmrgesac
468a8fdb4bcSmrg
469a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.file
470a8fdb4bcSmrgif test -d conf$$.dir; then
471a8fdb4bcSmrg  rm -f conf$$.dir/conf$$.file
472a8fdb4bcSmrgelse
473a8fdb4bcSmrg  rm -f conf$$.dir
474dbe7da2eSmrg  mkdir conf$$.dir 2>/dev/null
475dbe7da2eSmrgfi
476dbe7da2eSmrgif (echo >conf$$.file) 2>/dev/null; then
477dbe7da2eSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
478dbe7da2eSmrg    as_ln_s='ln -s'
479dbe7da2eSmrg    # ... but there are two gotchas:
480dbe7da2eSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481dbe7da2eSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482dbe7da2eSmrg    # In both cases, we have to default to `cp -p'.
483dbe7da2eSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484dbe7da2eSmrg      as_ln_s='cp -p'
485dbe7da2eSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
486dbe7da2eSmrg    as_ln_s=ln
487dbe7da2eSmrg  else
488a8fdb4bcSmrg    as_ln_s='cp -p'
489dbe7da2eSmrg  fi
490a8fdb4bcSmrgelse
491a8fdb4bcSmrg  as_ln_s='cp -p'
492a8fdb4bcSmrgfi
493a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494a8fdb4bcSmrgrmdir conf$$.dir 2>/dev/null
495a8fdb4bcSmrg
496a8fdb4bcSmrgif mkdir -p . 2>/dev/null; then
497dbe7da2eSmrg  as_mkdir_p='mkdir -p "$as_dir"'
498a8fdb4bcSmrgelse
499a8fdb4bcSmrg  test -d ./-p && rmdir ./-p
500a8fdb4bcSmrg  as_mkdir_p=false
501a8fdb4bcSmrgfi
502a8fdb4bcSmrg
503a8fdb4bcSmrgif test -x / >/dev/null 2>&1; then
504a8fdb4bcSmrg  as_test_x='test -x'
505a8fdb4bcSmrgelse
506a8fdb4bcSmrg  if ls -dL / >/dev/null 2>&1; then
507a8fdb4bcSmrg    as_ls_L_option=L
508a8fdb4bcSmrg  else
509a8fdb4bcSmrg    as_ls_L_option=
510a8fdb4bcSmrg  fi
511a8fdb4bcSmrg  as_test_x='
512a8fdb4bcSmrg    eval sh -c '\''
513a8fdb4bcSmrg      if test -d "$1"; then
514dbe7da2eSmrg	test -d "$1/.";
515a8fdb4bcSmrg      else
516dbe7da2eSmrg	case $1 in #(
517dbe7da2eSmrg	-*)set "./$1";;
518a8fdb4bcSmrg	esac;
519dbe7da2eSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520a8fdb4bcSmrg	???[sx]*):;;*)false;;esac;fi
521a8fdb4bcSmrg    '\'' sh
522a8fdb4bcSmrg  '
523a8fdb4bcSmrgfi
524a8fdb4bcSmrgas_executable_p=$as_test_x
525a8fdb4bcSmrg
526a8fdb4bcSmrg# Sed expression to map a string onto a valid CPP name.
527a8fdb4bcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528a8fdb4bcSmrg
529a8fdb4bcSmrg# Sed expression to map a string onto a valid variable name.
530a8fdb4bcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531a8fdb4bcSmrg
532a8fdb4bcSmrg
533dbe7da2eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
534dbe7da2eSmrgexec 6>&1
535a8fdb4bcSmrg
536a8fdb4bcSmrg# Name of the host.
537a8fdb4bcSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538a8fdb4bcSmrg# so uname gets run too.
539a8fdb4bcSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540a8fdb4bcSmrg
541a8fdb4bcSmrg#
542a8fdb4bcSmrg# Initializations.
543a8fdb4bcSmrg#
544a8fdb4bcSmrgac_default_prefix=/usr/local
545a8fdb4bcSmrgac_clean_files=
546a8fdb4bcSmrgac_config_libobj_dir=.
547a8fdb4bcSmrgLIBOBJS=
548a8fdb4bcSmrgcross_compiling=no
549a8fdb4bcSmrgsubdirs=
550a8fdb4bcSmrgMFLAGS=
551a8fdb4bcSmrgMAKEFLAGS=
552a8fdb4bcSmrg
553a8fdb4bcSmrg# Identity of this package.
554a8fdb4bcSmrgPACKAGE_NAME='luit'
555a8fdb4bcSmrgPACKAGE_TARNAME='luit'
556dbe7da2eSmrgPACKAGE_VERSION='1.0.5'
557dbe7da2eSmrgPACKAGE_STRING='luit 1.0.5'
558a8fdb4bcSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
559dbe7da2eSmrgPACKAGE_URL=''
560a8fdb4bcSmrg
561dbe7da2eSmrg# Factoring default headers for most tests.
562dbe7da2eSmrgac_includes_default="\
563dbe7da2eSmrg#include <stdio.h>
564dbe7da2eSmrg#ifdef HAVE_SYS_TYPES_H
565dbe7da2eSmrg# include <sys/types.h>
566dbe7da2eSmrg#endif
567dbe7da2eSmrg#ifdef HAVE_SYS_STAT_H
568dbe7da2eSmrg# include <sys/stat.h>
569dbe7da2eSmrg#endif
570dbe7da2eSmrg#ifdef STDC_HEADERS
571dbe7da2eSmrg# include <stdlib.h>
572dbe7da2eSmrg# include <stddef.h>
573dbe7da2eSmrg#else
574dbe7da2eSmrg# ifdef HAVE_STDLIB_H
575dbe7da2eSmrg#  include <stdlib.h>
576dbe7da2eSmrg# endif
577dbe7da2eSmrg#endif
578dbe7da2eSmrg#ifdef HAVE_STRING_H
579dbe7da2eSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580dbe7da2eSmrg#  include <memory.h>
581dbe7da2eSmrg# endif
582dbe7da2eSmrg# include <string.h>
583dbe7da2eSmrg#endif
584dbe7da2eSmrg#ifdef HAVE_STRINGS_H
585dbe7da2eSmrg# include <strings.h>
586dbe7da2eSmrg#endif
587dbe7da2eSmrg#ifdef HAVE_INTTYPES_H
588dbe7da2eSmrg# include <inttypes.h>
589dbe7da2eSmrg#endif
590dbe7da2eSmrg#ifdef HAVE_STDINT_H
591dbe7da2eSmrg# include <stdint.h>
592dbe7da2eSmrg#endif
593dbe7da2eSmrg#ifdef HAVE_UNISTD_H
594dbe7da2eSmrg# include <unistd.h>
595dbe7da2eSmrg#endif"
596dbe7da2eSmrg
597dbe7da2eSmrgac_subst_vars='am__EXEEXT_FALSE
598dbe7da2eSmrgam__EXEEXT_TRUE
599dbe7da2eSmrgLTLIBOBJS
600dbe7da2eSmrgLIBOBJS
601a8fdb4bcSmrgLUIT_LIBS
602dbe7da2eSmrgLUIT_CFLAGS
603dbe7da2eSmrgLOCALEALIASFILE
604a8fdb4bcSmrgADMIN_MAN_DIR
605dbe7da2eSmrgDRIVER_MAN_DIR
606dbe7da2eSmrgMISC_MAN_DIR
607dbe7da2eSmrgFILE_MAN_DIR
608dbe7da2eSmrgLIB_MAN_DIR
609dbe7da2eSmrgAPP_MAN_DIR
610dbe7da2eSmrgADMIN_MAN_SUFFIX
611dbe7da2eSmrgDRIVER_MAN_SUFFIX
612dbe7da2eSmrgMISC_MAN_SUFFIX
613dbe7da2eSmrgFILE_MAN_SUFFIX
614dbe7da2eSmrgLIB_MAN_SUFFIX
615dbe7da2eSmrgAPP_MAN_SUFFIX
616dbe7da2eSmrghost_os
617dbe7da2eSmrghost_vendor
618dbe7da2eSmrghost_cpu
619dbe7da2eSmrghost
620dbe7da2eSmrgbuild_os
621dbe7da2eSmrgbuild_vendor
622dbe7da2eSmrgbuild_cpu
623dbe7da2eSmrgbuild
624dbe7da2eSmrgINSTALL_CMD
625dbe7da2eSmrgPKG_CONFIG
626dbe7da2eSmrgCHANGELOG_CMD
627dbe7da2eSmrgAM_BACKSLASH
628dbe7da2eSmrgAM_DEFAULT_VERBOSITY
629dbe7da2eSmrgCWARNFLAGS
630dbe7da2eSmrgEGREP
631dbe7da2eSmrgGREP
632dbe7da2eSmrgCPP
633dbe7da2eSmrgam__fastdepCC_FALSE
634dbe7da2eSmrgam__fastdepCC_TRUE
635dbe7da2eSmrgCCDEPMODE
636dbe7da2eSmrgAMDEPBACKSLASH
637dbe7da2eSmrgAMDEP_FALSE
638dbe7da2eSmrgAMDEP_TRUE
639dbe7da2eSmrgam__quote
640dbe7da2eSmrgam__include
641dbe7da2eSmrgDEPDIR
642dbe7da2eSmrgOBJEXT
643dbe7da2eSmrgEXEEXT
644dbe7da2eSmrgac_ct_CC
645dbe7da2eSmrgCPPFLAGS
646dbe7da2eSmrgLDFLAGS
647dbe7da2eSmrgCFLAGS
648dbe7da2eSmrgCC
649dbe7da2eSmrgMAINT
650dbe7da2eSmrgMAINTAINER_MODE_FALSE
651dbe7da2eSmrgMAINTAINER_MODE_TRUE
652dbe7da2eSmrgam__untar
653dbe7da2eSmrgam__tar
654dbe7da2eSmrgAMTAR
655dbe7da2eSmrgam__leading_dot
656dbe7da2eSmrgSET_MAKE
657dbe7da2eSmrgAWK
658dbe7da2eSmrgmkdir_p
659dbe7da2eSmrgMKDIR_P
660dbe7da2eSmrgINSTALL_STRIP_PROGRAM
661dbe7da2eSmrgSTRIP
662dbe7da2eSmrginstall_sh
663dbe7da2eSmrgMAKEINFO
664dbe7da2eSmrgAUTOHEADER
665dbe7da2eSmrgAUTOMAKE
666dbe7da2eSmrgAUTOCONF
667dbe7da2eSmrgACLOCAL
668dbe7da2eSmrgVERSION
669dbe7da2eSmrgPACKAGE
670dbe7da2eSmrgCYGPATH_W
671dbe7da2eSmrgam__isrc
672dbe7da2eSmrgINSTALL_DATA
673dbe7da2eSmrgINSTALL_SCRIPT
674dbe7da2eSmrgINSTALL_PROGRAM
675dbe7da2eSmrgtarget_alias
676dbe7da2eSmrghost_alias
677dbe7da2eSmrgbuild_alias
678dbe7da2eSmrgLIBS
679dbe7da2eSmrgECHO_T
680dbe7da2eSmrgECHO_N
681dbe7da2eSmrgECHO_C
682dbe7da2eSmrgDEFS
683dbe7da2eSmrgmandir
684dbe7da2eSmrglocaledir
685dbe7da2eSmrglibdir
686dbe7da2eSmrgpsdir
687dbe7da2eSmrgpdfdir
688dbe7da2eSmrgdvidir
689dbe7da2eSmrghtmldir
690dbe7da2eSmrginfodir
691dbe7da2eSmrgdocdir
692dbe7da2eSmrgoldincludedir
693dbe7da2eSmrgincludedir
694dbe7da2eSmrglocalstatedir
695dbe7da2eSmrgsharedstatedir
696dbe7da2eSmrgsysconfdir
697dbe7da2eSmrgdatadir
698dbe7da2eSmrgdatarootdir
699dbe7da2eSmrglibexecdir
700dbe7da2eSmrgsbindir
701dbe7da2eSmrgbindir
702dbe7da2eSmrgprogram_transform_name
703dbe7da2eSmrgprefix
704dbe7da2eSmrgexec_prefix
705dbe7da2eSmrgPACKAGE_URL
706dbe7da2eSmrgPACKAGE_BUGREPORT
707dbe7da2eSmrgPACKAGE_STRING
708dbe7da2eSmrgPACKAGE_VERSION
709dbe7da2eSmrgPACKAGE_TARNAME
710dbe7da2eSmrgPACKAGE_NAME
711dbe7da2eSmrgPATH_SEPARATOR
712dbe7da2eSmrgSHELL'
713a8fdb4bcSmrgac_subst_files=''
714dbe7da2eSmrgac_user_opts='
715dbe7da2eSmrgenable_option_checking
716dbe7da2eSmrgenable_maintainer_mode
717dbe7da2eSmrgenable_dependency_tracking
718dbe7da2eSmrgenable_silent_rules
719dbe7da2eSmrgenable_strict_compilation
720dbe7da2eSmrgwith_release_version
721dbe7da2eSmrgwith_localealiasfile
722dbe7da2eSmrg'
723a8fdb4bcSmrg      ac_precious_vars='build_alias
724a8fdb4bcSmrghost_alias
725a8fdb4bcSmrgtarget_alias
726a8fdb4bcSmrgCC
727a8fdb4bcSmrgCFLAGS
728a8fdb4bcSmrgLDFLAGS
729a8fdb4bcSmrgLIBS
730a8fdb4bcSmrgCPPFLAGS
731dbe7da2eSmrgCPP
732a8fdb4bcSmrgPKG_CONFIG
733a8fdb4bcSmrgLUIT_CFLAGS
734a8fdb4bcSmrgLUIT_LIBS'
735a8fdb4bcSmrg
736a8fdb4bcSmrg
737a8fdb4bcSmrg# Initialize some variables set by options.
738a8fdb4bcSmrgac_init_help=
739a8fdb4bcSmrgac_init_version=false
740dbe7da2eSmrgac_unrecognized_opts=
741dbe7da2eSmrgac_unrecognized_sep=
742a8fdb4bcSmrg# The variables have the same names as the options, with
743a8fdb4bcSmrg# dashes changed to underlines.
744a8fdb4bcSmrgcache_file=/dev/null
745a8fdb4bcSmrgexec_prefix=NONE
746a8fdb4bcSmrgno_create=
747a8fdb4bcSmrgno_recursion=
748a8fdb4bcSmrgprefix=NONE
749a8fdb4bcSmrgprogram_prefix=NONE
750a8fdb4bcSmrgprogram_suffix=NONE
751a8fdb4bcSmrgprogram_transform_name=s,x,x,
752a8fdb4bcSmrgsilent=
753a8fdb4bcSmrgsite=
754a8fdb4bcSmrgsrcdir=
755a8fdb4bcSmrgverbose=
756a8fdb4bcSmrgx_includes=NONE
757a8fdb4bcSmrgx_libraries=NONE
758a8fdb4bcSmrg
759a8fdb4bcSmrg# Installation directory options.
760a8fdb4bcSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
761a8fdb4bcSmrg# and all the variables that are supposed to be based on exec_prefix
762a8fdb4bcSmrg# by default will actually change.
763a8fdb4bcSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
764a8fdb4bcSmrg# (The list follows the same order as the GNU Coding Standards.)
765a8fdb4bcSmrgbindir='${exec_prefix}/bin'
766a8fdb4bcSmrgsbindir='${exec_prefix}/sbin'
767a8fdb4bcSmrglibexecdir='${exec_prefix}/libexec'
768a8fdb4bcSmrgdatarootdir='${prefix}/share'
769a8fdb4bcSmrgdatadir='${datarootdir}'
770a8fdb4bcSmrgsysconfdir='${prefix}/etc'
771a8fdb4bcSmrgsharedstatedir='${prefix}/com'
772a8fdb4bcSmrglocalstatedir='${prefix}/var'
773a8fdb4bcSmrgincludedir='${prefix}/include'
774a8fdb4bcSmrgoldincludedir='/usr/include'
775a8fdb4bcSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776a8fdb4bcSmrginfodir='${datarootdir}/info'
777a8fdb4bcSmrghtmldir='${docdir}'
778a8fdb4bcSmrgdvidir='${docdir}'
779a8fdb4bcSmrgpdfdir='${docdir}'
780a8fdb4bcSmrgpsdir='${docdir}'
781a8fdb4bcSmrglibdir='${exec_prefix}/lib'
782a8fdb4bcSmrglocaledir='${datarootdir}/locale'
783a8fdb4bcSmrgmandir='${datarootdir}/man'
784a8fdb4bcSmrg
785a8fdb4bcSmrgac_prev=
786a8fdb4bcSmrgac_dashdash=
787a8fdb4bcSmrgfor ac_option
788a8fdb4bcSmrgdo
789a8fdb4bcSmrg  # If the previous option needs an argument, assign it.
790a8fdb4bcSmrg  if test -n "$ac_prev"; then
791a8fdb4bcSmrg    eval $ac_prev=\$ac_option
792a8fdb4bcSmrg    ac_prev=
793a8fdb4bcSmrg    continue
794a8fdb4bcSmrg  fi
795a8fdb4bcSmrg
796a8fdb4bcSmrg  case $ac_option in
797a8fdb4bcSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798a8fdb4bcSmrg  *)	ac_optarg=yes ;;
799a8fdb4bcSmrg  esac
800a8fdb4bcSmrg
801a8fdb4bcSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
802a8fdb4bcSmrg
803a8fdb4bcSmrg  case $ac_dashdash$ac_option in
804a8fdb4bcSmrg  --)
805a8fdb4bcSmrg    ac_dashdash=yes ;;
806a8fdb4bcSmrg
807a8fdb4bcSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
808a8fdb4bcSmrg    ac_prev=bindir ;;
809a8fdb4bcSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810a8fdb4bcSmrg    bindir=$ac_optarg ;;
811a8fdb4bcSmrg
812a8fdb4bcSmrg  -build | --build | --buil | --bui | --bu)
813a8fdb4bcSmrg    ac_prev=build_alias ;;
814a8fdb4bcSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815a8fdb4bcSmrg    build_alias=$ac_optarg ;;
816a8fdb4bcSmrg
817a8fdb4bcSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
818a8fdb4bcSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819a8fdb4bcSmrg    ac_prev=cache_file ;;
820a8fdb4bcSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821a8fdb4bcSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822a8fdb4bcSmrg    cache_file=$ac_optarg ;;
823a8fdb4bcSmrg
824a8fdb4bcSmrg  --config-cache | -C)
825a8fdb4bcSmrg    cache_file=config.cache ;;
826a8fdb4bcSmrg
827a8fdb4bcSmrg  -datadir | --datadir | --datadi | --datad)
828a8fdb4bcSmrg    ac_prev=datadir ;;
829a8fdb4bcSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
830a8fdb4bcSmrg    datadir=$ac_optarg ;;
831a8fdb4bcSmrg
832a8fdb4bcSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833a8fdb4bcSmrg  | --dataroo | --dataro | --datar)
834a8fdb4bcSmrg    ac_prev=datarootdir ;;
835a8fdb4bcSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836a8fdb4bcSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837a8fdb4bcSmrg    datarootdir=$ac_optarg ;;
838a8fdb4bcSmrg
839a8fdb4bcSmrg  -disable-* | --disable-*)
840dbe7da2eSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841a8fdb4bcSmrg    # Reject names that are not valid shell variable names.
842dbe7da2eSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843dbe7da2eSmrg      as_fn_error "invalid feature name: $ac_useropt"
844dbe7da2eSmrg    ac_useropt_orig=$ac_useropt
845dbe7da2eSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846dbe7da2eSmrg    case $ac_user_opts in
847dbe7da2eSmrg      *"
848dbe7da2eSmrg"enable_$ac_useropt"
849dbe7da2eSmrg"*) ;;
850dbe7da2eSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851dbe7da2eSmrg	 ac_unrecognized_sep=', ';;
852dbe7da2eSmrg    esac
853dbe7da2eSmrg    eval enable_$ac_useropt=no ;;
854a8fdb4bcSmrg
855a8fdb4bcSmrg  -docdir | --docdir | --docdi | --doc | --do)
856a8fdb4bcSmrg    ac_prev=docdir ;;
857a8fdb4bcSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858a8fdb4bcSmrg    docdir=$ac_optarg ;;
859a8fdb4bcSmrg
860a8fdb4bcSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861a8fdb4bcSmrg    ac_prev=dvidir ;;
862a8fdb4bcSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863a8fdb4bcSmrg    dvidir=$ac_optarg ;;
864a8fdb4bcSmrg
865a8fdb4bcSmrg  -enable-* | --enable-*)
866dbe7da2eSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867a8fdb4bcSmrg    # Reject names that are not valid shell variable names.
868dbe7da2eSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869dbe7da2eSmrg      as_fn_error "invalid feature name: $ac_useropt"
870dbe7da2eSmrg    ac_useropt_orig=$ac_useropt
871dbe7da2eSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872dbe7da2eSmrg    case $ac_user_opts in
873dbe7da2eSmrg      *"
874dbe7da2eSmrg"enable_$ac_useropt"
875dbe7da2eSmrg"*) ;;
876dbe7da2eSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877dbe7da2eSmrg	 ac_unrecognized_sep=', ';;
878dbe7da2eSmrg    esac
879dbe7da2eSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
880a8fdb4bcSmrg
881a8fdb4bcSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882a8fdb4bcSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883a8fdb4bcSmrg  | --exec | --exe | --ex)
884a8fdb4bcSmrg    ac_prev=exec_prefix ;;
885a8fdb4bcSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886a8fdb4bcSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887a8fdb4bcSmrg  | --exec=* | --exe=* | --ex=*)
888a8fdb4bcSmrg    exec_prefix=$ac_optarg ;;
889a8fdb4bcSmrg
890a8fdb4bcSmrg  -gas | --gas | --ga | --g)
891a8fdb4bcSmrg    # Obsolete; use --with-gas.
892a8fdb4bcSmrg    with_gas=yes ;;
893a8fdb4bcSmrg
894a8fdb4bcSmrg  -help | --help | --hel | --he | -h)
895a8fdb4bcSmrg    ac_init_help=long ;;
896a8fdb4bcSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897a8fdb4bcSmrg    ac_init_help=recursive ;;
898a8fdb4bcSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899a8fdb4bcSmrg    ac_init_help=short ;;
900a8fdb4bcSmrg
901a8fdb4bcSmrg  -host | --host | --hos | --ho)
902a8fdb4bcSmrg    ac_prev=host_alias ;;
903a8fdb4bcSmrg  -host=* | --host=* | --hos=* | --ho=*)
904a8fdb4bcSmrg    host_alias=$ac_optarg ;;
905a8fdb4bcSmrg
906a8fdb4bcSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907a8fdb4bcSmrg    ac_prev=htmldir ;;
908a8fdb4bcSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909a8fdb4bcSmrg  | --ht=*)
910a8fdb4bcSmrg    htmldir=$ac_optarg ;;
911a8fdb4bcSmrg
912a8fdb4bcSmrg  -includedir | --includedir | --includedi | --included | --include \
913a8fdb4bcSmrg  | --includ | --inclu | --incl | --inc)
914a8fdb4bcSmrg    ac_prev=includedir ;;
915a8fdb4bcSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916a8fdb4bcSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
917a8fdb4bcSmrg    includedir=$ac_optarg ;;
918a8fdb4bcSmrg
919a8fdb4bcSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
920a8fdb4bcSmrg    ac_prev=infodir ;;
921a8fdb4bcSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922a8fdb4bcSmrg    infodir=$ac_optarg ;;
923a8fdb4bcSmrg
924a8fdb4bcSmrg  -libdir | --libdir | --libdi | --libd)
925a8fdb4bcSmrg    ac_prev=libdir ;;
926a8fdb4bcSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
927a8fdb4bcSmrg    libdir=$ac_optarg ;;
928a8fdb4bcSmrg
929a8fdb4bcSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930a8fdb4bcSmrg  | --libexe | --libex | --libe)
931a8fdb4bcSmrg    ac_prev=libexecdir ;;
932a8fdb4bcSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933a8fdb4bcSmrg  | --libexe=* | --libex=* | --libe=*)
934a8fdb4bcSmrg    libexecdir=$ac_optarg ;;
935a8fdb4bcSmrg
936a8fdb4bcSmrg  -localedir | --localedir | --localedi | --localed | --locale)
937a8fdb4bcSmrg    ac_prev=localedir ;;
938a8fdb4bcSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939a8fdb4bcSmrg    localedir=$ac_optarg ;;
940a8fdb4bcSmrg
941a8fdb4bcSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
942a8fdb4bcSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
943a8fdb4bcSmrg    ac_prev=localstatedir ;;
944a8fdb4bcSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945a8fdb4bcSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946a8fdb4bcSmrg    localstatedir=$ac_optarg ;;
947a8fdb4bcSmrg
948a8fdb4bcSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949a8fdb4bcSmrg    ac_prev=mandir ;;
950a8fdb4bcSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951a8fdb4bcSmrg    mandir=$ac_optarg ;;
952a8fdb4bcSmrg
953a8fdb4bcSmrg  -nfp | --nfp | --nf)
954a8fdb4bcSmrg    # Obsolete; use --without-fp.
955a8fdb4bcSmrg    with_fp=no ;;
956a8fdb4bcSmrg
957a8fdb4bcSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958a8fdb4bcSmrg  | --no-cr | --no-c | -n)
959a8fdb4bcSmrg    no_create=yes ;;
960a8fdb4bcSmrg
961a8fdb4bcSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962a8fdb4bcSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963a8fdb4bcSmrg    no_recursion=yes ;;
964a8fdb4bcSmrg
965a8fdb4bcSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966a8fdb4bcSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967a8fdb4bcSmrg  | --oldin | --oldi | --old | --ol | --o)
968a8fdb4bcSmrg    ac_prev=oldincludedir ;;
969a8fdb4bcSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970a8fdb4bcSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971a8fdb4bcSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972a8fdb4bcSmrg    oldincludedir=$ac_optarg ;;
973a8fdb4bcSmrg
974a8fdb4bcSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975a8fdb4bcSmrg    ac_prev=prefix ;;
976a8fdb4bcSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977a8fdb4bcSmrg    prefix=$ac_optarg ;;
978a8fdb4bcSmrg
979a8fdb4bcSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
980a8fdb4bcSmrg  | --program-pre | --program-pr | --program-p)
981a8fdb4bcSmrg    ac_prev=program_prefix ;;
982a8fdb4bcSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
983a8fdb4bcSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984a8fdb4bcSmrg    program_prefix=$ac_optarg ;;
985a8fdb4bcSmrg
986a8fdb4bcSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
987a8fdb4bcSmrg  | --program-suf | --program-su | --program-s)
988a8fdb4bcSmrg    ac_prev=program_suffix ;;
989a8fdb4bcSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
990a8fdb4bcSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991a8fdb4bcSmrg    program_suffix=$ac_optarg ;;
992a8fdb4bcSmrg
993a8fdb4bcSmrg  -program-transform-name | --program-transform-name \
994a8fdb4bcSmrg  | --program-transform-nam | --program-transform-na \
995a8fdb4bcSmrg  | --program-transform-n | --program-transform- \
996a8fdb4bcSmrg  | --program-transform | --program-transfor \
997a8fdb4bcSmrg  | --program-transfo | --program-transf \
998a8fdb4bcSmrg  | --program-trans | --program-tran \
999a8fdb4bcSmrg  | --progr-tra | --program-tr | --program-t)
1000a8fdb4bcSmrg    ac_prev=program_transform_name ;;
1001a8fdb4bcSmrg  -program-transform-name=* | --program-transform-name=* \
1002a8fdb4bcSmrg  | --program-transform-nam=* | --program-transform-na=* \
1003a8fdb4bcSmrg  | --program-transform-n=* | --program-transform-=* \
1004a8fdb4bcSmrg  | --program-transform=* | --program-transfor=* \
1005a8fdb4bcSmrg  | --program-transfo=* | --program-transf=* \
1006a8fdb4bcSmrg  | --program-trans=* | --program-tran=* \
1007a8fdb4bcSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1008a8fdb4bcSmrg    program_transform_name=$ac_optarg ;;
1009a8fdb4bcSmrg
1010a8fdb4bcSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011a8fdb4bcSmrg    ac_prev=pdfdir ;;
1012a8fdb4bcSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013a8fdb4bcSmrg    pdfdir=$ac_optarg ;;
1014a8fdb4bcSmrg
1015a8fdb4bcSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1016a8fdb4bcSmrg    ac_prev=psdir ;;
1017a8fdb4bcSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018a8fdb4bcSmrg    psdir=$ac_optarg ;;
1019a8fdb4bcSmrg
1020a8fdb4bcSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021a8fdb4bcSmrg  | -silent | --silent | --silen | --sile | --sil)
1022a8fdb4bcSmrg    silent=yes ;;
1023a8fdb4bcSmrg
1024a8fdb4bcSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025a8fdb4bcSmrg    ac_prev=sbindir ;;
1026a8fdb4bcSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027a8fdb4bcSmrg  | --sbi=* | --sb=*)
1028a8fdb4bcSmrg    sbindir=$ac_optarg ;;
1029a8fdb4bcSmrg
1030a8fdb4bcSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031a8fdb4bcSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032a8fdb4bcSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1033a8fdb4bcSmrg  | --sha | --sh)
1034a8fdb4bcSmrg    ac_prev=sharedstatedir ;;
1035a8fdb4bcSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036a8fdb4bcSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037a8fdb4bcSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038a8fdb4bcSmrg  | --sha=* | --sh=*)
1039a8fdb4bcSmrg    sharedstatedir=$ac_optarg ;;
1040a8fdb4bcSmrg
1041a8fdb4bcSmrg  -site | --site | --sit)
1042a8fdb4bcSmrg    ac_prev=site ;;
1043a8fdb4bcSmrg  -site=* | --site=* | --sit=*)
1044a8fdb4bcSmrg    site=$ac_optarg ;;
1045a8fdb4bcSmrg
1046a8fdb4bcSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047a8fdb4bcSmrg    ac_prev=srcdir ;;
1048a8fdb4bcSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049a8fdb4bcSmrg    srcdir=$ac_optarg ;;
1050a8fdb4bcSmrg
1051a8fdb4bcSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052a8fdb4bcSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1053a8fdb4bcSmrg    ac_prev=sysconfdir ;;
1054a8fdb4bcSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055a8fdb4bcSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056a8fdb4bcSmrg    sysconfdir=$ac_optarg ;;
1057a8fdb4bcSmrg
1058a8fdb4bcSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1059a8fdb4bcSmrg    ac_prev=target_alias ;;
1060a8fdb4bcSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061a8fdb4bcSmrg    target_alias=$ac_optarg ;;
1062a8fdb4bcSmrg
1063a8fdb4bcSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064a8fdb4bcSmrg    verbose=yes ;;
1065a8fdb4bcSmrg
1066a8fdb4bcSmrg  -version | --version | --versio | --versi | --vers | -V)
1067a8fdb4bcSmrg    ac_init_version=: ;;
1068a8fdb4bcSmrg
1069a8fdb4bcSmrg  -with-* | --with-*)
1070dbe7da2eSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071a8fdb4bcSmrg    # Reject names that are not valid shell variable names.
1072dbe7da2eSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073dbe7da2eSmrg      as_fn_error "invalid package name: $ac_useropt"
1074dbe7da2eSmrg    ac_useropt_orig=$ac_useropt
1075dbe7da2eSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076dbe7da2eSmrg    case $ac_user_opts in
1077dbe7da2eSmrg      *"
1078dbe7da2eSmrg"with_$ac_useropt"
1079dbe7da2eSmrg"*) ;;
1080dbe7da2eSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081dbe7da2eSmrg	 ac_unrecognized_sep=', ';;
1082dbe7da2eSmrg    esac
1083dbe7da2eSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1084a8fdb4bcSmrg
1085a8fdb4bcSmrg  -without-* | --without-*)
1086dbe7da2eSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087a8fdb4bcSmrg    # Reject names that are not valid shell variable names.
1088dbe7da2eSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089dbe7da2eSmrg      as_fn_error "invalid package name: $ac_useropt"
1090dbe7da2eSmrg    ac_useropt_orig=$ac_useropt
1091dbe7da2eSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092dbe7da2eSmrg    case $ac_user_opts in
1093dbe7da2eSmrg      *"
1094dbe7da2eSmrg"with_$ac_useropt"
1095dbe7da2eSmrg"*) ;;
1096dbe7da2eSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097dbe7da2eSmrg	 ac_unrecognized_sep=', ';;
1098dbe7da2eSmrg    esac
1099dbe7da2eSmrg    eval with_$ac_useropt=no ;;
1100a8fdb4bcSmrg
1101a8fdb4bcSmrg  --x)
1102a8fdb4bcSmrg    # Obsolete; use --with-x.
1103a8fdb4bcSmrg    with_x=yes ;;
1104a8fdb4bcSmrg
1105a8fdb4bcSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106a8fdb4bcSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1107a8fdb4bcSmrg    ac_prev=x_includes ;;
1108a8fdb4bcSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109a8fdb4bcSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110a8fdb4bcSmrg    x_includes=$ac_optarg ;;
1111a8fdb4bcSmrg
1112a8fdb4bcSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113a8fdb4bcSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114a8fdb4bcSmrg    ac_prev=x_libraries ;;
1115a8fdb4bcSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116a8fdb4bcSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117a8fdb4bcSmrg    x_libraries=$ac_optarg ;;
1118a8fdb4bcSmrg
1119dbe7da2eSmrg  -*) as_fn_error "unrecognized option: \`$ac_option'
1120dbe7da2eSmrgTry \`$0 --help' for more information."
1121a8fdb4bcSmrg    ;;
1122a8fdb4bcSmrg
1123a8fdb4bcSmrg  *=*)
1124a8fdb4bcSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1125a8fdb4bcSmrg    # Reject names that are not valid shell variable names.
1126dbe7da2eSmrg    case $ac_envvar in #(
1127dbe7da2eSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1128dbe7da2eSmrg      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1129dbe7da2eSmrg    esac
1130a8fdb4bcSmrg    eval $ac_envvar=\$ac_optarg
1131a8fdb4bcSmrg    export $ac_envvar ;;
1132a8fdb4bcSmrg
1133a8fdb4bcSmrg  *)
1134a8fdb4bcSmrg    # FIXME: should be removed in autoconf 3.0.
1135dbe7da2eSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136a8fdb4bcSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1137dbe7da2eSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138a8fdb4bcSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1139a8fdb4bcSmrg    ;;
1140a8fdb4bcSmrg
1141a8fdb4bcSmrg  esac
1142a8fdb4bcSmrgdone
1143a8fdb4bcSmrg
1144a8fdb4bcSmrgif test -n "$ac_prev"; then
1145a8fdb4bcSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1146dbe7da2eSmrg  as_fn_error "missing argument to $ac_option"
1147dbe7da2eSmrgfi
1148dbe7da2eSmrg
1149dbe7da2eSmrgif test -n "$ac_unrecognized_opts"; then
1150dbe7da2eSmrg  case $enable_option_checking in
1151dbe7da2eSmrg    no) ;;
1152dbe7da2eSmrg    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1153dbe7da2eSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154dbe7da2eSmrg  esac
1155a8fdb4bcSmrgfi
1156a8fdb4bcSmrg
1157dbe7da2eSmrg# Check all directory arguments for consistency.
1158a8fdb4bcSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159a8fdb4bcSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1160a8fdb4bcSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161a8fdb4bcSmrg		libdir localedir mandir
1162a8fdb4bcSmrgdo
1163a8fdb4bcSmrg  eval ac_val=\$$ac_var
1164dbe7da2eSmrg  # Remove trailing slashes.
1165dbe7da2eSmrg  case $ac_val in
1166dbe7da2eSmrg    */ )
1167dbe7da2eSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168dbe7da2eSmrg      eval $ac_var=\$ac_val;;
1169dbe7da2eSmrg  esac
1170dbe7da2eSmrg  # Be sure to have absolute directory names.
1171a8fdb4bcSmrg  case $ac_val in
1172a8fdb4bcSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1173a8fdb4bcSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174a8fdb4bcSmrg  esac
1175dbe7da2eSmrg  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1176a8fdb4bcSmrgdone
1177a8fdb4bcSmrg
1178a8fdb4bcSmrg# There might be people who depend on the old broken behavior: `$host'
1179a8fdb4bcSmrg# used to hold the argument of --host etc.
1180a8fdb4bcSmrg# FIXME: To remove some day.
1181a8fdb4bcSmrgbuild=$build_alias
1182a8fdb4bcSmrghost=$host_alias
1183a8fdb4bcSmrgtarget=$target_alias
1184a8fdb4bcSmrg
1185a8fdb4bcSmrg# FIXME: To remove some day.
1186a8fdb4bcSmrgif test "x$host_alias" != x; then
1187a8fdb4bcSmrg  if test "x$build_alias" = x; then
1188a8fdb4bcSmrg    cross_compiling=maybe
1189dbe7da2eSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190a8fdb4bcSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
1191a8fdb4bcSmrg  elif test "x$build_alias" != "x$host_alias"; then
1192a8fdb4bcSmrg    cross_compiling=yes
1193a8fdb4bcSmrg  fi
1194a8fdb4bcSmrgfi
1195a8fdb4bcSmrg
1196a8fdb4bcSmrgac_tool_prefix=
1197a8fdb4bcSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1198a8fdb4bcSmrg
1199a8fdb4bcSmrgtest "$silent" = yes && exec 6>/dev/null
1200a8fdb4bcSmrg
1201a8fdb4bcSmrg
1202a8fdb4bcSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1203a8fdb4bcSmrgac_ls_di=`ls -di .` &&
1204a8fdb4bcSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205dbe7da2eSmrg  as_fn_error "working directory cannot be determined"
1206a8fdb4bcSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207dbe7da2eSmrg  as_fn_error "pwd does not report name of working directory"
1208a8fdb4bcSmrg
1209a8fdb4bcSmrg
1210a8fdb4bcSmrg# Find the source files, if location was not specified.
1211a8fdb4bcSmrgif test -z "$srcdir"; then
1212a8fdb4bcSmrg  ac_srcdir_defaulted=yes
1213a8fdb4bcSmrg  # Try the directory containing this script, then the parent directory.
1214dbe7da2eSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1215dbe7da2eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216dbe7da2eSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1217dbe7da2eSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1218dbe7da2eSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219dbe7da2eSmrg$as_echo X"$as_myself" |
1220a8fdb4bcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221a8fdb4bcSmrg	    s//\1/
1222a8fdb4bcSmrg	    q
1223a8fdb4bcSmrg	  }
1224a8fdb4bcSmrg	  /^X\(\/\/\)[^/].*/{
1225a8fdb4bcSmrg	    s//\1/
1226a8fdb4bcSmrg	    q
1227a8fdb4bcSmrg	  }
1228a8fdb4bcSmrg	  /^X\(\/\/\)$/{
1229a8fdb4bcSmrg	    s//\1/
1230a8fdb4bcSmrg	    q
1231a8fdb4bcSmrg	  }
1232a8fdb4bcSmrg	  /^X\(\/\).*/{
1233a8fdb4bcSmrg	    s//\1/
1234a8fdb4bcSmrg	    q
1235a8fdb4bcSmrg	  }
1236a8fdb4bcSmrg	  s/.*/./; q'`
1237a8fdb4bcSmrg  srcdir=$ac_confdir
1238a8fdb4bcSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1239a8fdb4bcSmrg    srcdir=..
1240a8fdb4bcSmrg  fi
1241a8fdb4bcSmrgelse
1242a8fdb4bcSmrg  ac_srcdir_defaulted=no
1243a8fdb4bcSmrgfi
1244a8fdb4bcSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1245a8fdb4bcSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246dbe7da2eSmrg  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1247a8fdb4bcSmrgfi
1248a8fdb4bcSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249a8fdb4bcSmrgac_abs_confdir=`(
1250dbe7da2eSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1251a8fdb4bcSmrg	pwd)`
1252a8fdb4bcSmrg# When building in place, set srcdir=.
1253a8fdb4bcSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1254a8fdb4bcSmrg  srcdir=.
1255a8fdb4bcSmrgfi
1256a8fdb4bcSmrg# Remove unnecessary trailing slashes from srcdir.
1257a8fdb4bcSmrg# Double slashes in file names in object file debugging info
1258a8fdb4bcSmrg# mess up M-x gdb in Emacs.
1259a8fdb4bcSmrgcase $srcdir in
1260a8fdb4bcSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261a8fdb4bcSmrgesac
1262a8fdb4bcSmrgfor ac_var in $ac_precious_vars; do
1263a8fdb4bcSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264a8fdb4bcSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1265a8fdb4bcSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266a8fdb4bcSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267a8fdb4bcSmrgdone
1268a8fdb4bcSmrg
1269a8fdb4bcSmrg#
1270a8fdb4bcSmrg# Report the --help message.
1271a8fdb4bcSmrg#
1272a8fdb4bcSmrgif test "$ac_init_help" = "long"; then
1273a8fdb4bcSmrg  # Omit some internal or obsolete options to make the list less imposing.
1274a8fdb4bcSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1275a8fdb4bcSmrg  cat <<_ACEOF
1276dbe7da2eSmrg\`configure' configures luit 1.0.5 to adapt to many kinds of systems.
1277a8fdb4bcSmrg
1278a8fdb4bcSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1279a8fdb4bcSmrg
1280a8fdb4bcSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1281a8fdb4bcSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1282a8fdb4bcSmrg
1283a8fdb4bcSmrgDefaults for the options are specified in brackets.
1284a8fdb4bcSmrg
1285a8fdb4bcSmrgConfiguration:
1286a8fdb4bcSmrg  -h, --help              display this help and exit
1287a8fdb4bcSmrg      --help=short        display options specific to this package
1288a8fdb4bcSmrg      --help=recursive    display the short help of all the included packages
1289a8fdb4bcSmrg  -V, --version           display version information and exit
1290a8fdb4bcSmrg  -q, --quiet, --silent   do not print \`checking...' messages
1291a8fdb4bcSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1292a8fdb4bcSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1293a8fdb4bcSmrg  -n, --no-create         do not create output files
1294a8fdb4bcSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1295a8fdb4bcSmrg
1296a8fdb4bcSmrgInstallation directories:
1297a8fdb4bcSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1298dbe7da2eSmrg                          [$ac_default_prefix]
1299a8fdb4bcSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1300dbe7da2eSmrg                          [PREFIX]
1301a8fdb4bcSmrg
1302a8fdb4bcSmrgBy default, \`make install' will install all the files in
1303a8fdb4bcSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1304a8fdb4bcSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305a8fdb4bcSmrgfor instance \`--prefix=\$HOME'.
1306a8fdb4bcSmrg
1307a8fdb4bcSmrgFor better control, use the options below.
1308a8fdb4bcSmrg
1309a8fdb4bcSmrgFine tuning of the installation directories:
1310dbe7da2eSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1311dbe7da2eSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1312dbe7da2eSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1313dbe7da2eSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1314dbe7da2eSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1315dbe7da2eSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1316dbe7da2eSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1317dbe7da2eSmrg  --includedir=DIR        C header files [PREFIX/include]
1318dbe7da2eSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1319dbe7da2eSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1320dbe7da2eSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1321dbe7da2eSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1322dbe7da2eSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1323dbe7da2eSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1324dbe7da2eSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/luit]
1325dbe7da2eSmrg  --htmldir=DIR           html documentation [DOCDIR]
1326dbe7da2eSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1327dbe7da2eSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1328dbe7da2eSmrg  --psdir=DIR             ps documentation [DOCDIR]
1329a8fdb4bcSmrg_ACEOF
1330a8fdb4bcSmrg
1331a8fdb4bcSmrg  cat <<\_ACEOF
1332a8fdb4bcSmrg
1333a8fdb4bcSmrgProgram names:
1334a8fdb4bcSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1335a8fdb4bcSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1336a8fdb4bcSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1337a8fdb4bcSmrg
1338a8fdb4bcSmrgSystem types:
1339a8fdb4bcSmrg  --build=BUILD     configure for building on BUILD [guessed]
1340a8fdb4bcSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1341a8fdb4bcSmrg_ACEOF
1342a8fdb4bcSmrgfi
1343a8fdb4bcSmrg
1344a8fdb4bcSmrgif test -n "$ac_init_help"; then
1345a8fdb4bcSmrg  case $ac_init_help in
1346dbe7da2eSmrg     short | recursive ) echo "Configuration of luit 1.0.5:";;
1347a8fdb4bcSmrg   esac
1348a8fdb4bcSmrg  cat <<\_ACEOF
1349a8fdb4bcSmrg
1350a8fdb4bcSmrgOptional Features:
1351dbe7da2eSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1352a8fdb4bcSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1353a8fdb4bcSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1354a8fdb4bcSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1355a8fdb4bcSmrg			  (and sometimes confusing) to the casual installer
1356a8fdb4bcSmrg  --disable-dependency-tracking  speeds up one-time build
1357a8fdb4bcSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1358dbe7da2eSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1359dbe7da2eSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1360dbe7da2eSmrg  --enable-strict-compilation
1361dbe7da2eSmrg                          Enable all warnings from compiler and make them
1362dbe7da2eSmrg                          errors (default: disabled)
1363a8fdb4bcSmrg
1364a8fdb4bcSmrgOptional Packages:
1365a8fdb4bcSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1366a8fdb4bcSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1367dbe7da2eSmrg  --with-release-version=STRING
1368dbe7da2eSmrg                          Use release version string in package name
1369a8fdb4bcSmrg  --with-localealiasfile=<path>
1370a8fdb4bcSmrg                          The locale alias file (default:
1371a8fdb4bcSmrg                          ${datadir}/X11/locale/locale.alias)
1372a8fdb4bcSmrg
1373a8fdb4bcSmrgSome influential environment variables:
1374a8fdb4bcSmrg  CC          C compiler command
1375a8fdb4bcSmrg  CFLAGS      C compiler flags
1376a8fdb4bcSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1377a8fdb4bcSmrg              nonstandard directory <lib dir>
1378a8fdb4bcSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1379dbe7da2eSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380a8fdb4bcSmrg              you have headers in a nonstandard directory <include dir>
1381dbe7da2eSmrg  CPP         C preprocessor
1382a8fdb4bcSmrg  PKG_CONFIG  path to pkg-config utility
1383a8fdb4bcSmrg  LUIT_CFLAGS C compiler flags for LUIT, overriding pkg-config
1384a8fdb4bcSmrg  LUIT_LIBS   linker flags for LUIT, overriding pkg-config
1385a8fdb4bcSmrg
1386a8fdb4bcSmrgUse these variables to override the choices made by `configure' or to help
1387a8fdb4bcSmrgit to find libraries and programs with nonstandard names/locations.
1388a8fdb4bcSmrg
1389a8fdb4bcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1390a8fdb4bcSmrg_ACEOF
1391a8fdb4bcSmrgac_status=$?
1392a8fdb4bcSmrgfi
1393a8fdb4bcSmrg
1394a8fdb4bcSmrgif test "$ac_init_help" = "recursive"; then
1395a8fdb4bcSmrg  # If there are subdirs, report their specific --help.
1396a8fdb4bcSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397dbe7da2eSmrg    test -d "$ac_dir" ||
1398dbe7da2eSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399dbe7da2eSmrg      continue
1400a8fdb4bcSmrg    ac_builddir=.
1401a8fdb4bcSmrg
1402a8fdb4bcSmrgcase "$ac_dir" in
1403a8fdb4bcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404a8fdb4bcSmrg*)
1405dbe7da2eSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1406a8fdb4bcSmrg  # A ".." for each directory in $ac_dir_suffix.
1407dbe7da2eSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1408a8fdb4bcSmrg  case $ac_top_builddir_sub in
1409a8fdb4bcSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410a8fdb4bcSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411a8fdb4bcSmrg  esac ;;
1412a8fdb4bcSmrgesac
1413a8fdb4bcSmrgac_abs_top_builddir=$ac_pwd
1414a8fdb4bcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1415a8fdb4bcSmrg# for backward compatibility:
1416a8fdb4bcSmrgac_top_builddir=$ac_top_build_prefix
1417a8fdb4bcSmrg
1418a8fdb4bcSmrgcase $srcdir in
1419a8fdb4bcSmrg  .)  # We are building in place.
1420a8fdb4bcSmrg    ac_srcdir=.
1421a8fdb4bcSmrg    ac_top_srcdir=$ac_top_builddir_sub
1422a8fdb4bcSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1423a8fdb4bcSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1424a8fdb4bcSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1425a8fdb4bcSmrg    ac_top_srcdir=$srcdir
1426a8fdb4bcSmrg    ac_abs_top_srcdir=$srcdir ;;
1427a8fdb4bcSmrg  *) # Relative name.
1428a8fdb4bcSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429a8fdb4bcSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1430a8fdb4bcSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431a8fdb4bcSmrgesac
1432a8fdb4bcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433a8fdb4bcSmrg
1434a8fdb4bcSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1435a8fdb4bcSmrg    # Check for guested configure.
1436a8fdb4bcSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1437a8fdb4bcSmrg      echo &&
1438a8fdb4bcSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439a8fdb4bcSmrg    elif test -f "$ac_srcdir/configure"; then
1440a8fdb4bcSmrg      echo &&
1441a8fdb4bcSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1442a8fdb4bcSmrg    else
1443dbe7da2eSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444a8fdb4bcSmrg    fi || ac_status=$?
1445a8fdb4bcSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1446a8fdb4bcSmrg  done
1447a8fdb4bcSmrgfi
1448a8fdb4bcSmrg
1449a8fdb4bcSmrgtest -n "$ac_init_help" && exit $ac_status
1450a8fdb4bcSmrgif $ac_init_version; then
1451a8fdb4bcSmrg  cat <<\_ACEOF
1452dbe7da2eSmrgluit configure 1.0.5
1453dbe7da2eSmrggenerated by GNU Autoconf 2.65
1454a8fdb4bcSmrg
1455dbe7da2eSmrgCopyright (C) 2009 Free Software Foundation, Inc.
1456a8fdb4bcSmrgThis configure script is free software; the Free Software Foundation
1457a8fdb4bcSmrggives unlimited permission to copy, distribute and modify it.
1458a8fdb4bcSmrg_ACEOF
1459a8fdb4bcSmrg  exit
1460a8fdb4bcSmrgfi
1461a8fdb4bcSmrg
1462dbe7da2eSmrg## ------------------------ ##
1463dbe7da2eSmrg## Autoconf initialization. ##
1464dbe7da2eSmrg## ------------------------ ##
1465a8fdb4bcSmrg
1466dbe7da2eSmrg# ac_fn_c_try_compile LINENO
1467dbe7da2eSmrg# --------------------------
1468dbe7da2eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1469dbe7da2eSmrgac_fn_c_try_compile ()
1470a8fdb4bcSmrg{
1471dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472dbe7da2eSmrg  rm -f conftest.$ac_objext
1473dbe7da2eSmrg  if { { ac_try="$ac_compile"
1474dbe7da2eSmrgcase "(($ac_try" in
1475dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
1477dbe7da2eSmrgesac
1478dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
1480dbe7da2eSmrg  (eval "$ac_compile") 2>conftest.err
1481dbe7da2eSmrg  ac_status=$?
1482dbe7da2eSmrg  if test -s conftest.err; then
1483dbe7da2eSmrg    grep -v '^ *+' conftest.err >conftest.er1
1484dbe7da2eSmrg    cat conftest.er1 >&5
1485dbe7da2eSmrg    mv -f conftest.er1 conftest.err
1486dbe7da2eSmrg  fi
1487dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488dbe7da2eSmrg  test $ac_status = 0; } && {
1489dbe7da2eSmrg	 test -z "$ac_c_werror_flag" ||
1490dbe7da2eSmrg	 test ! -s conftest.err
1491dbe7da2eSmrg       } && test -s conftest.$ac_objext; then :
1492dbe7da2eSmrg  ac_retval=0
1493dbe7da2eSmrgelse
1494dbe7da2eSmrg  $as_echo "$as_me: failed program was:" >&5
1495dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5
1496dbe7da2eSmrg
1497dbe7da2eSmrg	ac_retval=1
1498dbe7da2eSmrgfi
1499dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1500dbe7da2eSmrg  as_fn_set_status $ac_retval
1501dbe7da2eSmrg
1502dbe7da2eSmrg} # ac_fn_c_try_compile
1503dbe7da2eSmrg
1504dbe7da2eSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR
1505dbe7da2eSmrg# ------------------------------------
1506dbe7da2eSmrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1507dbe7da2eSmrgac_fn_c_check_decl ()
1508dbe7da2eSmrg{
1509dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1511dbe7da2eSmrg$as_echo_n "checking whether $2 is declared... " >&6; }
1512dbe7da2eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1513dbe7da2eSmrg  $as_echo_n "(cached) " >&6
1514dbe7da2eSmrgelse
1515dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1516dbe7da2eSmrg/* end confdefs.h.  */
1517dbe7da2eSmrg$4
1518dbe7da2eSmrgint
1519dbe7da2eSmrgmain ()
1520dbe7da2eSmrg{
1521dbe7da2eSmrg#ifndef $2
1522dbe7da2eSmrg  (void) $2;
1523dbe7da2eSmrg#endif
1524dbe7da2eSmrg
1525dbe7da2eSmrg  ;
1526dbe7da2eSmrg  return 0;
1527dbe7da2eSmrg}
1528dbe7da2eSmrg_ACEOF
1529dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
1530dbe7da2eSmrg  eval "$3=yes"
1531dbe7da2eSmrgelse
1532dbe7da2eSmrg  eval "$3=no"
1533dbe7da2eSmrgfi
1534dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1535dbe7da2eSmrgfi
1536dbe7da2eSmrgeval ac_res=\$$3
1537dbe7da2eSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1538dbe7da2eSmrg$as_echo "$ac_res" >&6; }
1539dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540dbe7da2eSmrg
1541dbe7da2eSmrg} # ac_fn_c_check_decl
1542dbe7da2eSmrg
1543dbe7da2eSmrg# ac_fn_c_try_cpp LINENO
1544dbe7da2eSmrg# ----------------------
1545dbe7da2eSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546dbe7da2eSmrgac_fn_c_try_cpp ()
1547dbe7da2eSmrg{
1548dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549dbe7da2eSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1550dbe7da2eSmrgcase "(($ac_try" in
1551dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
1553dbe7da2eSmrgesac
1554dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
1556dbe7da2eSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557dbe7da2eSmrg  ac_status=$?
1558dbe7da2eSmrg  if test -s conftest.err; then
1559dbe7da2eSmrg    grep -v '^ *+' conftest.err >conftest.er1
1560dbe7da2eSmrg    cat conftest.er1 >&5
1561dbe7da2eSmrg    mv -f conftest.er1 conftest.err
1562dbe7da2eSmrg  fi
1563dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564dbe7da2eSmrg  test $ac_status = 0; } >/dev/null && {
1565dbe7da2eSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566dbe7da2eSmrg	 test ! -s conftest.err
1567dbe7da2eSmrg       }; then :
1568dbe7da2eSmrg  ac_retval=0
1569dbe7da2eSmrgelse
1570dbe7da2eSmrg  $as_echo "$as_me: failed program was:" >&5
1571dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5
1572dbe7da2eSmrg
1573dbe7da2eSmrg    ac_retval=1
1574dbe7da2eSmrgfi
1575dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576dbe7da2eSmrg  as_fn_set_status $ac_retval
1577dbe7da2eSmrg
1578dbe7da2eSmrg} # ac_fn_c_try_cpp
1579dbe7da2eSmrg
1580dbe7da2eSmrg# ac_fn_c_try_run LINENO
1581dbe7da2eSmrg# ----------------------
1582dbe7da2eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1583dbe7da2eSmrg# that executables *can* be run.
1584dbe7da2eSmrgac_fn_c_try_run ()
1585dbe7da2eSmrg{
1586dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587dbe7da2eSmrg  if { { ac_try="$ac_link"
1588dbe7da2eSmrgcase "(($ac_try" in
1589dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
1591dbe7da2eSmrgesac
1592dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
1594dbe7da2eSmrg  (eval "$ac_link") 2>&5
1595dbe7da2eSmrg  ac_status=$?
1596dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597dbe7da2eSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1598dbe7da2eSmrg  { { case "(($ac_try" in
1599dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
1601dbe7da2eSmrgesac
1602dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
1604dbe7da2eSmrg  (eval "$ac_try") 2>&5
1605dbe7da2eSmrg  ac_status=$?
1606dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607dbe7da2eSmrg  test $ac_status = 0; }; }; then :
1608dbe7da2eSmrg  ac_retval=0
1609dbe7da2eSmrgelse
1610dbe7da2eSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1611dbe7da2eSmrg       $as_echo "$as_me: failed program was:" >&5
1612dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5
1613dbe7da2eSmrg
1614dbe7da2eSmrg       ac_retval=$ac_status
1615dbe7da2eSmrgfi
1616dbe7da2eSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618dbe7da2eSmrg  as_fn_set_status $ac_retval
1619dbe7da2eSmrg
1620dbe7da2eSmrg} # ac_fn_c_try_run
1621dbe7da2eSmrg
1622dbe7da2eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623dbe7da2eSmrg# -------------------------------------------------------
1624dbe7da2eSmrg# Tests whether HEADER exists and can be compiled using the include files in
1625dbe7da2eSmrg# INCLUDES, setting the cache variable VAR accordingly.
1626dbe7da2eSmrgac_fn_c_check_header_compile ()
1627dbe7da2eSmrg{
1628dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; }
1631dbe7da2eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1632dbe7da2eSmrg  $as_echo_n "(cached) " >&6
1633dbe7da2eSmrgelse
1634dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635dbe7da2eSmrg/* end confdefs.h.  */
1636dbe7da2eSmrg$4
1637dbe7da2eSmrg#include <$2>
1638dbe7da2eSmrg_ACEOF
1639dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
1640dbe7da2eSmrg  eval "$3=yes"
1641dbe7da2eSmrgelse
1642dbe7da2eSmrg  eval "$3=no"
1643dbe7da2eSmrgfi
1644dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645dbe7da2eSmrgfi
1646dbe7da2eSmrgeval ac_res=\$$3
1647dbe7da2eSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648dbe7da2eSmrg$as_echo "$ac_res" >&6; }
1649dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650dbe7da2eSmrg
1651dbe7da2eSmrg} # ac_fn_c_check_header_compile
1652dbe7da2eSmrg
1653dbe7da2eSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654dbe7da2eSmrg# -------------------------------------------------------
1655dbe7da2eSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656dbe7da2eSmrg# the include files in INCLUDES and setting the cache variable VAR
1657dbe7da2eSmrg# accordingly.
1658dbe7da2eSmrgac_fn_c_check_header_mongrel ()
1659dbe7da2eSmrg{
1660dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661dbe7da2eSmrg  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; }
1664dbe7da2eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665dbe7da2eSmrg  $as_echo_n "(cached) " >&6
1666dbe7da2eSmrgfi
1667dbe7da2eSmrgeval ac_res=\$$3
1668dbe7da2eSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669dbe7da2eSmrg$as_echo "$ac_res" >&6; }
1670dbe7da2eSmrgelse
1671dbe7da2eSmrg  # Is the header compilable?
1672dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673dbe7da2eSmrg$as_echo_n "checking $2 usability... " >&6; }
1674dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675dbe7da2eSmrg/* end confdefs.h.  */
1676dbe7da2eSmrg$4
1677dbe7da2eSmrg#include <$2>
1678dbe7da2eSmrg_ACEOF
1679dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
1680dbe7da2eSmrg  ac_header_compiler=yes
1681dbe7da2eSmrgelse
1682dbe7da2eSmrg  ac_header_compiler=no
1683dbe7da2eSmrgfi
1684dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686dbe7da2eSmrg$as_echo "$ac_header_compiler" >&6; }
1687dbe7da2eSmrg
1688dbe7da2eSmrg# Is the header present?
1689dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690dbe7da2eSmrg$as_echo_n "checking $2 presence... " >&6; }
1691dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692dbe7da2eSmrg/* end confdefs.h.  */
1693dbe7da2eSmrg#include <$2>
1694dbe7da2eSmrg_ACEOF
1695dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then :
1696dbe7da2eSmrg  ac_header_preproc=yes
1697dbe7da2eSmrgelse
1698dbe7da2eSmrg  ac_header_preproc=no
1699dbe7da2eSmrgfi
1700dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
1701dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702dbe7da2eSmrg$as_echo "$ac_header_preproc" >&6; }
1703dbe7da2eSmrg
1704dbe7da2eSmrg# So?  What about this header?
1705dbe7da2eSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706dbe7da2eSmrg  yes:no: )
1707dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711dbe7da2eSmrg    ;;
1712dbe7da2eSmrg  no:yes:* )
1713dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1716dbe7da2eSmrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1717dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1720dbe7da2eSmrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1721dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723dbe7da2eSmrg( cat <<\_ASBOX
1724dbe7da2eSmrg## ---------------------------------------------------------------------- ##
1725dbe7da2eSmrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1726dbe7da2eSmrg## ---------------------------------------------------------------------- ##
1727dbe7da2eSmrg_ASBOX
1728dbe7da2eSmrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
1729dbe7da2eSmrg    ;;
1730dbe7da2eSmrgesac
1731dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; }
1733dbe7da2eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734dbe7da2eSmrg  $as_echo_n "(cached) " >&6
1735dbe7da2eSmrgelse
1736dbe7da2eSmrg  eval "$3=\$ac_header_compiler"
1737dbe7da2eSmrgfi
1738dbe7da2eSmrgeval ac_res=\$$3
1739dbe7da2eSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740dbe7da2eSmrg$as_echo "$ac_res" >&6; }
1741dbe7da2eSmrgfi
1742dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743dbe7da2eSmrg
1744dbe7da2eSmrg} # ac_fn_c_check_header_mongrel
1745dbe7da2eSmrg
1746dbe7da2eSmrg# ac_fn_c_try_link LINENO
1747dbe7da2eSmrg# -----------------------
1748dbe7da2eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1749dbe7da2eSmrgac_fn_c_try_link ()
1750dbe7da2eSmrg{
1751dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752dbe7da2eSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
1753dbe7da2eSmrg  if { { ac_try="$ac_link"
1754dbe7da2eSmrgcase "(($ac_try" in
1755dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
1757dbe7da2eSmrgesac
1758dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
1760dbe7da2eSmrg  (eval "$ac_link") 2>conftest.err
1761dbe7da2eSmrg  ac_status=$?
1762dbe7da2eSmrg  if test -s conftest.err; then
1763dbe7da2eSmrg    grep -v '^ *+' conftest.err >conftest.er1
1764dbe7da2eSmrg    cat conftest.er1 >&5
1765dbe7da2eSmrg    mv -f conftest.er1 conftest.err
1766dbe7da2eSmrg  fi
1767dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768dbe7da2eSmrg  test $ac_status = 0; } && {
1769dbe7da2eSmrg	 test -z "$ac_c_werror_flag" ||
1770dbe7da2eSmrg	 test ! -s conftest.err
1771dbe7da2eSmrg       } && test -s conftest$ac_exeext && {
1772dbe7da2eSmrg	 test "$cross_compiling" = yes ||
1773dbe7da2eSmrg	 $as_test_x conftest$ac_exeext
1774dbe7da2eSmrg       }; then :
1775dbe7da2eSmrg  ac_retval=0
1776dbe7da2eSmrgelse
1777dbe7da2eSmrg  $as_echo "$as_me: failed program was:" >&5
1778dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5
1779dbe7da2eSmrg
1780dbe7da2eSmrg	ac_retval=1
1781dbe7da2eSmrgfi
1782dbe7da2eSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783dbe7da2eSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784dbe7da2eSmrg  # interfere with the next link command; also delete a directory that is
1785dbe7da2eSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1786dbe7da2eSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788dbe7da2eSmrg  as_fn_set_status $ac_retval
1789dbe7da2eSmrg
1790dbe7da2eSmrg} # ac_fn_c_try_link
1791dbe7da2eSmrg
1792dbe7da2eSmrg# ac_fn_c_check_func LINENO FUNC VAR
1793dbe7da2eSmrg# ----------------------------------
1794dbe7da2eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1795dbe7da2eSmrgac_fn_c_check_func ()
1796dbe7da2eSmrg{
1797dbe7da2eSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; }
1800dbe7da2eSmrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801dbe7da2eSmrg  $as_echo_n "(cached) " >&6
1802dbe7da2eSmrgelse
1803dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804dbe7da2eSmrg/* end confdefs.h.  */
1805dbe7da2eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806dbe7da2eSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807dbe7da2eSmrg#define $2 innocuous_$2
1808dbe7da2eSmrg
1809dbe7da2eSmrg/* System header to define __stub macros and hopefully few prototypes,
1810dbe7da2eSmrg    which can conflict with char $2 (); below.
1811dbe7da2eSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812dbe7da2eSmrg    <limits.h> exists even on freestanding compilers.  */
1813dbe7da2eSmrg
1814dbe7da2eSmrg#ifdef __STDC__
1815dbe7da2eSmrg# include <limits.h>
1816dbe7da2eSmrg#else
1817dbe7da2eSmrg# include <assert.h>
1818dbe7da2eSmrg#endif
1819dbe7da2eSmrg
1820dbe7da2eSmrg#undef $2
1821dbe7da2eSmrg
1822dbe7da2eSmrg/* Override any GCC internal prototype to avoid an error.
1823dbe7da2eSmrg   Use char because int might match the return type of a GCC
1824dbe7da2eSmrg   builtin and then its argument prototype would still apply.  */
1825dbe7da2eSmrg#ifdef __cplusplus
1826dbe7da2eSmrgextern "C"
1827dbe7da2eSmrg#endif
1828dbe7da2eSmrgchar $2 ();
1829dbe7da2eSmrg/* The GNU C library defines this for functions which it implements
1830dbe7da2eSmrg    to always fail with ENOSYS.  Some functions are actually named
1831dbe7da2eSmrg    something starting with __ and the normal name is an alias.  */
1832dbe7da2eSmrg#if defined __stub_$2 || defined __stub___$2
1833dbe7da2eSmrgchoke me
1834dbe7da2eSmrg#endif
1835dbe7da2eSmrg
1836dbe7da2eSmrgint
1837dbe7da2eSmrgmain ()
1838dbe7da2eSmrg{
1839dbe7da2eSmrgreturn $2 ();
1840dbe7da2eSmrg  ;
1841dbe7da2eSmrg  return 0;
1842dbe7da2eSmrg}
1843dbe7da2eSmrg_ACEOF
1844dbe7da2eSmrgif ac_fn_c_try_link "$LINENO"; then :
1845dbe7da2eSmrg  eval "$3=yes"
1846dbe7da2eSmrgelse
1847dbe7da2eSmrg  eval "$3=no"
1848dbe7da2eSmrgfi
1849dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext \
1850dbe7da2eSmrg    conftest$ac_exeext conftest.$ac_ext
1851dbe7da2eSmrgfi
1852dbe7da2eSmrgeval ac_res=\$$3
1853dbe7da2eSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854dbe7da2eSmrg$as_echo "$ac_res" >&6; }
1855dbe7da2eSmrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856dbe7da2eSmrg
1857dbe7da2eSmrg} # ac_fn_c_check_func
1858dbe7da2eSmrgcat >config.log <<_ACEOF
1859dbe7da2eSmrgThis file contains any messages produced by compilers while
1860dbe7da2eSmrgrunning configure, to aid debugging if configure makes a mistake.
1861dbe7da2eSmrg
1862dbe7da2eSmrgIt was created by luit $as_me 1.0.5, which was
1863dbe7da2eSmrggenerated by GNU Autoconf 2.65.  Invocation command line was
1864dbe7da2eSmrg
1865dbe7da2eSmrg  $ $0 $@
1866dbe7da2eSmrg
1867dbe7da2eSmrg_ACEOF
1868dbe7da2eSmrgexec 5>>config.log
1869dbe7da2eSmrg{
1870dbe7da2eSmrgcat <<_ASUNAME
1871dbe7da2eSmrg## --------- ##
1872dbe7da2eSmrg## Platform. ##
1873dbe7da2eSmrg## --------- ##
1874a8fdb4bcSmrg
1875a8fdb4bcSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876a8fdb4bcSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1877a8fdb4bcSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1878a8fdb4bcSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1879a8fdb4bcSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1880a8fdb4bcSmrg
1881a8fdb4bcSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882a8fdb4bcSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1883a8fdb4bcSmrg
1884a8fdb4bcSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1885a8fdb4bcSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1886a8fdb4bcSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887a8fdb4bcSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1888a8fdb4bcSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1889a8fdb4bcSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1890a8fdb4bcSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1891a8fdb4bcSmrg
1892a8fdb4bcSmrg_ASUNAME
1893a8fdb4bcSmrg
1894a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895a8fdb4bcSmrgfor as_dir in $PATH
1896a8fdb4bcSmrgdo
1897a8fdb4bcSmrg  IFS=$as_save_IFS
1898a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
1899dbe7da2eSmrg    $as_echo "PATH: $as_dir"
1900dbe7da2eSmrg  done
1901a8fdb4bcSmrgIFS=$as_save_IFS
1902a8fdb4bcSmrg
1903a8fdb4bcSmrg} >&5
1904a8fdb4bcSmrg
1905a8fdb4bcSmrgcat >&5 <<_ACEOF
1906a8fdb4bcSmrg
1907a8fdb4bcSmrg
1908a8fdb4bcSmrg## ----------- ##
1909a8fdb4bcSmrg## Core tests. ##
1910a8fdb4bcSmrg## ----------- ##
1911a8fdb4bcSmrg
1912a8fdb4bcSmrg_ACEOF
1913a8fdb4bcSmrg
1914a8fdb4bcSmrg
1915a8fdb4bcSmrg# Keep a trace of the command line.
1916a8fdb4bcSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1917a8fdb4bcSmrg# Strip out --silent because we don't want to record it for future runs.
1918a8fdb4bcSmrg# Also quote any args containing shell meta-characters.
1919a8fdb4bcSmrg# Make two passes to allow for proper duplicate-argument suppression.
1920a8fdb4bcSmrgac_configure_args=
1921a8fdb4bcSmrgac_configure_args0=
1922a8fdb4bcSmrgac_configure_args1=
1923a8fdb4bcSmrgac_must_keep_next=false
1924a8fdb4bcSmrgfor ac_pass in 1 2
1925a8fdb4bcSmrgdo
1926a8fdb4bcSmrg  for ac_arg
1927a8fdb4bcSmrg  do
1928a8fdb4bcSmrg    case $ac_arg in
1929a8fdb4bcSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930a8fdb4bcSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931a8fdb4bcSmrg    | -silent | --silent | --silen | --sile | --sil)
1932a8fdb4bcSmrg      continue ;;
1933a8fdb4bcSmrg    *\'*)
1934dbe7da2eSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935a8fdb4bcSmrg    esac
1936a8fdb4bcSmrg    case $ac_pass in
1937dbe7da2eSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938a8fdb4bcSmrg    2)
1939dbe7da2eSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1940a8fdb4bcSmrg      if test $ac_must_keep_next = true; then
1941a8fdb4bcSmrg	ac_must_keep_next=false # Got value, back to normal.
1942a8fdb4bcSmrg      else
1943a8fdb4bcSmrg	case $ac_arg in
1944a8fdb4bcSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1945a8fdb4bcSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946a8fdb4bcSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947a8fdb4bcSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1948a8fdb4bcSmrg	    case "$ac_configure_args0 " in
1949a8fdb4bcSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950a8fdb4bcSmrg	    esac
1951a8fdb4bcSmrg	    ;;
1952a8fdb4bcSmrg	  -* ) ac_must_keep_next=true ;;
1953a8fdb4bcSmrg	esac
1954a8fdb4bcSmrg      fi
1955dbe7da2eSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1956a8fdb4bcSmrg      ;;
1957a8fdb4bcSmrg    esac
1958a8fdb4bcSmrg  done
1959a8fdb4bcSmrgdone
1960dbe7da2eSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1961dbe7da2eSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1962a8fdb4bcSmrg
1963a8fdb4bcSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1964a8fdb4bcSmrg# config.log.  We remove comments because anyway the quotes in there
1965a8fdb4bcSmrg# would cause problems or look ugly.
1966a8fdb4bcSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1967a8fdb4bcSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968a8fdb4bcSmrgtrap 'exit_status=$?
1969a8fdb4bcSmrg  # Save into config.log some information that might help in debugging.
1970a8fdb4bcSmrg  {
1971a8fdb4bcSmrg    echo
1972a8fdb4bcSmrg
1973a8fdb4bcSmrg    cat <<\_ASBOX
1974a8fdb4bcSmrg## ---------------- ##
1975a8fdb4bcSmrg## Cache variables. ##
1976a8fdb4bcSmrg## ---------------- ##
1977a8fdb4bcSmrg_ASBOX
1978a8fdb4bcSmrg    echo
1979a8fdb4bcSmrg    # The following way of writing the cache mishandles newlines in values,
1980a8fdb4bcSmrg(
1981a8fdb4bcSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982a8fdb4bcSmrg    eval ac_val=\$$ac_var
1983a8fdb4bcSmrg    case $ac_val in #(
1984a8fdb4bcSmrg    *${as_nl}*)
1985a8fdb4bcSmrg      case $ac_var in #(
1986dbe7da2eSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987dbe7da2eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988a8fdb4bcSmrg      esac
1989a8fdb4bcSmrg      case $ac_var in #(
1990a8fdb4bcSmrg      _ | IFS | as_nl) ;; #(
1991dbe7da2eSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992dbe7da2eSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1993a8fdb4bcSmrg      esac ;;
1994a8fdb4bcSmrg    esac
1995a8fdb4bcSmrg  done
1996a8fdb4bcSmrg  (set) 2>&1 |
1997a8fdb4bcSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998a8fdb4bcSmrg    *${as_nl}ac_space=\ *)
1999a8fdb4bcSmrg      sed -n \
2000a8fdb4bcSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2001a8fdb4bcSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002a8fdb4bcSmrg      ;; #(
2003a8fdb4bcSmrg    *)
2004a8fdb4bcSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005a8fdb4bcSmrg      ;;
2006a8fdb4bcSmrg    esac |
2007a8fdb4bcSmrg    sort
2008a8fdb4bcSmrg)
2009a8fdb4bcSmrg    echo
2010a8fdb4bcSmrg
2011a8fdb4bcSmrg    cat <<\_ASBOX
2012a8fdb4bcSmrg## ----------------- ##
2013a8fdb4bcSmrg## Output variables. ##
2014a8fdb4bcSmrg## ----------------- ##
2015a8fdb4bcSmrg_ASBOX
2016a8fdb4bcSmrg    echo
2017a8fdb4bcSmrg    for ac_var in $ac_subst_vars
2018a8fdb4bcSmrg    do
2019a8fdb4bcSmrg      eval ac_val=\$$ac_var
2020a8fdb4bcSmrg      case $ac_val in
2021dbe7da2eSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022a8fdb4bcSmrg      esac
2023dbe7da2eSmrg      $as_echo "$ac_var='\''$ac_val'\''"
2024a8fdb4bcSmrg    done | sort
2025a8fdb4bcSmrg    echo
2026a8fdb4bcSmrg
2027a8fdb4bcSmrg    if test -n "$ac_subst_files"; then
2028a8fdb4bcSmrg      cat <<\_ASBOX
2029a8fdb4bcSmrg## ------------------- ##
2030a8fdb4bcSmrg## File substitutions. ##
2031a8fdb4bcSmrg## ------------------- ##
2032a8fdb4bcSmrg_ASBOX
2033a8fdb4bcSmrg      echo
2034a8fdb4bcSmrg      for ac_var in $ac_subst_files
2035a8fdb4bcSmrg      do
2036a8fdb4bcSmrg	eval ac_val=\$$ac_var
2037a8fdb4bcSmrg	case $ac_val in
2038dbe7da2eSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039a8fdb4bcSmrg	esac
2040dbe7da2eSmrg	$as_echo "$ac_var='\''$ac_val'\''"
2041a8fdb4bcSmrg      done | sort
2042a8fdb4bcSmrg      echo
2043a8fdb4bcSmrg    fi
2044a8fdb4bcSmrg
2045a8fdb4bcSmrg    if test -s confdefs.h; then
2046a8fdb4bcSmrg      cat <<\_ASBOX
2047a8fdb4bcSmrg## ----------- ##
2048a8fdb4bcSmrg## confdefs.h. ##
2049a8fdb4bcSmrg## ----------- ##
2050a8fdb4bcSmrg_ASBOX
2051a8fdb4bcSmrg      echo
2052a8fdb4bcSmrg      cat confdefs.h
2053a8fdb4bcSmrg      echo
2054a8fdb4bcSmrg    fi
2055a8fdb4bcSmrg    test "$ac_signal" != 0 &&
2056dbe7da2eSmrg      $as_echo "$as_me: caught signal $ac_signal"
2057dbe7da2eSmrg    $as_echo "$as_me: exit $exit_status"
2058a8fdb4bcSmrg  } >&5
2059a8fdb4bcSmrg  rm -f core *.core core.conftest.* &&
2060a8fdb4bcSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061a8fdb4bcSmrg    exit $exit_status
2062a8fdb4bcSmrg' 0
2063a8fdb4bcSmrgfor ac_signal in 1 2 13 15; do
2064dbe7da2eSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065a8fdb4bcSmrgdone
2066a8fdb4bcSmrgac_signal=0
2067a8fdb4bcSmrg
2068a8fdb4bcSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2069a8fdb4bcSmrgrm -f -r conftest* confdefs.h
2070a8fdb4bcSmrg
2071dbe7da2eSmrg$as_echo "/* confdefs.h */" > confdefs.h
2072dbe7da2eSmrg
2073a8fdb4bcSmrg# Predefined preprocessor variables.
2074a8fdb4bcSmrg
2075a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2076a8fdb4bcSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2077a8fdb4bcSmrg_ACEOF
2078a8fdb4bcSmrg
2079a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2080a8fdb4bcSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081a8fdb4bcSmrg_ACEOF
2082a8fdb4bcSmrg
2083a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2084a8fdb4bcSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2085a8fdb4bcSmrg_ACEOF
2086a8fdb4bcSmrg
2087a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2088a8fdb4bcSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2089a8fdb4bcSmrg_ACEOF
2090a8fdb4bcSmrg
2091a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2092a8fdb4bcSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093a8fdb4bcSmrg_ACEOF
2094a8fdb4bcSmrg
2095dbe7da2eSmrgcat >>confdefs.h <<_ACEOF
2096dbe7da2eSmrg#define PACKAGE_URL "$PACKAGE_URL"
2097dbe7da2eSmrg_ACEOF
2098dbe7da2eSmrg
2099a8fdb4bcSmrg
2100a8fdb4bcSmrg# Let the site file select an alternate cache file if it wants to.
2101dbe7da2eSmrg# Prefer an explicitly selected file to automatically selected ones.
2102dbe7da2eSmrgac_site_file1=NONE
2103dbe7da2eSmrgac_site_file2=NONE
2104a8fdb4bcSmrgif test -n "$CONFIG_SITE"; then
2105dbe7da2eSmrg  ac_site_file1=$CONFIG_SITE
2106a8fdb4bcSmrgelif test "x$prefix" != xNONE; then
2107dbe7da2eSmrg  ac_site_file1=$prefix/share/config.site
2108dbe7da2eSmrg  ac_site_file2=$prefix/etc/config.site
2109a8fdb4bcSmrgelse
2110dbe7da2eSmrg  ac_site_file1=$ac_default_prefix/share/config.site
2111dbe7da2eSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2112a8fdb4bcSmrgfi
2113dbe7da2eSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114a8fdb4bcSmrgdo
2115dbe7da2eSmrg  test "x$ac_site_file" = xNONE && continue
2116dbe7da2eSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118dbe7da2eSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119a8fdb4bcSmrg    sed 's/^/| /' "$ac_site_file" >&5
2120a8fdb4bcSmrg    . "$ac_site_file"
2121a8fdb4bcSmrg  fi
2122a8fdb4bcSmrgdone
2123a8fdb4bcSmrg
2124a8fdb4bcSmrgif test -r "$cache_file"; then
2125dbe7da2eSmrg  # Some versions of bash will fail to source /dev/null (special files
2126dbe7da2eSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2127dbe7da2eSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129dbe7da2eSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2130a8fdb4bcSmrg    case $cache_file in
2131a8fdb4bcSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132a8fdb4bcSmrg      *)                      . "./$cache_file";;
2133a8fdb4bcSmrg    esac
2134a8fdb4bcSmrg  fi
2135a8fdb4bcSmrgelse
2136dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137dbe7da2eSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2138a8fdb4bcSmrg  >$cache_file
2139a8fdb4bcSmrgfi
2140a8fdb4bcSmrg
2141a8fdb4bcSmrg# Check that the precious variables saved in the cache have kept the same
2142a8fdb4bcSmrg# value.
2143a8fdb4bcSmrgac_cache_corrupted=false
2144a8fdb4bcSmrgfor ac_var in $ac_precious_vars; do
2145a8fdb4bcSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146a8fdb4bcSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2147a8fdb4bcSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148a8fdb4bcSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2149a8fdb4bcSmrg  case $ac_old_set,$ac_new_set in
2150a8fdb4bcSmrg    set,)
2151dbe7da2eSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153a8fdb4bcSmrg      ac_cache_corrupted=: ;;
2154a8fdb4bcSmrg    ,set)
2155dbe7da2eSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157a8fdb4bcSmrg      ac_cache_corrupted=: ;;
2158a8fdb4bcSmrg    ,);;
2159a8fdb4bcSmrg    *)
2160a8fdb4bcSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2161dbe7da2eSmrg	# differences in whitespace do not lead to failure.
2162dbe7da2eSmrg	ac_old_val_w=`echo x $ac_old_val`
2163dbe7da2eSmrg	ac_new_val_w=`echo x $ac_new_val`
2164dbe7da2eSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165dbe7da2eSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167dbe7da2eSmrg	  ac_cache_corrupted=:
2168dbe7da2eSmrg	else
2169dbe7da2eSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170dbe7da2eSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171dbe7da2eSmrg	  eval $ac_var=\$ac_old_val
2172dbe7da2eSmrg	fi
2173dbe7da2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2174dbe7da2eSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2175dbe7da2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2176dbe7da2eSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2177a8fdb4bcSmrg      fi;;
2178a8fdb4bcSmrg  esac
2179a8fdb4bcSmrg  # Pass precious variables to config.status.
2180a8fdb4bcSmrg  if test "$ac_new_set" = set; then
2181a8fdb4bcSmrg    case $ac_new_val in
2182dbe7da2eSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183a8fdb4bcSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2184a8fdb4bcSmrg    esac
2185a8fdb4bcSmrg    case " $ac_configure_args " in
2186a8fdb4bcSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2187dbe7da2eSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188a8fdb4bcSmrg    esac
2189a8fdb4bcSmrg  fi
2190a8fdb4bcSmrgdone
2191a8fdb4bcSmrgif $ac_cache_corrupted; then
2192dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195dbe7da2eSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196dbe7da2eSmrg  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197a8fdb4bcSmrgfi
2198dbe7da2eSmrg## -------------------- ##
2199dbe7da2eSmrg## Main body of script. ##
2200dbe7da2eSmrg## -------------------- ##
2201a8fdb4bcSmrg
2202a8fdb4bcSmrgac_ext=c
2203a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS'
2204a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2207a8fdb4bcSmrg
2208a8fdb4bcSmrg
2209dbe7da2eSmrgam__api_version='1.11'
2210a8fdb4bcSmrg
2211a8fdb4bcSmrgac_aux_dir=
2212a8fdb4bcSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2213dbe7da2eSmrg  for ac_t in install-sh install.sh shtool; do
2214dbe7da2eSmrg    if test -f "$ac_dir/$ac_t"; then
2215dbe7da2eSmrg      ac_aux_dir=$ac_dir
2216dbe7da2eSmrg      ac_install_sh="$ac_aux_dir/$ac_t -c"
2217dbe7da2eSmrg      break 2
2218dbe7da2eSmrg    fi
2219dbe7da2eSmrg  done
2220a8fdb4bcSmrgdone
2221a8fdb4bcSmrgif test -z "$ac_aux_dir"; then
2222dbe7da2eSmrg  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2223a8fdb4bcSmrgfi
2224a8fdb4bcSmrg
2225a8fdb4bcSmrg# These three variables are undocumented and unsupported,
2226a8fdb4bcSmrg# and are intended to be withdrawn in a future Autoconf release.
2227a8fdb4bcSmrg# They can cause serious problems if a builder's source tree is in a directory
2228a8fdb4bcSmrg# whose full name contains unusual characters.
2229a8fdb4bcSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2230a8fdb4bcSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2231a8fdb4bcSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2232a8fdb4bcSmrg
2233a8fdb4bcSmrg
2234a8fdb4bcSmrg# Find a good install program.  We prefer a C program (faster),
2235a8fdb4bcSmrg# so one script is as good as another.  But avoid the broken or
2236a8fdb4bcSmrg# incompatible versions:
2237a8fdb4bcSmrg# SysV /etc/install, /usr/sbin/install
2238a8fdb4bcSmrg# SunOS /usr/etc/install
2239a8fdb4bcSmrg# IRIX /sbin/install
2240a8fdb4bcSmrg# AIX /bin/install
2241a8fdb4bcSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2242a8fdb4bcSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243a8fdb4bcSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244a8fdb4bcSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245a8fdb4bcSmrg# OS/2's system install, which has a completely different semantic
2246a8fdb4bcSmrg# ./install, which can be erroneously created by make from ./install.sh.
2247dbe7da2eSmrg# Reject install programs that cannot install multiple files.
2248dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249dbe7da2eSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2250a8fdb4bcSmrgif test -z "$INSTALL"; then
2251dbe7da2eSmrgif test "${ac_cv_path_install+set}" = set; then :
2252dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2253a8fdb4bcSmrgelse
2254a8fdb4bcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255a8fdb4bcSmrgfor as_dir in $PATH
2256a8fdb4bcSmrgdo
2257a8fdb4bcSmrg  IFS=$as_save_IFS
2258a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2259dbe7da2eSmrg    # Account for people who put trailing slashes in PATH elements.
2260dbe7da2eSmrgcase $as_dir/ in #((
2261dbe7da2eSmrg  ./ | .// | /[cC]/* | \
2262a8fdb4bcSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263dbe7da2eSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2264a8fdb4bcSmrg  /usr/ucb/* ) ;;
2265a8fdb4bcSmrg  *)
2266a8fdb4bcSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2267a8fdb4bcSmrg    # Don't use installbsd from OSF since it installs stuff as root
2268a8fdb4bcSmrg    # by default.
2269a8fdb4bcSmrg    for ac_prog in ginstall scoinst install; do
2270a8fdb4bcSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2271a8fdb4bcSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272a8fdb4bcSmrg	  if test $ac_prog = install &&
2273a8fdb4bcSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274a8fdb4bcSmrg	    # AIX install.  It has an incompatible calling convention.
2275a8fdb4bcSmrg	    :
2276a8fdb4bcSmrg	  elif test $ac_prog = install &&
2277a8fdb4bcSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278a8fdb4bcSmrg	    # program-specific install script used by HP pwplus--don't use.
2279a8fdb4bcSmrg	    :
2280a8fdb4bcSmrg	  else
2281dbe7da2eSmrg	    rm -rf conftest.one conftest.two conftest.dir
2282dbe7da2eSmrg	    echo one > conftest.one
2283dbe7da2eSmrg	    echo two > conftest.two
2284dbe7da2eSmrg	    mkdir conftest.dir
2285dbe7da2eSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286dbe7da2eSmrg	      test -s conftest.one && test -s conftest.two &&
2287dbe7da2eSmrg	      test -s conftest.dir/conftest.one &&
2288dbe7da2eSmrg	      test -s conftest.dir/conftest.two
2289dbe7da2eSmrg	    then
2290dbe7da2eSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291dbe7da2eSmrg	      break 3
2292dbe7da2eSmrg	    fi
2293a8fdb4bcSmrg	  fi
2294a8fdb4bcSmrg	fi
2295a8fdb4bcSmrg      done
2296a8fdb4bcSmrg    done
2297a8fdb4bcSmrg    ;;
2298a8fdb4bcSmrgesac
2299dbe7da2eSmrg
2300dbe7da2eSmrg  done
2301a8fdb4bcSmrgIFS=$as_save_IFS
2302a8fdb4bcSmrg
2303dbe7da2eSmrgrm -rf conftest.one conftest.two conftest.dir
2304a8fdb4bcSmrg
2305a8fdb4bcSmrgfi
2306a8fdb4bcSmrg  if test "${ac_cv_path_install+set}" = set; then
2307a8fdb4bcSmrg    INSTALL=$ac_cv_path_install
2308a8fdb4bcSmrg  else
2309a8fdb4bcSmrg    # As a last resort, use the slow shell script.  Don't cache a
2310a8fdb4bcSmrg    # value for INSTALL within a source directory, because that will
2311a8fdb4bcSmrg    # break other packages using the cache if that directory is
2312a8fdb4bcSmrg    # removed, or if the value is a relative name.
2313a8fdb4bcSmrg    INSTALL=$ac_install_sh
2314a8fdb4bcSmrg  fi
2315a8fdb4bcSmrgfi
2316dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317dbe7da2eSmrg$as_echo "$INSTALL" >&6; }
2318a8fdb4bcSmrg
2319a8fdb4bcSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320a8fdb4bcSmrg# It thinks the first close brace ends the variable substitution.
2321a8fdb4bcSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322a8fdb4bcSmrg
2323a8fdb4bcSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324a8fdb4bcSmrg
2325a8fdb4bcSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326a8fdb4bcSmrg
2327dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328dbe7da2eSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2329a8fdb4bcSmrg# Just in case
2330a8fdb4bcSmrgsleep 1
2331a8fdb4bcSmrgecho timestamp > conftest.file
2332dbe7da2eSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2333dbe7da2eSmrg# name.  Accept space and tab only in the latter.
2334dbe7da2eSmrgam_lf='
2335dbe7da2eSmrg'
2336dbe7da2eSmrgcase `pwd` in
2337dbe7da2eSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2338dbe7da2eSmrg    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2339dbe7da2eSmrgesac
2340dbe7da2eSmrgcase $srcdir in
2341dbe7da2eSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2342dbe7da2eSmrg    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2343dbe7da2eSmrgesac
2344dbe7da2eSmrg
2345a8fdb4bcSmrg# Do `set' in a subshell so we don't clobber the current shell's
2346a8fdb4bcSmrg# arguments.  Must try -L first in case configure is actually a
2347a8fdb4bcSmrg# symlink; some systems play weird games with the mod time of symlinks
2348a8fdb4bcSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2349a8fdb4bcSmrg# directory).
2350a8fdb4bcSmrgif (
2351dbe7da2eSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352a8fdb4bcSmrg   if test "$*" = "X"; then
2353a8fdb4bcSmrg      # -L didn't work.
2354dbe7da2eSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2355a8fdb4bcSmrg   fi
2356a8fdb4bcSmrg   rm -f conftest.file
2357a8fdb4bcSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2358a8fdb4bcSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2359a8fdb4bcSmrg
2360a8fdb4bcSmrg      # If neither matched, then we have a broken ls.  This can happen
2361a8fdb4bcSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2362a8fdb4bcSmrg      # broken ls alias from the environment.  This has actually
2363a8fdb4bcSmrg      # happened.  Such a system could not be considered "sane".
2364dbe7da2eSmrg      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2365dbe7da2eSmrgalias in your environment" "$LINENO" 5
2366a8fdb4bcSmrg   fi
2367a8fdb4bcSmrg
2368a8fdb4bcSmrg   test "$2" = conftest.file
2369a8fdb4bcSmrg   )
2370a8fdb4bcSmrgthen
2371a8fdb4bcSmrg   # Ok.
2372a8fdb4bcSmrg   :
2373a8fdb4bcSmrgelse
2374dbe7da2eSmrg   as_fn_error "newly created file is older than distributed files!
2375dbe7da2eSmrgCheck your system clock" "$LINENO" 5
2376a8fdb4bcSmrgfi
2377dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378dbe7da2eSmrg$as_echo "yes" >&6; }
2379a8fdb4bcSmrgtest "$program_prefix" != NONE &&
2380a8fdb4bcSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381a8fdb4bcSmrg# Use a double $ so make ignores it.
2382a8fdb4bcSmrgtest "$program_suffix" != NONE &&
2383a8fdb4bcSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384dbe7da2eSmrg# Double any \ or $.
2385a8fdb4bcSmrg# By default was `s,x,x', remove it if useless.
2386dbe7da2eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387dbe7da2eSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2388a8fdb4bcSmrg
2389a8fdb4bcSmrg# expand $ac_aux_dir to an absolute path
2390a8fdb4bcSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2391a8fdb4bcSmrg
2392dbe7da2eSmrgif test x"${MISSING+set}" != xset; then
2393dbe7da2eSmrg  case $am_aux_dir in
2394dbe7da2eSmrg  *\ * | *\	*)
2395dbe7da2eSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2396dbe7da2eSmrg  *)
2397dbe7da2eSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2398dbe7da2eSmrg  esac
2399dbe7da2eSmrgfi
2400a8fdb4bcSmrg# Use eval to expand $SHELL
2401a8fdb4bcSmrgif eval "$MISSING --run true"; then
2402a8fdb4bcSmrg  am_missing_run="$MISSING --run "
2403a8fdb4bcSmrgelse
2404a8fdb4bcSmrg  am_missing_run=
2405dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2406dbe7da2eSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2407a8fdb4bcSmrgfi
2408a8fdb4bcSmrg
2409dbe7da2eSmrgif test x"${install_sh}" != xset; then
2410dbe7da2eSmrg  case $am_aux_dir in
2411dbe7da2eSmrg  *\ * | *\	*)
2412dbe7da2eSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2413dbe7da2eSmrg  *)
2414dbe7da2eSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2415dbe7da2eSmrg  esac
2416dbe7da2eSmrgfi
2417dbe7da2eSmrg
2418dbe7da2eSmrg# Installed binaries are usually stripped using `strip' when the user
2419dbe7da2eSmrg# run `make install-strip'.  However `strip' might not be the right
2420dbe7da2eSmrg# tool to use in cross-compilation environments, therefore Automake
2421dbe7da2eSmrg# will honor the `STRIP' environment variable to overrule this program.
2422dbe7da2eSmrgif test "$cross_compiling" != no; then
2423dbe7da2eSmrg  if test -n "$ac_tool_prefix"; then
2424dbe7da2eSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425dbe7da2eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2426dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2428dbe7da2eSmrgif test "${ac_cv_prog_STRIP+set}" = set; then :
2429dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2430a8fdb4bcSmrgelse
2431dbe7da2eSmrg  if test -n "$STRIP"; then
2432dbe7da2eSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433dbe7da2eSmrgelse
2434dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435dbe7da2eSmrgfor as_dir in $PATH
2436a8fdb4bcSmrgdo
2437a8fdb4bcSmrg  IFS=$as_save_IFS
2438a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2439dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2440dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441dbe7da2eSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443dbe7da2eSmrg    break 2
2444dbe7da2eSmrg  fi
2445a8fdb4bcSmrgdone
2446dbe7da2eSmrg  done
2447a8fdb4bcSmrgIFS=$as_save_IFS
2448a8fdb4bcSmrg
2449a8fdb4bcSmrgfi
2450a8fdb4bcSmrgfi
2451dbe7da2eSmrgSTRIP=$ac_cv_prog_STRIP
2452dbe7da2eSmrgif test -n "$STRIP"; then
2453dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2454dbe7da2eSmrg$as_echo "$STRIP" >&6; }
2455dbe7da2eSmrgelse
2456dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457dbe7da2eSmrg$as_echo "no" >&6; }
2458dbe7da2eSmrgfi
2459a8fdb4bcSmrg
2460dbe7da2eSmrg
2461dbe7da2eSmrgfi
2462dbe7da2eSmrgif test -z "$ac_cv_prog_STRIP"; then
2463dbe7da2eSmrg  ac_ct_STRIP=$STRIP
2464dbe7da2eSmrg  # Extract the first word of "strip", so it can be a program name with args.
2465dbe7da2eSmrgset dummy strip; ac_word=$2
2466dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2468dbe7da2eSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2469dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2470dbe7da2eSmrgelse
2471dbe7da2eSmrg  if test -n "$ac_ct_STRIP"; then
2472dbe7da2eSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473dbe7da2eSmrgelse
2474dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475dbe7da2eSmrgfor as_dir in $PATH
2476dbe7da2eSmrgdo
2477dbe7da2eSmrg  IFS=$as_save_IFS
2478dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
2479dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2480dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481dbe7da2eSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2482dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483dbe7da2eSmrg    break 2
2484dbe7da2eSmrg  fi
2485dbe7da2eSmrgdone
2486dbe7da2eSmrg  done
2487dbe7da2eSmrgIFS=$as_save_IFS
2488dbe7da2eSmrg
2489dbe7da2eSmrgfi
2490dbe7da2eSmrgfi
2491dbe7da2eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492dbe7da2eSmrgif test -n "$ac_ct_STRIP"; then
2493dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2494dbe7da2eSmrg$as_echo "$ac_ct_STRIP" >&6; }
2495dbe7da2eSmrgelse
2496dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497dbe7da2eSmrg$as_echo "no" >&6; }
2498dbe7da2eSmrgfi
2499dbe7da2eSmrg
2500dbe7da2eSmrg  if test "x$ac_ct_STRIP" = x; then
2501dbe7da2eSmrg    STRIP=":"
2502dbe7da2eSmrg  else
2503dbe7da2eSmrg    case $cross_compiling:$ac_tool_warned in
2504dbe7da2eSmrgyes:)
2505dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507dbe7da2eSmrgac_tool_warned=yes ;;
2508dbe7da2eSmrgesac
2509dbe7da2eSmrg    STRIP=$ac_ct_STRIP
2510dbe7da2eSmrg  fi
2511dbe7da2eSmrgelse
2512dbe7da2eSmrg  STRIP="$ac_cv_prog_STRIP"
2513dbe7da2eSmrgfi
2514dbe7da2eSmrg
2515dbe7da2eSmrgfi
2516dbe7da2eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517dbe7da2eSmrg
2518dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2519dbe7da2eSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2520dbe7da2eSmrgif test -z "$MKDIR_P"; then
2521dbe7da2eSmrg  if test "${ac_cv_path_mkdir+set}" = set; then :
2522dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2523dbe7da2eSmrgelse
2524dbe7da2eSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2526dbe7da2eSmrgdo
2527dbe7da2eSmrg  IFS=$as_save_IFS
2528dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
2529dbe7da2eSmrg    for ac_prog in mkdir gmkdir; do
2530dbe7da2eSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2531dbe7da2eSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2532dbe7da2eSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2533dbe7da2eSmrg	     'mkdir (GNU coreutils) '* | \
2534dbe7da2eSmrg	     'mkdir (coreutils) '* | \
2535dbe7da2eSmrg	     'mkdir (fileutils) '4.1*)
2536dbe7da2eSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2537dbe7da2eSmrg	       break 3;;
2538dbe7da2eSmrg	   esac
2539dbe7da2eSmrg	 done
2540dbe7da2eSmrg       done
2541dbe7da2eSmrg  done
2542dbe7da2eSmrgIFS=$as_save_IFS
2543dbe7da2eSmrg
2544dbe7da2eSmrgfi
2545dbe7da2eSmrg
2546dbe7da2eSmrg  test -d ./--version && rmdir ./--version
2547dbe7da2eSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2548dbe7da2eSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2549dbe7da2eSmrg  else
2550dbe7da2eSmrg    # As a last resort, use the slow shell script.  Don't cache a
2551dbe7da2eSmrg    # value for MKDIR_P within a source directory, because that will
2552dbe7da2eSmrg    # break other packages using the cache if that directory is
2553dbe7da2eSmrg    # removed, or if the value is a relative name.
2554dbe7da2eSmrg    MKDIR_P="$ac_install_sh -d"
2555dbe7da2eSmrg  fi
2556dbe7da2eSmrgfi
2557dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2558dbe7da2eSmrg$as_echo "$MKDIR_P" >&6; }
2559dbe7da2eSmrg
2560dbe7da2eSmrgmkdir_p="$MKDIR_P"
2561a8fdb4bcSmrgcase $mkdir_p in
2562a8fdb4bcSmrg  [\\/$]* | ?:[\\/]*) ;;
2563a8fdb4bcSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2564a8fdb4bcSmrgesac
2565a8fdb4bcSmrg
2566a8fdb4bcSmrgfor ac_prog in gawk mawk nawk awk
2567a8fdb4bcSmrgdo
2568a8fdb4bcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2569a8fdb4bcSmrgset dummy $ac_prog; ac_word=$2
2570dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2572dbe7da2eSmrgif test "${ac_cv_prog_AWK+set}" = set; then :
2573dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2574a8fdb4bcSmrgelse
2575a8fdb4bcSmrg  if test -n "$AWK"; then
2576a8fdb4bcSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577a8fdb4bcSmrgelse
2578a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579a8fdb4bcSmrgfor as_dir in $PATH
2580a8fdb4bcSmrgdo
2581a8fdb4bcSmrg  IFS=$as_save_IFS
2582a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2583dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2584a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585a8fdb4bcSmrg    ac_cv_prog_AWK="$ac_prog"
2586dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587a8fdb4bcSmrg    break 2
2588a8fdb4bcSmrg  fi
2589a8fdb4bcSmrgdone
2590dbe7da2eSmrg  done
2591a8fdb4bcSmrgIFS=$as_save_IFS
2592a8fdb4bcSmrg
2593a8fdb4bcSmrgfi
2594a8fdb4bcSmrgfi
2595a8fdb4bcSmrgAWK=$ac_cv_prog_AWK
2596a8fdb4bcSmrgif test -n "$AWK"; then
2597dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598dbe7da2eSmrg$as_echo "$AWK" >&6; }
2599a8fdb4bcSmrgelse
2600dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601dbe7da2eSmrg$as_echo "no" >&6; }
2602a8fdb4bcSmrgfi
2603a8fdb4bcSmrg
2604a8fdb4bcSmrg
2605a8fdb4bcSmrg  test -n "$AWK" && break
2606a8fdb4bcSmrgdone
2607a8fdb4bcSmrg
2608dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609dbe7da2eSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610dbe7da2eSmrgset x ${MAKE-make}
2611dbe7da2eSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612dbe7da2eSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2613dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2614a8fdb4bcSmrgelse
2615a8fdb4bcSmrg  cat >conftest.make <<\_ACEOF
2616a8fdb4bcSmrgSHELL = /bin/sh
2617a8fdb4bcSmrgall:
2618a8fdb4bcSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2619a8fdb4bcSmrg_ACEOF
2620a8fdb4bcSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2621a8fdb4bcSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2622a8fdb4bcSmrg  *@@@%%%=?*=@@@%%%*)
2623a8fdb4bcSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2624a8fdb4bcSmrg  *)
2625a8fdb4bcSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2626a8fdb4bcSmrgesac
2627a8fdb4bcSmrgrm -f conftest.make
2628a8fdb4bcSmrgfi
2629a8fdb4bcSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631dbe7da2eSmrg$as_echo "yes" >&6; }
2632a8fdb4bcSmrg  SET_MAKE=
2633a8fdb4bcSmrgelse
2634dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635dbe7da2eSmrg$as_echo "no" >&6; }
2636a8fdb4bcSmrg  SET_MAKE="MAKE=${MAKE-make}"
2637a8fdb4bcSmrgfi
2638a8fdb4bcSmrg
2639a8fdb4bcSmrgrm -rf .tst 2>/dev/null
2640a8fdb4bcSmrgmkdir .tst 2>/dev/null
2641a8fdb4bcSmrgif test -d .tst; then
2642a8fdb4bcSmrg  am__leading_dot=.
2643a8fdb4bcSmrgelse
2644a8fdb4bcSmrg  am__leading_dot=_
2645a8fdb4bcSmrgfi
2646a8fdb4bcSmrgrmdir .tst 2>/dev/null
2647a8fdb4bcSmrg
2648a8fdb4bcSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2649a8fdb4bcSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2650a8fdb4bcSmrg  # is not polluted with repeated "-I."
2651a8fdb4bcSmrg  am__isrc=' -I$(srcdir)'
2652a8fdb4bcSmrg  # test to see if srcdir already configured
2653a8fdb4bcSmrg  if test -f $srcdir/config.status; then
2654dbe7da2eSmrg    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2655a8fdb4bcSmrg  fi
2656a8fdb4bcSmrgfi
2657a8fdb4bcSmrg
2658a8fdb4bcSmrg# test whether we have cygpath
2659a8fdb4bcSmrgif test -z "$CYGPATH_W"; then
2660a8fdb4bcSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2661a8fdb4bcSmrg    CYGPATH_W='cygpath -w'
2662a8fdb4bcSmrg  else
2663a8fdb4bcSmrg    CYGPATH_W=echo
2664a8fdb4bcSmrg  fi
2665a8fdb4bcSmrgfi
2666a8fdb4bcSmrg
2667a8fdb4bcSmrg
2668a8fdb4bcSmrg# Define the identity of the package.
2669a8fdb4bcSmrg PACKAGE='luit'
2670dbe7da2eSmrg VERSION='1.0.5'
2671a8fdb4bcSmrg
2672a8fdb4bcSmrg
2673a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2674a8fdb4bcSmrg#define PACKAGE "$PACKAGE"
2675a8fdb4bcSmrg_ACEOF
2676a8fdb4bcSmrg
2677a8fdb4bcSmrg
2678a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF
2679a8fdb4bcSmrg#define VERSION "$VERSION"
2680a8fdb4bcSmrg_ACEOF
2681a8fdb4bcSmrg
2682a8fdb4bcSmrg# Some tools Automake needs.
2683a8fdb4bcSmrg
2684a8fdb4bcSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2685a8fdb4bcSmrg
2686a8fdb4bcSmrg
2687a8fdb4bcSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2688a8fdb4bcSmrg
2689a8fdb4bcSmrg
2690a8fdb4bcSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2691a8fdb4bcSmrg
2692a8fdb4bcSmrg
2693a8fdb4bcSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2694a8fdb4bcSmrg
2695a8fdb4bcSmrg
2696a8fdb4bcSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2697a8fdb4bcSmrg
2698a8fdb4bcSmrg# We need awk for the "check" target.  The system "awk" is bad on
2699a8fdb4bcSmrg# some platforms.
2700a8fdb4bcSmrg# Always define AMTAR for backward compatibility.
2701a8fdb4bcSmrg
2702a8fdb4bcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2703a8fdb4bcSmrg
2704a8fdb4bcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2705a8fdb4bcSmrg
2706a8fdb4bcSmrg
2707a8fdb4bcSmrg
2708a8fdb4bcSmrg
2709a8fdb4bcSmrg
2710dbe7da2eSmrg
2711dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2712dbe7da2eSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2713a8fdb4bcSmrg    # Check whether --enable-maintainer-mode was given.
2714dbe7da2eSmrgif test "${enable_maintainer_mode+set}" = set; then :
2715a8fdb4bcSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2716a8fdb4bcSmrgelse
2717a8fdb4bcSmrg  USE_MAINTAINER_MODE=no
2718a8fdb4bcSmrgfi
2719a8fdb4bcSmrg
2720dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2721dbe7da2eSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2722a8fdb4bcSmrg   if test $USE_MAINTAINER_MODE = yes; then
2723a8fdb4bcSmrg  MAINTAINER_MODE_TRUE=
2724a8fdb4bcSmrg  MAINTAINER_MODE_FALSE='#'
2725a8fdb4bcSmrgelse
2726a8fdb4bcSmrg  MAINTAINER_MODE_TRUE='#'
2727a8fdb4bcSmrg  MAINTAINER_MODE_FALSE=
2728a8fdb4bcSmrgfi
2729a8fdb4bcSmrg
2730a8fdb4bcSmrg  MAINT=$MAINTAINER_MODE_TRUE
2731a8fdb4bcSmrg
2732a8fdb4bcSmrg
2733a8fdb4bcSmrg
2734dbe7da2eSmrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
2735dbe7da2eSmrg
2736dbe7da2eSmrg
2737dbe7da2eSmrg
2738dbe7da2eSmrg
2739dbe7da2eSmrg
2740dbe7da2eSmrg
2741dbe7da2eSmrg
2742dbe7da2eSmrg
2743dbe7da2eSmrg
2744dbe7da2eSmrg
2745dbe7da2eSmrg
2746dbe7da2eSmrgDEPDIR="${am__leading_dot}deps"
2747dbe7da2eSmrg
2748dbe7da2eSmrgac_config_commands="$ac_config_commands depfiles"
2749dbe7da2eSmrg
2750dbe7da2eSmrg
2751dbe7da2eSmrgam_make=${MAKE-make}
2752dbe7da2eSmrgcat > confinc << 'END'
2753dbe7da2eSmrgam__doit:
2754dbe7da2eSmrg	@echo this is the am__doit target
2755dbe7da2eSmrg.PHONY: am__doit
2756dbe7da2eSmrgEND
2757dbe7da2eSmrg# If we don't find an include directive, just comment out the code.
2758dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2759dbe7da2eSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2760dbe7da2eSmrgam__include="#"
2761dbe7da2eSmrgam__quote=
2762dbe7da2eSmrg_am_result=none
2763dbe7da2eSmrg# First try GNU make style include.
2764dbe7da2eSmrgecho "include confinc" > confmf
2765dbe7da2eSmrg# Ignore all kinds of additional output from `make'.
2766dbe7da2eSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2767dbe7da2eSmrg*the\ am__doit\ target*)
2768dbe7da2eSmrg  am__include=include
2769dbe7da2eSmrg  am__quote=
2770dbe7da2eSmrg  _am_result=GNU
2771dbe7da2eSmrg  ;;
2772dbe7da2eSmrgesac
2773dbe7da2eSmrg# Now try BSD make style include.
2774dbe7da2eSmrgif test "$am__include" = "#"; then
2775dbe7da2eSmrg   echo '.include "confinc"' > confmf
2776dbe7da2eSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2777dbe7da2eSmrg   *the\ am__doit\ target*)
2778dbe7da2eSmrg     am__include=.include
2779dbe7da2eSmrg     am__quote="\""
2780dbe7da2eSmrg     _am_result=BSD
2781dbe7da2eSmrg     ;;
2782dbe7da2eSmrg   esac
2783dbe7da2eSmrgfi
2784dbe7da2eSmrg
2785dbe7da2eSmrg
2786dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2787dbe7da2eSmrg$as_echo "$_am_result" >&6; }
2788dbe7da2eSmrgrm -f confinc confmf
2789dbe7da2eSmrg
2790dbe7da2eSmrg# Check whether --enable-dependency-tracking was given.
2791dbe7da2eSmrgif test "${enable_dependency_tracking+set}" = set; then :
2792dbe7da2eSmrg  enableval=$enable_dependency_tracking;
2793dbe7da2eSmrgfi
2794dbe7da2eSmrg
2795dbe7da2eSmrgif test "x$enable_dependency_tracking" != xno; then
2796dbe7da2eSmrg  am_depcomp="$ac_aux_dir/depcomp"
2797dbe7da2eSmrg  AMDEPBACKSLASH='\'
2798dbe7da2eSmrgfi
2799dbe7da2eSmrg if test "x$enable_dependency_tracking" != xno; then
2800dbe7da2eSmrg  AMDEP_TRUE=
2801dbe7da2eSmrg  AMDEP_FALSE='#'
2802dbe7da2eSmrgelse
2803dbe7da2eSmrg  AMDEP_TRUE='#'
2804dbe7da2eSmrg  AMDEP_FALSE=
2805dbe7da2eSmrgfi
2806a8fdb4bcSmrg
2807a8fdb4bcSmrg
2808a8fdb4bcSmrgac_ext=c
2809a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS'
2810a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2813a8fdb4bcSmrgif test -n "$ac_tool_prefix"; then
2814a8fdb4bcSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2815a8fdb4bcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2816dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2818dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
2819dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2820a8fdb4bcSmrgelse
2821a8fdb4bcSmrg  if test -n "$CC"; then
2822a8fdb4bcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2823a8fdb4bcSmrgelse
2824a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825a8fdb4bcSmrgfor as_dir in $PATH
2826a8fdb4bcSmrgdo
2827a8fdb4bcSmrg  IFS=$as_save_IFS
2828a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2829dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2830a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831a8fdb4bcSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2832dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833a8fdb4bcSmrg    break 2
2834a8fdb4bcSmrg  fi
2835a8fdb4bcSmrgdone
2836dbe7da2eSmrg  done
2837a8fdb4bcSmrgIFS=$as_save_IFS
2838a8fdb4bcSmrg
2839a8fdb4bcSmrgfi
2840a8fdb4bcSmrgfi
2841a8fdb4bcSmrgCC=$ac_cv_prog_CC
2842a8fdb4bcSmrgif test -n "$CC"; then
2843dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844dbe7da2eSmrg$as_echo "$CC" >&6; }
2845a8fdb4bcSmrgelse
2846dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847dbe7da2eSmrg$as_echo "no" >&6; }
2848a8fdb4bcSmrgfi
2849a8fdb4bcSmrg
2850a8fdb4bcSmrg
2851a8fdb4bcSmrgfi
2852a8fdb4bcSmrgif test -z "$ac_cv_prog_CC"; then
2853a8fdb4bcSmrg  ac_ct_CC=$CC
2854a8fdb4bcSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2855a8fdb4bcSmrgset dummy gcc; ac_word=$2
2856dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2858dbe7da2eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2859dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2860a8fdb4bcSmrgelse
2861a8fdb4bcSmrg  if test -n "$ac_ct_CC"; then
2862a8fdb4bcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863a8fdb4bcSmrgelse
2864a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865a8fdb4bcSmrgfor as_dir in $PATH
2866a8fdb4bcSmrgdo
2867a8fdb4bcSmrg  IFS=$as_save_IFS
2868a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2869dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2870a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871a8fdb4bcSmrg    ac_cv_prog_ac_ct_CC="gcc"
2872dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873a8fdb4bcSmrg    break 2
2874a8fdb4bcSmrg  fi
2875a8fdb4bcSmrgdone
2876dbe7da2eSmrg  done
2877a8fdb4bcSmrgIFS=$as_save_IFS
2878a8fdb4bcSmrg
2879a8fdb4bcSmrgfi
2880a8fdb4bcSmrgfi
2881a8fdb4bcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2882a8fdb4bcSmrgif test -n "$ac_ct_CC"; then
2883dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; }
2885a8fdb4bcSmrgelse
2886dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887dbe7da2eSmrg$as_echo "no" >&6; }
2888a8fdb4bcSmrgfi
2889a8fdb4bcSmrg
2890a8fdb4bcSmrg  if test "x$ac_ct_CC" = x; then
2891a8fdb4bcSmrg    CC=""
2892a8fdb4bcSmrg  else
2893a8fdb4bcSmrg    case $cross_compiling:$ac_tool_warned in
2894a8fdb4bcSmrgyes:)
2895dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897a8fdb4bcSmrgac_tool_warned=yes ;;
2898a8fdb4bcSmrgesac
2899a8fdb4bcSmrg    CC=$ac_ct_CC
2900a8fdb4bcSmrg  fi
2901a8fdb4bcSmrgelse
2902a8fdb4bcSmrg  CC="$ac_cv_prog_CC"
2903a8fdb4bcSmrgfi
2904a8fdb4bcSmrg
2905a8fdb4bcSmrgif test -z "$CC"; then
2906a8fdb4bcSmrg          if test -n "$ac_tool_prefix"; then
2907a8fdb4bcSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2908a8fdb4bcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2909dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2911dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
2912dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2913a8fdb4bcSmrgelse
2914a8fdb4bcSmrg  if test -n "$CC"; then
2915a8fdb4bcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2916a8fdb4bcSmrgelse
2917a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918a8fdb4bcSmrgfor as_dir in $PATH
2919a8fdb4bcSmrgdo
2920a8fdb4bcSmrg  IFS=$as_save_IFS
2921a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2922dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2923a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924a8fdb4bcSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2925dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926a8fdb4bcSmrg    break 2
2927a8fdb4bcSmrg  fi
2928a8fdb4bcSmrgdone
2929dbe7da2eSmrg  done
2930a8fdb4bcSmrgIFS=$as_save_IFS
2931a8fdb4bcSmrg
2932a8fdb4bcSmrgfi
2933a8fdb4bcSmrgfi
2934a8fdb4bcSmrgCC=$ac_cv_prog_CC
2935a8fdb4bcSmrgif test -n "$CC"; then
2936dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937dbe7da2eSmrg$as_echo "$CC" >&6; }
2938a8fdb4bcSmrgelse
2939dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940dbe7da2eSmrg$as_echo "no" >&6; }
2941a8fdb4bcSmrgfi
2942a8fdb4bcSmrg
2943a8fdb4bcSmrg
2944a8fdb4bcSmrg  fi
2945a8fdb4bcSmrgfi
2946a8fdb4bcSmrgif test -z "$CC"; then
2947a8fdb4bcSmrg  # Extract the first word of "cc", so it can be a program name with args.
2948a8fdb4bcSmrgset dummy cc; ac_word=$2
2949dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
2951dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
2952dbe7da2eSmrg  $as_echo_n "(cached) " >&6
2953a8fdb4bcSmrgelse
2954a8fdb4bcSmrg  if test -n "$CC"; then
2955a8fdb4bcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2956a8fdb4bcSmrgelse
2957a8fdb4bcSmrg  ac_prog_rejected=no
2958a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959a8fdb4bcSmrgfor as_dir in $PATH
2960a8fdb4bcSmrgdo
2961a8fdb4bcSmrg  IFS=$as_save_IFS
2962a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
2963dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2964a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965a8fdb4bcSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2966a8fdb4bcSmrg       ac_prog_rejected=yes
2967a8fdb4bcSmrg       continue
2968a8fdb4bcSmrg     fi
2969a8fdb4bcSmrg    ac_cv_prog_CC="cc"
2970dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971a8fdb4bcSmrg    break 2
2972a8fdb4bcSmrg  fi
2973a8fdb4bcSmrgdone
2974dbe7da2eSmrg  done
2975a8fdb4bcSmrgIFS=$as_save_IFS
2976a8fdb4bcSmrg
2977a8fdb4bcSmrgif test $ac_prog_rejected = yes; then
2978a8fdb4bcSmrg  # We found a bogon in the path, so make sure we never use it.
2979a8fdb4bcSmrg  set dummy $ac_cv_prog_CC
2980a8fdb4bcSmrg  shift
2981a8fdb4bcSmrg  if test $# != 0; then
2982a8fdb4bcSmrg    # We chose a different compiler from the bogus one.
2983a8fdb4bcSmrg    # However, it has the same basename, so the bogon will be chosen
2984a8fdb4bcSmrg    # first if we set CC to just the basename; use the full file name.
2985a8fdb4bcSmrg    shift
2986a8fdb4bcSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2987a8fdb4bcSmrg  fi
2988a8fdb4bcSmrgfi
2989a8fdb4bcSmrgfi
2990a8fdb4bcSmrgfi
2991a8fdb4bcSmrgCC=$ac_cv_prog_CC
2992a8fdb4bcSmrgif test -n "$CC"; then
2993dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994dbe7da2eSmrg$as_echo "$CC" >&6; }
2995a8fdb4bcSmrgelse
2996dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997dbe7da2eSmrg$as_echo "no" >&6; }
2998a8fdb4bcSmrgfi
2999a8fdb4bcSmrg
3000a8fdb4bcSmrg
3001a8fdb4bcSmrgfi
3002a8fdb4bcSmrgif test -z "$CC"; then
3003a8fdb4bcSmrg  if test -n "$ac_tool_prefix"; then
3004a8fdb4bcSmrg  for ac_prog in cl.exe
3005a8fdb4bcSmrg  do
3006a8fdb4bcSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3007a8fdb4bcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3008dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
3010dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
3011dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3012a8fdb4bcSmrgelse
3013a8fdb4bcSmrg  if test -n "$CC"; then
3014a8fdb4bcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3015a8fdb4bcSmrgelse
3016a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017a8fdb4bcSmrgfor as_dir in $PATH
3018a8fdb4bcSmrgdo
3019a8fdb4bcSmrg  IFS=$as_save_IFS
3020a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
3021dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3022a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023a8fdb4bcSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3024dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025a8fdb4bcSmrg    break 2
3026a8fdb4bcSmrg  fi
3027a8fdb4bcSmrgdone
3028dbe7da2eSmrg  done
3029a8fdb4bcSmrgIFS=$as_save_IFS
3030a8fdb4bcSmrg
3031a8fdb4bcSmrgfi
3032a8fdb4bcSmrgfi
3033a8fdb4bcSmrgCC=$ac_cv_prog_CC
3034a8fdb4bcSmrgif test -n "$CC"; then
3035dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036dbe7da2eSmrg$as_echo "$CC" >&6; }
3037a8fdb4bcSmrgelse
3038dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039dbe7da2eSmrg$as_echo "no" >&6; }
3040a8fdb4bcSmrgfi
3041a8fdb4bcSmrg
3042a8fdb4bcSmrg
3043a8fdb4bcSmrg    test -n "$CC" && break
3044a8fdb4bcSmrg  done
3045a8fdb4bcSmrgfi
3046a8fdb4bcSmrgif test -z "$CC"; then
3047a8fdb4bcSmrg  ac_ct_CC=$CC
3048a8fdb4bcSmrg  for ac_prog in cl.exe
3049a8fdb4bcSmrgdo
3050a8fdb4bcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3051a8fdb4bcSmrgset dummy $ac_prog; ac_word=$2
3052dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
3054dbe7da2eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3055dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3056a8fdb4bcSmrgelse
3057a8fdb4bcSmrg  if test -n "$ac_ct_CC"; then
3058a8fdb4bcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059a8fdb4bcSmrgelse
3060a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061a8fdb4bcSmrgfor as_dir in $PATH
3062a8fdb4bcSmrgdo
3063a8fdb4bcSmrg  IFS=$as_save_IFS
3064a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
3065dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3066a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067a8fdb4bcSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3068dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069a8fdb4bcSmrg    break 2
3070a8fdb4bcSmrg  fi
3071a8fdb4bcSmrgdone
3072dbe7da2eSmrg  done
3073a8fdb4bcSmrgIFS=$as_save_IFS
3074a8fdb4bcSmrg
3075a8fdb4bcSmrgfi
3076a8fdb4bcSmrgfi
3077a8fdb4bcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3078a8fdb4bcSmrgif test -n "$ac_ct_CC"; then
3079dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3080dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; }
3081a8fdb4bcSmrgelse
3082dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083dbe7da2eSmrg$as_echo "no" >&6; }
3084a8fdb4bcSmrgfi
3085a8fdb4bcSmrg
3086a8fdb4bcSmrg
3087a8fdb4bcSmrg  test -n "$ac_ct_CC" && break
3088a8fdb4bcSmrgdone
3089a8fdb4bcSmrg
3090a8fdb4bcSmrg  if test "x$ac_ct_CC" = x; then
3091a8fdb4bcSmrg    CC=""
3092a8fdb4bcSmrg  else
3093a8fdb4bcSmrg    case $cross_compiling:$ac_tool_warned in
3094a8fdb4bcSmrgyes:)
3095dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097a8fdb4bcSmrgac_tool_warned=yes ;;
3098a8fdb4bcSmrgesac
3099a8fdb4bcSmrg    CC=$ac_ct_CC
3100a8fdb4bcSmrg  fi
3101a8fdb4bcSmrgfi
3102a8fdb4bcSmrg
3103a8fdb4bcSmrgfi
3104a8fdb4bcSmrg
3105a8fdb4bcSmrg
3106dbe7da2eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108dbe7da2eSmrgas_fn_error "no acceptable C compiler found in \$PATH
3109dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
3110a8fdb4bcSmrg
3111a8fdb4bcSmrg# Provide some information about the compiler.
3112dbe7da2eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3113dbe7da2eSmrgset X $ac_compile
3114dbe7da2eSmrgac_compiler=$2
3115dbe7da2eSmrgfor ac_option in --version -v -V -qversion; do
3116dbe7da2eSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3117a8fdb4bcSmrgcase "(($ac_try" in
3118a8fdb4bcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119a8fdb4bcSmrg  *) ac_try_echo=$ac_try;;
3120a8fdb4bcSmrgesac
3121dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3123dbe7da2eSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3124a8fdb4bcSmrg  ac_status=$?
3125dbe7da2eSmrg  if test -s conftest.err; then
3126dbe7da2eSmrg    sed '10a\
3127dbe7da2eSmrg... rest of stderr output deleted ...
3128dbe7da2eSmrg         10q' conftest.err >conftest.er1
3129dbe7da2eSmrg    cat conftest.er1 >&5
3130dbe7da2eSmrg  fi
3131dbe7da2eSmrg  rm -f conftest.er1 conftest.err
3132dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133dbe7da2eSmrg  test $ac_status = 0; }
3134dbe7da2eSmrgdone
3135a8fdb4bcSmrg
3136dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137a8fdb4bcSmrg/* end confdefs.h.  */
3138a8fdb4bcSmrg
3139a8fdb4bcSmrgint
3140a8fdb4bcSmrgmain ()
3141a8fdb4bcSmrg{
3142a8fdb4bcSmrg
3143a8fdb4bcSmrg  ;
3144a8fdb4bcSmrg  return 0;
3145a8fdb4bcSmrg}
3146a8fdb4bcSmrg_ACEOF
3147a8fdb4bcSmrgac_clean_files_save=$ac_clean_files
3148dbe7da2eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3149a8fdb4bcSmrg# Try to create an executable without -o first, disregard a.out.
3150a8fdb4bcSmrg# It will help us diagnose broken compilers, and finding out an intuition
3151a8fdb4bcSmrg# of exeext.
3152dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3153dbe7da2eSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
3154dbe7da2eSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3155dbe7da2eSmrg
3156dbe7da2eSmrg# The possible output files:
3157dbe7da2eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3158dbe7da2eSmrg
3159a8fdb4bcSmrgac_rmfiles=
3160a8fdb4bcSmrgfor ac_file in $ac_files
3161a8fdb4bcSmrgdo
3162a8fdb4bcSmrg  case $ac_file in
3163dbe7da2eSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3164a8fdb4bcSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3165a8fdb4bcSmrg  esac
3166a8fdb4bcSmrgdone
3167a8fdb4bcSmrgrm -f $ac_rmfiles
3168a8fdb4bcSmrg
3169dbe7da2eSmrgif { { ac_try="$ac_link_default"
3170a8fdb4bcSmrgcase "(($ac_try" in
3171a8fdb4bcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172a8fdb4bcSmrg  *) ac_try_echo=$ac_try;;
3173a8fdb4bcSmrgesac
3174dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3176a8fdb4bcSmrg  (eval "$ac_link_default") 2>&5
3177a8fdb4bcSmrg  ac_status=$?
3178dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179dbe7da2eSmrg  test $ac_status = 0; }; then :
3180a8fdb4bcSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3181a8fdb4bcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3182a8fdb4bcSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3183a8fdb4bcSmrg# so that the user can short-circuit this test for compilers unknown to
3184a8fdb4bcSmrg# Autoconf.
3185a8fdb4bcSmrgfor ac_file in $ac_files ''
3186a8fdb4bcSmrgdo
3187a8fdb4bcSmrg  test -f "$ac_file" || continue
3188a8fdb4bcSmrg  case $ac_file in
3189dbe7da2eSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3190a8fdb4bcSmrg	;;
3191a8fdb4bcSmrg    [ab].out )
3192a8fdb4bcSmrg	# We found the default executable, but exeext='' is most
3193a8fdb4bcSmrg	# certainly right.
3194a8fdb4bcSmrg	break;;
3195a8fdb4bcSmrg    *.* )
3196dbe7da2eSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3197a8fdb4bcSmrg	then :; else
3198a8fdb4bcSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199a8fdb4bcSmrg	fi
3200a8fdb4bcSmrg	# We set ac_cv_exeext here because the later test for it is not
3201a8fdb4bcSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3202a8fdb4bcSmrg	# argument, so we may need to know it at that point already.
3203a8fdb4bcSmrg	# Even if this section looks crufty: it has the advantage of
3204a8fdb4bcSmrg	# actually working.
3205a8fdb4bcSmrg	break;;
3206a8fdb4bcSmrg    * )
3207a8fdb4bcSmrg	break;;
3208a8fdb4bcSmrg  esac
3209a8fdb4bcSmrgdone
3210a8fdb4bcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3211a8fdb4bcSmrg
3212a8fdb4bcSmrgelse
3213a8fdb4bcSmrg  ac_file=''
3214a8fdb4bcSmrgfi
3215dbe7da2eSmrgif test -z "$ac_file"; then :
3216dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217dbe7da2eSmrg$as_echo "no" >&6; }
3218dbe7da2eSmrg$as_echo "$as_me: failed program was:" >&5
3219a8fdb4bcSmrgsed 's/^/| /' conftest.$ac_ext >&5
3220a8fdb4bcSmrg
3221dbe7da2eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223dbe7da2eSmrg{ as_fn_set_status 77
3224dbe7da2eSmrgas_fn_error "C compiler cannot create executables
3225dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }; }
3226dbe7da2eSmrgelse
3227dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228dbe7da2eSmrg$as_echo "yes" >&6; }
3229a8fdb4bcSmrgfi
3230dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231dbe7da2eSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3232dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233dbe7da2eSmrg$as_echo "$ac_file" >&6; }
3234a8fdb4bcSmrgac_exeext=$ac_cv_exeext
3235a8fdb4bcSmrg
3236dbe7da2eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3237dbe7da2eSmrgac_clean_files=$ac_clean_files_save
3238dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3239dbe7da2eSmrg$as_echo_n "checking for suffix of executables... " >&6; }
3240dbe7da2eSmrgif { { ac_try="$ac_link"
3241dbe7da2eSmrgcase "(($ac_try" in
3242a8fdb4bcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243a8fdb4bcSmrg  *) ac_try_echo=$ac_try;;
3244a8fdb4bcSmrgesac
3245dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3247a8fdb4bcSmrg  (eval "$ac_link") 2>&5
3248a8fdb4bcSmrg  ac_status=$?
3249dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250dbe7da2eSmrg  test $ac_status = 0; }; then :
3251a8fdb4bcSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3252a8fdb4bcSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3253a8fdb4bcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3254a8fdb4bcSmrg# `rm'.
3255a8fdb4bcSmrgfor ac_file in conftest.exe conftest conftest.*; do
3256a8fdb4bcSmrg  test -f "$ac_file" || continue
3257a8fdb4bcSmrg  case $ac_file in
3258dbe7da2eSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259a8fdb4bcSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260a8fdb4bcSmrg	  break;;
3261a8fdb4bcSmrg    * ) break;;
3262a8fdb4bcSmrg  esac
3263a8fdb4bcSmrgdone
3264a8fdb4bcSmrgelse
3265dbe7da2eSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267dbe7da2eSmrgas_fn_error "cannot compute suffix of executables: cannot compile and link
3268dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
3269a8fdb4bcSmrgfi
3270dbe7da2eSmrgrm -f conftest conftest$ac_cv_exeext
3271dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3272dbe7da2eSmrg$as_echo "$ac_cv_exeext" >&6; }
3273a8fdb4bcSmrg
3274a8fdb4bcSmrgrm -f conftest.$ac_ext
3275a8fdb4bcSmrgEXEEXT=$ac_cv_exeext
3276a8fdb4bcSmrgac_exeext=$EXEEXT
3277dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278dbe7da2eSmrg/* end confdefs.h.  */
3279dbe7da2eSmrg#include <stdio.h>
3280dbe7da2eSmrgint
3281dbe7da2eSmrgmain ()
3282dbe7da2eSmrg{
3283dbe7da2eSmrgFILE *f = fopen ("conftest.out", "w");
3284dbe7da2eSmrg return ferror (f) || fclose (f) != 0;
3285dbe7da2eSmrg
3286dbe7da2eSmrg  ;
3287dbe7da2eSmrg  return 0;
3288dbe7da2eSmrg}
3289a8fdb4bcSmrg_ACEOF
3290dbe7da2eSmrgac_clean_files="$ac_clean_files conftest.out"
3291dbe7da2eSmrg# Check that the compiler produces executables we can run.  If not, either
3292dbe7da2eSmrg# the compiler is broken, or we cross compile.
3293dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3294dbe7da2eSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3295dbe7da2eSmrgif test "$cross_compiling" != yes; then
3296dbe7da2eSmrg  { { ac_try="$ac_link"
3297dbe7da2eSmrgcase "(($ac_try" in
3298dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
3300dbe7da2eSmrgesac
3301dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3303dbe7da2eSmrg  (eval "$ac_link") 2>&5
3304dbe7da2eSmrg  ac_status=$?
3305dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306dbe7da2eSmrg  test $ac_status = 0; }
3307dbe7da2eSmrg  if { ac_try='./conftest$ac_cv_exeext'
3308dbe7da2eSmrg  { { case "(($ac_try" in
3309dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
3311dbe7da2eSmrgesac
3312dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3314dbe7da2eSmrg  (eval "$ac_try") 2>&5
3315dbe7da2eSmrg  ac_status=$?
3316dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317dbe7da2eSmrg  test $ac_status = 0; }; }; then
3318dbe7da2eSmrg    cross_compiling=no
3319dbe7da2eSmrg  else
3320dbe7da2eSmrg    if test "$cross_compiling" = maybe; then
3321dbe7da2eSmrg	cross_compiling=yes
3322dbe7da2eSmrg    else
3323dbe7da2eSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325dbe7da2eSmrgas_fn_error "cannot run C compiled programs.
3326dbe7da2eSmrgIf you meant to cross compile, use \`--host'.
3327dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
3328dbe7da2eSmrg    fi
3329dbe7da2eSmrg  fi
3330dbe7da2eSmrgfi
3331dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3332dbe7da2eSmrg$as_echo "$cross_compiling" >&6; }
3333dbe7da2eSmrg
3334dbe7da2eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3335dbe7da2eSmrgac_clean_files=$ac_clean_files_save
3336dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3337dbe7da2eSmrg$as_echo_n "checking for suffix of object files... " >&6; }
3338dbe7da2eSmrgif test "${ac_cv_objext+set}" = set; then :
3339dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3340dbe7da2eSmrgelse
3341dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342a8fdb4bcSmrg/* end confdefs.h.  */
3343a8fdb4bcSmrg
3344a8fdb4bcSmrgint
3345a8fdb4bcSmrgmain ()
3346a8fdb4bcSmrg{
3347a8fdb4bcSmrg
3348a8fdb4bcSmrg  ;
3349a8fdb4bcSmrg  return 0;
3350a8fdb4bcSmrg}
3351a8fdb4bcSmrg_ACEOF
3352a8fdb4bcSmrgrm -f conftest.o conftest.obj
3353dbe7da2eSmrgif { { ac_try="$ac_compile"
3354a8fdb4bcSmrgcase "(($ac_try" in
3355a8fdb4bcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356a8fdb4bcSmrg  *) ac_try_echo=$ac_try;;
3357a8fdb4bcSmrgesac
3358dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
3360a8fdb4bcSmrg  (eval "$ac_compile") 2>&5
3361a8fdb4bcSmrg  ac_status=$?
3362dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363dbe7da2eSmrg  test $ac_status = 0; }; then :
3364a8fdb4bcSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3365a8fdb4bcSmrg  test -f "$ac_file" || continue;
3366a8fdb4bcSmrg  case $ac_file in
3367dbe7da2eSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3368a8fdb4bcSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3369a8fdb4bcSmrg       break;;
3370a8fdb4bcSmrg  esac
3371a8fdb4bcSmrgdone
3372a8fdb4bcSmrgelse
3373dbe7da2eSmrg  $as_echo "$as_me: failed program was:" >&5
3374a8fdb4bcSmrgsed 's/^/| /' conftest.$ac_ext >&5
3375a8fdb4bcSmrg
3376dbe7da2eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378dbe7da2eSmrgas_fn_error "cannot compute suffix of object files: cannot compile
3379dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
3380a8fdb4bcSmrgfi
3381a8fdb4bcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3382a8fdb4bcSmrgfi
3383dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3384dbe7da2eSmrg$as_echo "$ac_cv_objext" >&6; }
3385a8fdb4bcSmrgOBJEXT=$ac_cv_objext
3386a8fdb4bcSmrgac_objext=$OBJEXT
3387dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3388dbe7da2eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3389dbe7da2eSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
3390dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3391a8fdb4bcSmrgelse
3392dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393a8fdb4bcSmrg/* end confdefs.h.  */
3394a8fdb4bcSmrg
3395a8fdb4bcSmrgint
3396a8fdb4bcSmrgmain ()
3397a8fdb4bcSmrg{
3398a8fdb4bcSmrg#ifndef __GNUC__
3399a8fdb4bcSmrg       choke me
3400a8fdb4bcSmrg#endif
3401a8fdb4bcSmrg
3402a8fdb4bcSmrg  ;
3403a8fdb4bcSmrg  return 0;
3404a8fdb4bcSmrg}
3405a8fdb4bcSmrg_ACEOF
3406dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
3407a8fdb4bcSmrg  ac_compiler_gnu=yes
3408a8fdb4bcSmrgelse
3409dbe7da2eSmrg  ac_compiler_gnu=no
3410a8fdb4bcSmrgfi
3411a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412a8fdb4bcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3413a8fdb4bcSmrg
3414a8fdb4bcSmrgfi
3415dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3416dbe7da2eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3417dbe7da2eSmrgif test $ac_compiler_gnu = yes; then
3418dbe7da2eSmrg  GCC=yes
3419dbe7da2eSmrgelse
3420dbe7da2eSmrg  GCC=
3421dbe7da2eSmrgfi
3422a8fdb4bcSmrgac_test_CFLAGS=${CFLAGS+set}
3423a8fdb4bcSmrgac_save_CFLAGS=$CFLAGS
3424dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3425dbe7da2eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3426dbe7da2eSmrgif test "${ac_cv_prog_cc_g+set}" = set; then :
3427dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3428a8fdb4bcSmrgelse
3429a8fdb4bcSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3430a8fdb4bcSmrg   ac_c_werror_flag=yes
3431a8fdb4bcSmrg   ac_cv_prog_cc_g=no
3432a8fdb4bcSmrg   CFLAGS="-g"
3433dbe7da2eSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434a8fdb4bcSmrg/* end confdefs.h.  */
3435a8fdb4bcSmrg
3436a8fdb4bcSmrgint
3437a8fdb4bcSmrgmain ()
3438a8fdb4bcSmrg{
3439a8fdb4bcSmrg
3440a8fdb4bcSmrg  ;
3441a8fdb4bcSmrg  return 0;
3442a8fdb4bcSmrg}
3443a8fdb4bcSmrg_ACEOF
3444dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
3445a8fdb4bcSmrg  ac_cv_prog_cc_g=yes
3446a8fdb4bcSmrgelse
3447dbe7da2eSmrg  CFLAGS=""
3448dbe7da2eSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449a8fdb4bcSmrg/* end confdefs.h.  */
3450a8fdb4bcSmrg
3451a8fdb4bcSmrgint
3452a8fdb4bcSmrgmain ()
3453a8fdb4bcSmrg{
3454a8fdb4bcSmrg
3455a8fdb4bcSmrg  ;
3456a8fdb4bcSmrg  return 0;
3457a8fdb4bcSmrg}
3458a8fdb4bcSmrg_ACEOF
3459dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
3460a8fdb4bcSmrg
3461dbe7da2eSmrgelse
3462dbe7da2eSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3463a8fdb4bcSmrg	 CFLAGS="-g"
3464dbe7da2eSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465a8fdb4bcSmrg/* end confdefs.h.  */
3466a8fdb4bcSmrg
3467a8fdb4bcSmrgint
3468a8fdb4bcSmrgmain ()
3469a8fdb4bcSmrg{
3470a8fdb4bcSmrg
3471a8fdb4bcSmrg  ;
3472a8fdb4bcSmrg  return 0;
3473a8fdb4bcSmrg}
3474a8fdb4bcSmrg_ACEOF
3475dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
3476a8fdb4bcSmrg  ac_cv_prog_cc_g=yes
3477a8fdb4bcSmrgfi
3478a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479a8fdb4bcSmrgfi
3480a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481a8fdb4bcSmrgfi
3482a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483a8fdb4bcSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3484a8fdb4bcSmrgfi
3485dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3486dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3487a8fdb4bcSmrgif test "$ac_test_CFLAGS" = set; then
3488a8fdb4bcSmrg  CFLAGS=$ac_save_CFLAGS
3489a8fdb4bcSmrgelif test $ac_cv_prog_cc_g = yes; then
3490a8fdb4bcSmrg  if test "$GCC" = yes; then
3491a8fdb4bcSmrg    CFLAGS="-g -O2"
3492a8fdb4bcSmrg  else
3493a8fdb4bcSmrg    CFLAGS="-g"
3494a8fdb4bcSmrg  fi
3495a8fdb4bcSmrgelse
3496a8fdb4bcSmrg  if test "$GCC" = yes; then
3497a8fdb4bcSmrg    CFLAGS="-O2"
3498a8fdb4bcSmrg  else
3499a8fdb4bcSmrg    CFLAGS=
3500a8fdb4bcSmrg  fi
3501a8fdb4bcSmrgfi
3502dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3503dbe7da2eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3504dbe7da2eSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
3505dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3506a8fdb4bcSmrgelse
3507a8fdb4bcSmrg  ac_cv_prog_cc_c89=no
3508a8fdb4bcSmrgac_save_CC=$CC
3509dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510a8fdb4bcSmrg/* end confdefs.h.  */
3511a8fdb4bcSmrg#include <stdarg.h>
3512a8fdb4bcSmrg#include <stdio.h>
3513a8fdb4bcSmrg#include <sys/types.h>
3514a8fdb4bcSmrg#include <sys/stat.h>
3515a8fdb4bcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3516a8fdb4bcSmrgstruct buf { int x; };
3517a8fdb4bcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3518a8fdb4bcSmrgstatic char *e (p, i)
3519a8fdb4bcSmrg     char **p;
3520a8fdb4bcSmrg     int i;
3521a8fdb4bcSmrg{
3522a8fdb4bcSmrg  return p[i];
3523a8fdb4bcSmrg}
3524a8fdb4bcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3525a8fdb4bcSmrg{
3526a8fdb4bcSmrg  char *s;
3527a8fdb4bcSmrg  va_list v;
3528a8fdb4bcSmrg  va_start (v,p);
3529a8fdb4bcSmrg  s = g (p, va_arg (v,int));
3530a8fdb4bcSmrg  va_end (v);
3531a8fdb4bcSmrg  return s;
3532a8fdb4bcSmrg}
3533a8fdb4bcSmrg
3534a8fdb4bcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3535a8fdb4bcSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3536a8fdb4bcSmrg   These don't provoke an error unfortunately, instead are silently treated
3537a8fdb4bcSmrg   as 'x'.  The following induces an error, until -std is added to get
3538a8fdb4bcSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3539a8fdb4bcSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3540a8fdb4bcSmrg   that's true only with -std.  */
3541a8fdb4bcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542a8fdb4bcSmrg
3543a8fdb4bcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3544a8fdb4bcSmrg   inside strings and character constants.  */
3545a8fdb4bcSmrg#define FOO(x) 'x'
3546a8fdb4bcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547a8fdb4bcSmrg
3548a8fdb4bcSmrgint test (int i, double x);
3549a8fdb4bcSmrgstruct s1 {int (*f) (int a);};
3550a8fdb4bcSmrgstruct s2 {int (*f) (double a);};
3551a8fdb4bcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552a8fdb4bcSmrgint argc;
3553a8fdb4bcSmrgchar **argv;
3554a8fdb4bcSmrgint
3555a8fdb4bcSmrgmain ()
3556a8fdb4bcSmrg{
3557a8fdb4bcSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3558a8fdb4bcSmrg  ;
3559a8fdb4bcSmrg  return 0;
3560a8fdb4bcSmrg}
3561a8fdb4bcSmrg_ACEOF
3562a8fdb4bcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3563a8fdb4bcSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564a8fdb4bcSmrgdo
3565a8fdb4bcSmrg  CC="$ac_save_CC $ac_arg"
3566dbe7da2eSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3567a8fdb4bcSmrg  ac_cv_prog_cc_c89=$ac_arg
3568a8fdb4bcSmrgfi
3569a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext
3570a8fdb4bcSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3571a8fdb4bcSmrgdone
3572a8fdb4bcSmrgrm -f conftest.$ac_ext
3573a8fdb4bcSmrgCC=$ac_save_CC
3574a8fdb4bcSmrg
3575a8fdb4bcSmrgfi
3576a8fdb4bcSmrg# AC_CACHE_VAL
3577a8fdb4bcSmrgcase "x$ac_cv_prog_cc_c89" in
3578a8fdb4bcSmrg  x)
3579dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3580dbe7da2eSmrg$as_echo "none needed" >&6; } ;;
3581a8fdb4bcSmrg  xno)
3582dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3583dbe7da2eSmrg$as_echo "unsupported" >&6; } ;;
3584a8fdb4bcSmrg  *)
3585a8fdb4bcSmrg    CC="$CC $ac_cv_prog_cc_c89"
3586dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3587dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3588a8fdb4bcSmrgesac
3589dbe7da2eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3590a8fdb4bcSmrg
3591dbe7da2eSmrgfi
3592a8fdb4bcSmrg
3593a8fdb4bcSmrgac_ext=c
3594a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS'
3595a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3598a8fdb4bcSmrg
3599a8fdb4bcSmrgdepcc="$CC"   am_compiler_list=
3600a8fdb4bcSmrg
3601dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3602dbe7da2eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3603dbe7da2eSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3604dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3605a8fdb4bcSmrgelse
3606a8fdb4bcSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3607a8fdb4bcSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3608a8fdb4bcSmrg  # making bogus files that we don't know about and never remove.  For
3609a8fdb4bcSmrg  # instance it was reported that on HP-UX the gcc test will end up
3610a8fdb4bcSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3611a8fdb4bcSmrg  # in D'.
3612a8fdb4bcSmrg  mkdir conftest.dir
3613a8fdb4bcSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3614a8fdb4bcSmrg  # using a relative directory.
3615a8fdb4bcSmrg  cp "$am_depcomp" conftest.dir
3616a8fdb4bcSmrg  cd conftest.dir
3617a8fdb4bcSmrg  # We will build objects and dependencies in a subdirectory because
3618a8fdb4bcSmrg  # it helps to detect inapplicable dependency modes.  For instance
3619a8fdb4bcSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3620a8fdb4bcSmrg  # side effect of compilation, but ICC will put the dependencies in
3621a8fdb4bcSmrg  # the current directory while Tru64 will put them in the object
3622a8fdb4bcSmrg  # directory.
3623a8fdb4bcSmrg  mkdir sub
3624a8fdb4bcSmrg
3625a8fdb4bcSmrg  am_cv_CC_dependencies_compiler_type=none
3626a8fdb4bcSmrg  if test "$am_compiler_list" = ""; then
3627a8fdb4bcSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3628a8fdb4bcSmrg  fi
3629dbe7da2eSmrg  am__universal=false
3630dbe7da2eSmrg  case " $depcc " in #(
3631dbe7da2eSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3632dbe7da2eSmrg     esac
3633dbe7da2eSmrg
3634a8fdb4bcSmrg  for depmode in $am_compiler_list; do
3635a8fdb4bcSmrg    # Setup a source with many dependencies, because some compilers
3636a8fdb4bcSmrg    # like to wrap large dependency lists on column 80 (with \), and
3637a8fdb4bcSmrg    # we should not choose a depcomp mode which is confused by this.
3638a8fdb4bcSmrg    #
3639a8fdb4bcSmrg    # We need to recreate these files for each test, as the compiler may
3640a8fdb4bcSmrg    # overwrite some of them when testing with obscure command lines.
3641a8fdb4bcSmrg    # This happens at least with the AIX C compiler.
3642a8fdb4bcSmrg    : > sub/conftest.c
3643a8fdb4bcSmrg    for i in 1 2 3 4 5 6; do
3644a8fdb4bcSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3645a8fdb4bcSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3646a8fdb4bcSmrg      # Solaris 8's {/usr,}/bin/sh.
3647a8fdb4bcSmrg      touch sub/conftst$i.h
3648a8fdb4bcSmrg    done
3649a8fdb4bcSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650a8fdb4bcSmrg
3651dbe7da2eSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3652dbe7da2eSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3653dbe7da2eSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3654dbe7da2eSmrg    # versions had trouble with output in subdirs
3655dbe7da2eSmrg    am__obj=sub/conftest.${OBJEXT-o}
3656dbe7da2eSmrg    am__minus_obj="-o $am__obj"
3657a8fdb4bcSmrg    case $depmode in
3658dbe7da2eSmrg    gcc)
3659dbe7da2eSmrg      # This depmode causes a compiler race in universal mode.
3660dbe7da2eSmrg      test "$am__universal" = false || continue
3661dbe7da2eSmrg      ;;
3662a8fdb4bcSmrg    nosideeffect)
3663a8fdb4bcSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3664a8fdb4bcSmrg      # only be used when explicitly requested
3665a8fdb4bcSmrg      if test "x$enable_dependency_tracking" = xyes; then
3666a8fdb4bcSmrg	continue
3667a8fdb4bcSmrg      else
3668a8fdb4bcSmrg	break
3669a8fdb4bcSmrg      fi
3670a8fdb4bcSmrg      ;;
3671dbe7da2eSmrg    msvisualcpp | msvcmsys)
3672dbe7da2eSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3673dbe7da2eSmrg      # not run yet.  These depmodes are late enough in the game, and
3674dbe7da2eSmrg      # so weak that their functioning should not be impacted.
3675dbe7da2eSmrg      am__obj=conftest.${OBJEXT-o}
3676dbe7da2eSmrg      am__minus_obj=
3677dbe7da2eSmrg      ;;
3678a8fdb4bcSmrg    none) break ;;
3679a8fdb4bcSmrg    esac
3680a8fdb4bcSmrg    if depmode=$depmode \
3681dbe7da2eSmrg       source=sub/conftest.c object=$am__obj \
3682a8fdb4bcSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3683dbe7da2eSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3684a8fdb4bcSmrg         >/dev/null 2>conftest.err &&
3685a8fdb4bcSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3686a8fdb4bcSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3687dbe7da2eSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3688a8fdb4bcSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3689a8fdb4bcSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3690a8fdb4bcSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3691a8fdb4bcSmrg      # that says an option was ignored or not supported.
3692a8fdb4bcSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3693a8fdb4bcSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3694a8fdb4bcSmrg      # The diagnosis changed in icc 8.0:
3695a8fdb4bcSmrg      #   icc: Command line remark: option '-MP' not supported
3696a8fdb4bcSmrg      if (grep 'ignoring option' conftest.err ||
3697a8fdb4bcSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3698a8fdb4bcSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3699a8fdb4bcSmrg        break
3700a8fdb4bcSmrg      fi
3701a8fdb4bcSmrg    fi
3702a8fdb4bcSmrg  done
3703a8fdb4bcSmrg
3704a8fdb4bcSmrg  cd ..
3705a8fdb4bcSmrg  rm -rf conftest.dir
3706a8fdb4bcSmrgelse
3707a8fdb4bcSmrg  am_cv_CC_dependencies_compiler_type=none
3708a8fdb4bcSmrgfi
3709a8fdb4bcSmrg
3710a8fdb4bcSmrgfi
3711dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3712dbe7da2eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3713a8fdb4bcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3714a8fdb4bcSmrg
3715a8fdb4bcSmrg if
3716a8fdb4bcSmrg  test "x$enable_dependency_tracking" != xno \
3717a8fdb4bcSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3718a8fdb4bcSmrg  am__fastdepCC_TRUE=
3719a8fdb4bcSmrg  am__fastdepCC_FALSE='#'
3720a8fdb4bcSmrgelse
3721a8fdb4bcSmrg  am__fastdepCC_TRUE='#'
3722a8fdb4bcSmrg  am__fastdepCC_FALSE=
3723a8fdb4bcSmrgfi
3724a8fdb4bcSmrg
3725a8fdb4bcSmrg
3726dbe7da2eSmrg
3727dbe7da2eSmrgac_ext=c
3728dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS'
3729dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3732dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3733dbe7da2eSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3734dbe7da2eSmrg# On Suns, sometimes $CPP names a directory.
3735dbe7da2eSmrgif test -n "$CPP" && test -d "$CPP"; then
3736dbe7da2eSmrg  CPP=
3737dbe7da2eSmrgfi
3738dbe7da2eSmrgif test -z "$CPP"; then
3739dbe7da2eSmrg  if test "${ac_cv_prog_CPP+set}" = set; then :
3740dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3741a8fdb4bcSmrgelse
3742dbe7da2eSmrg      # Double quotes because CPP needs to be expanded
3743dbe7da2eSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3744dbe7da2eSmrg    do
3745dbe7da2eSmrg      ac_preproc_ok=false
3746dbe7da2eSmrgfor ac_c_preproc_warn_flag in '' yes
3747a8fdb4bcSmrgdo
3748dbe7da2eSmrg  # Use a header file that comes with gcc, so configuring glibc
3749dbe7da2eSmrg  # with a fresh cross-compiler works.
3750dbe7da2eSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751dbe7da2eSmrg  # <limits.h> exists even on freestanding compilers.
3752dbe7da2eSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3753dbe7da2eSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3754dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755dbe7da2eSmrg/* end confdefs.h.  */
3756dbe7da2eSmrg#ifdef __STDC__
3757dbe7da2eSmrg# include <limits.h>
3758dbe7da2eSmrg#else
3759dbe7da2eSmrg# include <assert.h>
3760dbe7da2eSmrg#endif
3761dbe7da2eSmrg		     Syntax error
3762dbe7da2eSmrg_ACEOF
3763dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3764a8fdb4bcSmrg
3765dbe7da2eSmrgelse
3766dbe7da2eSmrg  # Broken: fails on valid input.
3767dbe7da2eSmrgcontinue
3768a8fdb4bcSmrgfi
3769dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3770a8fdb4bcSmrg
3771dbe7da2eSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3772dbe7da2eSmrg  # can be detected and how.
3773dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774dbe7da2eSmrg/* end confdefs.h.  */
3775dbe7da2eSmrg#include <ac_nonexistent.h>
3776dbe7da2eSmrg_ACEOF
3777dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3778dbe7da2eSmrg  # Broken: success on invalid input.
3779dbe7da2eSmrgcontinue
3780dbe7da2eSmrgelse
3781dbe7da2eSmrg  # Passes both tests.
3782dbe7da2eSmrgac_preproc_ok=:
3783dbe7da2eSmrgbreak
3784dbe7da2eSmrgfi
3785dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3786a8fdb4bcSmrg
3787dbe7da2eSmrgdone
3788dbe7da2eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3789dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3790dbe7da2eSmrgif $ac_preproc_ok; then :
3791dbe7da2eSmrg  break
3792dbe7da2eSmrgfi
3793a8fdb4bcSmrg
3794dbe7da2eSmrg    done
3795dbe7da2eSmrg    ac_cv_prog_CPP=$CPP
3796a8fdb4bcSmrg
3797dbe7da2eSmrgfi
3798dbe7da2eSmrg  CPP=$ac_cv_prog_CPP
3799a8fdb4bcSmrgelse
3800dbe7da2eSmrg  ac_cv_prog_CPP=$CPP
3801dbe7da2eSmrgfi
3802dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3803dbe7da2eSmrg$as_echo "$CPP" >&6; }
3804dbe7da2eSmrgac_preproc_ok=false
3805dbe7da2eSmrgfor ac_c_preproc_warn_flag in '' yes
3806dbe7da2eSmrgdo
3807dbe7da2eSmrg  # Use a header file that comes with gcc, so configuring glibc
3808dbe7da2eSmrg  # with a fresh cross-compiler works.
3809dbe7da2eSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810dbe7da2eSmrg  # <limits.h> exists even on freestanding compilers.
3811dbe7da2eSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3812dbe7da2eSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3813dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814dbe7da2eSmrg/* end confdefs.h.  */
3815dbe7da2eSmrg#ifdef __STDC__
3816dbe7da2eSmrg# include <limits.h>
3817dbe7da2eSmrg#else
3818dbe7da2eSmrg# include <assert.h>
3819dbe7da2eSmrg#endif
3820dbe7da2eSmrg		     Syntax error
3821dbe7da2eSmrg_ACEOF
3822dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3823a8fdb4bcSmrg
3824dbe7da2eSmrgelse
3825dbe7da2eSmrg  # Broken: fails on valid input.
3826dbe7da2eSmrgcontinue
3827a8fdb4bcSmrgfi
3828dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3829dbe7da2eSmrg
3830dbe7da2eSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3831dbe7da2eSmrg  # can be detected and how.
3832dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833dbe7da2eSmrg/* end confdefs.h.  */
3834dbe7da2eSmrg#include <ac_nonexistent.h>
3835dbe7da2eSmrg_ACEOF
3836dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3837dbe7da2eSmrg  # Broken: success on invalid input.
3838dbe7da2eSmrgcontinue
3839dbe7da2eSmrgelse
3840dbe7da2eSmrg  # Passes both tests.
3841dbe7da2eSmrgac_preproc_ok=:
3842dbe7da2eSmrgbreak
3843dbe7da2eSmrgfi
3844dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3845a8fdb4bcSmrg
3846dbe7da2eSmrgdone
3847dbe7da2eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3848dbe7da2eSmrgrm -f conftest.err conftest.$ac_ext
3849dbe7da2eSmrgif $ac_preproc_ok; then :
3850a8fdb4bcSmrg
3851a8fdb4bcSmrgelse
3852dbe7da2eSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854dbe7da2eSmrgas_fn_error "C preprocessor \"$CPP\" fails sanity check
3855dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
3856dbe7da2eSmrgfi
3857dbe7da2eSmrg
3858dbe7da2eSmrgac_ext=c
3859dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS'
3860dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3863dbe7da2eSmrg
3864dbe7da2eSmrg
3865dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3866dbe7da2eSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3867dbe7da2eSmrgif test "${ac_cv_path_GREP+set}" = set; then :
3868dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3869a8fdb4bcSmrgelse
3870dbe7da2eSmrg  if test -z "$GREP"; then
3871dbe7da2eSmrg  ac_path_GREP_found=false
3872dbe7da2eSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3873dbe7da2eSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3875dbe7da2eSmrgdo
3876dbe7da2eSmrg  IFS=$as_save_IFS
3877dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
3878dbe7da2eSmrg    for ac_prog in grep ggrep; do
3879dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3880dbe7da2eSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3881dbe7da2eSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3882dbe7da2eSmrg# Check for GNU ac_path_GREP and select it if it is found.
3883dbe7da2eSmrg  # Check for GNU $ac_path_GREP
3884dbe7da2eSmrgcase `"$ac_path_GREP" --version 2>&1` in
3885dbe7da2eSmrg*GNU*)
3886dbe7da2eSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3887dbe7da2eSmrg*)
3888dbe7da2eSmrg  ac_count=0
3889dbe7da2eSmrg  $as_echo_n 0123456789 >"conftest.in"
3890dbe7da2eSmrg  while :
3891dbe7da2eSmrg  do
3892dbe7da2eSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3893dbe7da2eSmrg    mv "conftest.tmp" "conftest.in"
3894dbe7da2eSmrg    cp "conftest.in" "conftest.nl"
3895dbe7da2eSmrg    $as_echo 'GREP' >> "conftest.nl"
3896dbe7da2eSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3897dbe7da2eSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3898dbe7da2eSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3899dbe7da2eSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3900dbe7da2eSmrg      # Best one so far, save it but keep looking for a better one
3901dbe7da2eSmrg      ac_cv_path_GREP="$ac_path_GREP"
3902dbe7da2eSmrg      ac_path_GREP_max=$ac_count
3903dbe7da2eSmrg    fi
3904dbe7da2eSmrg    # 10*(2^10) chars as input seems more than enough
3905dbe7da2eSmrg    test $ac_count -gt 10 && break
3906dbe7da2eSmrg  done
3907dbe7da2eSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3908dbe7da2eSmrgesac
3909dbe7da2eSmrg
3910dbe7da2eSmrg      $ac_path_GREP_found && break 3
3911dbe7da2eSmrg    done
3912dbe7da2eSmrg  done
3913dbe7da2eSmrg  done
3914dbe7da2eSmrgIFS=$as_save_IFS
3915dbe7da2eSmrg  if test -z "$ac_cv_path_GREP"; then
3916dbe7da2eSmrg    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3917dbe7da2eSmrg  fi
3918dbe7da2eSmrgelse
3919dbe7da2eSmrg  ac_cv_path_GREP=$GREP
3920a8fdb4bcSmrgfi
3921a8fdb4bcSmrg
3922a8fdb4bcSmrgfi
3923dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3924dbe7da2eSmrg$as_echo "$ac_cv_path_GREP" >&6; }
3925dbe7da2eSmrg GREP="$ac_cv_path_GREP"
3926dbe7da2eSmrg
3927dbe7da2eSmrg
3928dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3929dbe7da2eSmrg$as_echo_n "checking for egrep... " >&6; }
3930dbe7da2eSmrgif test "${ac_cv_path_EGREP+set}" = set; then :
3931dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3932dbe7da2eSmrgelse
3933dbe7da2eSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3934dbe7da2eSmrg   then ac_cv_path_EGREP="$GREP -E"
3935dbe7da2eSmrg   else
3936dbe7da2eSmrg     if test -z "$EGREP"; then
3937dbe7da2eSmrg  ac_path_EGREP_found=false
3938dbe7da2eSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3939dbe7da2eSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941dbe7da2eSmrgdo
3942dbe7da2eSmrg  IFS=$as_save_IFS
3943dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
3944dbe7da2eSmrg    for ac_prog in egrep; do
3945dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3946dbe7da2eSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3947dbe7da2eSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3948dbe7da2eSmrg# Check for GNU ac_path_EGREP and select it if it is found.
3949dbe7da2eSmrg  # Check for GNU $ac_path_EGREP
3950dbe7da2eSmrgcase `"$ac_path_EGREP" --version 2>&1` in
3951dbe7da2eSmrg*GNU*)
3952dbe7da2eSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3953dbe7da2eSmrg*)
3954dbe7da2eSmrg  ac_count=0
3955dbe7da2eSmrg  $as_echo_n 0123456789 >"conftest.in"
3956dbe7da2eSmrg  while :
3957dbe7da2eSmrg  do
3958dbe7da2eSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3959dbe7da2eSmrg    mv "conftest.tmp" "conftest.in"
3960dbe7da2eSmrg    cp "conftest.in" "conftest.nl"
3961dbe7da2eSmrg    $as_echo 'EGREP' >> "conftest.nl"
3962dbe7da2eSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963dbe7da2eSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964dbe7da2eSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3965dbe7da2eSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3966dbe7da2eSmrg      # Best one so far, save it but keep looking for a better one
3967dbe7da2eSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
3968dbe7da2eSmrg      ac_path_EGREP_max=$ac_count
3969dbe7da2eSmrg    fi
3970dbe7da2eSmrg    # 10*(2^10) chars as input seems more than enough
3971dbe7da2eSmrg    test $ac_count -gt 10 && break
3972dbe7da2eSmrg  done
3973dbe7da2eSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974a8fdb4bcSmrgesac
3975a8fdb4bcSmrg
3976dbe7da2eSmrg      $ac_path_EGREP_found && break 3
3977dbe7da2eSmrg    done
3978dbe7da2eSmrg  done
3979dbe7da2eSmrg  done
3980dbe7da2eSmrgIFS=$as_save_IFS
3981dbe7da2eSmrg  if test -z "$ac_cv_path_EGREP"; then
3982dbe7da2eSmrg    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3983dbe7da2eSmrg  fi
3984dbe7da2eSmrgelse
3985dbe7da2eSmrg  ac_cv_path_EGREP=$EGREP
3986dbe7da2eSmrgfi
3987dbe7da2eSmrg
3988dbe7da2eSmrg   fi
3989dbe7da2eSmrgfi
3990dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3991dbe7da2eSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
3992dbe7da2eSmrg EGREP="$ac_cv_path_EGREP"
3993a8fdb4bcSmrg
3994a8fdb4bcSmrg
3995dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3996dbe7da2eSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
3997dbe7da2eSmrgif test "${ac_cv_header_stdc+set}" = set; then :
3998dbe7da2eSmrg  $as_echo_n "(cached) " >&6
3999dbe7da2eSmrgelse
4000dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001dbe7da2eSmrg/* end confdefs.h.  */
4002dbe7da2eSmrg#include <stdlib.h>
4003dbe7da2eSmrg#include <stdarg.h>
4004dbe7da2eSmrg#include <string.h>
4005dbe7da2eSmrg#include <float.h>
4006a8fdb4bcSmrg
4007dbe7da2eSmrgint
4008dbe7da2eSmrgmain ()
4009dbe7da2eSmrg{
4010a8fdb4bcSmrg
4011dbe7da2eSmrg  ;
4012dbe7da2eSmrg  return 0;
4013dbe7da2eSmrg}
4014dbe7da2eSmrg_ACEOF
4015dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
4016dbe7da2eSmrg  ac_cv_header_stdc=yes
4017a8fdb4bcSmrgelse
4018dbe7da2eSmrg  ac_cv_header_stdc=no
4019dbe7da2eSmrgfi
4020dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021dbe7da2eSmrg
4022dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then
4023dbe7da2eSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4024dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025dbe7da2eSmrg/* end confdefs.h.  */
4026dbe7da2eSmrg#include <string.h>
4027dbe7da2eSmrg
4028a8fdb4bcSmrg_ACEOF
4029dbe7da2eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030dbe7da2eSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4031dbe7da2eSmrg
4032dbe7da2eSmrgelse
4033dbe7da2eSmrg  ac_cv_header_stdc=no
4034dbe7da2eSmrgfi
4035dbe7da2eSmrgrm -f conftest*
4036dbe7da2eSmrg
4037dbe7da2eSmrgfi
4038dbe7da2eSmrg
4039dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then
4040dbe7da2eSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4041dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042a8fdb4bcSmrg/* end confdefs.h.  */
4043dbe7da2eSmrg#include <stdlib.h>
4044a8fdb4bcSmrg
4045dbe7da2eSmrg_ACEOF
4046dbe7da2eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047dbe7da2eSmrg  $EGREP "free" >/dev/null 2>&1; then :
4048dbe7da2eSmrg
4049dbe7da2eSmrgelse
4050dbe7da2eSmrg  ac_cv_header_stdc=no
4051dbe7da2eSmrgfi
4052dbe7da2eSmrgrm -f conftest*
4053dbe7da2eSmrg
4054dbe7da2eSmrgfi
4055dbe7da2eSmrg
4056dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then
4057dbe7da2eSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4058dbe7da2eSmrg  if test "$cross_compiling" = yes; then :
4059dbe7da2eSmrg  :
4060dbe7da2eSmrgelse
4061dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062dbe7da2eSmrg/* end confdefs.h.  */
4063dbe7da2eSmrg#include <ctype.h>
4064dbe7da2eSmrg#include <stdlib.h>
4065dbe7da2eSmrg#if ((' ' & 0x0FF) == 0x020)
4066dbe7da2eSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4067dbe7da2eSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4068dbe7da2eSmrg#else
4069dbe7da2eSmrg# define ISLOWER(c) \
4070dbe7da2eSmrg		   (('a' <= (c) && (c) <= 'i') \
4071dbe7da2eSmrg		     || ('j' <= (c) && (c) <= 'r') \
4072dbe7da2eSmrg		     || ('s' <= (c) && (c) <= 'z'))
4073dbe7da2eSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4074a8fdb4bcSmrg#endif
4075dbe7da2eSmrg
4076dbe7da2eSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4077a8fdb4bcSmrgint
4078a8fdb4bcSmrgmain ()
4079a8fdb4bcSmrg{
4080dbe7da2eSmrg  int i;
4081dbe7da2eSmrg  for (i = 0; i < 256; i++)
4082dbe7da2eSmrg    if (XOR (islower (i), ISLOWER (i))
4083dbe7da2eSmrg	|| toupper (i) != TOUPPER (i))
4084dbe7da2eSmrg      return 2;
4085a8fdb4bcSmrg  return 0;
4086a8fdb4bcSmrg}
4087a8fdb4bcSmrg_ACEOF
4088dbe7da2eSmrgif ac_fn_c_try_run "$LINENO"; then :
4089dbe7da2eSmrg
4090a8fdb4bcSmrgelse
4091dbe7da2eSmrg  ac_cv_header_stdc=no
4092dbe7da2eSmrgfi
4093dbe7da2eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4094dbe7da2eSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4095dbe7da2eSmrgfi
4096a8fdb4bcSmrg
4097a8fdb4bcSmrgfi
4098dbe7da2eSmrgfi
4099dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4100dbe7da2eSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4101dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then
4102dbe7da2eSmrg
4103dbe7da2eSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4104a8fdb4bcSmrg
4105a8fdb4bcSmrgfi
4106dbe7da2eSmrg
4107dbe7da2eSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4108dbe7da2eSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4109dbe7da2eSmrg		  inttypes.h stdint.h unistd.h
4110dbe7da2eSmrgdo :
4111dbe7da2eSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112dbe7da2eSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4113dbe7da2eSmrg"
4114dbe7da2eSmrgeval as_val=\$$as_ac_Header
4115dbe7da2eSmrg   if test "x$as_val" = x""yes; then :
4116a8fdb4bcSmrg  cat >>confdefs.h <<_ACEOF
4117dbe7da2eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118a8fdb4bcSmrg_ACEOF
4119a8fdb4bcSmrg
4120a8fdb4bcSmrgfi
4121a8fdb4bcSmrg
4122dbe7da2eSmrgdone
4123a8fdb4bcSmrg
4124a8fdb4bcSmrg
4125dbe7da2eSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4126dbe7da2eSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4127dbe7da2eSmrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
4128dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4129a8fdb4bcSmrgelse
4130dbe7da2eSmrg  ac_cv_prog_cc_c99=no
4131dbe7da2eSmrgac_save_CC=$CC
4132dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133dbe7da2eSmrg/* end confdefs.h.  */
4134dbe7da2eSmrg#include <stdarg.h>
4135dbe7da2eSmrg#include <stdbool.h>
4136dbe7da2eSmrg#include <stdlib.h>
4137dbe7da2eSmrg#include <wchar.h>
4138dbe7da2eSmrg#include <stdio.h>
4139dbe7da2eSmrg
4140dbe7da2eSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4141dbe7da2eSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4142dbe7da2eSmrg#define showlist(...) puts (#__VA_ARGS__)
4143dbe7da2eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4144dbe7da2eSmrgstatic void
4145dbe7da2eSmrgtest_varargs_macros (void)
4146dbe7da2eSmrg{
4147dbe7da2eSmrg  int x = 1234;
4148dbe7da2eSmrg  int y = 5678;
4149dbe7da2eSmrg  debug ("Flag");
4150dbe7da2eSmrg  debug ("X = %d\n", x);
4151dbe7da2eSmrg  showlist (The first, second, and third items.);
4152dbe7da2eSmrg  report (x>y, "x is %d but y is %d", x, y);
4153dbe7da2eSmrg}
4154dbe7da2eSmrg
4155dbe7da2eSmrg// Check long long types.
4156dbe7da2eSmrg#define BIG64 18446744073709551615ull
4157dbe7da2eSmrg#define BIG32 4294967295ul
4158dbe7da2eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4159dbe7da2eSmrg#if !BIG_OK
4160dbe7da2eSmrg  your preprocessor is broken;
4161dbe7da2eSmrg#endif
4162dbe7da2eSmrg#if BIG_OK
4163dbe7da2eSmrg#else
4164dbe7da2eSmrg  your preprocessor is broken;
4165dbe7da2eSmrg#endif
4166dbe7da2eSmrgstatic long long int bignum = -9223372036854775807LL;
4167dbe7da2eSmrgstatic unsigned long long int ubignum = BIG64;
4168dbe7da2eSmrg
4169dbe7da2eSmrgstruct incomplete_array
4170dbe7da2eSmrg{
4171dbe7da2eSmrg  int datasize;
4172dbe7da2eSmrg  double data[];
4173dbe7da2eSmrg};
4174dbe7da2eSmrg
4175dbe7da2eSmrgstruct named_init {
4176dbe7da2eSmrg  int number;
4177dbe7da2eSmrg  const wchar_t *name;
4178dbe7da2eSmrg  double average;
4179dbe7da2eSmrg};
4180dbe7da2eSmrg
4181dbe7da2eSmrgtypedef const char *ccp;
4182dbe7da2eSmrg
4183dbe7da2eSmrgstatic inline int
4184dbe7da2eSmrgtest_restrict (ccp restrict text)
4185dbe7da2eSmrg{
4186dbe7da2eSmrg  // See if C++-style comments work.
4187dbe7da2eSmrg  // Iterate through items via the restricted pointer.
4188dbe7da2eSmrg  // Also check for declarations in for loops.
4189dbe7da2eSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4190dbe7da2eSmrg    continue;
4191dbe7da2eSmrg  return 0;
4192dbe7da2eSmrg}
4193dbe7da2eSmrg
4194dbe7da2eSmrg// Check varargs and va_copy.
4195dbe7da2eSmrgstatic void
4196dbe7da2eSmrgtest_varargs (const char *format, ...)
4197dbe7da2eSmrg{
4198dbe7da2eSmrg  va_list args;
4199dbe7da2eSmrg  va_start (args, format);
4200dbe7da2eSmrg  va_list args_copy;
4201dbe7da2eSmrg  va_copy (args_copy, args);
4202dbe7da2eSmrg
4203dbe7da2eSmrg  const char *str;
4204dbe7da2eSmrg  int number;
4205dbe7da2eSmrg  float fnumber;
4206dbe7da2eSmrg
4207dbe7da2eSmrg  while (*format)
4208dbe7da2eSmrg    {
4209dbe7da2eSmrg      switch (*format++)
4210dbe7da2eSmrg	{
4211dbe7da2eSmrg	case 's': // string
4212dbe7da2eSmrg	  str = va_arg (args_copy, const char *);
4213dbe7da2eSmrg	  break;
4214dbe7da2eSmrg	case 'd': // int
4215dbe7da2eSmrg	  number = va_arg (args_copy, int);
4216dbe7da2eSmrg	  break;
4217dbe7da2eSmrg	case 'f': // float
4218dbe7da2eSmrg	  fnumber = va_arg (args_copy, double);
4219dbe7da2eSmrg	  break;
4220dbe7da2eSmrg	default:
4221dbe7da2eSmrg	  break;
4222dbe7da2eSmrg	}
4223dbe7da2eSmrg    }
4224dbe7da2eSmrg  va_end (args_copy);
4225dbe7da2eSmrg  va_end (args);
4226dbe7da2eSmrg}
4227dbe7da2eSmrg
4228dbe7da2eSmrgint
4229dbe7da2eSmrgmain ()
4230dbe7da2eSmrg{
4231dbe7da2eSmrg
4232dbe7da2eSmrg  // Check bool.
4233dbe7da2eSmrg  _Bool success = false;
4234dbe7da2eSmrg
4235dbe7da2eSmrg  // Check restrict.
4236dbe7da2eSmrg  if (test_restrict ("String literal") == 0)
4237dbe7da2eSmrg    success = true;
4238dbe7da2eSmrg  char *restrict newvar = "Another string";
4239dbe7da2eSmrg
4240dbe7da2eSmrg  // Check varargs.
4241dbe7da2eSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4242dbe7da2eSmrg  test_varargs_macros ();
4243dbe7da2eSmrg
4244dbe7da2eSmrg  // Check flexible array members.
4245dbe7da2eSmrg  struct incomplete_array *ia =
4246dbe7da2eSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4247dbe7da2eSmrg  ia->datasize = 10;
4248dbe7da2eSmrg  for (int i = 0; i < ia->datasize; ++i)
4249dbe7da2eSmrg    ia->data[i] = i * 1.234;
4250dbe7da2eSmrg
4251dbe7da2eSmrg  // Check named initializers.
4252dbe7da2eSmrg  struct named_init ni = {
4253dbe7da2eSmrg    .number = 34,
4254dbe7da2eSmrg    .name = L"Test wide string",
4255dbe7da2eSmrg    .average = 543.34343,
4256dbe7da2eSmrg  };
4257dbe7da2eSmrg
4258dbe7da2eSmrg  ni.number = 58;
4259dbe7da2eSmrg
4260dbe7da2eSmrg  int dynamic_array[ni.number];
4261dbe7da2eSmrg  dynamic_array[ni.number - 1] = 543;
4262dbe7da2eSmrg
4263dbe7da2eSmrg  // work around unused variable warnings
4264dbe7da2eSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4265dbe7da2eSmrg	  || dynamic_array[ni.number - 1] != 543);
4266dbe7da2eSmrg
4267dbe7da2eSmrg  ;
4268dbe7da2eSmrg  return 0;
4269dbe7da2eSmrg}
4270dbe7da2eSmrg_ACEOF
4271dbe7da2eSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4272dbe7da2eSmrgdo
4273dbe7da2eSmrg  CC="$ac_save_CC $ac_arg"
4274dbe7da2eSmrg  if ac_fn_c_try_compile "$LINENO"; then :
4275dbe7da2eSmrg  ac_cv_prog_cc_c99=$ac_arg
4276dbe7da2eSmrgfi
4277dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext
4278dbe7da2eSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4279dbe7da2eSmrgdone
4280dbe7da2eSmrgrm -f conftest.$ac_ext
4281dbe7da2eSmrgCC=$ac_save_CC
4282dbe7da2eSmrg
4283a8fdb4bcSmrgfi
4284dbe7da2eSmrg# AC_CACHE_VAL
4285dbe7da2eSmrgcase "x$ac_cv_prog_cc_c99" in
4286dbe7da2eSmrg  x)
4287dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288dbe7da2eSmrg$as_echo "none needed" >&6; } ;;
4289dbe7da2eSmrg  xno)
4290dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4291dbe7da2eSmrg$as_echo "unsupported" >&6; } ;;
4292dbe7da2eSmrg  *)
4293dbe7da2eSmrg    CC="$CC $ac_cv_prog_cc_c99"
4294dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4295dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4296dbe7da2eSmrgesac
4297dbe7da2eSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
4298a8fdb4bcSmrg
4299dbe7da2eSmrgfi
4300a8fdb4bcSmrg
4301a8fdb4bcSmrg
4302a8fdb4bcSmrg
4303a8fdb4bcSmrg
4304a8fdb4bcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4305a8fdb4bcSmrg	if test -n "$ac_tool_prefix"; then
4306a8fdb4bcSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4307a8fdb4bcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4308dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4310dbe7da2eSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4311dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4312a8fdb4bcSmrgelse
4313a8fdb4bcSmrg  case $PKG_CONFIG in
4314a8fdb4bcSmrg  [\\/]* | ?:[\\/]*)
4315a8fdb4bcSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4316a8fdb4bcSmrg  ;;
4317a8fdb4bcSmrg  *)
4318a8fdb4bcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319a8fdb4bcSmrgfor as_dir in $PATH
4320a8fdb4bcSmrgdo
4321a8fdb4bcSmrg  IFS=$as_save_IFS
4322a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
4323dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4324a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325a8fdb4bcSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4326dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327a8fdb4bcSmrg    break 2
4328a8fdb4bcSmrg  fi
4329a8fdb4bcSmrgdone
4330dbe7da2eSmrg  done
4331a8fdb4bcSmrgIFS=$as_save_IFS
4332a8fdb4bcSmrg
4333a8fdb4bcSmrg  ;;
4334a8fdb4bcSmrgesac
4335a8fdb4bcSmrgfi
4336a8fdb4bcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4337a8fdb4bcSmrgif test -n "$PKG_CONFIG"; then
4338dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4339dbe7da2eSmrg$as_echo "$PKG_CONFIG" >&6; }
4340a8fdb4bcSmrgelse
4341dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342dbe7da2eSmrg$as_echo "no" >&6; }
4343a8fdb4bcSmrgfi
4344a8fdb4bcSmrg
4345a8fdb4bcSmrg
4346a8fdb4bcSmrgfi
4347a8fdb4bcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4348a8fdb4bcSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4349a8fdb4bcSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4350a8fdb4bcSmrgset dummy pkg-config; ac_word=$2
4351dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4353dbe7da2eSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4354dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4355a8fdb4bcSmrgelse
4356a8fdb4bcSmrg  case $ac_pt_PKG_CONFIG in
4357a8fdb4bcSmrg  [\\/]* | ?:[\\/]*)
4358a8fdb4bcSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4359a8fdb4bcSmrg  ;;
4360a8fdb4bcSmrg  *)
4361a8fdb4bcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362a8fdb4bcSmrgfor as_dir in $PATH
4363a8fdb4bcSmrgdo
4364a8fdb4bcSmrg  IFS=$as_save_IFS
4365a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
4366dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4367a8fdb4bcSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368a8fdb4bcSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4369dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370a8fdb4bcSmrg    break 2
4371a8fdb4bcSmrg  fi
4372a8fdb4bcSmrgdone
4373dbe7da2eSmrg  done
4374dbe7da2eSmrgIFS=$as_save_IFS
4375dbe7da2eSmrg
4376dbe7da2eSmrg  ;;
4377dbe7da2eSmrgesac
4378dbe7da2eSmrgfi
4379dbe7da2eSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4380dbe7da2eSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4381dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4382dbe7da2eSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4383dbe7da2eSmrgelse
4384dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385dbe7da2eSmrg$as_echo "no" >&6; }
4386dbe7da2eSmrgfi
4387dbe7da2eSmrg
4388dbe7da2eSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4389dbe7da2eSmrg    PKG_CONFIG=""
4390dbe7da2eSmrg  else
4391dbe7da2eSmrg    case $cross_compiling:$ac_tool_warned in
4392dbe7da2eSmrgyes:)
4393dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395dbe7da2eSmrgac_tool_warned=yes ;;
4396dbe7da2eSmrgesac
4397dbe7da2eSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4398dbe7da2eSmrg  fi
4399dbe7da2eSmrgelse
4400dbe7da2eSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4401dbe7da2eSmrgfi
4402dbe7da2eSmrg
4403dbe7da2eSmrgfi
4404dbe7da2eSmrgif test -n "$PKG_CONFIG"; then
4405dbe7da2eSmrg	_pkg_min_version=0.9.0
4406dbe7da2eSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4407dbe7da2eSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4408dbe7da2eSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4409dbe7da2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410dbe7da2eSmrg$as_echo "yes" >&6; }
4411dbe7da2eSmrg	else
4412dbe7da2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413dbe7da2eSmrg$as_echo "no" >&6; }
4414dbe7da2eSmrg		PKG_CONFIG=""
4415dbe7da2eSmrg	fi
4416dbe7da2eSmrg
4417dbe7da2eSmrgfi
4418dbe7da2eSmrg# Make sure we can run config.sub.
4419dbe7da2eSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4420dbe7da2eSmrg  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4421dbe7da2eSmrg
4422dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4423dbe7da2eSmrg$as_echo_n "checking build system type... " >&6; }
4424dbe7da2eSmrgif test "${ac_cv_build+set}" = set; then :
4425dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4426dbe7da2eSmrgelse
4427dbe7da2eSmrg  ac_build_alias=$build_alias
4428dbe7da2eSmrgtest "x$ac_build_alias" = x &&
4429dbe7da2eSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4430dbe7da2eSmrgtest "x$ac_build_alias" = x &&
4431dbe7da2eSmrg  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4432dbe7da2eSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4433dbe7da2eSmrg  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4434dbe7da2eSmrg
4435dbe7da2eSmrgfi
4436dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4437dbe7da2eSmrg$as_echo "$ac_cv_build" >&6; }
4438dbe7da2eSmrgcase $ac_cv_build in
4439dbe7da2eSmrg*-*-*) ;;
4440dbe7da2eSmrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4441dbe7da2eSmrgesac
4442dbe7da2eSmrgbuild=$ac_cv_build
4443dbe7da2eSmrgac_save_IFS=$IFS; IFS='-'
4444dbe7da2eSmrgset x $ac_cv_build
4445dbe7da2eSmrgshift
4446dbe7da2eSmrgbuild_cpu=$1
4447dbe7da2eSmrgbuild_vendor=$2
4448dbe7da2eSmrgshift; shift
4449dbe7da2eSmrg# Remember, the first character of IFS is used to create $*,
4450dbe7da2eSmrg# except with old shells:
4451dbe7da2eSmrgbuild_os=$*
4452dbe7da2eSmrgIFS=$ac_save_IFS
4453dbe7da2eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4454dbe7da2eSmrg
4455dbe7da2eSmrg
4456dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4457dbe7da2eSmrg$as_echo_n "checking host system type... " >&6; }
4458dbe7da2eSmrgif test "${ac_cv_host+set}" = set; then :
4459dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4460dbe7da2eSmrgelse
4461dbe7da2eSmrg  if test "x$host_alias" = x; then
4462dbe7da2eSmrg  ac_cv_host=$ac_cv_build
4463dbe7da2eSmrgelse
4464dbe7da2eSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4465dbe7da2eSmrg    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4466dbe7da2eSmrgfi
4467dbe7da2eSmrg
4468dbe7da2eSmrgfi
4469dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4470dbe7da2eSmrg$as_echo "$ac_cv_host" >&6; }
4471dbe7da2eSmrgcase $ac_cv_host in
4472dbe7da2eSmrg*-*-*) ;;
4473dbe7da2eSmrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4474dbe7da2eSmrgesac
4475dbe7da2eSmrghost=$ac_cv_host
4476dbe7da2eSmrgac_save_IFS=$IFS; IFS='-'
4477dbe7da2eSmrgset x $ac_cv_host
4478dbe7da2eSmrgshift
4479dbe7da2eSmrghost_cpu=$1
4480dbe7da2eSmrghost_vendor=$2
4481dbe7da2eSmrgshift; shift
4482dbe7da2eSmrg# Remember, the first character of IFS is used to create $*,
4483dbe7da2eSmrg# except with old shells:
4484dbe7da2eSmrghost_os=$*
4485dbe7da2eSmrgIFS=$ac_save_IFS
4486dbe7da2eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4487dbe7da2eSmrg
4488dbe7da2eSmrg
4489dbe7da2eSmrg
4490dbe7da2eSmrg
4491dbe7da2eSmrg
4492dbe7da2eSmrgif  test "x$GCC" = xyes ; then
4493dbe7da2eSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4494dbe7da2eSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4495dbe7da2eSmrg-Wbad-function-cast"
4496dbe7da2eSmrg    case `$CC -dumpversion` in
4497dbe7da2eSmrg    3.4.* | 4.*)
4498dbe7da2eSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4499dbe7da2eSmrg	;;
4500dbe7da2eSmrg    esac
4501dbe7da2eSmrgelse
4502dbe7da2eSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4503dbe7da2eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4504dbe7da2eSmrg  SUNCC="yes"
4505dbe7da2eSmrgelse
4506dbe7da2eSmrg  SUNCC="no"
4507dbe7da2eSmrgfi
4508dbe7da2eSmrg
4509dbe7da2eSmrg    if test "x$SUNCC" = "xyes"; then
4510dbe7da2eSmrg	CWARNFLAGS="-v"
4511dbe7da2eSmrg    fi
4512dbe7da2eSmrgfi
4513dbe7da2eSmrg
4514dbe7da2eSmrg# Check whether --enable-silent-rules was given.
4515dbe7da2eSmrgif test "${enable_silent_rules+set}" = set; then :
4516dbe7da2eSmrg  enableval=$enable_silent_rules;
4517dbe7da2eSmrgfi
4518dbe7da2eSmrg
4519dbe7da2eSmrgcase $enable_silent_rules in
4520dbe7da2eSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4521dbe7da2eSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4522dbe7da2eSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4523dbe7da2eSmrgesac
4524dbe7da2eSmrgAM_BACKSLASH='\'
4525dbe7da2eSmrg
4526dbe7da2eSmrg
4527dbe7da2eSmrg
4528dbe7da2eSmrg
4529dbe7da2eSmrg
4530dbe7da2eSmrg
4531dbe7da2eSmrg
4532dbe7da2eSmrg# Check whether --enable-strict-compilation was given.
4533dbe7da2eSmrgif test "${enable_strict_compilation+set}" = set; then :
4534dbe7da2eSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4535dbe7da2eSmrgelse
4536dbe7da2eSmrg  STRICT_COMPILE=no
4537dbe7da2eSmrgfi
4538dbe7da2eSmrg
4539dbe7da2eSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4540dbe7da2eSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4541dbe7da2eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4542dbe7da2eSmrg  SUNCC="yes"
4543dbe7da2eSmrgelse
4544dbe7da2eSmrg  SUNCC="no"
4545dbe7da2eSmrgfi
4546dbe7da2eSmrg
4547dbe7da2eSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4548dbe7da2eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4549dbe7da2eSmrg  INTELCC="yes"
4550dbe7da2eSmrgelse
4551dbe7da2eSmrg  INTELCC="no"
4552dbe7da2eSmrgfi
4553dbe7da2eSmrg
4554dbe7da2eSmrg	if test "x$GCC" = xyes ; then
4555dbe7da2eSmrg		STRICT_CFLAGS="-pedantic -Werror"
4556dbe7da2eSmrg	elif test "x$SUNCC" = "xyes"; then
4557dbe7da2eSmrg		STRICT_CFLAGS="-errwarn"
4558dbe7da2eSmrg    elif test "x$INTELCC" = "xyes"; then
4559dbe7da2eSmrg		STRICT_CFLAGS="-Werror"
4560dbe7da2eSmrg	fi
4561dbe7da2eSmrgfi
4562dbe7da2eSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4563dbe7da2eSmrg
4564dbe7da2eSmrg
4565dbe7da2eSmrg
4566dbe7da2eSmrg
4567dbe7da2eSmrg# Check whether --with-release-version was given.
4568dbe7da2eSmrgif test "${with_release_version+set}" = set; then :
4569dbe7da2eSmrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4570dbe7da2eSmrgelse
4571dbe7da2eSmrg  RELEASE_VERSION=""
4572dbe7da2eSmrgfi
4573dbe7da2eSmrg
4574dbe7da2eSmrg	if test "x$RELEASE_VERSION" != "x"; then
4575dbe7da2eSmrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4576dbe7da2eSmrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4577dbe7da2eSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4578dbe7da2eSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4579dbe7da2eSmrg	fi
4580dbe7da2eSmrg
4581dbe7da2eSmrgcat >>confdefs.h <<_ACEOF
4582dbe7da2eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4583dbe7da2eSmrg_ACEOF
4584dbe7da2eSmrg
4585dbe7da2eSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4586dbe7da2eSmrg	if test "x$PVM" = "x"; then
4587dbe7da2eSmrg		PVM="0"
4588dbe7da2eSmrg	fi
4589dbe7da2eSmrg
4590dbe7da2eSmrgcat >>confdefs.h <<_ACEOF
4591dbe7da2eSmrg#define PACKAGE_VERSION_MINOR $PVM
4592dbe7da2eSmrg_ACEOF
4593dbe7da2eSmrg
4594dbe7da2eSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4595dbe7da2eSmrg	if test "x$PVP" = "x"; then
4596dbe7da2eSmrg		PVP="0"
4597dbe7da2eSmrg	fi
4598dbe7da2eSmrg
4599dbe7da2eSmrgcat >>confdefs.h <<_ACEOF
4600dbe7da2eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4601dbe7da2eSmrg_ACEOF
4602dbe7da2eSmrg
4603dbe7da2eSmrg
4604dbe7da2eSmrg
4605dbe7da2eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4606dbe7da2eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4607dbe7da2eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4608dbe7da2eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4609dbe7da2eSmrg
4610dbe7da2eSmrg
4611dbe7da2eSmrg
4612dbe7da2eSmrg
4613dbe7da2eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4614dbe7da2eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4615dbe7da2eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4616dbe7da2eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4617dbe7da2eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4618dbe7da2eSmrg
4619dbe7da2eSmrg
4620dbe7da2eSmrg
4621dbe7da2eSmrg
4622dbe7da2eSmrg
4623dbe7da2eSmrgif test x$APP_MAN_SUFFIX = x    ; then
4624dbe7da2eSmrg    APP_MAN_SUFFIX=1
4625dbe7da2eSmrgfi
4626dbe7da2eSmrgif test x$APP_MAN_DIR = x    ; then
4627dbe7da2eSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4628dbe7da2eSmrgfi
4629dbe7da2eSmrg
4630dbe7da2eSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4631dbe7da2eSmrg    LIB_MAN_SUFFIX=3
4632dbe7da2eSmrgfi
4633dbe7da2eSmrgif test x$LIB_MAN_DIR = x    ; then
4634dbe7da2eSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4635dbe7da2eSmrgfi
4636dbe7da2eSmrg
4637dbe7da2eSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4638dbe7da2eSmrg    case $host_os in
4639dbe7da2eSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4640dbe7da2eSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4641dbe7da2eSmrg    esac
4642dbe7da2eSmrgfi
4643dbe7da2eSmrgif test x$FILE_MAN_DIR = x    ; then
4644dbe7da2eSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4645dbe7da2eSmrgfi
4646dbe7da2eSmrg
4647dbe7da2eSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4648dbe7da2eSmrg    case $host_os in
4649dbe7da2eSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4650dbe7da2eSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4651dbe7da2eSmrg    esac
4652dbe7da2eSmrgfi
4653dbe7da2eSmrgif test x$MISC_MAN_DIR = x    ; then
4654dbe7da2eSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4655dbe7da2eSmrgfi
4656dbe7da2eSmrg
4657dbe7da2eSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4658dbe7da2eSmrg    case $host_os in
4659dbe7da2eSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4660dbe7da2eSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4661dbe7da2eSmrg    esac
4662dbe7da2eSmrgfi
4663dbe7da2eSmrgif test x$DRIVER_MAN_DIR = x    ; then
4664dbe7da2eSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4665dbe7da2eSmrgfi
4666dbe7da2eSmrg
4667dbe7da2eSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4668dbe7da2eSmrg    case $host_os in
4669dbe7da2eSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4670dbe7da2eSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4671dbe7da2eSmrg    esac
4672dbe7da2eSmrgfi
4673dbe7da2eSmrgif test x$ADMIN_MAN_DIR = x    ; then
4674dbe7da2eSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4675dbe7da2eSmrgfi
4676dbe7da2eSmrg
4677dbe7da2eSmrg
4678dbe7da2eSmrg
4679dbe7da2eSmrg
4680dbe7da2eSmrg
4681dbe7da2eSmrg
4682dbe7da2eSmrg
4683dbe7da2eSmrg
4684dbe7da2eSmrg
4685dbe7da2eSmrg
4686dbe7da2eSmrg
4687dbe7da2eSmrg
4688dbe7da2eSmrg
4689dbe7da2eSmrg
4690dbe7da2eSmrg
4691dbe7da2eSmrg
4692dbe7da2eSmrg
4693dbe7da2eSmrgac_config_headers="$ac_config_headers config.h"
4694dbe7da2eSmrg
4695dbe7da2eSmrg
4696dbe7da2eSmrgac_ext=c
4697dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS'
4698dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4701dbe7da2eSmrgif test -n "$ac_tool_prefix"; then
4702dbe7da2eSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4703dbe7da2eSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
4704dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4706dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
4707dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4708dbe7da2eSmrgelse
4709dbe7da2eSmrg  if test -n "$CC"; then
4710dbe7da2eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4711dbe7da2eSmrgelse
4712dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713dbe7da2eSmrgfor as_dir in $PATH
4714dbe7da2eSmrgdo
4715dbe7da2eSmrg  IFS=$as_save_IFS
4716dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4717dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4718dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719dbe7da2eSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4720dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721dbe7da2eSmrg    break 2
4722dbe7da2eSmrg  fi
4723dbe7da2eSmrgdone
4724dbe7da2eSmrg  done
4725dbe7da2eSmrgIFS=$as_save_IFS
4726dbe7da2eSmrg
4727dbe7da2eSmrgfi
4728dbe7da2eSmrgfi
4729dbe7da2eSmrgCC=$ac_cv_prog_CC
4730dbe7da2eSmrgif test -n "$CC"; then
4731dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4732dbe7da2eSmrg$as_echo "$CC" >&6; }
4733dbe7da2eSmrgelse
4734dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735dbe7da2eSmrg$as_echo "no" >&6; }
4736dbe7da2eSmrgfi
4737dbe7da2eSmrg
4738dbe7da2eSmrg
4739dbe7da2eSmrgfi
4740dbe7da2eSmrgif test -z "$ac_cv_prog_CC"; then
4741dbe7da2eSmrg  ac_ct_CC=$CC
4742dbe7da2eSmrg  # Extract the first word of "gcc", so it can be a program name with args.
4743dbe7da2eSmrgset dummy gcc; ac_word=$2
4744dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4746dbe7da2eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4747dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4748dbe7da2eSmrgelse
4749dbe7da2eSmrg  if test -n "$ac_ct_CC"; then
4750dbe7da2eSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4751dbe7da2eSmrgelse
4752dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753dbe7da2eSmrgfor as_dir in $PATH
4754dbe7da2eSmrgdo
4755dbe7da2eSmrg  IFS=$as_save_IFS
4756dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4757dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4758dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759dbe7da2eSmrg    ac_cv_prog_ac_ct_CC="gcc"
4760dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761dbe7da2eSmrg    break 2
4762dbe7da2eSmrg  fi
4763dbe7da2eSmrgdone
4764dbe7da2eSmrg  done
4765dbe7da2eSmrgIFS=$as_save_IFS
4766dbe7da2eSmrg
4767dbe7da2eSmrgfi
4768dbe7da2eSmrgfi
4769dbe7da2eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4770dbe7da2eSmrgif test -n "$ac_ct_CC"; then
4771dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4772dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; }
4773dbe7da2eSmrgelse
4774dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775dbe7da2eSmrg$as_echo "no" >&6; }
4776dbe7da2eSmrgfi
4777dbe7da2eSmrg
4778dbe7da2eSmrg  if test "x$ac_ct_CC" = x; then
4779dbe7da2eSmrg    CC=""
4780dbe7da2eSmrg  else
4781dbe7da2eSmrg    case $cross_compiling:$ac_tool_warned in
4782dbe7da2eSmrgyes:)
4783dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785dbe7da2eSmrgac_tool_warned=yes ;;
4786dbe7da2eSmrgesac
4787dbe7da2eSmrg    CC=$ac_ct_CC
4788dbe7da2eSmrg  fi
4789dbe7da2eSmrgelse
4790dbe7da2eSmrg  CC="$ac_cv_prog_CC"
4791dbe7da2eSmrgfi
4792dbe7da2eSmrg
4793dbe7da2eSmrgif test -z "$CC"; then
4794dbe7da2eSmrg          if test -n "$ac_tool_prefix"; then
4795dbe7da2eSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4796dbe7da2eSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
4797dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4799dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
4800dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4801dbe7da2eSmrgelse
4802dbe7da2eSmrg  if test -n "$CC"; then
4803dbe7da2eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4804dbe7da2eSmrgelse
4805dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806dbe7da2eSmrgfor as_dir in $PATH
4807dbe7da2eSmrgdo
4808dbe7da2eSmrg  IFS=$as_save_IFS
4809dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4810dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4811dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812dbe7da2eSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
4813dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814dbe7da2eSmrg    break 2
4815dbe7da2eSmrg  fi
4816dbe7da2eSmrgdone
4817dbe7da2eSmrg  done
4818dbe7da2eSmrgIFS=$as_save_IFS
4819dbe7da2eSmrg
4820dbe7da2eSmrgfi
4821dbe7da2eSmrgfi
4822dbe7da2eSmrgCC=$ac_cv_prog_CC
4823dbe7da2eSmrgif test -n "$CC"; then
4824dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825dbe7da2eSmrg$as_echo "$CC" >&6; }
4826dbe7da2eSmrgelse
4827dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828dbe7da2eSmrg$as_echo "no" >&6; }
4829dbe7da2eSmrgfi
4830dbe7da2eSmrg
4831dbe7da2eSmrg
4832dbe7da2eSmrg  fi
4833dbe7da2eSmrgfi
4834dbe7da2eSmrgif test -z "$CC"; then
4835dbe7da2eSmrg  # Extract the first word of "cc", so it can be a program name with args.
4836dbe7da2eSmrgset dummy cc; ac_word=$2
4837dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4839dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
4840dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4841dbe7da2eSmrgelse
4842dbe7da2eSmrg  if test -n "$CC"; then
4843dbe7da2eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4844dbe7da2eSmrgelse
4845dbe7da2eSmrg  ac_prog_rejected=no
4846dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847dbe7da2eSmrgfor as_dir in $PATH
4848dbe7da2eSmrgdo
4849dbe7da2eSmrg  IFS=$as_save_IFS
4850dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4851dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4852dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853dbe7da2eSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4854dbe7da2eSmrg       ac_prog_rejected=yes
4855dbe7da2eSmrg       continue
4856dbe7da2eSmrg     fi
4857dbe7da2eSmrg    ac_cv_prog_CC="cc"
4858dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859dbe7da2eSmrg    break 2
4860dbe7da2eSmrg  fi
4861dbe7da2eSmrgdone
4862dbe7da2eSmrg  done
4863dbe7da2eSmrgIFS=$as_save_IFS
4864dbe7da2eSmrg
4865dbe7da2eSmrgif test $ac_prog_rejected = yes; then
4866dbe7da2eSmrg  # We found a bogon in the path, so make sure we never use it.
4867dbe7da2eSmrg  set dummy $ac_cv_prog_CC
4868dbe7da2eSmrg  shift
4869dbe7da2eSmrg  if test $# != 0; then
4870dbe7da2eSmrg    # We chose a different compiler from the bogus one.
4871dbe7da2eSmrg    # However, it has the same basename, so the bogon will be chosen
4872dbe7da2eSmrg    # first if we set CC to just the basename; use the full file name.
4873dbe7da2eSmrg    shift
4874dbe7da2eSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4875dbe7da2eSmrg  fi
4876dbe7da2eSmrgfi
4877dbe7da2eSmrgfi
4878dbe7da2eSmrgfi
4879dbe7da2eSmrgCC=$ac_cv_prog_CC
4880dbe7da2eSmrgif test -n "$CC"; then
4881dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882dbe7da2eSmrg$as_echo "$CC" >&6; }
4883dbe7da2eSmrgelse
4884dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885dbe7da2eSmrg$as_echo "no" >&6; }
4886dbe7da2eSmrgfi
4887dbe7da2eSmrg
4888dbe7da2eSmrg
4889dbe7da2eSmrgfi
4890dbe7da2eSmrgif test -z "$CC"; then
4891dbe7da2eSmrg  if test -n "$ac_tool_prefix"; then
4892dbe7da2eSmrg  for ac_prog in cl.exe
4893dbe7da2eSmrg  do
4894dbe7da2eSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4895dbe7da2eSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4896dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4898dbe7da2eSmrgif test "${ac_cv_prog_CC+set}" = set; then :
4899dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4900dbe7da2eSmrgelse
4901dbe7da2eSmrg  if test -n "$CC"; then
4902dbe7da2eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4903dbe7da2eSmrgelse
4904dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905dbe7da2eSmrgfor as_dir in $PATH
4906dbe7da2eSmrgdo
4907dbe7da2eSmrg  IFS=$as_save_IFS
4908dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4909dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4910dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911dbe7da2eSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4912dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913dbe7da2eSmrg    break 2
4914dbe7da2eSmrg  fi
4915dbe7da2eSmrgdone
4916dbe7da2eSmrg  done
4917dbe7da2eSmrgIFS=$as_save_IFS
4918dbe7da2eSmrg
4919dbe7da2eSmrgfi
4920dbe7da2eSmrgfi
4921dbe7da2eSmrgCC=$ac_cv_prog_CC
4922dbe7da2eSmrgif test -n "$CC"; then
4923dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4924dbe7da2eSmrg$as_echo "$CC" >&6; }
4925dbe7da2eSmrgelse
4926dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927dbe7da2eSmrg$as_echo "no" >&6; }
4928dbe7da2eSmrgfi
4929dbe7da2eSmrg
4930dbe7da2eSmrg
4931dbe7da2eSmrg    test -n "$CC" && break
4932dbe7da2eSmrg  done
4933dbe7da2eSmrgfi
4934dbe7da2eSmrgif test -z "$CC"; then
4935dbe7da2eSmrg  ac_ct_CC=$CC
4936dbe7da2eSmrg  for ac_prog in cl.exe
4937dbe7da2eSmrgdo
4938dbe7da2eSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4939dbe7da2eSmrgset dummy $ac_prog; ac_word=$2
4940dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; }
4942dbe7da2eSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4943dbe7da2eSmrg  $as_echo_n "(cached) " >&6
4944dbe7da2eSmrgelse
4945dbe7da2eSmrg  if test -n "$ac_ct_CC"; then
4946dbe7da2eSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4947dbe7da2eSmrgelse
4948dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949dbe7da2eSmrgfor as_dir in $PATH
4950dbe7da2eSmrgdo
4951dbe7da2eSmrg  IFS=$as_save_IFS
4952dbe7da2eSmrg  test -z "$as_dir" && as_dir=.
4953dbe7da2eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4954dbe7da2eSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955dbe7da2eSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
4956dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957dbe7da2eSmrg    break 2
4958dbe7da2eSmrg  fi
4959dbe7da2eSmrgdone
4960dbe7da2eSmrg  done
4961dbe7da2eSmrgIFS=$as_save_IFS
4962dbe7da2eSmrg
4963dbe7da2eSmrgfi
4964dbe7da2eSmrgfi
4965dbe7da2eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4966dbe7da2eSmrgif test -n "$ac_ct_CC"; then
4967dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4968dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; }
4969dbe7da2eSmrgelse
4970dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971dbe7da2eSmrg$as_echo "no" >&6; }
4972dbe7da2eSmrgfi
4973dbe7da2eSmrg
4974dbe7da2eSmrg
4975dbe7da2eSmrg  test -n "$ac_ct_CC" && break
4976dbe7da2eSmrgdone
4977dbe7da2eSmrg
4978dbe7da2eSmrg  if test "x$ac_ct_CC" = x; then
4979dbe7da2eSmrg    CC=""
4980dbe7da2eSmrg  else
4981dbe7da2eSmrg    case $cross_compiling:$ac_tool_warned in
4982dbe7da2eSmrgyes:)
4983dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985dbe7da2eSmrgac_tool_warned=yes ;;
4986dbe7da2eSmrgesac
4987dbe7da2eSmrg    CC=$ac_ct_CC
4988dbe7da2eSmrg  fi
4989dbe7da2eSmrgfi
4990dbe7da2eSmrg
4991dbe7da2eSmrgfi
4992dbe7da2eSmrg
4993dbe7da2eSmrg
4994dbe7da2eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996dbe7da2eSmrgas_fn_error "no acceptable C compiler found in \$PATH
4997dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
4998dbe7da2eSmrg
4999dbe7da2eSmrg# Provide some information about the compiler.
5000dbe7da2eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5001dbe7da2eSmrgset X $ac_compile
5002dbe7da2eSmrgac_compiler=$2
5003dbe7da2eSmrgfor ac_option in --version -v -V -qversion; do
5004dbe7da2eSmrg  { { ac_try="$ac_compiler $ac_option >&5"
5005dbe7da2eSmrgcase "(($ac_try" in
5006dbe7da2eSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007dbe7da2eSmrg  *) ac_try_echo=$ac_try;;
5008dbe7da2eSmrgesac
5009dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5010dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5
5011dbe7da2eSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5012dbe7da2eSmrg  ac_status=$?
5013dbe7da2eSmrg  if test -s conftest.err; then
5014dbe7da2eSmrg    sed '10a\
5015dbe7da2eSmrg... rest of stderr output deleted ...
5016dbe7da2eSmrg         10q' conftest.err >conftest.er1
5017dbe7da2eSmrg    cat conftest.er1 >&5
5018dbe7da2eSmrg  fi
5019dbe7da2eSmrg  rm -f conftest.er1 conftest.err
5020dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5021dbe7da2eSmrg  test $ac_status = 0; }
5022dbe7da2eSmrgdone
5023dbe7da2eSmrg
5024dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5025dbe7da2eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5026dbe7da2eSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
5027dbe7da2eSmrg  $as_echo_n "(cached) " >&6
5028dbe7da2eSmrgelse
5029dbe7da2eSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030dbe7da2eSmrg/* end confdefs.h.  */
5031dbe7da2eSmrg
5032dbe7da2eSmrgint
5033dbe7da2eSmrgmain ()
5034dbe7da2eSmrg{
5035dbe7da2eSmrg#ifndef __GNUC__
5036dbe7da2eSmrg       choke me
5037dbe7da2eSmrg#endif
5038dbe7da2eSmrg
5039dbe7da2eSmrg  ;
5040dbe7da2eSmrg  return 0;
5041dbe7da2eSmrg}
5042dbe7da2eSmrg_ACEOF
5043dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
5044dbe7da2eSmrg  ac_compiler_gnu=yes
5045dbe7da2eSmrgelse
5046dbe7da2eSmrg  ac_compiler_gnu=no
5047dbe7da2eSmrgfi
5048dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049dbe7da2eSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
5050dbe7da2eSmrg
5051dbe7da2eSmrgfi
5052dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5053dbe7da2eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5054dbe7da2eSmrgif test $ac_compiler_gnu = yes; then
5055dbe7da2eSmrg  GCC=yes
5056dbe7da2eSmrgelse
5057dbe7da2eSmrg  GCC=
5058dbe7da2eSmrgfi
5059dbe7da2eSmrgac_test_CFLAGS=${CFLAGS+set}
5060dbe7da2eSmrgac_save_CFLAGS=$CFLAGS
5061dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5062dbe7da2eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
5063dbe7da2eSmrgif test "${ac_cv_prog_cc_g+set}" = set; then :
5064dbe7da2eSmrg  $as_echo_n "(cached) " >&6
5065dbe7da2eSmrgelse
5066dbe7da2eSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
5067dbe7da2eSmrg   ac_c_werror_flag=yes
5068dbe7da2eSmrg   ac_cv_prog_cc_g=no
5069dbe7da2eSmrg   CFLAGS="-g"
5070dbe7da2eSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071dbe7da2eSmrg/* end confdefs.h.  */
5072dbe7da2eSmrg
5073dbe7da2eSmrgint
5074dbe7da2eSmrgmain ()
5075dbe7da2eSmrg{
5076dbe7da2eSmrg
5077dbe7da2eSmrg  ;
5078dbe7da2eSmrg  return 0;
5079dbe7da2eSmrg}
5080dbe7da2eSmrg_ACEOF
5081dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
5082dbe7da2eSmrg  ac_cv_prog_cc_g=yes
5083dbe7da2eSmrgelse
5084dbe7da2eSmrg  CFLAGS=""
5085dbe7da2eSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086dbe7da2eSmrg/* end confdefs.h.  */
5087dbe7da2eSmrg
5088dbe7da2eSmrgint
5089dbe7da2eSmrgmain ()
5090dbe7da2eSmrg{
5091dbe7da2eSmrg
5092dbe7da2eSmrg  ;
5093dbe7da2eSmrg  return 0;
5094dbe7da2eSmrg}
5095dbe7da2eSmrg_ACEOF
5096dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
5097dbe7da2eSmrg
5098dbe7da2eSmrgelse
5099dbe7da2eSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
5100dbe7da2eSmrg	 CFLAGS="-g"
5101dbe7da2eSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102dbe7da2eSmrg/* end confdefs.h.  */
5103dbe7da2eSmrg
5104dbe7da2eSmrgint
5105dbe7da2eSmrgmain ()
5106dbe7da2eSmrg{
5107dbe7da2eSmrg
5108dbe7da2eSmrg  ;
5109dbe7da2eSmrg  return 0;
5110dbe7da2eSmrg}
5111dbe7da2eSmrg_ACEOF
5112dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then :
5113dbe7da2eSmrg  ac_cv_prog_cc_g=yes
5114dbe7da2eSmrgfi
5115dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116dbe7da2eSmrgfi
5117dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118dbe7da2eSmrgfi
5119dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120dbe7da2eSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
5121dbe7da2eSmrgfi
5122dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5123dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
5124dbe7da2eSmrgif test "$ac_test_CFLAGS" = set; then
5125dbe7da2eSmrg  CFLAGS=$ac_save_CFLAGS
5126dbe7da2eSmrgelif test $ac_cv_prog_cc_g = yes; then
5127dbe7da2eSmrg  if test "$GCC" = yes; then
5128dbe7da2eSmrg    CFLAGS="-g -O2"
5129dbe7da2eSmrg  else
5130dbe7da2eSmrg    CFLAGS="-g"
5131dbe7da2eSmrg  fi
5132dbe7da2eSmrgelse
5133dbe7da2eSmrg  if test "$GCC" = yes; then
5134dbe7da2eSmrg    CFLAGS="-O2"
5135dbe7da2eSmrg  else
5136dbe7da2eSmrg    CFLAGS=
5137dbe7da2eSmrg  fi
5138dbe7da2eSmrgfi
5139dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5140dbe7da2eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5141dbe7da2eSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
5142dbe7da2eSmrg  $as_echo_n "(cached) " >&6
5143dbe7da2eSmrgelse
5144dbe7da2eSmrg  ac_cv_prog_cc_c89=no
5145dbe7da2eSmrgac_save_CC=$CC
5146dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147dbe7da2eSmrg/* end confdefs.h.  */
5148dbe7da2eSmrg#include <stdarg.h>
5149dbe7da2eSmrg#include <stdio.h>
5150dbe7da2eSmrg#include <sys/types.h>
5151dbe7da2eSmrg#include <sys/stat.h>
5152dbe7da2eSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5153dbe7da2eSmrgstruct buf { int x; };
5154dbe7da2eSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
5155dbe7da2eSmrgstatic char *e (p, i)
5156dbe7da2eSmrg     char **p;
5157dbe7da2eSmrg     int i;
5158dbe7da2eSmrg{
5159dbe7da2eSmrg  return p[i];
5160dbe7da2eSmrg}
5161dbe7da2eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
5162dbe7da2eSmrg{
5163dbe7da2eSmrg  char *s;
5164dbe7da2eSmrg  va_list v;
5165dbe7da2eSmrg  va_start (v,p);
5166dbe7da2eSmrg  s = g (p, va_arg (v,int));
5167dbe7da2eSmrg  va_end (v);
5168dbe7da2eSmrg  return s;
5169dbe7da2eSmrg}
5170dbe7da2eSmrg
5171dbe7da2eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5172dbe7da2eSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
5173dbe7da2eSmrg   These don't provoke an error unfortunately, instead are silently treated
5174dbe7da2eSmrg   as 'x'.  The following induces an error, until -std is added to get
5175dbe7da2eSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5176dbe7da2eSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
5177dbe7da2eSmrg   that's true only with -std.  */
5178dbe7da2eSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
5179dbe7da2eSmrg
5180dbe7da2eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5181dbe7da2eSmrg   inside strings and character constants.  */
5182dbe7da2eSmrg#define FOO(x) 'x'
5183dbe7da2eSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5184dbe7da2eSmrg
5185dbe7da2eSmrgint test (int i, double x);
5186dbe7da2eSmrgstruct s1 {int (*f) (int a);};
5187dbe7da2eSmrgstruct s2 {int (*f) (double a);};
5188dbe7da2eSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5189dbe7da2eSmrgint argc;
5190dbe7da2eSmrgchar **argv;
5191dbe7da2eSmrgint
5192dbe7da2eSmrgmain ()
5193dbe7da2eSmrg{
5194dbe7da2eSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5195dbe7da2eSmrg  ;
5196dbe7da2eSmrg  return 0;
5197dbe7da2eSmrg}
5198dbe7da2eSmrg_ACEOF
5199dbe7da2eSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5200dbe7da2eSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5201dbe7da2eSmrgdo
5202dbe7da2eSmrg  CC="$ac_save_CC $ac_arg"
5203dbe7da2eSmrg  if ac_fn_c_try_compile "$LINENO"; then :
5204dbe7da2eSmrg  ac_cv_prog_cc_c89=$ac_arg
5205dbe7da2eSmrgfi
5206dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext
5207dbe7da2eSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
5208dbe7da2eSmrgdone
5209dbe7da2eSmrgrm -f conftest.$ac_ext
5210dbe7da2eSmrgCC=$ac_save_CC
5211dbe7da2eSmrg
5212dbe7da2eSmrgfi
5213dbe7da2eSmrg# AC_CACHE_VAL
5214dbe7da2eSmrgcase "x$ac_cv_prog_cc_c89" in
5215dbe7da2eSmrg  x)
5216dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5217dbe7da2eSmrg$as_echo "none needed" >&6; } ;;
5218dbe7da2eSmrg  xno)
5219dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5220dbe7da2eSmrg$as_echo "unsupported" >&6; } ;;
5221dbe7da2eSmrg  *)
5222dbe7da2eSmrg    CC="$CC $ac_cv_prog_cc_c89"
5223dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5224dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5225dbe7da2eSmrgesac
5226dbe7da2eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
5227dbe7da2eSmrg
5228dbe7da2eSmrgfi
5229dbe7da2eSmrg
5230dbe7da2eSmrgac_ext=c
5231dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS'
5232dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5235dbe7da2eSmrg
5236dbe7da2eSmrgdepcc="$CC"   am_compiler_list=
5237dbe7da2eSmrg
5238dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5239dbe7da2eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
5240dbe7da2eSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5241dbe7da2eSmrg  $as_echo_n "(cached) " >&6
5242dbe7da2eSmrgelse
5243dbe7da2eSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5244dbe7da2eSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
5245dbe7da2eSmrg  # making bogus files that we don't know about and never remove.  For
5246dbe7da2eSmrg  # instance it was reported that on HP-UX the gcc test will end up
5247dbe7da2eSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
5248dbe7da2eSmrg  # in D'.
5249dbe7da2eSmrg  mkdir conftest.dir
5250dbe7da2eSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
5251dbe7da2eSmrg  # using a relative directory.
5252dbe7da2eSmrg  cp "$am_depcomp" conftest.dir
5253dbe7da2eSmrg  cd conftest.dir
5254dbe7da2eSmrg  # We will build objects and dependencies in a subdirectory because
5255dbe7da2eSmrg  # it helps to detect inapplicable dependency modes.  For instance
5256dbe7da2eSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
5257dbe7da2eSmrg  # side effect of compilation, but ICC will put the dependencies in
5258dbe7da2eSmrg  # the current directory while Tru64 will put them in the object
5259dbe7da2eSmrg  # directory.
5260dbe7da2eSmrg  mkdir sub
5261dbe7da2eSmrg
5262dbe7da2eSmrg  am_cv_CC_dependencies_compiler_type=none
5263dbe7da2eSmrg  if test "$am_compiler_list" = ""; then
5264dbe7da2eSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5265dbe7da2eSmrg  fi
5266dbe7da2eSmrg  am__universal=false
5267dbe7da2eSmrg  case " $depcc " in #(
5268dbe7da2eSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5269dbe7da2eSmrg     esac
5270dbe7da2eSmrg
5271dbe7da2eSmrg  for depmode in $am_compiler_list; do
5272dbe7da2eSmrg    # Setup a source with many dependencies, because some compilers
5273dbe7da2eSmrg    # like to wrap large dependency lists on column 80 (with \), and
5274dbe7da2eSmrg    # we should not choose a depcomp mode which is confused by this.
5275dbe7da2eSmrg    #
5276dbe7da2eSmrg    # We need to recreate these files for each test, as the compiler may
5277dbe7da2eSmrg    # overwrite some of them when testing with obscure command lines.
5278dbe7da2eSmrg    # This happens at least with the AIX C compiler.
5279dbe7da2eSmrg    : > sub/conftest.c
5280dbe7da2eSmrg    for i in 1 2 3 4 5 6; do
5281dbe7da2eSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5282dbe7da2eSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5283dbe7da2eSmrg      # Solaris 8's {/usr,}/bin/sh.
5284dbe7da2eSmrg      touch sub/conftst$i.h
5285dbe7da2eSmrg    done
5286dbe7da2eSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5287dbe7da2eSmrg
5288dbe7da2eSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5289dbe7da2eSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
5290dbe7da2eSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
5291dbe7da2eSmrg    # versions had trouble with output in subdirs
5292dbe7da2eSmrg    am__obj=sub/conftest.${OBJEXT-o}
5293dbe7da2eSmrg    am__minus_obj="-o $am__obj"
5294dbe7da2eSmrg    case $depmode in
5295dbe7da2eSmrg    gcc)
5296dbe7da2eSmrg      # This depmode causes a compiler race in universal mode.
5297dbe7da2eSmrg      test "$am__universal" = false || continue
5298dbe7da2eSmrg      ;;
5299dbe7da2eSmrg    nosideeffect)
5300dbe7da2eSmrg      # after this tag, mechanisms are not by side-effect, so they'll
5301dbe7da2eSmrg      # only be used when explicitly requested
5302dbe7da2eSmrg      if test "x$enable_dependency_tracking" = xyes; then
5303dbe7da2eSmrg	continue
5304dbe7da2eSmrg      else
5305dbe7da2eSmrg	break
5306dbe7da2eSmrg      fi
5307dbe7da2eSmrg      ;;
5308dbe7da2eSmrg    msvisualcpp | msvcmsys)
5309dbe7da2eSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
5310dbe7da2eSmrg      # not run yet.  These depmodes are late enough in the game, and
5311dbe7da2eSmrg      # so weak that their functioning should not be impacted.
5312dbe7da2eSmrg      am__obj=conftest.${OBJEXT-o}
5313dbe7da2eSmrg      am__minus_obj=
5314dbe7da2eSmrg      ;;
5315dbe7da2eSmrg    none) break ;;
5316dbe7da2eSmrg    esac
5317dbe7da2eSmrg    if depmode=$depmode \
5318dbe7da2eSmrg       source=sub/conftest.c object=$am__obj \
5319dbe7da2eSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5320dbe7da2eSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5321dbe7da2eSmrg         >/dev/null 2>conftest.err &&
5322dbe7da2eSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5323dbe7da2eSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5324dbe7da2eSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5325dbe7da2eSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5326dbe7da2eSmrg      # icc doesn't choke on unknown options, it will just issue warnings
5327dbe7da2eSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
5328dbe7da2eSmrg      # that says an option was ignored or not supported.
5329dbe7da2eSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
5330dbe7da2eSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
5331dbe7da2eSmrg      # The diagnosis changed in icc 8.0:
5332dbe7da2eSmrg      #   icc: Command line remark: option '-MP' not supported
5333dbe7da2eSmrg      if (grep 'ignoring option' conftest.err ||
5334dbe7da2eSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5335dbe7da2eSmrg        am_cv_CC_dependencies_compiler_type=$depmode
5336dbe7da2eSmrg        break
5337dbe7da2eSmrg      fi
5338dbe7da2eSmrg    fi
5339dbe7da2eSmrg  done
5340dbe7da2eSmrg
5341dbe7da2eSmrg  cd ..
5342dbe7da2eSmrg  rm -rf conftest.dir
5343dbe7da2eSmrgelse
5344dbe7da2eSmrg  am_cv_CC_dependencies_compiler_type=none
5345dbe7da2eSmrgfi
5346dbe7da2eSmrg
5347dbe7da2eSmrgfi
5348dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5349dbe7da2eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5350dbe7da2eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5351dbe7da2eSmrg
5352dbe7da2eSmrg if
5353dbe7da2eSmrg  test "x$enable_dependency_tracking" != xno \
5354dbe7da2eSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5355dbe7da2eSmrg  am__fastdepCC_TRUE=
5356dbe7da2eSmrg  am__fastdepCC_FALSE='#'
5357dbe7da2eSmrgelse
5358dbe7da2eSmrg  am__fastdepCC_TRUE='#'
5359dbe7da2eSmrg  am__fastdepCC_FALSE=
5360dbe7da2eSmrgfi
5361dbe7da2eSmrg
5362dbe7da2eSmrg
5363dbe7da2eSmrg
5364dbe7da2eSmrg
5365dbe7da2eSmrg
5366dbe7da2eSmrg
5367dbe7da2eSmrgfor ac_header in pty.h stropts.h sys/param.h sys/select.h
5368dbe7da2eSmrgdo :
5369dbe7da2eSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370dbe7da2eSmrgac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5371dbe7da2eSmrgeval as_val=\$$as_ac_Header
5372dbe7da2eSmrg   if test "x$as_val" = x""yes; then :
5373dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5374dbe7da2eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375dbe7da2eSmrg_ACEOF
5376dbe7da2eSmrg
5377dbe7da2eSmrgfi
5378dbe7da2eSmrg
5379a8fdb4bcSmrgdone
5380a8fdb4bcSmrg
5381dbe7da2eSmrgfor ac_func in select grantpt
5382dbe7da2eSmrgdo :
5383dbe7da2eSmrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384dbe7da2eSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5385dbe7da2eSmrgeval as_val=\$$as_ac_var
5386dbe7da2eSmrg   if test "x$as_val" = x""yes; then :
5387dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5388dbe7da2eSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5389dbe7da2eSmrg_ACEOF
5390dbe7da2eSmrg
5391a8fdb4bcSmrgfi
5392dbe7da2eSmrgdone
5393dbe7da2eSmrg
5394dbe7da2eSmrg
5395dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
5396dbe7da2eSmrg$as_echo_n "checking for gzopen in -lz... " >&6; }
5397dbe7da2eSmrgif test "${ac_cv_lib_z_gzopen+set}" = set; then :
5398dbe7da2eSmrg  $as_echo_n "(cached) " >&6
5399a8fdb4bcSmrgelse
5400dbe7da2eSmrg  ac_check_lib_save_LIBS=$LIBS
5401dbe7da2eSmrgLIBS="-lz  $LIBS"
5402dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403dbe7da2eSmrg/* end confdefs.h.  */
5404a8fdb4bcSmrg
5405dbe7da2eSmrg/* Override any GCC internal prototype to avoid an error.
5406dbe7da2eSmrg   Use char because int might match the return type of a GCC
5407dbe7da2eSmrg   builtin and then its argument prototype would still apply.  */
5408dbe7da2eSmrg#ifdef __cplusplus
5409dbe7da2eSmrgextern "C"
5410dbe7da2eSmrg#endif
5411dbe7da2eSmrgchar gzopen ();
5412dbe7da2eSmrgint
5413dbe7da2eSmrgmain ()
5414dbe7da2eSmrg{
5415dbe7da2eSmrgreturn gzopen ();
5416dbe7da2eSmrg  ;
5417dbe7da2eSmrg  return 0;
5418dbe7da2eSmrg}
5419dbe7da2eSmrg_ACEOF
5420dbe7da2eSmrgif ac_fn_c_try_link "$LINENO"; then :
5421dbe7da2eSmrg  ac_cv_lib_z_gzopen=yes
5422a8fdb4bcSmrgelse
5423dbe7da2eSmrg  ac_cv_lib_z_gzopen=no
5424a8fdb4bcSmrgfi
5425dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext \
5426dbe7da2eSmrg    conftest$ac_exeext conftest.$ac_ext
5427dbe7da2eSmrgLIBS=$ac_check_lib_save_LIBS
5428dbe7da2eSmrgfi
5429dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
5430dbe7da2eSmrg$as_echo "$ac_cv_lib_z_gzopen" >&6; }
5431dbe7da2eSmrgif test "x$ac_cv_lib_z_gzopen" = x""yes; then :
5432dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5433dbe7da2eSmrg#define HAVE_LIBZ 1
5434dbe7da2eSmrg_ACEOF
5435dbe7da2eSmrg
5436dbe7da2eSmrg  LIBS="-lz $LIBS"
5437a8fdb4bcSmrg
5438dbe7da2eSmrgelse
5439dbe7da2eSmrg  as_fn_error "zlib not found" "$LINENO" 5
5440a8fdb4bcSmrgfi
5441a8fdb4bcSmrg
5442dbe7da2eSmrg
5443dbe7da2eSmrg
5444dbe7da2eSmrg# Check whether --with-localealiasfile was given.
5445dbe7da2eSmrgif test "${with_localealiasfile+set}" = set; then :
5446dbe7da2eSmrg  withval=$with_localealiasfile; LOCALEALIASFILE="$withval"
5447dbe7da2eSmrgelse
5448dbe7da2eSmrg  LOCALEALIASFILE=${datadir}/X11/locale/locale.alias
5449a8fdb4bcSmrgfi
5450a8fdb4bcSmrg
5451dbe7da2eSmrg
5452dbe7da2eSmrg
5453dbe7da2eSmrg# Checks for pkg-config packages
5454dbe7da2eSmrg
5455a8fdb4bcSmrgpkg_failed=no
5456dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUIT" >&5
5457dbe7da2eSmrg$as_echo_n "checking for LUIT... " >&6; }
5458a8fdb4bcSmrg
5459a8fdb4bcSmrgif test -n "$PKG_CONFIG"; then
5460a8fdb4bcSmrg    if test -n "$LUIT_CFLAGS"; then
5461a8fdb4bcSmrg        pkg_cv_LUIT_CFLAGS="$LUIT_CFLAGS"
5462a8fdb4bcSmrg    else
5463a8fdb4bcSmrg        if test -n "$PKG_CONFIG" && \
5464dbe7da2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 fontenc\""; } >&5
5465a8fdb4bcSmrg  ($PKG_CONFIG --exists --print-errors "x11 fontenc") 2>&5
5466a8fdb4bcSmrg  ac_status=$?
5467dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468dbe7da2eSmrg  test $ac_status = 0; }; then
5469a8fdb4bcSmrg  pkg_cv_LUIT_CFLAGS=`$PKG_CONFIG --cflags "x11 fontenc" 2>/dev/null`
5470a8fdb4bcSmrgelse
5471a8fdb4bcSmrg  pkg_failed=yes
5472a8fdb4bcSmrgfi
5473a8fdb4bcSmrg    fi
5474a8fdb4bcSmrgelse
5475a8fdb4bcSmrg	pkg_failed=untried
5476a8fdb4bcSmrgfi
5477a8fdb4bcSmrgif test -n "$PKG_CONFIG"; then
5478a8fdb4bcSmrg    if test -n "$LUIT_LIBS"; then
5479a8fdb4bcSmrg        pkg_cv_LUIT_LIBS="$LUIT_LIBS"
5480a8fdb4bcSmrg    else
5481a8fdb4bcSmrg        if test -n "$PKG_CONFIG" && \
5482dbe7da2eSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 fontenc\""; } >&5
5483a8fdb4bcSmrg  ($PKG_CONFIG --exists --print-errors "x11 fontenc") 2>&5
5484a8fdb4bcSmrg  ac_status=$?
5485dbe7da2eSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5486dbe7da2eSmrg  test $ac_status = 0; }; then
5487a8fdb4bcSmrg  pkg_cv_LUIT_LIBS=`$PKG_CONFIG --libs "x11 fontenc" 2>/dev/null`
5488a8fdb4bcSmrgelse
5489a8fdb4bcSmrg  pkg_failed=yes
5490a8fdb4bcSmrgfi
5491a8fdb4bcSmrg    fi
5492a8fdb4bcSmrgelse
5493a8fdb4bcSmrg	pkg_failed=untried
5494a8fdb4bcSmrgfi
5495a8fdb4bcSmrg
5496a8fdb4bcSmrg
5497a8fdb4bcSmrg
5498a8fdb4bcSmrgif test $pkg_failed = yes; then
5499a8fdb4bcSmrg
5500a8fdb4bcSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5501a8fdb4bcSmrg        _pkg_short_errors_supported=yes
5502a8fdb4bcSmrgelse
5503a8fdb4bcSmrg        _pkg_short_errors_supported=no
5504a8fdb4bcSmrgfi
5505a8fdb4bcSmrg        if test $_pkg_short_errors_supported = yes; then
5506a8fdb4bcSmrg	        LUIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 fontenc"`
5507a8fdb4bcSmrg        else
5508a8fdb4bcSmrg	        LUIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 fontenc"`
5509a8fdb4bcSmrg        fi
5510a8fdb4bcSmrg	# Put the nasty error message in config.log where it belongs
5511a8fdb4bcSmrg	echo "$LUIT_PKG_ERRORS" >&5
5512a8fdb4bcSmrg
5513dbe7da2eSmrg	as_fn_error "Package requirements (x11 fontenc) were not met:
5514a8fdb4bcSmrg
5515a8fdb4bcSmrg$LUIT_PKG_ERRORS
5516a8fdb4bcSmrg
5517a8fdb4bcSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5518a8fdb4bcSmrginstalled software in a non-standard prefix.
5519a8fdb4bcSmrg
5520a8fdb4bcSmrgAlternatively, you may set the environment variables LUIT_CFLAGS
5521a8fdb4bcSmrgand LUIT_LIBS to avoid the need to call pkg-config.
5522a8fdb4bcSmrgSee the pkg-config man page for more details.
5523dbe7da2eSmrg" "$LINENO" 5
5524a8fdb4bcSmrgelif test $pkg_failed = untried; then
5525dbe7da2eSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5526dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5527dbe7da2eSmrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5528a8fdb4bcSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5529a8fdb4bcSmrgpath to pkg-config.
5530a8fdb4bcSmrg
5531a8fdb4bcSmrgAlternatively, you may set the environment variables LUIT_CFLAGS
5532a8fdb4bcSmrgand LUIT_LIBS to avoid the need to call pkg-config.
5533a8fdb4bcSmrgSee the pkg-config man page for more details.
5534a8fdb4bcSmrg
5535a8fdb4bcSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5536dbe7da2eSmrgSee \`config.log' for more details." "$LINENO" 5; }
5537a8fdb4bcSmrgelse
5538a8fdb4bcSmrg	LUIT_CFLAGS=$pkg_cv_LUIT_CFLAGS
5539a8fdb4bcSmrg	LUIT_LIBS=$pkg_cv_LUIT_LIBS
5540dbe7da2eSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541dbe7da2eSmrg$as_echo "yes" >&6; }
5542a8fdb4bcSmrg	:
5543a8fdb4bcSmrgfi
5544a8fdb4bcSmrg
5545a8fdb4bcSmrgcase $host_os in
5546dbe7da2eSmrg    # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
5547dbe7da2eSmrg    darwin*)
5548a8fdb4bcSmrg        OS_CFLAGS=
5549a8fdb4bcSmrg        ;;
5550dbe7da2eSmrg    linux*)
5551dbe7da2eSmrg        for ac_header in poll.h
5552dbe7da2eSmrgdo :
5553dbe7da2eSmrg  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5554dbe7da2eSmrgif test "x$ac_cv_header_poll_h" = x""yes; then :
5555dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5556dbe7da2eSmrg#define HAVE_POLL_H 1
5557dbe7da2eSmrg_ACEOF
5558a8fdb4bcSmrg
5559a8fdb4bcSmrgfi
5560a8fdb4bcSmrg
5561dbe7da2eSmrgdone
5562a8fdb4bcSmrg
5563dbe7da2eSmrg        for ac_func in poll
5564dbe7da2eSmrgdo :
5565dbe7da2eSmrg  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
5566dbe7da2eSmrgif test "x$ac_cv_func_poll" = x""yes; then :
5567dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5568dbe7da2eSmrg#define HAVE_POLL 1
5569dbe7da2eSmrg_ACEOF
5570a8fdb4bcSmrg
5571a8fdb4bcSmrgfi
5572dbe7da2eSmrgdone
5573a8fdb4bcSmrg
5574dbe7da2eSmrg        OS_CFLAGS="-D_XOPEN_SOURCE=500"
5575dbe7da2eSmrg        ;;
5576dbe7da2eSmrg    *)
5577dbe7da2eSmrg        for ac_header in poll.h
5578dbe7da2eSmrgdo :
5579dbe7da2eSmrg  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5580dbe7da2eSmrgif test "x$ac_cv_header_poll_h" = x""yes; then :
5581dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5582dbe7da2eSmrg#define HAVE_POLL_H 1
5583dbe7da2eSmrg_ACEOF
5584a8fdb4bcSmrg
5585a8fdb4bcSmrgfi
5586a8fdb4bcSmrg
5587dbe7da2eSmrgdone
5588a8fdb4bcSmrg
5589dbe7da2eSmrg        for ac_func in poll
5590dbe7da2eSmrgdo :
5591dbe7da2eSmrg  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
5592dbe7da2eSmrgif test "x$ac_cv_func_poll" = x""yes; then :
5593dbe7da2eSmrg  cat >>confdefs.h <<_ACEOF
5594dbe7da2eSmrg#define HAVE_POLL 1
5595a8fdb4bcSmrg_ACEOF
5596a8fdb4bcSmrg
5597dbe7da2eSmrgfi
5598dbe7da2eSmrgdone
5599a8fdb4bcSmrg
5600dbe7da2eSmrg        OS_CFLAGS=
5601dbe7da2eSmrg        ;;
5602dbe7da2eSmrgesac
5603a8fdb4bcSmrg
5604dbe7da2eSmrgLUIT_CFLAGS="$LUIT_CFLAGS $OS_CFLAGS"
5605a8fdb4bcSmrg
5606a8fdb4bcSmrg
5607a8fdb4bcSmrg
5608a8fdb4bcSmrgac_config_files="$ac_config_files Makefile"
5609a8fdb4bcSmrg
5610a8fdb4bcSmrgcat >confcache <<\_ACEOF
5611a8fdb4bcSmrg# This file is a shell script that caches the results of configure
5612a8fdb4bcSmrg# tests run on this system so they can be shared between configure
5613a8fdb4bcSmrg# scripts and configure runs, see configure's option --config-cache.
5614a8fdb4bcSmrg# It is not useful on other systems.  If it contains results you don't
5615a8fdb4bcSmrg# want to keep, you may remove or edit it.
5616a8fdb4bcSmrg#
5617a8fdb4bcSmrg# config.status only pays attention to the cache file if you give it
5618a8fdb4bcSmrg# the --recheck option to rerun configure.
5619a8fdb4bcSmrg#
5620a8fdb4bcSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5621a8fdb4bcSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5622a8fdb4bcSmrg# following values.
5623a8fdb4bcSmrg
5624a8fdb4bcSmrg_ACEOF
5625a8fdb4bcSmrg
5626a8fdb4bcSmrg# The following way of writing the cache mishandles newlines in values,
5627a8fdb4bcSmrg# but we know of no workaround that is simple, portable, and efficient.
5628a8fdb4bcSmrg# So, we kill variables containing newlines.
5629a8fdb4bcSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5630a8fdb4bcSmrg# and sets the high bit in the cache file unless we assign to the vars.
5631a8fdb4bcSmrg(
5632a8fdb4bcSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5633a8fdb4bcSmrg    eval ac_val=\$$ac_var
5634a8fdb4bcSmrg    case $ac_val in #(
5635a8fdb4bcSmrg    *${as_nl}*)
5636a8fdb4bcSmrg      case $ac_var in #(
5637dbe7da2eSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5638dbe7da2eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5639a8fdb4bcSmrg      esac
5640a8fdb4bcSmrg      case $ac_var in #(
5641a8fdb4bcSmrg      _ | IFS | as_nl) ;; #(
5642dbe7da2eSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5643dbe7da2eSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
5644a8fdb4bcSmrg      esac ;;
5645a8fdb4bcSmrg    esac
5646a8fdb4bcSmrg  done
5647a8fdb4bcSmrg
5648a8fdb4bcSmrg  (set) 2>&1 |
5649a8fdb4bcSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5650a8fdb4bcSmrg    *${as_nl}ac_space=\ *)
5651dbe7da2eSmrg      # `set' does not quote correctly, so add quotes: double-quote
5652dbe7da2eSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5653a8fdb4bcSmrg      sed -n \
5654a8fdb4bcSmrg	"s/'/'\\\\''/g;
5655a8fdb4bcSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5656a8fdb4bcSmrg      ;; #(
5657a8fdb4bcSmrg    *)
5658a8fdb4bcSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5659a8fdb4bcSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5660a8fdb4bcSmrg      ;;
5661a8fdb4bcSmrg    esac |
5662a8fdb4bcSmrg    sort
5663a8fdb4bcSmrg) |
5664a8fdb4bcSmrg  sed '
5665a8fdb4bcSmrg     /^ac_cv_env_/b end
5666a8fdb4bcSmrg     t clear
5667a8fdb4bcSmrg     :clear
5668a8fdb4bcSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5669a8fdb4bcSmrg     t end
5670a8fdb4bcSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5671a8fdb4bcSmrg     :end' >>confcache
5672a8fdb4bcSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5673a8fdb4bcSmrg  if test -w "$cache_file"; then
5674a8fdb4bcSmrg    test "x$cache_file" != "x/dev/null" &&
5675dbe7da2eSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5676dbe7da2eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5677a8fdb4bcSmrg    cat confcache >$cache_file
5678a8fdb4bcSmrg  else
5679dbe7da2eSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5680dbe7da2eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5681a8fdb4bcSmrg  fi
5682a8fdb4bcSmrgfi
5683a8fdb4bcSmrgrm -f confcache
5684a8fdb4bcSmrg
5685a8fdb4bcSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5686a8fdb4bcSmrg# Let make expand exec_prefix.
5687a8fdb4bcSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5688a8fdb4bcSmrg
5689a8fdb4bcSmrgDEFS=-DHAVE_CONFIG_H
5690a8fdb4bcSmrg
5691a8fdb4bcSmrgac_libobjs=
5692a8fdb4bcSmrgac_ltlibobjs=
5693a8fdb4bcSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5694a8fdb4bcSmrg  # 1. Remove the extension, and $U if already installed.
5695a8fdb4bcSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5696dbe7da2eSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5697a8fdb4bcSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5698a8fdb4bcSmrg  #    will be set to the directory where LIBOBJS objects are built.
5699dbe7da2eSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5700dbe7da2eSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5701a8fdb4bcSmrgdone
5702a8fdb4bcSmrgLIBOBJS=$ac_libobjs
5703a8fdb4bcSmrg
5704a8fdb4bcSmrgLTLIBOBJS=$ac_ltlibobjs
5705a8fdb4bcSmrg
5706a8fdb4bcSmrg
5707dbe7da2eSmrg if test -n "$EXEEXT"; then
5708dbe7da2eSmrg  am__EXEEXT_TRUE=
5709dbe7da2eSmrg  am__EXEEXT_FALSE='#'
5710dbe7da2eSmrgelse
5711dbe7da2eSmrg  am__EXEEXT_TRUE='#'
5712dbe7da2eSmrg  am__EXEEXT_FALSE=
5713dbe7da2eSmrgfi
5714dbe7da2eSmrg
5715a8fdb4bcSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5716dbe7da2eSmrg  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5717dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5718a8fdb4bcSmrgfi
5719a8fdb4bcSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5720dbe7da2eSmrg  as_fn_error "conditional \"AMDEP\" was never defined.
5721dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5722dbe7da2eSmrgfi
5723dbe7da2eSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5724dbe7da2eSmrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5725dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5726a8fdb4bcSmrgfi
5727a8fdb4bcSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5728dbe7da2eSmrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5729dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5730a8fdb4bcSmrgfi
5731a8fdb4bcSmrg
5732a8fdb4bcSmrg: ${CONFIG_STATUS=./config.status}
5733dbe7da2eSmrgac_write_fail=0
5734a8fdb4bcSmrgac_clean_files_save=$ac_clean_files
5735a8fdb4bcSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5736dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5737dbe7da2eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5738dbe7da2eSmrgas_write_fail=0
5739dbe7da2eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5740a8fdb4bcSmrg#! $SHELL
5741a8fdb4bcSmrg# Generated by $as_me.
5742a8fdb4bcSmrg# Run this file to recreate the current configuration.
5743a8fdb4bcSmrg# Compiler output produced by configure, useful for debugging
5744a8fdb4bcSmrg# configure, is in config.log if it exists.
5745a8fdb4bcSmrg
5746a8fdb4bcSmrgdebug=false
5747a8fdb4bcSmrgac_cs_recheck=false
5748a8fdb4bcSmrgac_cs_silent=false
5749a8fdb4bcSmrg
5750dbe7da2eSmrgSHELL=\${CONFIG_SHELL-$SHELL}
5751dbe7da2eSmrgexport SHELL
5752dbe7da2eSmrg_ASEOF
5753dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5754dbe7da2eSmrg## -------------------- ##
5755dbe7da2eSmrg## M4sh Initialization. ##
5756dbe7da2eSmrg## -------------------- ##
5757a8fdb4bcSmrg
5758a8fdb4bcSmrg# Be more Bourne compatible
5759a8fdb4bcSmrgDUALCASE=1; export DUALCASE # for MKS sh
5760dbe7da2eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5761a8fdb4bcSmrg  emulate sh
5762a8fdb4bcSmrg  NULLCMD=:
5763dbe7da2eSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5764a8fdb4bcSmrg  # is contrary to our usage.  Disable this feature.
5765a8fdb4bcSmrg  alias -g '${1+"$@"}'='"$@"'
5766a8fdb4bcSmrg  setopt NO_GLOB_SUBST
5767a8fdb4bcSmrgelse
5768dbe7da2eSmrg  case `(set -o) 2>/dev/null` in #(
5769dbe7da2eSmrg  *posix*) :
5770dbe7da2eSmrg    set -o posix ;; #(
5771dbe7da2eSmrg  *) :
5772dbe7da2eSmrg     ;;
5773a8fdb4bcSmrgesac
5774a8fdb4bcSmrgfi
5775a8fdb4bcSmrg
5776a8fdb4bcSmrg
5777dbe7da2eSmrgas_nl='
5778dbe7da2eSmrg'
5779dbe7da2eSmrgexport as_nl
5780dbe7da2eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5781dbe7da2eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5782dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5783dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5784dbe7da2eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5785dbe7da2eSmrg# but without wasting forks for bash or zsh.
5786dbe7da2eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5787dbe7da2eSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5788dbe7da2eSmrg  as_echo='print -r --'
5789dbe7da2eSmrg  as_echo_n='print -rn --'
5790dbe7da2eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5791dbe7da2eSmrg  as_echo='printf %s\n'
5792dbe7da2eSmrg  as_echo_n='printf %s'
5793dbe7da2eSmrgelse
5794dbe7da2eSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5795dbe7da2eSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5796dbe7da2eSmrg    as_echo_n='/usr/ucb/echo -n'
5797a8fdb4bcSmrg  else
5798dbe7da2eSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5799dbe7da2eSmrg    as_echo_n_body='eval
5800dbe7da2eSmrg      arg=$1;
5801dbe7da2eSmrg      case $arg in #(
5802dbe7da2eSmrg      *"$as_nl"*)
5803dbe7da2eSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5804dbe7da2eSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5805dbe7da2eSmrg      esac;
5806dbe7da2eSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5807dbe7da2eSmrg    '
5808dbe7da2eSmrg    export as_echo_n_body
5809dbe7da2eSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5810a8fdb4bcSmrg  fi
5811dbe7da2eSmrg  export as_echo_body
5812dbe7da2eSmrg  as_echo='sh -c $as_echo_body as_echo'
5813a8fdb4bcSmrgfi
5814a8fdb4bcSmrg
5815dbe7da2eSmrg# The user is always right.
5816dbe7da2eSmrgif test "${PATH_SEPARATOR+set}" != set; then
5817dbe7da2eSmrg  PATH_SEPARATOR=:
5818dbe7da2eSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5819dbe7da2eSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5820dbe7da2eSmrg      PATH_SEPARATOR=';'
5821dbe7da2eSmrg  }
5822a8fdb4bcSmrgfi
5823a8fdb4bcSmrg
5824a8fdb4bcSmrg
5825a8fdb4bcSmrg# IFS
5826a8fdb4bcSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5827a8fdb4bcSmrg# there to prevent editors from complaining about space-tab.
5828a8fdb4bcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5829a8fdb4bcSmrg# splitting by setting IFS to empty value.)
5830a8fdb4bcSmrgIFS=" ""	$as_nl"
5831a8fdb4bcSmrg
5832a8fdb4bcSmrg# Find who we are.  Look in the path if we contain no directory separator.
5833dbe7da2eSmrgcase $0 in #((
5834a8fdb4bcSmrg  *[\\/]* ) as_myself=$0 ;;
5835a8fdb4bcSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836a8fdb4bcSmrgfor as_dir in $PATH
5837a8fdb4bcSmrgdo
5838a8fdb4bcSmrg  IFS=$as_save_IFS
5839a8fdb4bcSmrg  test -z "$as_dir" && as_dir=.
5840dbe7da2eSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5841dbe7da2eSmrg  done
5842a8fdb4bcSmrgIFS=$as_save_IFS
5843a8fdb4bcSmrg
5844a8fdb4bcSmrg     ;;
5845a8fdb4bcSmrgesac
5846a8fdb4bcSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5847a8fdb4bcSmrg# in which case we are not to be found in the path.
5848a8fdb4bcSmrgif test "x$as_myself" = x; then
5849a8fdb4bcSmrg  as_myself=$0
5850a8fdb4bcSmrgfi
5851a8fdb4bcSmrgif test ! -f "$as_myself"; then
5852dbe7da2eSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5853dbe7da2eSmrg  exit 1
5854a8fdb4bcSmrgfi
5855a8fdb4bcSmrg
5856dbe7da2eSmrg# Unset variables that we do not need and which cause bugs (e.g. in
5857dbe7da2eSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5858dbe7da2eSmrg# suppresses any "Segmentation fault" message there.  '((' could
5859dbe7da2eSmrg# trigger a bug in pdksh 5.2.14.
5860dbe7da2eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5861dbe7da2eSmrgdo eval test x\${$as_var+set} = xset \
5862dbe7da2eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5863a8fdb4bcSmrgdone
5864a8fdb4bcSmrgPS1='$ '
5865a8fdb4bcSmrgPS2='> '
5866a8fdb4bcSmrgPS4='+ '
5867a8fdb4bcSmrg
5868a8fdb4bcSmrg# NLS nuisances.
5869dbe7da2eSmrgLC_ALL=C
5870dbe7da2eSmrgexport LC_ALL
5871dbe7da2eSmrgLANGUAGE=C
5872dbe7da2eSmrgexport LANGUAGE
5873dbe7da2eSmrg
5874dbe7da2eSmrg# CDPATH.
5875dbe7da2eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5876dbe7da2eSmrg
5877dbe7da2eSmrg
5878dbe7da2eSmrg# as_fn_error ERROR [LINENO LOG_FD]
5879dbe7da2eSmrg# ---------------------------------
5880dbe7da2eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5881dbe7da2eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5882dbe7da2eSmrg# script with status $?, using 1 if that was 0.
5883dbe7da2eSmrgas_fn_error ()
5884dbe7da2eSmrg{
5885dbe7da2eSmrg  as_status=$?; test $as_status -eq 0 && as_status=1
5886dbe7da2eSmrg  if test "$3"; then
5887dbe7da2eSmrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5888dbe7da2eSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5889a8fdb4bcSmrg  fi
5890dbe7da2eSmrg  $as_echo "$as_me: error: $1" >&2
5891dbe7da2eSmrg  as_fn_exit $as_status
5892dbe7da2eSmrg} # as_fn_error
5893dbe7da2eSmrg
5894dbe7da2eSmrg
5895dbe7da2eSmrg# as_fn_set_status STATUS
5896dbe7da2eSmrg# -----------------------
5897dbe7da2eSmrg# Set $? to STATUS, without forking.
5898dbe7da2eSmrgas_fn_set_status ()
5899dbe7da2eSmrg{
5900dbe7da2eSmrg  return $1
5901dbe7da2eSmrg} # as_fn_set_status
5902dbe7da2eSmrg
5903dbe7da2eSmrg# as_fn_exit STATUS
5904dbe7da2eSmrg# -----------------
5905dbe7da2eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5906dbe7da2eSmrgas_fn_exit ()
5907dbe7da2eSmrg{
5908dbe7da2eSmrg  set +e
5909dbe7da2eSmrg  as_fn_set_status $1
5910dbe7da2eSmrg  exit $1
5911dbe7da2eSmrg} # as_fn_exit
5912dbe7da2eSmrg
5913dbe7da2eSmrg# as_fn_unset VAR
5914dbe7da2eSmrg# ---------------
5915dbe7da2eSmrg# Portably unset VAR.
5916dbe7da2eSmrgas_fn_unset ()
5917dbe7da2eSmrg{
5918dbe7da2eSmrg  { eval $1=; unset $1;}
5919dbe7da2eSmrg}
5920dbe7da2eSmrgas_unset=as_fn_unset
5921dbe7da2eSmrg# as_fn_append VAR VALUE
5922dbe7da2eSmrg# ----------------------
5923dbe7da2eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5924dbe7da2eSmrg# advantage of any shell optimizations that allow amortized linear growth over
5925dbe7da2eSmrg# repeated appends, instead of the typical quadratic growth present in naive
5926dbe7da2eSmrg# implementations.
5927dbe7da2eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5928dbe7da2eSmrg  eval 'as_fn_append ()
5929dbe7da2eSmrg  {
5930dbe7da2eSmrg    eval $1+=\$2
5931dbe7da2eSmrg  }'
5932dbe7da2eSmrgelse
5933dbe7da2eSmrg  as_fn_append ()
5934dbe7da2eSmrg  {
5935dbe7da2eSmrg    eval $1=\$$1\$2
5936dbe7da2eSmrg  }
5937dbe7da2eSmrgfi # as_fn_append
5938dbe7da2eSmrg
5939dbe7da2eSmrg# as_fn_arith ARG...
5940dbe7da2eSmrg# ------------------
5941dbe7da2eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5942dbe7da2eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5943dbe7da2eSmrg# must be portable across $(()) and expr.
5944dbe7da2eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5945dbe7da2eSmrg  eval 'as_fn_arith ()
5946dbe7da2eSmrg  {
5947dbe7da2eSmrg    as_val=$(( $* ))
5948dbe7da2eSmrg  }'
5949dbe7da2eSmrgelse
5950dbe7da2eSmrg  as_fn_arith ()
5951dbe7da2eSmrg  {
5952dbe7da2eSmrg    as_val=`expr "$@" || test $? -eq 1`
5953dbe7da2eSmrg  }
5954dbe7da2eSmrgfi # as_fn_arith
5955dbe7da2eSmrg
5956a8fdb4bcSmrg
5957a8fdb4bcSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5958a8fdb4bcSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5959a8fdb4bcSmrg  as_expr=expr
5960a8fdb4bcSmrgelse
5961a8fdb4bcSmrg  as_expr=false
5962a8fdb4bcSmrgfi
5963a8fdb4bcSmrg
5964a8fdb4bcSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5965a8fdb4bcSmrg  as_basename=basename
5966a8fdb4bcSmrgelse
5967a8fdb4bcSmrg  as_basename=false
5968a8fdb4bcSmrgfi
5969a8fdb4bcSmrg
5970dbe7da2eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5971dbe7da2eSmrg  as_dirname=dirname
5972dbe7da2eSmrgelse
5973dbe7da2eSmrg  as_dirname=false
5974dbe7da2eSmrgfi
5975a8fdb4bcSmrg
5976a8fdb4bcSmrgas_me=`$as_basename -- "$0" ||
5977a8fdb4bcSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5978a8fdb4bcSmrg	 X"$0" : 'X\(//\)$' \| \
5979a8fdb4bcSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5980dbe7da2eSmrg$as_echo X/"$0" |
5981a8fdb4bcSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5982a8fdb4bcSmrg	    s//\1/
5983a8fdb4bcSmrg	    q
5984a8fdb4bcSmrg	  }
5985a8fdb4bcSmrg	  /^X\/\(\/\/\)$/{
5986a8fdb4bcSmrg	    s//\1/
5987a8fdb4bcSmrg	    q
5988a8fdb4bcSmrg	  }
5989a8fdb4bcSmrg	  /^X\/\(\/\).*/{
5990a8fdb4bcSmrg	    s//\1/
5991a8fdb4bcSmrg	    q
5992a8fdb4bcSmrg	  }
5993a8fdb4bcSmrg	  s/.*/./; q'`
5994a8fdb4bcSmrg
5995dbe7da2eSmrg# Avoid depending upon Character Ranges.
5996dbe7da2eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5997dbe7da2eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5998dbe7da2eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5999dbe7da2eSmrgas_cr_digits='0123456789'
6000dbe7da2eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
6001a8fdb4bcSmrg
6002a8fdb4bcSmrgECHO_C= ECHO_N= ECHO_T=
6003dbe7da2eSmrgcase `echo -n x` in #(((((
6004a8fdb4bcSmrg-n*)
6005dbe7da2eSmrg  case `echo 'xy\c'` in
6006a8fdb4bcSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6007dbe7da2eSmrg  xy)  ECHO_C='\c';;
6008dbe7da2eSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6009dbe7da2eSmrg       ECHO_T='	';;
6010a8fdb4bcSmrg  esac;;
6011a8fdb4bcSmrg*)
6012a8fdb4bcSmrg  ECHO_N='-n';;
6013a8fdb4bcSmrgesac
6014a8fdb4bcSmrg
6015a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.file
6016a8fdb4bcSmrgif test -d conf$$.dir; then
6017a8fdb4bcSmrg  rm -f conf$$.dir/conf$$.file
6018a8fdb4bcSmrgelse
6019a8fdb4bcSmrg  rm -f conf$$.dir
6020dbe7da2eSmrg  mkdir conf$$.dir 2>/dev/null
6021dbe7da2eSmrgfi
6022dbe7da2eSmrgif (echo >conf$$.file) 2>/dev/null; then
6023dbe7da2eSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
6024dbe7da2eSmrg    as_ln_s='ln -s'
6025dbe7da2eSmrg    # ... but there are two gotchas:
6026dbe7da2eSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6027dbe7da2eSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6028dbe7da2eSmrg    # In both cases, we have to default to `cp -p'.
6029dbe7da2eSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6030dbe7da2eSmrg      as_ln_s='cp -p'
6031dbe7da2eSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
6032dbe7da2eSmrg    as_ln_s=ln
6033dbe7da2eSmrg  else
6034a8fdb4bcSmrg    as_ln_s='cp -p'
6035dbe7da2eSmrg  fi
6036a8fdb4bcSmrgelse
6037a8fdb4bcSmrg  as_ln_s='cp -p'
6038a8fdb4bcSmrgfi
6039a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6040a8fdb4bcSmrgrmdir conf$$.dir 2>/dev/null
6041a8fdb4bcSmrg
6042dbe7da2eSmrg
6043dbe7da2eSmrg# as_fn_mkdir_p
6044dbe7da2eSmrg# -------------
6045dbe7da2eSmrg# Create "$as_dir" as a directory, including parents if necessary.
6046dbe7da2eSmrgas_fn_mkdir_p ()
6047dbe7da2eSmrg{
6048dbe7da2eSmrg
6049dbe7da2eSmrg  case $as_dir in #(
6050dbe7da2eSmrg  -*) as_dir=./$as_dir;;
6051dbe7da2eSmrg  esac
6052dbe7da2eSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
6053dbe7da2eSmrg    as_dirs=
6054dbe7da2eSmrg    while :; do
6055dbe7da2eSmrg      case $as_dir in #(
6056dbe7da2eSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6057dbe7da2eSmrg      *) as_qdir=$as_dir;;
6058dbe7da2eSmrg      esac
6059dbe7da2eSmrg      as_dirs="'$as_qdir' $as_dirs"
6060dbe7da2eSmrg      as_dir=`$as_dirname -- "$as_dir" ||
6061dbe7da2eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6062dbe7da2eSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
6063dbe7da2eSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6064dbe7da2eSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6065dbe7da2eSmrg$as_echo X"$as_dir" |
6066dbe7da2eSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6067dbe7da2eSmrg	    s//\1/
6068dbe7da2eSmrg	    q
6069dbe7da2eSmrg	  }
6070dbe7da2eSmrg	  /^X\(\/\/\)[^/].*/{
6071dbe7da2eSmrg	    s//\1/
6072dbe7da2eSmrg	    q
6073dbe7da2eSmrg	  }
6074dbe7da2eSmrg	  /^X\(\/\/\)$/{
6075dbe7da2eSmrg	    s//\1/
6076dbe7da2eSmrg	    q
6077dbe7da2eSmrg	  }
6078dbe7da2eSmrg	  /^X\(\/\).*/{
6079dbe7da2eSmrg	    s//\1/
6080dbe7da2eSmrg	    q
6081dbe7da2eSmrg	  }
6082dbe7da2eSmrg	  s/.*/./; q'`
6083dbe7da2eSmrg      test -d "$as_dir" && break
6084dbe7da2eSmrg    done
6085dbe7da2eSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6086dbe7da2eSmrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6087dbe7da2eSmrg
6088dbe7da2eSmrg
6089dbe7da2eSmrg} # as_fn_mkdir_p
6090a8fdb4bcSmrgif mkdir -p . 2>/dev/null; then
6091dbe7da2eSmrg  as_mkdir_p='mkdir -p "$as_dir"'
6092a8fdb4bcSmrgelse
6093a8fdb4bcSmrg  test -d ./-p && rmdir ./-p
6094a8fdb4bcSmrg  as_mkdir_p=false
6095a8fdb4bcSmrgfi
6096a8fdb4bcSmrg
6097a8fdb4bcSmrgif test -x / >/dev/null 2>&1; then
6098a8fdb4bcSmrg  as_test_x='test -x'
6099a8fdb4bcSmrgelse
6100a8fdb4bcSmrg  if ls -dL / >/dev/null 2>&1; then
6101a8fdb4bcSmrg    as_ls_L_option=L
6102a8fdb4bcSmrg  else
6103a8fdb4bcSmrg    as_ls_L_option=
6104a8fdb4bcSmrg  fi
6105a8fdb4bcSmrg  as_test_x='
6106a8fdb4bcSmrg    eval sh -c '\''
6107a8fdb4bcSmrg      if test -d "$1"; then
6108dbe7da2eSmrg	test -d "$1/.";
6109a8fdb4bcSmrg      else
6110dbe7da2eSmrg	case $1 in #(
6111dbe7da2eSmrg	-*)set "./$1";;
6112a8fdb4bcSmrg	esac;
6113dbe7da2eSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6114a8fdb4bcSmrg	???[sx]*):;;*)false;;esac;fi
6115a8fdb4bcSmrg    '\'' sh
6116a8fdb4bcSmrg  '
6117a8fdb4bcSmrgfi
6118a8fdb4bcSmrgas_executable_p=$as_test_x
6119a8fdb4bcSmrg
6120a8fdb4bcSmrg# Sed expression to map a string onto a valid CPP name.
6121a8fdb4bcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6122a8fdb4bcSmrg
6123a8fdb4bcSmrg# Sed expression to map a string onto a valid variable name.
6124a8fdb4bcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6125a8fdb4bcSmrg
6126a8fdb4bcSmrg
6127a8fdb4bcSmrgexec 6>&1
6128dbe7da2eSmrg## ----------------------------------- ##
6129dbe7da2eSmrg## Main body of $CONFIG_STATUS script. ##
6130dbe7da2eSmrg## ----------------------------------- ##
6131dbe7da2eSmrg_ASEOF
6132dbe7da2eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6133a8fdb4bcSmrg
6134dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6135dbe7da2eSmrg# Save the log message, to keep $0 and so on meaningful, and to
6136a8fdb4bcSmrg# report actual input values of CONFIG_FILES etc. instead of their
6137a8fdb4bcSmrg# values after options handling.
6138a8fdb4bcSmrgac_log="
6139dbe7da2eSmrgThis file was extended by luit $as_me 1.0.5, which was
6140dbe7da2eSmrggenerated by GNU Autoconf 2.65.  Invocation command line was
6141a8fdb4bcSmrg
6142a8fdb4bcSmrg  CONFIG_FILES    = $CONFIG_FILES
6143a8fdb4bcSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
6144a8fdb4bcSmrg  CONFIG_LINKS    = $CONFIG_LINKS
6145a8fdb4bcSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
6146a8fdb4bcSmrg  $ $0 $@
6147a8fdb4bcSmrg
6148a8fdb4bcSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
6149a8fdb4bcSmrg"
6150a8fdb4bcSmrg
6151a8fdb4bcSmrg_ACEOF
6152a8fdb4bcSmrg
6153dbe7da2eSmrgcase $ac_config_files in *"
6154dbe7da2eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
6155dbe7da2eSmrgesac
6156dbe7da2eSmrg
6157dbe7da2eSmrgcase $ac_config_headers in *"
6158dbe7da2eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6159dbe7da2eSmrgesac
6160dbe7da2eSmrg
6161dbe7da2eSmrg
6162dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6163a8fdb4bcSmrg# Files that config.status was made for.
6164a8fdb4bcSmrgconfig_files="$ac_config_files"
6165a8fdb4bcSmrgconfig_headers="$ac_config_headers"
6166a8fdb4bcSmrgconfig_commands="$ac_config_commands"
6167a8fdb4bcSmrg
6168a8fdb4bcSmrg_ACEOF
6169a8fdb4bcSmrg
6170dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6171a8fdb4bcSmrgac_cs_usage="\
6172dbe7da2eSmrg\`$as_me' instantiates files and other configuration actions
6173dbe7da2eSmrgfrom templates according to the current configuration.  Unless the files
6174dbe7da2eSmrgand actions are specified as TAGs, all are instantiated by default.
6175a8fdb4bcSmrg
6176dbe7da2eSmrgUsage: $0 [OPTION]... [TAG]...
6177a8fdb4bcSmrg
6178a8fdb4bcSmrg  -h, --help       print this help, then exit
6179a8fdb4bcSmrg  -V, --version    print version number and configuration settings, then exit
6180dbe7da2eSmrg      --config     print configuration, then exit
6181dbe7da2eSmrg  -q, --quiet, --silent
6182dbe7da2eSmrg                   do not print progress messages
6183a8fdb4bcSmrg  -d, --debug      don't remove temporary files
6184a8fdb4bcSmrg      --recheck    update $as_me by reconfiguring in the same conditions
6185dbe7da2eSmrg      --file=FILE[:TEMPLATE]
6186dbe7da2eSmrg                   instantiate the configuration file FILE
6187dbe7da2eSmrg      --header=FILE[:TEMPLATE]
6188dbe7da2eSmrg                   instantiate the configuration header FILE
6189a8fdb4bcSmrg
6190a8fdb4bcSmrgConfiguration files:
6191a8fdb4bcSmrg$config_files
6192a8fdb4bcSmrg
6193a8fdb4bcSmrgConfiguration headers:
6194a8fdb4bcSmrg$config_headers
6195a8fdb4bcSmrg
6196a8fdb4bcSmrgConfiguration commands:
6197a8fdb4bcSmrg$config_commands
6198a8fdb4bcSmrg
6199dbe7da2eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
6200a8fdb4bcSmrg
6201a8fdb4bcSmrg_ACEOF
6202dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6203dbe7da2eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6204a8fdb4bcSmrgac_cs_version="\\
6205dbe7da2eSmrgluit config.status 1.0.5
6206dbe7da2eSmrgconfigured by $0, generated by GNU Autoconf 2.65,
6207dbe7da2eSmrg  with options \\"\$ac_cs_config\\"
6208a8fdb4bcSmrg
6209dbe7da2eSmrgCopyright (C) 2009 Free Software Foundation, Inc.
6210a8fdb4bcSmrgThis config.status script is free software; the Free Software Foundation
6211a8fdb4bcSmrggives unlimited permission to copy, distribute and modify it."
6212a8fdb4bcSmrg
6213a8fdb4bcSmrgac_pwd='$ac_pwd'
6214a8fdb4bcSmrgsrcdir='$srcdir'
6215a8fdb4bcSmrgINSTALL='$INSTALL'
6216a8fdb4bcSmrgMKDIR_P='$MKDIR_P'
6217dbe7da2eSmrgAWK='$AWK'
6218dbe7da2eSmrgtest -n "\$AWK" || AWK=awk
6219a8fdb4bcSmrg_ACEOF
6220a8fdb4bcSmrg
6221dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6222dbe7da2eSmrg# The default lists apply if the user does not specify any file.
6223a8fdb4bcSmrgac_need_defaults=:
6224a8fdb4bcSmrgwhile test $# != 0
6225a8fdb4bcSmrgdo
6226a8fdb4bcSmrg  case $1 in
6227a8fdb4bcSmrg  --*=*)
6228a8fdb4bcSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6229a8fdb4bcSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6230a8fdb4bcSmrg    ac_shift=:
6231a8fdb4bcSmrg    ;;
6232a8fdb4bcSmrg  *)
6233a8fdb4bcSmrg    ac_option=$1
6234a8fdb4bcSmrg    ac_optarg=$2
6235a8fdb4bcSmrg    ac_shift=shift
6236a8fdb4bcSmrg    ;;
6237a8fdb4bcSmrg  esac
6238a8fdb4bcSmrg
6239a8fdb4bcSmrg  case $ac_option in
6240a8fdb4bcSmrg  # Handling of the options.
6241a8fdb4bcSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6242a8fdb4bcSmrg    ac_cs_recheck=: ;;
6243a8fdb4bcSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6244dbe7da2eSmrg    $as_echo "$ac_cs_version"; exit ;;
6245dbe7da2eSmrg  --config | --confi | --conf | --con | --co | --c )
6246dbe7da2eSmrg    $as_echo "$ac_cs_config"; exit ;;
6247a8fdb4bcSmrg  --debug | --debu | --deb | --de | --d | -d )
6248a8fdb4bcSmrg    debug=: ;;
6249a8fdb4bcSmrg  --file | --fil | --fi | --f )
6250a8fdb4bcSmrg    $ac_shift
6251dbe7da2eSmrg    case $ac_optarg in
6252dbe7da2eSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6253dbe7da2eSmrg    esac
6254dbe7da2eSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
6255a8fdb4bcSmrg    ac_need_defaults=false;;
6256a8fdb4bcSmrg  --header | --heade | --head | --hea )
6257a8fdb4bcSmrg    $ac_shift
6258dbe7da2eSmrg    case $ac_optarg in
6259dbe7da2eSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6260dbe7da2eSmrg    esac
6261dbe7da2eSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6262a8fdb4bcSmrg    ac_need_defaults=false;;
6263a8fdb4bcSmrg  --he | --h)
6264a8fdb4bcSmrg    # Conflict between --help and --header
6265dbe7da2eSmrg    as_fn_error "ambiguous option: \`$1'
6266dbe7da2eSmrgTry \`$0 --help' for more information.";;
6267a8fdb4bcSmrg  --help | --hel | -h )
6268dbe7da2eSmrg    $as_echo "$ac_cs_usage"; exit ;;
6269a8fdb4bcSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6270a8fdb4bcSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6271a8fdb4bcSmrg    ac_cs_silent=: ;;
6272a8fdb4bcSmrg
6273a8fdb4bcSmrg  # This is an error.
6274dbe7da2eSmrg  -*) as_fn_error "unrecognized option: \`$1'
6275dbe7da2eSmrgTry \`$0 --help' for more information." ;;
6276a8fdb4bcSmrg
6277dbe7da2eSmrg  *) as_fn_append ac_config_targets " $1"
6278a8fdb4bcSmrg     ac_need_defaults=false ;;
6279a8fdb4bcSmrg
6280a8fdb4bcSmrg  esac
6281a8fdb4bcSmrg  shift
6282a8fdb4bcSmrgdone
6283a8fdb4bcSmrg
6284a8fdb4bcSmrgac_configure_extra_args=
6285a8fdb4bcSmrg
6286a8fdb4bcSmrgif $ac_cs_silent; then
6287a8fdb4bcSmrg  exec 6>/dev/null
6288a8fdb4bcSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
6289a8fdb4bcSmrgfi
6290a8fdb4bcSmrg
6291a8fdb4bcSmrg_ACEOF
6292dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6293a8fdb4bcSmrgif \$ac_cs_recheck; then
6294dbe7da2eSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6295dbe7da2eSmrg  shift
6296dbe7da2eSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6297dbe7da2eSmrg  CONFIG_SHELL='$SHELL'
6298a8fdb4bcSmrg  export CONFIG_SHELL
6299dbe7da2eSmrg  exec "\$@"
6300a8fdb4bcSmrgfi
6301a8fdb4bcSmrg
6302a8fdb4bcSmrg_ACEOF
6303dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6304a8fdb4bcSmrgexec 5>>config.log
6305a8fdb4bcSmrg{
6306a8fdb4bcSmrg  echo
6307a8fdb4bcSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6308a8fdb4bcSmrg## Running $as_me. ##
6309a8fdb4bcSmrg_ASBOX
6310dbe7da2eSmrg  $as_echo "$ac_log"
6311a8fdb4bcSmrg} >&5
6312a8fdb4bcSmrg
6313a8fdb4bcSmrg_ACEOF
6314dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6315a8fdb4bcSmrg#
6316a8fdb4bcSmrg# INIT-COMMANDS
6317a8fdb4bcSmrg#
6318a8fdb4bcSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6319a8fdb4bcSmrg
6320a8fdb4bcSmrg_ACEOF
6321a8fdb4bcSmrg
6322dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6323a8fdb4bcSmrg
6324a8fdb4bcSmrg# Handling of arguments.
6325a8fdb4bcSmrgfor ac_config_target in $ac_config_targets
6326a8fdb4bcSmrgdo
6327a8fdb4bcSmrg  case $ac_config_target in
6328a8fdb4bcSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6329dbe7da2eSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6330a8fdb4bcSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6331a8fdb4bcSmrg
6332dbe7da2eSmrg  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6333a8fdb4bcSmrg  esac
6334a8fdb4bcSmrgdone
6335a8fdb4bcSmrg
6336a8fdb4bcSmrg
6337a8fdb4bcSmrg# If the user did not use the arguments to specify the items to instantiate,
6338a8fdb4bcSmrg# then the envvar interface is used.  Set only those that are not.
6339a8fdb4bcSmrg# We use the long form for the default assignment because of an extremely
6340a8fdb4bcSmrg# bizarre bug on SunOS 4.1.3.
6341a8fdb4bcSmrgif $ac_need_defaults; then
6342a8fdb4bcSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6343a8fdb4bcSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6344a8fdb4bcSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6345a8fdb4bcSmrgfi
6346a8fdb4bcSmrg
6347a8fdb4bcSmrg# Have a temporary directory for convenience.  Make it in the build tree
6348a8fdb4bcSmrg# simply because there is no reason against having it here, and in addition,
6349a8fdb4bcSmrg# creating and moving files from /tmp can sometimes cause problems.
6350a8fdb4bcSmrg# Hook for its removal unless debugging.
6351a8fdb4bcSmrg# Note that there is a small window in which the directory will not be cleaned:
6352a8fdb4bcSmrg# after its creation but before its name has been assigned to `$tmp'.
6353a8fdb4bcSmrg$debug ||
6354a8fdb4bcSmrg{
6355a8fdb4bcSmrg  tmp=
6356a8fdb4bcSmrg  trap 'exit_status=$?
6357a8fdb4bcSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6358a8fdb4bcSmrg' 0
6359dbe7da2eSmrg  trap 'as_fn_exit 1' 1 2 13 15
6360a8fdb4bcSmrg}
6361a8fdb4bcSmrg# Create a (secure) tmp directory for tmp files.
6362a8fdb4bcSmrg
6363a8fdb4bcSmrg{
6364a8fdb4bcSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6365a8fdb4bcSmrg  test -n "$tmp" && test -d "$tmp"
6366a8fdb4bcSmrg}  ||
6367a8fdb4bcSmrg{
6368a8fdb4bcSmrg  tmp=./conf$$-$RANDOM
6369a8fdb4bcSmrg  (umask 077 && mkdir "$tmp")
6370dbe7da2eSmrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6371a8fdb4bcSmrg
6372dbe7da2eSmrg# Set up the scripts for CONFIG_FILES section.
6373dbe7da2eSmrg# No need to generate them if there are no CONFIG_FILES.
6374dbe7da2eSmrg# This happens for instance with `./config.status config.h'.
6375a8fdb4bcSmrgif test -n "$CONFIG_FILES"; then
6376a8fdb4bcSmrg
6377a8fdb4bcSmrg
6378dbe7da2eSmrgac_cr=`echo X | tr X '\015'`
6379dbe7da2eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
6380dbe7da2eSmrg# But we know of no other shell where ac_cr would be empty at this
6381dbe7da2eSmrg# point, so we can use a bashism as a fallback.
6382dbe7da2eSmrgif test "x$ac_cr" = x; then
6383dbe7da2eSmrg  eval ac_cr=\$\'\\r\'
6384dbe7da2eSmrgfi
6385dbe7da2eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6386dbe7da2eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6387dbe7da2eSmrg  ac_cs_awk_cr='\r'
6388dbe7da2eSmrgelse
6389dbe7da2eSmrg  ac_cs_awk_cr=$ac_cr
6390a8fdb4bcSmrgfi
6391a8fdb4bcSmrg
6392dbe7da2eSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
6393a8fdb4bcSmrg_ACEOF
6394a8fdb4bcSmrg
6395a8fdb4bcSmrg
6396dbe7da2eSmrg{
6397dbe7da2eSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
6398dbe7da2eSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6399dbe7da2eSmrg  echo "_ACEOF"
6400dbe7da2eSmrg} >conf$$subs.sh ||
6401dbe7da2eSmrg  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6402dbe7da2eSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6403a8fdb4bcSmrgac_delim='%!_!# '
6404a8fdb4bcSmrgfor ac_last_try in false false false false false :; do
6405dbe7da2eSmrg  . ./conf$$subs.sh ||
6406dbe7da2eSmrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6407a8fdb4bcSmrg
6408dbe7da2eSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6409dbe7da2eSmrg  if test $ac_delim_n = $ac_delim_num; then
6410a8fdb4bcSmrg    break
6411a8fdb4bcSmrg  elif $ac_last_try; then
6412dbe7da2eSmrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6413a8fdb4bcSmrg  else
6414a8fdb4bcSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6415a8fdb4bcSmrg  fi
6416a8fdb4bcSmrgdone
6417dbe7da2eSmrgrm -f conf$$subs.sh
6418a8fdb4bcSmrg
6419dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6420dbe7da2eSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6421dbe7da2eSmrg_ACEOF
6422dbe7da2eSmrgsed -n '
6423dbe7da2eSmrgh
6424dbe7da2eSmrgs/^/S["/; s/!.*/"]=/
6425dbe7da2eSmrgp
6426dbe7da2eSmrgg
6427dbe7da2eSmrgs/^[^!]*!//
6428dbe7da2eSmrg:repl
6429dbe7da2eSmrgt repl
6430dbe7da2eSmrgs/'"$ac_delim"'$//
6431dbe7da2eSmrgt delim
6432dbe7da2eSmrg:nl
6433dbe7da2eSmrgh
6434dbe7da2eSmrgs/\(.\{148\}\)..*/\1/
6435dbe7da2eSmrgt more1
6436dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6437dbe7da2eSmrgp
6438dbe7da2eSmrgn
6439dbe7da2eSmrgb repl
6440dbe7da2eSmrg:more1
6441dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6442dbe7da2eSmrgp
6443dbe7da2eSmrgg
6444dbe7da2eSmrgs/.\{148\}//
6445dbe7da2eSmrgt nl
6446dbe7da2eSmrg:delim
6447dbe7da2eSmrgh
6448dbe7da2eSmrgs/\(.\{148\}\)..*/\1/
6449dbe7da2eSmrgt more2
6450dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6451dbe7da2eSmrgp
6452dbe7da2eSmrgb
6453dbe7da2eSmrg:more2
6454dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6455dbe7da2eSmrgp
6456dbe7da2eSmrgg
6457dbe7da2eSmrgs/.\{148\}//
6458dbe7da2eSmrgt delim
6459dbe7da2eSmrg' <conf$$subs.awk | sed '
6460dbe7da2eSmrg/^[^""]/{
6461dbe7da2eSmrg  N
6462dbe7da2eSmrg  s/\n//
6463dbe7da2eSmrg}
6464dbe7da2eSmrg' >>$CONFIG_STATUS || ac_write_fail=1
6465dbe7da2eSmrgrm -f conf$$subs.awk
6466dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6467dbe7da2eSmrg_ACAWK
6468dbe7da2eSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
6469dbe7da2eSmrg  for (key in S) S_is_set[key] = 1
6470dbe7da2eSmrg  FS = ""
6471dbe7da2eSmrg
6472dbe7da2eSmrg}
6473dbe7da2eSmrg{
6474dbe7da2eSmrg  line = $ 0
6475dbe7da2eSmrg  nfields = split(line, field, "@")
6476dbe7da2eSmrg  substed = 0
6477dbe7da2eSmrg  len = length(field[1])
6478dbe7da2eSmrg  for (i = 2; i < nfields; i++) {
6479dbe7da2eSmrg    key = field[i]
6480dbe7da2eSmrg    keylen = length(key)
6481dbe7da2eSmrg    if (S_is_set[key]) {
6482dbe7da2eSmrg      value = S[key]
6483dbe7da2eSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6484dbe7da2eSmrg      len += length(value) + length(field[++i])
6485dbe7da2eSmrg      substed = 1
6486dbe7da2eSmrg    } else
6487dbe7da2eSmrg      len += 1 + keylen
6488dbe7da2eSmrg  }
6489dbe7da2eSmrg
6490dbe7da2eSmrg  print line
6491dbe7da2eSmrg}
6492a8fdb4bcSmrg
6493dbe7da2eSmrg_ACAWK
6494a8fdb4bcSmrg_ACEOF
6495dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6496dbe7da2eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6497dbe7da2eSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6498dbe7da2eSmrgelse
6499dbe7da2eSmrg  cat
6500dbe7da2eSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6501dbe7da2eSmrg  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6502a8fdb4bcSmrg_ACEOF
6503a8fdb4bcSmrg
6504a8fdb4bcSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
6505a8fdb4bcSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6506a8fdb4bcSmrg# trailing colons and then remove the whole line if VPATH becomes empty
6507a8fdb4bcSmrg# (actually we leave an empty line to preserve line numbers).
6508a8fdb4bcSmrgif test "x$srcdir" = x.; then
6509a8fdb4bcSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6510a8fdb4bcSmrgs/:*\$(srcdir):*/:/
6511a8fdb4bcSmrgs/:*\${srcdir}:*/:/
6512a8fdb4bcSmrgs/:*@srcdir@:*/:/
6513a8fdb4bcSmrgs/^\([^=]*=[	 ]*\):*/\1/
6514a8fdb4bcSmrgs/:*$//
6515a8fdb4bcSmrgs/^[^=]*=[	 ]*$//
6516a8fdb4bcSmrg}'
6517a8fdb4bcSmrgfi
6518a8fdb4bcSmrg
6519dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6520a8fdb4bcSmrgfi # test -n "$CONFIG_FILES"
6521a8fdb4bcSmrg
6522dbe7da2eSmrg# Set up the scripts for CONFIG_HEADERS section.
6523dbe7da2eSmrg# No need to generate them if there are no CONFIG_HEADERS.
6524dbe7da2eSmrg# This happens for instance with `./config.status Makefile'.
6525dbe7da2eSmrgif test -n "$CONFIG_HEADERS"; then
6526dbe7da2eSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
6527dbe7da2eSmrgBEGIN {
6528dbe7da2eSmrg_ACEOF
6529dbe7da2eSmrg
6530dbe7da2eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6531dbe7da2eSmrg# here-document in config.status, that substitutes the proper values into
6532dbe7da2eSmrg# config.h.in to produce config.h.
6533dbe7da2eSmrg
6534dbe7da2eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
6535dbe7da2eSmrg# handling of long lines.
6536dbe7da2eSmrgac_delim='%!_!# '
6537dbe7da2eSmrgfor ac_last_try in false false :; do
6538dbe7da2eSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6539dbe7da2eSmrg  if test -z "$ac_t"; then
6540dbe7da2eSmrg    break
6541dbe7da2eSmrg  elif $ac_last_try; then
6542dbe7da2eSmrg    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6543dbe7da2eSmrg  else
6544dbe7da2eSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6545dbe7da2eSmrg  fi
6546dbe7da2eSmrgdone
6547dbe7da2eSmrg
6548dbe7da2eSmrg# For the awk script, D is an array of macro values keyed by name,
6549dbe7da2eSmrg# likewise P contains macro parameters if any.  Preserve backslash
6550dbe7da2eSmrg# newline sequences.
6551dbe7da2eSmrg
6552dbe7da2eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6553dbe7da2eSmrgsed -n '
6554dbe7da2eSmrgs/.\{148\}/&'"$ac_delim"'/g
6555dbe7da2eSmrgt rset
6556dbe7da2eSmrg:rset
6557dbe7da2eSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6558dbe7da2eSmrgt def
6559dbe7da2eSmrgd
6560dbe7da2eSmrg:def
6561dbe7da2eSmrgs/\\$//
6562dbe7da2eSmrgt bsnl
6563dbe7da2eSmrgs/["\\]/\\&/g
6564dbe7da2eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6565dbe7da2eSmrgD["\1"]=" \3"/p
6566dbe7da2eSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6567dbe7da2eSmrgd
6568dbe7da2eSmrg:bsnl
6569dbe7da2eSmrgs/["\\]/\\&/g
6570dbe7da2eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6571dbe7da2eSmrgD["\1"]=" \3\\\\\\n"\\/p
6572dbe7da2eSmrgt cont
6573dbe7da2eSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6574dbe7da2eSmrgt cont
6575dbe7da2eSmrgd
6576dbe7da2eSmrg:cont
6577dbe7da2eSmrgn
6578dbe7da2eSmrgs/.\{148\}/&'"$ac_delim"'/g
6579dbe7da2eSmrgt clear
6580dbe7da2eSmrg:clear
6581dbe7da2eSmrgs/\\$//
6582dbe7da2eSmrgt bsnlc
6583dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6584dbe7da2eSmrgd
6585dbe7da2eSmrg:bsnlc
6586dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6587dbe7da2eSmrgb cont
6588dbe7da2eSmrg' <confdefs.h | sed '
6589dbe7da2eSmrgs/'"$ac_delim"'/"\\\
6590dbe7da2eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6591dbe7da2eSmrg
6592dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6593dbe7da2eSmrg  for (key in D) D_is_set[key] = 1
6594dbe7da2eSmrg  FS = ""
6595dbe7da2eSmrg}
6596dbe7da2eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6597dbe7da2eSmrg  line = \$ 0
6598dbe7da2eSmrg  split(line, arg, " ")
6599dbe7da2eSmrg  if (arg[1] == "#") {
6600dbe7da2eSmrg    defundef = arg[2]
6601dbe7da2eSmrg    mac1 = arg[3]
6602dbe7da2eSmrg  } else {
6603dbe7da2eSmrg    defundef = substr(arg[1], 2)
6604dbe7da2eSmrg    mac1 = arg[2]
6605dbe7da2eSmrg  }
6606dbe7da2eSmrg  split(mac1, mac2, "(") #)
6607dbe7da2eSmrg  macro = mac2[1]
6608dbe7da2eSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
6609dbe7da2eSmrg  if (D_is_set[macro]) {
6610dbe7da2eSmrg    # Preserve the white space surrounding the "#".
6611dbe7da2eSmrg    print prefix "define", macro P[macro] D[macro]
6612dbe7da2eSmrg    next
6613dbe7da2eSmrg  } else {
6614dbe7da2eSmrg    # Replace #undef with comments.  This is necessary, for example,
6615dbe7da2eSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
6616dbe7da2eSmrg    # on some systems where configure will not decide to define it.
6617dbe7da2eSmrg    if (defundef == "undef") {
6618dbe7da2eSmrg      print "/*", prefix defundef, macro, "*/"
6619dbe7da2eSmrg      next
6620dbe7da2eSmrg    }
6621dbe7da2eSmrg  }
6622dbe7da2eSmrg}
6623dbe7da2eSmrg{ print }
6624dbe7da2eSmrg_ACAWK
6625dbe7da2eSmrg_ACEOF
6626dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6627dbe7da2eSmrg  as_fn_error "could not setup config headers machinery" "$LINENO" 5
6628dbe7da2eSmrgfi # test -n "$CONFIG_HEADERS"
6629dbe7da2eSmrg
6630a8fdb4bcSmrg
6631dbe7da2eSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6632dbe7da2eSmrgshift
6633dbe7da2eSmrgfor ac_tag
6634a8fdb4bcSmrgdo
6635a8fdb4bcSmrg  case $ac_tag in
6636a8fdb4bcSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6637a8fdb4bcSmrg  esac
6638a8fdb4bcSmrg  case $ac_mode$ac_tag in
6639a8fdb4bcSmrg  :[FHL]*:*);;
6640dbe7da2eSmrg  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6641a8fdb4bcSmrg  :[FH]-) ac_tag=-:-;;
6642a8fdb4bcSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6643a8fdb4bcSmrg  esac
6644a8fdb4bcSmrg  ac_save_IFS=$IFS
6645a8fdb4bcSmrg  IFS=:
6646a8fdb4bcSmrg  set x $ac_tag
6647a8fdb4bcSmrg  IFS=$ac_save_IFS
6648a8fdb4bcSmrg  shift
6649a8fdb4bcSmrg  ac_file=$1
6650a8fdb4bcSmrg  shift
6651a8fdb4bcSmrg
6652a8fdb4bcSmrg  case $ac_mode in
6653a8fdb4bcSmrg  :L) ac_source=$1;;
6654a8fdb4bcSmrg  :[FH])
6655a8fdb4bcSmrg    ac_file_inputs=
6656a8fdb4bcSmrg    for ac_f
6657a8fdb4bcSmrg    do
6658a8fdb4bcSmrg      case $ac_f in
6659a8fdb4bcSmrg      -) ac_f="$tmp/stdin";;
6660a8fdb4bcSmrg      *) # Look for the file first in the build tree, then in the source tree
6661a8fdb4bcSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6662a8fdb4bcSmrg	 # because $ac_f cannot contain `:'.
6663a8fdb4bcSmrg	 test -f "$ac_f" ||
6664a8fdb4bcSmrg	   case $ac_f in
6665a8fdb4bcSmrg	   [\\/$]*) false;;
6666a8fdb4bcSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6667a8fdb4bcSmrg	   esac ||
6668dbe7da2eSmrg	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6669a8fdb4bcSmrg      esac
6670dbe7da2eSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6671dbe7da2eSmrg      as_fn_append ac_file_inputs " '$ac_f'"
6672a8fdb4bcSmrg    done
6673a8fdb4bcSmrg
6674a8fdb4bcSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6675a8fdb4bcSmrg    # use $as_me), people would be surprised to read:
6676a8fdb4bcSmrg    #    /* config.h.  Generated by config.status.  */
6677dbe7da2eSmrg    configure_input='Generated from '`
6678dbe7da2eSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6679dbe7da2eSmrg	`' by configure.'
6680a8fdb4bcSmrg    if test x"$ac_file" != x-; then
6681a8fdb4bcSmrg      configure_input="$ac_file.  $configure_input"
6682dbe7da2eSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6683dbe7da2eSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6684a8fdb4bcSmrg    fi
6685dbe7da2eSmrg    # Neutralize special characters interpreted by sed in replacement strings.
6686dbe7da2eSmrg    case $configure_input in #(
6687dbe7da2eSmrg    *\&* | *\|* | *\\* )
6688dbe7da2eSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6689dbe7da2eSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6690dbe7da2eSmrg    *) ac_sed_conf_input=$configure_input;;
6691dbe7da2eSmrg    esac
6692a8fdb4bcSmrg
6693a8fdb4bcSmrg    case $ac_tag in
6694dbe7da2eSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
6695dbe7da2eSmrg      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6696a8fdb4bcSmrg    esac
6697a8fdb4bcSmrg    ;;
6698a8fdb4bcSmrg  esac
6699a8fdb4bcSmrg
6700a8fdb4bcSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
6701a8fdb4bcSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6702a8fdb4bcSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6703a8fdb4bcSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6704a8fdb4bcSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6705dbe7da2eSmrg$as_echo X"$ac_file" |
6706a8fdb4bcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6707a8fdb4bcSmrg	    s//\1/
6708a8fdb4bcSmrg	    q
6709a8fdb4bcSmrg	  }
6710a8fdb4bcSmrg	  /^X\(\/\/\)[^/].*/{
6711a8fdb4bcSmrg	    s//\1/
6712a8fdb4bcSmrg	    q
6713a8fdb4bcSmrg	  }
6714a8fdb4bcSmrg	  /^X\(\/\/\)$/{
6715a8fdb4bcSmrg	    s//\1/
6716a8fdb4bcSmrg	    q
6717a8fdb4bcSmrg	  }
6718a8fdb4bcSmrg	  /^X\(\/\).*/{
6719a8fdb4bcSmrg	    s//\1/
6720a8fdb4bcSmrg	    q
6721a8fdb4bcSmrg	  }
6722a8fdb4bcSmrg	  s/.*/./; q'`
6723dbe7da2eSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
6724a8fdb4bcSmrg  ac_builddir=.
6725a8fdb4bcSmrg
6726a8fdb4bcSmrgcase "$ac_dir" in
6727a8fdb4bcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6728a8fdb4bcSmrg*)
6729dbe7da2eSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6730a8fdb4bcSmrg  # A ".." for each directory in $ac_dir_suffix.
6731dbe7da2eSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6732a8fdb4bcSmrg  case $ac_top_builddir_sub in
6733a8fdb4bcSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6734a8fdb4bcSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6735a8fdb4bcSmrg  esac ;;
6736a8fdb4bcSmrgesac
6737a8fdb4bcSmrgac_abs_top_builddir=$ac_pwd
6738a8fdb4bcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6739a8fdb4bcSmrg# for backward compatibility:
6740a8fdb4bcSmrgac_top_builddir=$ac_top_build_prefix
6741a8fdb4bcSmrg
6742a8fdb4bcSmrgcase $srcdir in
6743a8fdb4bcSmrg  .)  # We are building in place.
6744a8fdb4bcSmrg    ac_srcdir=.
6745a8fdb4bcSmrg    ac_top_srcdir=$ac_top_builddir_sub
6746a8fdb4bcSmrg    ac_abs_top_srcdir=$ac_pwd ;;
6747a8fdb4bcSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6748a8fdb4bcSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
6749a8fdb4bcSmrg    ac_top_srcdir=$srcdir
6750a8fdb4bcSmrg    ac_abs_top_srcdir=$srcdir ;;
6751a8fdb4bcSmrg  *) # Relative name.
6752a8fdb4bcSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6753a8fdb4bcSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6754a8fdb4bcSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6755a8fdb4bcSmrgesac
6756a8fdb4bcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6757a8fdb4bcSmrg
6758a8fdb4bcSmrg
6759a8fdb4bcSmrg  case $ac_mode in
6760a8fdb4bcSmrg  :F)
6761a8fdb4bcSmrg  #
6762a8fdb4bcSmrg  # CONFIG_FILE
6763a8fdb4bcSmrg  #
6764a8fdb4bcSmrg
6765a8fdb4bcSmrg  case $INSTALL in
6766a8fdb4bcSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6767a8fdb4bcSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6768a8fdb4bcSmrg  esac
6769a8fdb4bcSmrg  ac_MKDIR_P=$MKDIR_P
6770a8fdb4bcSmrg  case $MKDIR_P in
6771a8fdb4bcSmrg  [\\/$]* | ?:[\\/]* ) ;;
6772a8fdb4bcSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6773a8fdb4bcSmrg  esac
6774a8fdb4bcSmrg_ACEOF
6775a8fdb4bcSmrg
6776dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6777a8fdb4bcSmrg# If the template does not know about datarootdir, expand it.
6778a8fdb4bcSmrg# FIXME: This hack should be removed a few years after 2.60.
6779a8fdb4bcSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6780dbe7da2eSmrgac_sed_dataroot='
6781dbe7da2eSmrg/datarootdir/ {
6782a8fdb4bcSmrg  p
6783a8fdb4bcSmrg  q
6784a8fdb4bcSmrg}
6785a8fdb4bcSmrg/@datadir@/p
6786a8fdb4bcSmrg/@docdir@/p
6787a8fdb4bcSmrg/@infodir@/p
6788a8fdb4bcSmrg/@localedir@/p
6789dbe7da2eSmrg/@mandir@/p'
6790dbe7da2eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6791a8fdb4bcSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6792a8fdb4bcSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6793dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6794dbe7da2eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6795a8fdb4bcSmrg_ACEOF
6796dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6797a8fdb4bcSmrg  ac_datarootdir_hack='
6798a8fdb4bcSmrg  s&@datadir@&$datadir&g
6799a8fdb4bcSmrg  s&@docdir@&$docdir&g
6800a8fdb4bcSmrg  s&@infodir@&$infodir&g
6801a8fdb4bcSmrg  s&@localedir@&$localedir&g
6802a8fdb4bcSmrg  s&@mandir@&$mandir&g
6803dbe7da2eSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6804a8fdb4bcSmrgesac
6805a8fdb4bcSmrg_ACEOF
6806a8fdb4bcSmrg
6807a8fdb4bcSmrg# Neutralize VPATH when `$srcdir' = `.'.
6808a8fdb4bcSmrg# Shell code in configure.ac might set extrasub.
6809a8fdb4bcSmrg# FIXME: do we really want to maintain this feature?
6810dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6811dbe7da2eSmrgac_sed_extra="$ac_vpsub
6812a8fdb4bcSmrg$extrasub
6813a8fdb4bcSmrg_ACEOF
6814dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6815a8fdb4bcSmrg:t
6816a8fdb4bcSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6817dbe7da2eSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6818a8fdb4bcSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6819dbe7da2eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6820a8fdb4bcSmrgs&@srcdir@&$ac_srcdir&;t t
6821a8fdb4bcSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6822a8fdb4bcSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6823a8fdb4bcSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6824a8fdb4bcSmrgs&@builddir@&$ac_builddir&;t t
6825a8fdb4bcSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6826a8fdb4bcSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6827a8fdb4bcSmrgs&@INSTALL@&$ac_INSTALL&;t t
6828a8fdb4bcSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6829a8fdb4bcSmrg$ac_datarootdir_hack
6830dbe7da2eSmrg"
6831dbe7da2eSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6832dbe7da2eSmrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
6833a8fdb4bcSmrg
6834a8fdb4bcSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6835a8fdb4bcSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6836a8fdb4bcSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6837dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6838a8fdb4bcSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
6839dbe7da2eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6840a8fdb4bcSmrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
6841a8fdb4bcSmrg
6842a8fdb4bcSmrg  rm -f "$tmp/stdin"
6843a8fdb4bcSmrg  case $ac_file in
6844dbe7da2eSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6845dbe7da2eSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6846dbe7da2eSmrg  esac \
6847dbe7da2eSmrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
6848a8fdb4bcSmrg ;;
6849a8fdb4bcSmrg  :H)
6850a8fdb4bcSmrg  #
6851a8fdb4bcSmrg  # CONFIG_HEADER
6852a8fdb4bcSmrg  #
6853a8fdb4bcSmrg  if test x"$ac_file" != x-; then
6854dbe7da2eSmrg    {
6855dbe7da2eSmrg      $as_echo "/* $configure_input  */" \
6856dbe7da2eSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6857dbe7da2eSmrg    } >"$tmp/config.h" \
6858dbe7da2eSmrg      || as_fn_error "could not create $ac_file" "$LINENO" 5
6859dbe7da2eSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6860dbe7da2eSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6861dbe7da2eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6862a8fdb4bcSmrg    else
6863dbe7da2eSmrg      rm -f "$ac_file"
6864dbe7da2eSmrg      mv "$tmp/config.h" "$ac_file" \
6865dbe7da2eSmrg	|| as_fn_error "could not create $ac_file" "$LINENO" 5
6866a8fdb4bcSmrg    fi
6867a8fdb4bcSmrg  else
6868dbe7da2eSmrg    $as_echo "/* $configure_input  */" \
6869dbe7da2eSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6870dbe7da2eSmrg      || as_fn_error "could not create -" "$LINENO" 5
6871a8fdb4bcSmrg  fi
6872dbe7da2eSmrg# Compute "$ac_file"'s index in $config_headers.
6873dbe7da2eSmrg_am_arg="$ac_file"
6874a8fdb4bcSmrg_am_stamp_count=1
6875a8fdb4bcSmrgfor _am_header in $config_headers :; do
6876a8fdb4bcSmrg  case $_am_header in
6877a8fdb4bcSmrg    $_am_arg | $_am_arg:* )
6878a8fdb4bcSmrg      break ;;
6879a8fdb4bcSmrg    * )
6880a8fdb4bcSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6881a8fdb4bcSmrg  esac
6882a8fdb4bcSmrgdone
6883a8fdb4bcSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6884a8fdb4bcSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6885a8fdb4bcSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6886a8fdb4bcSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6887a8fdb4bcSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6888dbe7da2eSmrg$as_echo X"$_am_arg" |
6889a8fdb4bcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6890a8fdb4bcSmrg	    s//\1/
6891a8fdb4bcSmrg	    q
6892a8fdb4bcSmrg	  }
6893a8fdb4bcSmrg	  /^X\(\/\/\)[^/].*/{
6894a8fdb4bcSmrg	    s//\1/
6895a8fdb4bcSmrg	    q
6896a8fdb4bcSmrg	  }
6897a8fdb4bcSmrg	  /^X\(\/\/\)$/{
6898a8fdb4bcSmrg	    s//\1/
6899a8fdb4bcSmrg	    q
6900a8fdb4bcSmrg	  }
6901a8fdb4bcSmrg	  /^X\(\/\).*/{
6902a8fdb4bcSmrg	    s//\1/
6903a8fdb4bcSmrg	    q
6904a8fdb4bcSmrg	  }
6905a8fdb4bcSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6906a8fdb4bcSmrg ;;
6907a8fdb4bcSmrg
6908dbe7da2eSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6909dbe7da2eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6910a8fdb4bcSmrg ;;
6911a8fdb4bcSmrg  esac
6912a8fdb4bcSmrg
6913a8fdb4bcSmrg
6914a8fdb4bcSmrg  case $ac_file$ac_mode in
6915dbe7da2eSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6916dbe7da2eSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6917dbe7da2eSmrg  # are listed without --file.  Let's play safe and only enable the eval
6918dbe7da2eSmrg  # if we detect the quoting.
6919dbe7da2eSmrg  case $CONFIG_FILES in
6920dbe7da2eSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6921dbe7da2eSmrg  *)   set x $CONFIG_FILES ;;
6922dbe7da2eSmrg  esac
6923dbe7da2eSmrg  shift
6924dbe7da2eSmrg  for mf
6925dbe7da2eSmrg  do
6926dbe7da2eSmrg    # Strip MF so we end up with the name of the file.
6927dbe7da2eSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6928dbe7da2eSmrg    # Check whether this is an Automake generated Makefile or not.
6929dbe7da2eSmrg    # We used to match only the files named `Makefile.in', but
6930dbe7da2eSmrg    # some people rename them; so instead we look at the file content.
6931dbe7da2eSmrg    # Grep'ing the first line is not enough: some people post-process
6932dbe7da2eSmrg    # each Makefile.in and add a new line on top of each file to say so.
6933dbe7da2eSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6934dbe7da2eSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6935dbe7da2eSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6936dbe7da2eSmrg      dirpart=`$as_dirname -- "$mf" ||
6937a8fdb4bcSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6938a8fdb4bcSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6939a8fdb4bcSmrg	 X"$mf" : 'X\(//\)$' \| \
6940a8fdb4bcSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6941dbe7da2eSmrg$as_echo X"$mf" |
6942a8fdb4bcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6943a8fdb4bcSmrg	    s//\1/
6944a8fdb4bcSmrg	    q
6945a8fdb4bcSmrg	  }
6946a8fdb4bcSmrg	  /^X\(\/\/\)[^/].*/{
6947a8fdb4bcSmrg	    s//\1/
6948a8fdb4bcSmrg	    q
6949a8fdb4bcSmrg	  }
6950a8fdb4bcSmrg	  /^X\(\/\/\)$/{
6951a8fdb4bcSmrg	    s//\1/
6952a8fdb4bcSmrg	    q
6953a8fdb4bcSmrg	  }
6954a8fdb4bcSmrg	  /^X\(\/\).*/{
6955a8fdb4bcSmrg	    s//\1/
6956a8fdb4bcSmrg	    q
6957a8fdb4bcSmrg	  }
6958a8fdb4bcSmrg	  s/.*/./; q'`
6959dbe7da2eSmrg    else
6960dbe7da2eSmrg      continue
6961dbe7da2eSmrg    fi
6962dbe7da2eSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6963dbe7da2eSmrg    # from the Makefile without running `make'.
6964dbe7da2eSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6965dbe7da2eSmrg    test -z "$DEPDIR" && continue
6966dbe7da2eSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6967dbe7da2eSmrg    test -z "am__include" && continue
6968dbe7da2eSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6969dbe7da2eSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6970dbe7da2eSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6971dbe7da2eSmrg    # Find all dependency output files, they are included files with
6972dbe7da2eSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6973dbe7da2eSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6974dbe7da2eSmrg    # expansion.
6975dbe7da2eSmrg    for file in `sed -n "
6976dbe7da2eSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6977dbe7da2eSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6978dbe7da2eSmrg      # Make sure the directory exists.
6979dbe7da2eSmrg      test -f "$dirpart/$file" && continue
6980dbe7da2eSmrg      fdir=`$as_dirname -- "$file" ||
6981a8fdb4bcSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6982a8fdb4bcSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6983a8fdb4bcSmrg	 X"$file" : 'X\(//\)$' \| \
6984a8fdb4bcSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6985dbe7da2eSmrg$as_echo X"$file" |
6986a8fdb4bcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6987a8fdb4bcSmrg	    s//\1/
6988a8fdb4bcSmrg	    q
6989a8fdb4bcSmrg	  }
6990a8fdb4bcSmrg	  /^X\(\/\/\)[^/].*/{
6991a8fdb4bcSmrg	    s//\1/
6992a8fdb4bcSmrg	    q
6993a8fdb4bcSmrg	  }
6994a8fdb4bcSmrg	  /^X\(\/\/\)$/{
6995a8fdb4bcSmrg	    s//\1/
6996a8fdb4bcSmrg	    q
6997a8fdb4bcSmrg	  }
6998a8fdb4bcSmrg	  /^X\(\/\).*/{
6999a8fdb4bcSmrg	    s//\1/
7000a8fdb4bcSmrg	    q
7001a8fdb4bcSmrg	  }
7002a8fdb4bcSmrg	  s/.*/./; q'`
7003dbe7da2eSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
7004dbe7da2eSmrg      # echo "creating $dirpart/$file"
7005dbe7da2eSmrg      echo '# dummy' > "$dirpart/$file"
7006a8fdb4bcSmrg    done
7007a8fdb4bcSmrg  done
7008dbe7da2eSmrg}
7009a8fdb4bcSmrg ;;
7010a8fdb4bcSmrg
7011a8fdb4bcSmrg  esac
7012a8fdb4bcSmrgdone # for ac_tag
7013a8fdb4bcSmrg
7014a8fdb4bcSmrg
7015dbe7da2eSmrgas_fn_exit 0
7016a8fdb4bcSmrg_ACEOF
7017a8fdb4bcSmrgac_clean_files=$ac_clean_files_save
7018a8fdb4bcSmrg
7019dbe7da2eSmrgtest $ac_write_fail = 0 ||
7020dbe7da2eSmrg  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7021dbe7da2eSmrg
7022a8fdb4bcSmrg
7023a8fdb4bcSmrg# configure is writing to config.log, and then calls config.status.
7024a8fdb4bcSmrg# config.status does its own redirection, appending to config.log.
7025a8fdb4bcSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
7026a8fdb4bcSmrg# by configure, so config.status won't be able to write to it; its
7027a8fdb4bcSmrg# output is simply discarded.  So we exec the FD to /dev/null,
7028a8fdb4bcSmrg# effectively closing config.log, so it can be properly (re)opened and
7029a8fdb4bcSmrg# appended to by config.status.  When coming back to configure, we
7030a8fdb4bcSmrg# need to make the FD available again.
7031a8fdb4bcSmrgif test "$no_create" != yes; then
7032a8fdb4bcSmrg  ac_cs_success=:
7033a8fdb4bcSmrg  ac_config_status_args=
7034a8fdb4bcSmrg  test "$silent" = yes &&
7035a8fdb4bcSmrg    ac_config_status_args="$ac_config_status_args --quiet"
7036a8fdb4bcSmrg  exec 5>/dev/null
7037a8fdb4bcSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7038a8fdb4bcSmrg  exec 5>>config.log
7039a8fdb4bcSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7040a8fdb4bcSmrg  # would make configure fail if this is the last instruction.
7041dbe7da2eSmrg  $ac_cs_success || as_fn_exit $?
7042dbe7da2eSmrgfi
7043dbe7da2eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7044dbe7da2eSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7045dbe7da2eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7046a8fdb4bcSmrgfi
7047a8fdb4bcSmrg
7048