configure revision 625f88be
1f299d47fSmrg#! /bin/sh
2f299d47fSmrg# Guess values for system-dependent variables and create Makefiles.
3625f88beSmrg# Generated by GNU Autoconf 2.68 for xev 1.1.0.
4f299d47fSmrg#
5f299d47fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6f299d47fSmrg#
7625f88beSmrg#
8f299d47fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9625f88beSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10625f88beSmrg# Foundation, Inc.
11625f88beSmrg#
12625f88beSmrg#
13f299d47fSmrg# This configure script is free software; the Free Software Foundation
14f299d47fSmrg# gives unlimited permission to copy, distribute and modify it.
15625f88beSmrg## -------------------- ##
16625f88beSmrg## M4sh Initialization. ##
17625f88beSmrg## -------------------- ##
18f299d47fSmrg
19f299d47fSmrg# Be more Bourne compatible
20f299d47fSmrgDUALCASE=1; export DUALCASE # for MKS sh
21625f88beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22f299d47fSmrg  emulate sh
23f299d47fSmrg  NULLCMD=:
24aa98702cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25f299d47fSmrg  # is contrary to our usage.  Disable this feature.
26f299d47fSmrg  alias -g '${1+"$@"}'='"$@"'
27f299d47fSmrg  setopt NO_GLOB_SUBST
28f299d47fSmrgelse
29625f88beSmrg  case `(set -o) 2>/dev/null` in #(
30625f88beSmrg  *posix*) :
31625f88beSmrg    set -o posix ;; #(
32625f88beSmrg  *) :
33625f88beSmrg     ;;
34f299d47fSmrgesac
35f299d47fSmrgfi
36f299d47fSmrg
37f299d47fSmrg
38aa98702cSmrgas_nl='
39aa98702cSmrg'
40aa98702cSmrgexport as_nl
41aa98702cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42aa98702cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45625f88beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46625f88beSmrg# but without wasting forks for bash or zsh.
47625f88beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48625f88beSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49625f88beSmrg  as_echo='print -r --'
50625f88beSmrg  as_echo_n='print -rn --'
51625f88beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52aa98702cSmrg  as_echo='printf %s\n'
53aa98702cSmrg  as_echo_n='printf %s'
54aa98702cSmrgelse
55aa98702cSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56aa98702cSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57aa98702cSmrg    as_echo_n='/usr/ucb/echo -n'
58f299d47fSmrg  else
59aa98702cSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60aa98702cSmrg    as_echo_n_body='eval
61aa98702cSmrg      arg=$1;
62625f88beSmrg      case $arg in #(
63aa98702cSmrg      *"$as_nl"*)
64aa98702cSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65aa98702cSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66aa98702cSmrg      esac;
67aa98702cSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68aa98702cSmrg    '
69aa98702cSmrg    export as_echo_n_body
70aa98702cSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71f299d47fSmrg  fi
72aa98702cSmrg  export as_echo_body
73aa98702cSmrg  as_echo='sh -c $as_echo_body as_echo'
74aa98702cSmrgfi
75aa98702cSmrg
76aa98702cSmrg# The user is always right.
77aa98702cSmrgif test "${PATH_SEPARATOR+set}" != set; then
78aa98702cSmrg  PATH_SEPARATOR=:
79aa98702cSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80aa98702cSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81aa98702cSmrg      PATH_SEPARATOR=';'
82aa98702cSmrg  }
83f299d47fSmrgfi
84f299d47fSmrg
85f299d47fSmrg
86f299d47fSmrg# IFS
87f299d47fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88f299d47fSmrg# there to prevent editors from complaining about space-tab.
89f299d47fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90f299d47fSmrg# splitting by setting IFS to empty value.)
91f299d47fSmrgIFS=" ""	$as_nl"
92f299d47fSmrg
93f299d47fSmrg# Find who we are.  Look in the path if we contain no directory separator.
94625f88beSmrgas_myself=
95625f88beSmrgcase $0 in #((
96f299d47fSmrg  *[\\/]* ) as_myself=$0 ;;
97f299d47fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98f299d47fSmrgfor as_dir in $PATH
99f299d47fSmrgdo
100f299d47fSmrg  IFS=$as_save_IFS
101f299d47fSmrg  test -z "$as_dir" && as_dir=.
102625f88beSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103625f88beSmrg  done
104f299d47fSmrgIFS=$as_save_IFS
105f299d47fSmrg
106f299d47fSmrg     ;;
107f299d47fSmrgesac
108f299d47fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109f299d47fSmrg# in which case we are not to be found in the path.
110f299d47fSmrgif test "x$as_myself" = x; then
111f299d47fSmrg  as_myself=$0
112f299d47fSmrgfi
113f299d47fSmrgif test ! -f "$as_myself"; then
114aa98702cSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115625f88beSmrg  exit 1
116f299d47fSmrgfi
117f299d47fSmrg
118625f88beSmrg# Unset variables that we do not need and which cause bugs (e.g. in
119625f88beSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120625f88beSmrg# suppresses any "Segmentation fault" message there.  '((' could
121625f88beSmrg# trigger a bug in pdksh 5.2.14.
122625f88beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123625f88beSmrgdo eval test x\${$as_var+set} = xset \
124625f88beSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125f299d47fSmrgdone
126f299d47fSmrgPS1='$ '
127f299d47fSmrgPS2='> '
128f299d47fSmrgPS4='+ '
129f299d47fSmrg
130f299d47fSmrg# NLS nuisances.
131aa98702cSmrgLC_ALL=C
132aa98702cSmrgexport LC_ALL
133aa98702cSmrgLANGUAGE=C
134aa98702cSmrgexport LANGUAGE
135f299d47fSmrg
136625f88beSmrg# CDPATH.
137625f88beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138625f88beSmrg
139625f88beSmrgif test "x$CONFIG_SHELL" = x; then
140625f88beSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141625f88beSmrg  emulate sh
142625f88beSmrg  NULLCMD=:
143625f88beSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144625f88beSmrg  # is contrary to our usage.  Disable this feature.
145625f88beSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146625f88beSmrg  setopt NO_GLOB_SUBST
147625f88beSmrgelse
148625f88beSmrg  case \`(set -o) 2>/dev/null\` in #(
149625f88beSmrg  *posix*) :
150625f88beSmrg    set -o posix ;; #(
151625f88beSmrg  *) :
152625f88beSmrg     ;;
153625f88beSmrgesac
154625f88beSmrgfi
155625f88beSmrg"
156625f88beSmrg  as_required="as_fn_return () { (exit \$1); }
157625f88beSmrgas_fn_success () { as_fn_return 0; }
158625f88beSmrgas_fn_failure () { as_fn_return 1; }
159625f88beSmrgas_fn_ret_success () { return 0; }
160625f88beSmrgas_fn_ret_failure () { return 1; }
161625f88beSmrg
162625f88beSmrgexitcode=0
163625f88beSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164625f88beSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165625f88beSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166625f88beSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167625f88beSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168625f88beSmrg
169625f88beSmrgelse
170625f88beSmrg  exitcode=1; echo positional parameters were not saved.
171625f88beSmrgfi
172625f88beSmrgtest x\$exitcode = x0 || exit 1"
173625f88beSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174625f88beSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175625f88beSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176625f88beSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177625f88beSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
178625f88beSmrg  if (eval "$as_required") 2>/dev/null; then :
179625f88beSmrg  as_have_required=yes
180625f88beSmrgelse
181625f88beSmrg  as_have_required=no
182625f88beSmrgfi
183625f88beSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184625f88beSmrg
185625f88beSmrgelse
186625f88beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187625f88beSmrgas_found=false
188625f88beSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189625f88beSmrgdo
190625f88beSmrg  IFS=$as_save_IFS
191625f88beSmrg  test -z "$as_dir" && as_dir=.
192625f88beSmrg  as_found=:
193625f88beSmrg  case $as_dir in #(
194625f88beSmrg	 /*)
195625f88beSmrg	   for as_base in sh bash ksh sh5; do
196625f88beSmrg	     # Try only shells that exist, to save several forks.
197625f88beSmrg	     as_shell=$as_dir/$as_base
198625f88beSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199625f88beSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200625f88beSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
201625f88beSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202625f88beSmrg  break 2
203625f88beSmrgfi
204625f88beSmrgfi
205625f88beSmrg	   done;;
206625f88beSmrg       esac
207625f88beSmrg  as_found=false
208625f88beSmrgdone
209625f88beSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210625f88beSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211625f88beSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
212625f88beSmrgfi; }
213625f88beSmrgIFS=$as_save_IFS
214625f88beSmrg
215625f88beSmrg
216625f88beSmrg      if test "x$CONFIG_SHELL" != x; then :
217625f88beSmrg  # We cannot yet assume a decent shell, so we have to provide a
218625f88beSmrg	# neutralization value for shells without unset; and this also
219625f88beSmrg	# works around shells that cannot unset nonexistent variables.
220625f88beSmrg	# Preserve -v and -x to the replacement shell.
221625f88beSmrg	BASH_ENV=/dev/null
222625f88beSmrg	ENV=/dev/null
223625f88beSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224625f88beSmrg	export CONFIG_SHELL
225625f88beSmrg	case $- in # ((((
226625f88beSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227625f88beSmrg	  *v* ) as_opts=-v ;;
228625f88beSmrg	  *x* ) as_opts=-x ;;
229625f88beSmrg	  * ) as_opts= ;;
230625f88beSmrg	esac
231625f88beSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232625f88beSmrgfi
233625f88beSmrg
234625f88beSmrg    if test x$as_have_required = xno; then :
235625f88beSmrg  $as_echo "$0: This script requires a shell more modern than all"
236625f88beSmrg  $as_echo "$0: the shells that I found on your system."
237625f88beSmrg  if test x${ZSH_VERSION+set} = xset ; then
238625f88beSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239625f88beSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240625f88beSmrg  else
241625f88beSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242625f88beSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243625f88beSmrg$0: about your system, including any error possibly output
244625f88beSmrg$0: before this message. Then install a modern shell, or
245625f88beSmrg$0: manually run the script under such a shell if you do
246625f88beSmrg$0: have one."
247625f88beSmrg  fi
248625f88beSmrg  exit 1
249625f88beSmrgfi
250625f88beSmrgfi
251625f88beSmrgfi
252625f88beSmrgSHELL=${CONFIG_SHELL-/bin/sh}
253625f88beSmrgexport SHELL
254625f88beSmrg# Unset more variables known to interfere with behavior of common tools.
255625f88beSmrgCLICOLOR_FORCE= GREP_OPTIONS=
256625f88beSmrgunset CLICOLOR_FORCE GREP_OPTIONS
257625f88beSmrg
258625f88beSmrg## --------------------- ##
259625f88beSmrg## M4sh Shell Functions. ##
260625f88beSmrg## --------------------- ##
261625f88beSmrg# as_fn_unset VAR
262625f88beSmrg# ---------------
263625f88beSmrg# Portably unset VAR.
264625f88beSmrgas_fn_unset ()
265625f88beSmrg{
266625f88beSmrg  { eval $1=; unset $1;}
267625f88beSmrg}
268625f88beSmrgas_unset=as_fn_unset
269625f88beSmrg
270625f88beSmrg# as_fn_set_status STATUS
271625f88beSmrg# -----------------------
272625f88beSmrg# Set $? to STATUS, without forking.
273625f88beSmrgas_fn_set_status ()
274625f88beSmrg{
275625f88beSmrg  return $1
276625f88beSmrg} # as_fn_set_status
277625f88beSmrg
278625f88beSmrg# as_fn_exit STATUS
279625f88beSmrg# -----------------
280625f88beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281625f88beSmrgas_fn_exit ()
282625f88beSmrg{
283625f88beSmrg  set +e
284625f88beSmrg  as_fn_set_status $1
285625f88beSmrg  exit $1
286625f88beSmrg} # as_fn_exit
287625f88beSmrg
288625f88beSmrg# as_fn_mkdir_p
289625f88beSmrg# -------------
290625f88beSmrg# Create "$as_dir" as a directory, including parents if necessary.
291625f88beSmrgas_fn_mkdir_p ()
292625f88beSmrg{
293625f88beSmrg
294625f88beSmrg  case $as_dir in #(
295625f88beSmrg  -*) as_dir=./$as_dir;;
296625f88beSmrg  esac
297625f88beSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
298625f88beSmrg    as_dirs=
299625f88beSmrg    while :; do
300625f88beSmrg      case $as_dir in #(
301625f88beSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302625f88beSmrg      *) as_qdir=$as_dir;;
303625f88beSmrg      esac
304625f88beSmrg      as_dirs="'$as_qdir' $as_dirs"
305625f88beSmrg      as_dir=`$as_dirname -- "$as_dir" ||
306625f88beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307625f88beSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308625f88beSmrg	 X"$as_dir" : 'X\(//\)$' \| \
309625f88beSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310625f88beSmrg$as_echo X"$as_dir" |
311625f88beSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312625f88beSmrg	    s//\1/
313625f88beSmrg	    q
314625f88beSmrg	  }
315625f88beSmrg	  /^X\(\/\/\)[^/].*/{
316625f88beSmrg	    s//\1/
317625f88beSmrg	    q
318625f88beSmrg	  }
319625f88beSmrg	  /^X\(\/\/\)$/{
320625f88beSmrg	    s//\1/
321625f88beSmrg	    q
322625f88beSmrg	  }
323625f88beSmrg	  /^X\(\/\).*/{
324625f88beSmrg	    s//\1/
325625f88beSmrg	    q
326625f88beSmrg	  }
327625f88beSmrg	  s/.*/./; q'`
328625f88beSmrg      test -d "$as_dir" && break
329625f88beSmrg    done
330625f88beSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331625f88beSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332625f88beSmrg
333625f88beSmrg
334625f88beSmrg} # as_fn_mkdir_p
335625f88beSmrg# as_fn_append VAR VALUE
336625f88beSmrg# ----------------------
337625f88beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338625f88beSmrg# advantage of any shell optimizations that allow amortized linear growth over
339625f88beSmrg# repeated appends, instead of the typical quadratic growth present in naive
340625f88beSmrg# implementations.
341625f88beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342625f88beSmrg  eval 'as_fn_append ()
343625f88beSmrg  {
344625f88beSmrg    eval $1+=\$2
345625f88beSmrg  }'
346625f88beSmrgelse
347625f88beSmrg  as_fn_append ()
348625f88beSmrg  {
349625f88beSmrg    eval $1=\$$1\$2
350625f88beSmrg  }
351625f88beSmrgfi # as_fn_append
352625f88beSmrg
353625f88beSmrg# as_fn_arith ARG...
354625f88beSmrg# ------------------
355625f88beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356625f88beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357625f88beSmrg# must be portable across $(()) and expr.
358625f88beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359625f88beSmrg  eval 'as_fn_arith ()
360625f88beSmrg  {
361625f88beSmrg    as_val=$(( $* ))
362625f88beSmrg  }'
363625f88beSmrgelse
364625f88beSmrg  as_fn_arith ()
365625f88beSmrg  {
366625f88beSmrg    as_val=`expr "$@" || test $? -eq 1`
367625f88beSmrg  }
368625f88beSmrgfi # as_fn_arith
369625f88beSmrg
370625f88beSmrg
371625f88beSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372625f88beSmrg# ----------------------------------------
373625f88beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374625f88beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375625f88beSmrg# script with STATUS, using 1 if that was 0.
376625f88beSmrgas_fn_error ()
377625f88beSmrg{
378625f88beSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
379625f88beSmrg  if test "$4"; then
380625f88beSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382625f88beSmrg  fi
383625f88beSmrg  $as_echo "$as_me: error: $2" >&2
384625f88beSmrg  as_fn_exit $as_status
385625f88beSmrg} # as_fn_error
386625f88beSmrg
387f299d47fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388f299d47fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389f299d47fSmrg  as_expr=expr
390f299d47fSmrgelse
391f299d47fSmrg  as_expr=false
392f299d47fSmrgfi
393f299d47fSmrg
394f299d47fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395f299d47fSmrg  as_basename=basename
396f299d47fSmrgelse
397f299d47fSmrg  as_basename=false
398f299d47fSmrgfi
399f299d47fSmrg
400625f88beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401625f88beSmrg  as_dirname=dirname
402625f88beSmrgelse
403625f88beSmrg  as_dirname=false
404625f88beSmrgfi
405f299d47fSmrg
406f299d47fSmrgas_me=`$as_basename -- "$0" ||
407f299d47fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408f299d47fSmrg	 X"$0" : 'X\(//\)$' \| \
409f299d47fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410aa98702cSmrg$as_echo X/"$0" |
411f299d47fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412f299d47fSmrg	    s//\1/
413f299d47fSmrg	    q
414f299d47fSmrg	  }
415f299d47fSmrg	  /^X\/\(\/\/\)$/{
416f299d47fSmrg	    s//\1/
417f299d47fSmrg	    q
418f299d47fSmrg	  }
419f299d47fSmrg	  /^X\/\(\/\).*/{
420f299d47fSmrg	    s//\1/
421f299d47fSmrg	    q
422f299d47fSmrg	  }
423f299d47fSmrg	  s/.*/./; q'`
424f299d47fSmrg
425625f88beSmrg# Avoid depending upon Character Ranges.
426625f88beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427625f88beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428625f88beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429625f88beSmrgas_cr_digits='0123456789'
430625f88beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431f299d47fSmrg
432f299d47fSmrg
433625f88beSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434625f88beSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435625f88beSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436625f88beSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437625f88beSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438625f88beSmrg  sed -n '
439625f88beSmrg    p
440625f88beSmrg    /[$]LINENO/=
441625f88beSmrg  ' <$as_myself |
442625f88beSmrg    sed '
443625f88beSmrg      s/[$]LINENO.*/&-/
444625f88beSmrg      t lineno
445625f88beSmrg      b
446625f88beSmrg      :lineno
447625f88beSmrg      N
448625f88beSmrg      :loop
449625f88beSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450625f88beSmrg      t loop
451625f88beSmrg      s/-\n.*//
452625f88beSmrg    ' >$as_me.lineno &&
453625f88beSmrg  chmod +x "$as_me.lineno" ||
454625f88beSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455f299d47fSmrg
456625f88beSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
457625f88beSmrg  # (the dirname of $[0] is not the place where we might find the
458625f88beSmrg  # original and so on.  Autoconf is especially sensitive to this).
459625f88beSmrg  . "./$as_me.lineno"
460625f88beSmrg  # Exit status is that of the last command.
461625f88beSmrg  exit
462f299d47fSmrg}
463f299d47fSmrg
464625f88beSmrgECHO_C= ECHO_N= ECHO_T=
465625f88beSmrgcase `echo -n x` in #(((((
466625f88beSmrg-n*)
467625f88beSmrg  case `echo 'xy\c'` in
468625f88beSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469625f88beSmrg  xy)  ECHO_C='\c';;
470625f88beSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471625f88beSmrg       ECHO_T='	';;
472625f88beSmrg  esac;;
473625f88beSmrg*)
474625f88beSmrg  ECHO_N='-n';;
475625f88beSmrgesac
476f299d47fSmrg
477625f88beSmrgrm -f conf$$ conf$$.exe conf$$.file
478625f88beSmrgif test -d conf$$.dir; then
479625f88beSmrg  rm -f conf$$.dir/conf$$.file
480625f88beSmrgelse
481625f88beSmrg  rm -f conf$$.dir
482625f88beSmrg  mkdir conf$$.dir 2>/dev/null
483f299d47fSmrgfi
484625f88beSmrgif (echo >conf$$.file) 2>/dev/null; then
485625f88beSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486625f88beSmrg    as_ln_s='ln -s'
487625f88beSmrg    # ... but there are two gotchas:
488625f88beSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489625f88beSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490625f88beSmrg    # In both cases, we have to default to `cp -p'.
491625f88beSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492625f88beSmrg      as_ln_s='cp -p'
493625f88beSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494625f88beSmrg    as_ln_s=ln
495625f88beSmrg  else
496625f88beSmrg    as_ln_s='cp -p'
497625f88beSmrg  fi
498f299d47fSmrgelse
499625f88beSmrg  as_ln_s='cp -p'
500f299d47fSmrgfi
501625f88beSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502625f88beSmrgrmdir conf$$.dir 2>/dev/null
503f299d47fSmrg
504625f88beSmrgif mkdir -p . 2>/dev/null; then
505625f88beSmrg  as_mkdir_p='mkdir -p "$as_dir"'
506625f88beSmrgelse
507625f88beSmrg  test -d ./-p && rmdir ./-p
508625f88beSmrg  as_mkdir_p=false
509f299d47fSmrgfi
510f299d47fSmrg
511625f88beSmrgif test -x / >/dev/null 2>&1; then
512625f88beSmrg  as_test_x='test -x'
513f299d47fSmrgelse
514625f88beSmrg  if ls -dL / >/dev/null 2>&1; then
515625f88beSmrg    as_ls_L_option=L
516625f88beSmrg  else
517625f88beSmrg    as_ls_L_option=
518625f88beSmrg  fi
519625f88beSmrg  as_test_x='
520625f88beSmrg    eval sh -c '\''
521625f88beSmrg      if test -d "$1"; then
522625f88beSmrg	test -d "$1/.";
523625f88beSmrg      else
524625f88beSmrg	case $1 in #(
525625f88beSmrg	-*)set "./$1";;
526625f88beSmrg	esac;
527625f88beSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528625f88beSmrg	???[sx]*):;;*)false;;esac;fi
529625f88beSmrg    '\'' sh
530625f88beSmrg  '
531f299d47fSmrgfi
532625f88beSmrgas_executable_p=$as_test_x
533f299d47fSmrg
534625f88beSmrg# Sed expression to map a string onto a valid CPP name.
535625f88beSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536f299d47fSmrg
537625f88beSmrg# Sed expression to map a string onto a valid variable name.
538625f88beSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539f299d47fSmrg
540f299d47fSmrg
541625f88beSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542625f88beSmrgexec 6>&1
543f299d47fSmrg
544f299d47fSmrg# Name of the host.
545625f88beSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546f299d47fSmrg# so uname gets run too.
547f299d47fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548f299d47fSmrg
549f299d47fSmrg#
550f299d47fSmrg# Initializations.
551f299d47fSmrg#
552f299d47fSmrgac_default_prefix=/usr/local
553f299d47fSmrgac_clean_files=
554f299d47fSmrgac_config_libobj_dir=.
555f299d47fSmrgLIBOBJS=
556f299d47fSmrgcross_compiling=no
557f299d47fSmrgsubdirs=
558f299d47fSmrgMFLAGS=
559f299d47fSmrgMAKEFLAGS=
560f299d47fSmrg
561f299d47fSmrg# Identity of this package.
562f299d47fSmrgPACKAGE_NAME='xev'
563f299d47fSmrgPACKAGE_TARNAME='xev'
564625f88beSmrgPACKAGE_VERSION='1.1.0'
565625f88beSmrgPACKAGE_STRING='xev 1.1.0'
566f299d47fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567625f88beSmrgPACKAGE_URL=''
568f299d47fSmrg
569aa98702cSmrg# Factoring default headers for most tests.
570aa98702cSmrgac_includes_default="\
571aa98702cSmrg#include <stdio.h>
572aa98702cSmrg#ifdef HAVE_SYS_TYPES_H
573aa98702cSmrg# include <sys/types.h>
574aa98702cSmrg#endif
575aa98702cSmrg#ifdef HAVE_SYS_STAT_H
576aa98702cSmrg# include <sys/stat.h>
577aa98702cSmrg#endif
578aa98702cSmrg#ifdef STDC_HEADERS
579aa98702cSmrg# include <stdlib.h>
580aa98702cSmrg# include <stddef.h>
581aa98702cSmrg#else
582aa98702cSmrg# ifdef HAVE_STDLIB_H
583aa98702cSmrg#  include <stdlib.h>
584aa98702cSmrg# endif
585aa98702cSmrg#endif
586aa98702cSmrg#ifdef HAVE_STRING_H
587aa98702cSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588aa98702cSmrg#  include <memory.h>
589aa98702cSmrg# endif
590aa98702cSmrg# include <string.h>
591aa98702cSmrg#endif
592aa98702cSmrg#ifdef HAVE_STRINGS_H
593aa98702cSmrg# include <strings.h>
594aa98702cSmrg#endif
595aa98702cSmrg#ifdef HAVE_INTTYPES_H
596aa98702cSmrg# include <inttypes.h>
597aa98702cSmrg#endif
598aa98702cSmrg#ifdef HAVE_STDINT_H
599aa98702cSmrg# include <stdint.h>
600aa98702cSmrg#endif
601aa98702cSmrg#ifdef HAVE_UNISTD_H
602aa98702cSmrg# include <unistd.h>
603aa98702cSmrg#endif"
604aa98702cSmrg
605aa98702cSmrgac_subst_vars='am__EXEEXT_FALSE
606aa98702cSmrgam__EXEEXT_TRUE
607aa98702cSmrgLTLIBOBJS
608aa98702cSmrgLIBOBJS
609f299d47fSmrgXEV_LIBS
610aa98702cSmrgXEV_CFLAGS
611625f88beSmrgAM_BACKSLASH
612625f88beSmrgAM_DEFAULT_VERBOSITY
613625f88beSmrgMAN_SUBSTS
614625f88beSmrgXORG_MAN_PAGE
615f299d47fSmrgADMIN_MAN_DIR
616aa98702cSmrgDRIVER_MAN_DIR
617aa98702cSmrgMISC_MAN_DIR
618aa98702cSmrgFILE_MAN_DIR
619aa98702cSmrgLIB_MAN_DIR
620aa98702cSmrgAPP_MAN_DIR
621aa98702cSmrgADMIN_MAN_SUFFIX
622aa98702cSmrgDRIVER_MAN_SUFFIX
623aa98702cSmrgMISC_MAN_SUFFIX
624aa98702cSmrgFILE_MAN_SUFFIX
625aa98702cSmrgLIB_MAN_SUFFIX
626aa98702cSmrgAPP_MAN_SUFFIX
627625f88beSmrgSED
628aa98702cSmrghost_os
629aa98702cSmrghost_vendor
630aa98702cSmrghost_cpu
631aa98702cSmrghost
632aa98702cSmrgbuild_os
633aa98702cSmrgbuild_vendor
634aa98702cSmrgbuild_cpu
635aa98702cSmrgbuild
636625f88beSmrgINSTALL_CMD
637625f88beSmrgPKG_CONFIG
638aa98702cSmrgCHANGELOG_CMD
639aa98702cSmrgCWARNFLAGS
640aa98702cSmrgEGREP
641aa98702cSmrgGREP
642aa98702cSmrgCPP
643aa98702cSmrgam__fastdepCC_FALSE
644aa98702cSmrgam__fastdepCC_TRUE
645aa98702cSmrgCCDEPMODE
646aa98702cSmrgAMDEPBACKSLASH
647aa98702cSmrgAMDEP_FALSE
648aa98702cSmrgAMDEP_TRUE
649aa98702cSmrgam__quote
650aa98702cSmrgam__include
651aa98702cSmrgDEPDIR
652aa98702cSmrgOBJEXT
653aa98702cSmrgEXEEXT
654aa98702cSmrgac_ct_CC
655aa98702cSmrgCPPFLAGS
656aa98702cSmrgLDFLAGS
657aa98702cSmrgCFLAGS
658aa98702cSmrgCC
659aa98702cSmrgMAINT
660aa98702cSmrgMAINTAINER_MODE_FALSE
661aa98702cSmrgMAINTAINER_MODE_TRUE
662aa98702cSmrgam__untar
663aa98702cSmrgam__tar
664aa98702cSmrgAMTAR
665aa98702cSmrgam__leading_dot
666aa98702cSmrgSET_MAKE
667aa98702cSmrgAWK
668aa98702cSmrgmkdir_p
669aa98702cSmrgMKDIR_P
670aa98702cSmrgINSTALL_STRIP_PROGRAM
671aa98702cSmrgSTRIP
672aa98702cSmrginstall_sh
673aa98702cSmrgMAKEINFO
674aa98702cSmrgAUTOHEADER
675aa98702cSmrgAUTOMAKE
676aa98702cSmrgAUTOCONF
677aa98702cSmrgACLOCAL
678aa98702cSmrgVERSION
679aa98702cSmrgPACKAGE
680aa98702cSmrgCYGPATH_W
681aa98702cSmrgam__isrc
682aa98702cSmrgINSTALL_DATA
683aa98702cSmrgINSTALL_SCRIPT
684aa98702cSmrgINSTALL_PROGRAM
685aa98702cSmrgtarget_alias
686aa98702cSmrghost_alias
687aa98702cSmrgbuild_alias
688aa98702cSmrgLIBS
689aa98702cSmrgECHO_T
690aa98702cSmrgECHO_N
691aa98702cSmrgECHO_C
692aa98702cSmrgDEFS
693aa98702cSmrgmandir
694aa98702cSmrglocaledir
695aa98702cSmrglibdir
696aa98702cSmrgpsdir
697aa98702cSmrgpdfdir
698aa98702cSmrgdvidir
699aa98702cSmrghtmldir
700aa98702cSmrginfodir
701aa98702cSmrgdocdir
702aa98702cSmrgoldincludedir
703aa98702cSmrgincludedir
704aa98702cSmrglocalstatedir
705aa98702cSmrgsharedstatedir
706aa98702cSmrgsysconfdir
707aa98702cSmrgdatadir
708aa98702cSmrgdatarootdir
709aa98702cSmrglibexecdir
710aa98702cSmrgsbindir
711aa98702cSmrgbindir
712aa98702cSmrgprogram_transform_name
713aa98702cSmrgprefix
714aa98702cSmrgexec_prefix
715625f88beSmrgPACKAGE_URL
716aa98702cSmrgPACKAGE_BUGREPORT
717aa98702cSmrgPACKAGE_STRING
718aa98702cSmrgPACKAGE_VERSION
719aa98702cSmrgPACKAGE_TARNAME
720aa98702cSmrgPACKAGE_NAME
721aa98702cSmrgPATH_SEPARATOR
722aa98702cSmrgSHELL'
723f299d47fSmrgac_subst_files=''
724aa98702cSmrgac_user_opts='
725aa98702cSmrgenable_option_checking
726aa98702cSmrgenable_maintainer_mode
727aa98702cSmrgenable_dependency_tracking
728aa98702cSmrgenable_strict_compilation
729625f88beSmrgenable_silent_rules
730aa98702cSmrg'
731f299d47fSmrg      ac_precious_vars='build_alias
732f299d47fSmrghost_alias
733f299d47fSmrgtarget_alias
734f299d47fSmrgCC
735f299d47fSmrgCFLAGS
736f299d47fSmrgLDFLAGS
737f299d47fSmrgLIBS
738f299d47fSmrgCPPFLAGS
739aa98702cSmrgCPP
740f299d47fSmrgPKG_CONFIG
741f299d47fSmrgXEV_CFLAGS
742f299d47fSmrgXEV_LIBS'
743f299d47fSmrg
744f299d47fSmrg
745f299d47fSmrg# Initialize some variables set by options.
746f299d47fSmrgac_init_help=
747f299d47fSmrgac_init_version=false
748aa98702cSmrgac_unrecognized_opts=
749aa98702cSmrgac_unrecognized_sep=
750f299d47fSmrg# The variables have the same names as the options, with
751f299d47fSmrg# dashes changed to underlines.
752f299d47fSmrgcache_file=/dev/null
753f299d47fSmrgexec_prefix=NONE
754f299d47fSmrgno_create=
755f299d47fSmrgno_recursion=
756f299d47fSmrgprefix=NONE
757f299d47fSmrgprogram_prefix=NONE
758f299d47fSmrgprogram_suffix=NONE
759f299d47fSmrgprogram_transform_name=s,x,x,
760f299d47fSmrgsilent=
761f299d47fSmrgsite=
762f299d47fSmrgsrcdir=
763f299d47fSmrgverbose=
764f299d47fSmrgx_includes=NONE
765f299d47fSmrgx_libraries=NONE
766f299d47fSmrg
767f299d47fSmrg# Installation directory options.
768f299d47fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
769f299d47fSmrg# and all the variables that are supposed to be based on exec_prefix
770f299d47fSmrg# by default will actually change.
771f299d47fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
772f299d47fSmrg# (The list follows the same order as the GNU Coding Standards.)
773f299d47fSmrgbindir='${exec_prefix}/bin'
774f299d47fSmrgsbindir='${exec_prefix}/sbin'
775f299d47fSmrglibexecdir='${exec_prefix}/libexec'
776f299d47fSmrgdatarootdir='${prefix}/share'
777f299d47fSmrgdatadir='${datarootdir}'
778f299d47fSmrgsysconfdir='${prefix}/etc'
779f299d47fSmrgsharedstatedir='${prefix}/com'
780f299d47fSmrglocalstatedir='${prefix}/var'
781f299d47fSmrgincludedir='${prefix}/include'
782f299d47fSmrgoldincludedir='/usr/include'
783f299d47fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784f299d47fSmrginfodir='${datarootdir}/info'
785f299d47fSmrghtmldir='${docdir}'
786f299d47fSmrgdvidir='${docdir}'
787f299d47fSmrgpdfdir='${docdir}'
788f299d47fSmrgpsdir='${docdir}'
789f299d47fSmrglibdir='${exec_prefix}/lib'
790f299d47fSmrglocaledir='${datarootdir}/locale'
791f299d47fSmrgmandir='${datarootdir}/man'
792f299d47fSmrg
793f299d47fSmrgac_prev=
794f299d47fSmrgac_dashdash=
795f299d47fSmrgfor ac_option
796f299d47fSmrgdo
797f299d47fSmrg  # If the previous option needs an argument, assign it.
798f299d47fSmrg  if test -n "$ac_prev"; then
799f299d47fSmrg    eval $ac_prev=\$ac_option
800f299d47fSmrg    ac_prev=
801f299d47fSmrg    continue
802f299d47fSmrg  fi
803f299d47fSmrg
804f299d47fSmrg  case $ac_option in
805625f88beSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806625f88beSmrg  *=)   ac_optarg= ;;
807625f88beSmrg  *)    ac_optarg=yes ;;
808f299d47fSmrg  esac
809f299d47fSmrg
810f299d47fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
811f299d47fSmrg
812f299d47fSmrg  case $ac_dashdash$ac_option in
813f299d47fSmrg  --)
814f299d47fSmrg    ac_dashdash=yes ;;
815f299d47fSmrg
816f299d47fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
817f299d47fSmrg    ac_prev=bindir ;;
818f299d47fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819f299d47fSmrg    bindir=$ac_optarg ;;
820f299d47fSmrg
821f299d47fSmrg  -build | --build | --buil | --bui | --bu)
822f299d47fSmrg    ac_prev=build_alias ;;
823f299d47fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824f299d47fSmrg    build_alias=$ac_optarg ;;
825f299d47fSmrg
826f299d47fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
827f299d47fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828f299d47fSmrg    ac_prev=cache_file ;;
829f299d47fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830f299d47fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831f299d47fSmrg    cache_file=$ac_optarg ;;
832f299d47fSmrg
833f299d47fSmrg  --config-cache | -C)
834f299d47fSmrg    cache_file=config.cache ;;
835f299d47fSmrg
836f299d47fSmrg  -datadir | --datadir | --datadi | --datad)
837f299d47fSmrg    ac_prev=datadir ;;
838f299d47fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
839f299d47fSmrg    datadir=$ac_optarg ;;
840f299d47fSmrg
841f299d47fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842f299d47fSmrg  | --dataroo | --dataro | --datar)
843f299d47fSmrg    ac_prev=datarootdir ;;
844f299d47fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845f299d47fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846f299d47fSmrg    datarootdir=$ac_optarg ;;
847f299d47fSmrg
848f299d47fSmrg  -disable-* | --disable-*)
849aa98702cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850f299d47fSmrg    # Reject names that are not valid shell variable names.
851aa98702cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852625f88beSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
853aa98702cSmrg    ac_useropt_orig=$ac_useropt
854aa98702cSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855aa98702cSmrg    case $ac_user_opts in
856aa98702cSmrg      *"
857aa98702cSmrg"enable_$ac_useropt"
858aa98702cSmrg"*) ;;
859aa98702cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860aa98702cSmrg	 ac_unrecognized_sep=', ';;
861aa98702cSmrg    esac
862aa98702cSmrg    eval enable_$ac_useropt=no ;;
863f299d47fSmrg
864f299d47fSmrg  -docdir | --docdir | --docdi | --doc | --do)
865f299d47fSmrg    ac_prev=docdir ;;
866f299d47fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867f299d47fSmrg    docdir=$ac_optarg ;;
868f299d47fSmrg
869f299d47fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870f299d47fSmrg    ac_prev=dvidir ;;
871f299d47fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872f299d47fSmrg    dvidir=$ac_optarg ;;
873f299d47fSmrg
874f299d47fSmrg  -enable-* | --enable-*)
875aa98702cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876f299d47fSmrg    # Reject names that are not valid shell variable names.
877aa98702cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878625f88beSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
879aa98702cSmrg    ac_useropt_orig=$ac_useropt
880aa98702cSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881aa98702cSmrg    case $ac_user_opts in
882aa98702cSmrg      *"
883aa98702cSmrg"enable_$ac_useropt"
884aa98702cSmrg"*) ;;
885aa98702cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886aa98702cSmrg	 ac_unrecognized_sep=', ';;
887aa98702cSmrg    esac
888aa98702cSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
889f299d47fSmrg
890f299d47fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891f299d47fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892f299d47fSmrg  | --exec | --exe | --ex)
893f299d47fSmrg    ac_prev=exec_prefix ;;
894f299d47fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895f299d47fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896f299d47fSmrg  | --exec=* | --exe=* | --ex=*)
897f299d47fSmrg    exec_prefix=$ac_optarg ;;
898f299d47fSmrg
899f299d47fSmrg  -gas | --gas | --ga | --g)
900f299d47fSmrg    # Obsolete; use --with-gas.
901f299d47fSmrg    with_gas=yes ;;
902f299d47fSmrg
903f299d47fSmrg  -help | --help | --hel | --he | -h)
904f299d47fSmrg    ac_init_help=long ;;
905f299d47fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906f299d47fSmrg    ac_init_help=recursive ;;
907f299d47fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908f299d47fSmrg    ac_init_help=short ;;
909f299d47fSmrg
910f299d47fSmrg  -host | --host | --hos | --ho)
911f299d47fSmrg    ac_prev=host_alias ;;
912f299d47fSmrg  -host=* | --host=* | --hos=* | --ho=*)
913f299d47fSmrg    host_alias=$ac_optarg ;;
914f299d47fSmrg
915f299d47fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916f299d47fSmrg    ac_prev=htmldir ;;
917f299d47fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918f299d47fSmrg  | --ht=*)
919f299d47fSmrg    htmldir=$ac_optarg ;;
920f299d47fSmrg
921f299d47fSmrg  -includedir | --includedir | --includedi | --included | --include \
922f299d47fSmrg  | --includ | --inclu | --incl | --inc)
923f299d47fSmrg    ac_prev=includedir ;;
924f299d47fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925f299d47fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
926f299d47fSmrg    includedir=$ac_optarg ;;
927f299d47fSmrg
928f299d47fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
929f299d47fSmrg    ac_prev=infodir ;;
930f299d47fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931f299d47fSmrg    infodir=$ac_optarg ;;
932f299d47fSmrg
933f299d47fSmrg  -libdir | --libdir | --libdi | --libd)
934f299d47fSmrg    ac_prev=libdir ;;
935f299d47fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
936f299d47fSmrg    libdir=$ac_optarg ;;
937f299d47fSmrg
938f299d47fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939f299d47fSmrg  | --libexe | --libex | --libe)
940f299d47fSmrg    ac_prev=libexecdir ;;
941f299d47fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942f299d47fSmrg  | --libexe=* | --libex=* | --libe=*)
943f299d47fSmrg    libexecdir=$ac_optarg ;;
944f299d47fSmrg
945f299d47fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
946f299d47fSmrg    ac_prev=localedir ;;
947f299d47fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948f299d47fSmrg    localedir=$ac_optarg ;;
949f299d47fSmrg
950f299d47fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
951f299d47fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
952f299d47fSmrg    ac_prev=localstatedir ;;
953f299d47fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954f299d47fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955f299d47fSmrg    localstatedir=$ac_optarg ;;
956f299d47fSmrg
957f299d47fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958f299d47fSmrg    ac_prev=mandir ;;
959f299d47fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960f299d47fSmrg    mandir=$ac_optarg ;;
961f299d47fSmrg
962f299d47fSmrg  -nfp | --nfp | --nf)
963f299d47fSmrg    # Obsolete; use --without-fp.
964f299d47fSmrg    with_fp=no ;;
965f299d47fSmrg
966f299d47fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967f299d47fSmrg  | --no-cr | --no-c | -n)
968f299d47fSmrg    no_create=yes ;;
969f299d47fSmrg
970f299d47fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971f299d47fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972f299d47fSmrg    no_recursion=yes ;;
973f299d47fSmrg
974f299d47fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975f299d47fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976f299d47fSmrg  | --oldin | --oldi | --old | --ol | --o)
977f299d47fSmrg    ac_prev=oldincludedir ;;
978f299d47fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979f299d47fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980f299d47fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981f299d47fSmrg    oldincludedir=$ac_optarg ;;
982f299d47fSmrg
983f299d47fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984f299d47fSmrg    ac_prev=prefix ;;
985f299d47fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986f299d47fSmrg    prefix=$ac_optarg ;;
987f299d47fSmrg
988f299d47fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
989f299d47fSmrg  | --program-pre | --program-pr | --program-p)
990f299d47fSmrg    ac_prev=program_prefix ;;
991f299d47fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
992f299d47fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993f299d47fSmrg    program_prefix=$ac_optarg ;;
994f299d47fSmrg
995f299d47fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
996f299d47fSmrg  | --program-suf | --program-su | --program-s)
997f299d47fSmrg    ac_prev=program_suffix ;;
998f299d47fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
999f299d47fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000f299d47fSmrg    program_suffix=$ac_optarg ;;
1001f299d47fSmrg
1002f299d47fSmrg  -program-transform-name | --program-transform-name \
1003f299d47fSmrg  | --program-transform-nam | --program-transform-na \
1004f299d47fSmrg  | --program-transform-n | --program-transform- \
1005f299d47fSmrg  | --program-transform | --program-transfor \
1006f299d47fSmrg  | --program-transfo | --program-transf \
1007f299d47fSmrg  | --program-trans | --program-tran \
1008f299d47fSmrg  | --progr-tra | --program-tr | --program-t)
1009f299d47fSmrg    ac_prev=program_transform_name ;;
1010f299d47fSmrg  -program-transform-name=* | --program-transform-name=* \
1011f299d47fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1012f299d47fSmrg  | --program-transform-n=* | --program-transform-=* \
1013f299d47fSmrg  | --program-transform=* | --program-transfor=* \
1014f299d47fSmrg  | --program-transfo=* | --program-transf=* \
1015f299d47fSmrg  | --program-trans=* | --program-tran=* \
1016f299d47fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1017f299d47fSmrg    program_transform_name=$ac_optarg ;;
1018f299d47fSmrg
1019f299d47fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020f299d47fSmrg    ac_prev=pdfdir ;;
1021f299d47fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022f299d47fSmrg    pdfdir=$ac_optarg ;;
1023f299d47fSmrg
1024f299d47fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1025f299d47fSmrg    ac_prev=psdir ;;
1026f299d47fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027f299d47fSmrg    psdir=$ac_optarg ;;
1028f299d47fSmrg
1029f299d47fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030f299d47fSmrg  | -silent | --silent | --silen | --sile | --sil)
1031f299d47fSmrg    silent=yes ;;
1032f299d47fSmrg
1033f299d47fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034f299d47fSmrg    ac_prev=sbindir ;;
1035f299d47fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036f299d47fSmrg  | --sbi=* | --sb=*)
1037f299d47fSmrg    sbindir=$ac_optarg ;;
1038f299d47fSmrg
1039f299d47fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040f299d47fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041f299d47fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1042f299d47fSmrg  | --sha | --sh)
1043f299d47fSmrg    ac_prev=sharedstatedir ;;
1044f299d47fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045f299d47fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046f299d47fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047f299d47fSmrg  | --sha=* | --sh=*)
1048f299d47fSmrg    sharedstatedir=$ac_optarg ;;
1049f299d47fSmrg
1050f299d47fSmrg  -site | --site | --sit)
1051f299d47fSmrg    ac_prev=site ;;
1052f299d47fSmrg  -site=* | --site=* | --sit=*)
1053f299d47fSmrg    site=$ac_optarg ;;
1054f299d47fSmrg
1055f299d47fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056f299d47fSmrg    ac_prev=srcdir ;;
1057f299d47fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058f299d47fSmrg    srcdir=$ac_optarg ;;
1059f299d47fSmrg
1060f299d47fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061f299d47fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1062f299d47fSmrg    ac_prev=sysconfdir ;;
1063f299d47fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064f299d47fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065f299d47fSmrg    sysconfdir=$ac_optarg ;;
1066f299d47fSmrg
1067f299d47fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1068f299d47fSmrg    ac_prev=target_alias ;;
1069f299d47fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070f299d47fSmrg    target_alias=$ac_optarg ;;
1071f299d47fSmrg
1072f299d47fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073f299d47fSmrg    verbose=yes ;;
1074f299d47fSmrg
1075f299d47fSmrg  -version | --version | --versio | --versi | --vers | -V)
1076f299d47fSmrg    ac_init_version=: ;;
1077f299d47fSmrg
1078f299d47fSmrg  -with-* | --with-*)
1079aa98702cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080f299d47fSmrg    # Reject names that are not valid shell variable names.
1081aa98702cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082625f88beSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1083aa98702cSmrg    ac_useropt_orig=$ac_useropt
1084aa98702cSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085aa98702cSmrg    case $ac_user_opts in
1086aa98702cSmrg      *"
1087aa98702cSmrg"with_$ac_useropt"
1088aa98702cSmrg"*) ;;
1089aa98702cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090aa98702cSmrg	 ac_unrecognized_sep=', ';;
1091aa98702cSmrg    esac
1092aa98702cSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1093f299d47fSmrg
1094f299d47fSmrg  -without-* | --without-*)
1095aa98702cSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096f299d47fSmrg    # Reject names that are not valid shell variable names.
1097aa98702cSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098625f88beSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1099aa98702cSmrg    ac_useropt_orig=$ac_useropt
1100aa98702cSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101aa98702cSmrg    case $ac_user_opts in
1102aa98702cSmrg      *"
1103aa98702cSmrg"with_$ac_useropt"
1104aa98702cSmrg"*) ;;
1105aa98702cSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106aa98702cSmrg	 ac_unrecognized_sep=', ';;
1107aa98702cSmrg    esac
1108aa98702cSmrg    eval with_$ac_useropt=no ;;
1109f299d47fSmrg
1110f299d47fSmrg  --x)
1111f299d47fSmrg    # Obsolete; use --with-x.
1112f299d47fSmrg    with_x=yes ;;
1113f299d47fSmrg
1114f299d47fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115f299d47fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1116f299d47fSmrg    ac_prev=x_includes ;;
1117f299d47fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118f299d47fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119f299d47fSmrg    x_includes=$ac_optarg ;;
1120f299d47fSmrg
1121f299d47fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122f299d47fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123f299d47fSmrg    ac_prev=x_libraries ;;
1124f299d47fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125f299d47fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126f299d47fSmrg    x_libraries=$ac_optarg ;;
1127f299d47fSmrg
1128625f88beSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129625f88beSmrgTry \`$0 --help' for more information"
1130f299d47fSmrg    ;;
1131f299d47fSmrg
1132f299d47fSmrg  *=*)
1133f299d47fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134f299d47fSmrg    # Reject names that are not valid shell variable names.
1135625f88beSmrg    case $ac_envvar in #(
1136625f88beSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137625f88beSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138625f88beSmrg    esac
1139f299d47fSmrg    eval $ac_envvar=\$ac_optarg
1140f299d47fSmrg    export $ac_envvar ;;
1141f299d47fSmrg
1142f299d47fSmrg  *)
1143f299d47fSmrg    # FIXME: should be removed in autoconf 3.0.
1144aa98702cSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145f299d47fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146aa98702cSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147625f88beSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148f299d47fSmrg    ;;
1149f299d47fSmrg
1150f299d47fSmrg  esac
1151f299d47fSmrgdone
1152f299d47fSmrg
1153f299d47fSmrgif test -n "$ac_prev"; then
1154f299d47fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155625f88beSmrg  as_fn_error $? "missing argument to $ac_option"
1156f299d47fSmrgfi
1157f299d47fSmrg
1158aa98702cSmrgif test -n "$ac_unrecognized_opts"; then
1159aa98702cSmrg  case $enable_option_checking in
1160aa98702cSmrg    no) ;;
1161625f88beSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162aa98702cSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163aa98702cSmrg  esac
1164aa98702cSmrgfi
1165aa98702cSmrg
1166aa98702cSmrg# Check all directory arguments for consistency.
1167f299d47fSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168f299d47fSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1169f299d47fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170f299d47fSmrg		libdir localedir mandir
1171f299d47fSmrgdo
1172f299d47fSmrg  eval ac_val=\$$ac_var
1173aa98702cSmrg  # Remove trailing slashes.
1174aa98702cSmrg  case $ac_val in
1175aa98702cSmrg    */ )
1176aa98702cSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177aa98702cSmrg      eval $ac_var=\$ac_val;;
1178aa98702cSmrg  esac
1179aa98702cSmrg  # Be sure to have absolute directory names.
1180f299d47fSmrg  case $ac_val in
1181f299d47fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1182f299d47fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183f299d47fSmrg  esac
1184625f88beSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185f299d47fSmrgdone
1186f299d47fSmrg
1187f299d47fSmrg# There might be people who depend on the old broken behavior: `$host'
1188f299d47fSmrg# used to hold the argument of --host etc.
1189f299d47fSmrg# FIXME: To remove some day.
1190f299d47fSmrgbuild=$build_alias
1191f299d47fSmrghost=$host_alias
1192f299d47fSmrgtarget=$target_alias
1193f299d47fSmrg
1194f299d47fSmrg# FIXME: To remove some day.
1195f299d47fSmrgif test "x$host_alias" != x; then
1196f299d47fSmrg  if test "x$build_alias" = x; then
1197f299d47fSmrg    cross_compiling=maybe
1198625f88beSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199625f88beSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1200f299d47fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1201f299d47fSmrg    cross_compiling=yes
1202f299d47fSmrg  fi
1203f299d47fSmrgfi
1204f299d47fSmrg
1205f299d47fSmrgac_tool_prefix=
1206f299d47fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1207f299d47fSmrg
1208f299d47fSmrgtest "$silent" = yes && exec 6>/dev/null
1209f299d47fSmrg
1210f299d47fSmrg
1211f299d47fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1212f299d47fSmrgac_ls_di=`ls -di .` &&
1213f299d47fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214625f88beSmrg  as_fn_error $? "working directory cannot be determined"
1215f299d47fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216625f88beSmrg  as_fn_error $? "pwd does not report name of working directory"
1217f299d47fSmrg
1218f299d47fSmrg
1219f299d47fSmrg# Find the source files, if location was not specified.
1220f299d47fSmrgif test -z "$srcdir"; then
1221f299d47fSmrg  ac_srcdir_defaulted=yes
1222f299d47fSmrg  # Try the directory containing this script, then the parent directory.
1223aa98702cSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1224aa98702cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225aa98702cSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1226aa98702cSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1227aa98702cSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228aa98702cSmrg$as_echo X"$as_myself" |
1229f299d47fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230f299d47fSmrg	    s//\1/
1231f299d47fSmrg	    q
1232f299d47fSmrg	  }
1233f299d47fSmrg	  /^X\(\/\/\)[^/].*/{
1234f299d47fSmrg	    s//\1/
1235f299d47fSmrg	    q
1236f299d47fSmrg	  }
1237f299d47fSmrg	  /^X\(\/\/\)$/{
1238f299d47fSmrg	    s//\1/
1239f299d47fSmrg	    q
1240f299d47fSmrg	  }
1241f299d47fSmrg	  /^X\(\/\).*/{
1242f299d47fSmrg	    s//\1/
1243f299d47fSmrg	    q
1244f299d47fSmrg	  }
1245f299d47fSmrg	  s/.*/./; q'`
1246f299d47fSmrg  srcdir=$ac_confdir
1247f299d47fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1248f299d47fSmrg    srcdir=..
1249f299d47fSmrg  fi
1250f299d47fSmrgelse
1251f299d47fSmrg  ac_srcdir_defaulted=no
1252f299d47fSmrgfi
1253f299d47fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1254f299d47fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255625f88beSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256f299d47fSmrgfi
1257f299d47fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258f299d47fSmrgac_abs_confdir=`(
1259625f88beSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260f299d47fSmrg	pwd)`
1261f299d47fSmrg# When building in place, set srcdir=.
1262f299d47fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1263f299d47fSmrg  srcdir=.
1264f299d47fSmrgfi
1265f299d47fSmrg# Remove unnecessary trailing slashes from srcdir.
1266f299d47fSmrg# Double slashes in file names in object file debugging info
1267f299d47fSmrg# mess up M-x gdb in Emacs.
1268f299d47fSmrgcase $srcdir in
1269f299d47fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270f299d47fSmrgesac
1271f299d47fSmrgfor ac_var in $ac_precious_vars; do
1272f299d47fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273f299d47fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1274f299d47fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275f299d47fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276f299d47fSmrgdone
1277f299d47fSmrg
1278f299d47fSmrg#
1279f299d47fSmrg# Report the --help message.
1280f299d47fSmrg#
1281f299d47fSmrgif test "$ac_init_help" = "long"; then
1282f299d47fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1283f299d47fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1284f299d47fSmrg  cat <<_ACEOF
1285625f88beSmrg\`configure' configures xev 1.1.0 to adapt to many kinds of systems.
1286f299d47fSmrg
1287f299d47fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1288f299d47fSmrg
1289f299d47fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1290f299d47fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1291f299d47fSmrg
1292f299d47fSmrgDefaults for the options are specified in brackets.
1293f299d47fSmrg
1294f299d47fSmrgConfiguration:
1295f299d47fSmrg  -h, --help              display this help and exit
1296f299d47fSmrg      --help=short        display options specific to this package
1297f299d47fSmrg      --help=recursive    display the short help of all the included packages
1298f299d47fSmrg  -V, --version           display version information and exit
1299625f88beSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1300f299d47fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1301f299d47fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1302f299d47fSmrg  -n, --no-create         do not create output files
1303f299d47fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304f299d47fSmrg
1305f299d47fSmrgInstallation directories:
1306f299d47fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1307aa98702cSmrg                          [$ac_default_prefix]
1308f299d47fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309aa98702cSmrg                          [PREFIX]
1310f299d47fSmrg
1311f299d47fSmrgBy default, \`make install' will install all the files in
1312f299d47fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313f299d47fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314f299d47fSmrgfor instance \`--prefix=\$HOME'.
1315f299d47fSmrg
1316f299d47fSmrgFor better control, use the options below.
1317f299d47fSmrg
1318f299d47fSmrgFine tuning of the installation directories:
1319aa98702cSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1320aa98702cSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321aa98702cSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322aa98702cSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323aa98702cSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324aa98702cSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325aa98702cSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1326aa98702cSmrg  --includedir=DIR        C header files [PREFIX/include]
1327aa98702cSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328aa98702cSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329aa98702cSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330aa98702cSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331aa98702cSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332aa98702cSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333aa98702cSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xev]
1334aa98702cSmrg  --htmldir=DIR           html documentation [DOCDIR]
1335aa98702cSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1336aa98702cSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1337aa98702cSmrg  --psdir=DIR             ps documentation [DOCDIR]
1338f299d47fSmrg_ACEOF
1339f299d47fSmrg
1340f299d47fSmrg  cat <<\_ACEOF
1341f299d47fSmrg
1342f299d47fSmrgProgram names:
1343f299d47fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1344f299d47fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1345f299d47fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1346f299d47fSmrg
1347f299d47fSmrgSystem types:
1348f299d47fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1349f299d47fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350f299d47fSmrg_ACEOF
1351f299d47fSmrgfi
1352f299d47fSmrg
1353f299d47fSmrgif test -n "$ac_init_help"; then
1354f299d47fSmrg  case $ac_init_help in
1355625f88beSmrg     short | recursive ) echo "Configuration of xev 1.1.0:";;
1356f299d47fSmrg   esac
1357f299d47fSmrg  cat <<\_ACEOF
1358f299d47fSmrg
1359f299d47fSmrgOptional Features:
1360aa98702cSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1361f299d47fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362f299d47fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363f299d47fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1364f299d47fSmrg			  (and sometimes confusing) to the casual installer
1365f299d47fSmrg  --disable-dependency-tracking  speeds up one-time build
1366f299d47fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1367aa98702cSmrg  --enable-strict-compilation
1368aa98702cSmrg                          Enable all warnings from compiler and make them
1369aa98702cSmrg                          errors (default: disabled)
1370625f88beSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1371625f88beSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1372f299d47fSmrg
1373f299d47fSmrgSome influential environment variables:
1374f299d47fSmrg  CC          C compiler command
1375f299d47fSmrg  CFLAGS      C compiler flags
1376f299d47fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1377f299d47fSmrg              nonstandard directory <lib dir>
1378f299d47fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1379625f88beSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380f299d47fSmrg              you have headers in a nonstandard directory <include dir>
1381aa98702cSmrg  CPP         C preprocessor
1382f299d47fSmrg  PKG_CONFIG  path to pkg-config utility
1383f299d47fSmrg  XEV_CFLAGS  C compiler flags for XEV, overriding pkg-config
1384f299d47fSmrg  XEV_LIBS    linker flags for XEV, overriding pkg-config
1385f299d47fSmrg
1386f299d47fSmrgUse these variables to override the choices made by `configure' or to help
1387f299d47fSmrgit to find libraries and programs with nonstandard names/locations.
1388f299d47fSmrg
1389f299d47fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1390f299d47fSmrg_ACEOF
1391f299d47fSmrgac_status=$?
1392f299d47fSmrgfi
1393f299d47fSmrg
1394f299d47fSmrgif test "$ac_init_help" = "recursive"; then
1395f299d47fSmrg  # If there are subdirs, report their specific --help.
1396f299d47fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397aa98702cSmrg    test -d "$ac_dir" ||
1398aa98702cSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399aa98702cSmrg      continue
1400f299d47fSmrg    ac_builddir=.
1401f299d47fSmrg
1402f299d47fSmrgcase "$ac_dir" in
1403f299d47fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404f299d47fSmrg*)
1405aa98702cSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1406f299d47fSmrg  # A ".." for each directory in $ac_dir_suffix.
1407aa98702cSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1408f299d47fSmrg  case $ac_top_builddir_sub in
1409f299d47fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410f299d47fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411f299d47fSmrg  esac ;;
1412f299d47fSmrgesac
1413f299d47fSmrgac_abs_top_builddir=$ac_pwd
1414f299d47fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1415f299d47fSmrg# for backward compatibility:
1416f299d47fSmrgac_top_builddir=$ac_top_build_prefix
1417f299d47fSmrg
1418f299d47fSmrgcase $srcdir in
1419f299d47fSmrg  .)  # We are building in place.
1420f299d47fSmrg    ac_srcdir=.
1421f299d47fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1422f299d47fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1423f299d47fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1424f299d47fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1425f299d47fSmrg    ac_top_srcdir=$srcdir
1426f299d47fSmrg    ac_abs_top_srcdir=$srcdir ;;
1427f299d47fSmrg  *) # Relative name.
1428f299d47fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429f299d47fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1430f299d47fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431f299d47fSmrgesac
1432f299d47fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433f299d47fSmrg
1434f299d47fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1435f299d47fSmrg    # Check for guested configure.
1436f299d47fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1437f299d47fSmrg      echo &&
1438f299d47fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439f299d47fSmrg    elif test -f "$ac_srcdir/configure"; then
1440f299d47fSmrg      echo &&
1441f299d47fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1442f299d47fSmrg    else
1443aa98702cSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444f299d47fSmrg    fi || ac_status=$?
1445f299d47fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1446f299d47fSmrg  done
1447f299d47fSmrgfi
1448f299d47fSmrg
1449f299d47fSmrgtest -n "$ac_init_help" && exit $ac_status
1450f299d47fSmrgif $ac_init_version; then
1451f299d47fSmrg  cat <<\_ACEOF
1452625f88beSmrgxev configure 1.1.0
1453625f88beSmrggenerated by GNU Autoconf 2.68
1454f299d47fSmrg
1455625f88beSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1456f299d47fSmrgThis configure script is free software; the Free Software Foundation
1457f299d47fSmrggives unlimited permission to copy, distribute and modify it.
1458f299d47fSmrg_ACEOF
1459f299d47fSmrg  exit
1460f299d47fSmrgfi
1461f299d47fSmrg
1462625f88beSmrg## ------------------------ ##
1463625f88beSmrg## Autoconf initialization. ##
1464625f88beSmrg## ------------------------ ##
1465f299d47fSmrg
1466625f88beSmrg# ac_fn_c_try_compile LINENO
1467625f88beSmrg# --------------------------
1468625f88beSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1469625f88beSmrgac_fn_c_try_compile ()
1470f299d47fSmrg{
1471625f88beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472625f88beSmrg  rm -f conftest.$ac_objext
1473625f88beSmrg  if { { ac_try="$ac_compile"
1474625f88beSmrgcase "(($ac_try" in
1475625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476625f88beSmrg  *) ac_try_echo=$ac_try;;
1477625f88beSmrgesac
1478625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479625f88beSmrg$as_echo "$ac_try_echo"; } >&5
1480625f88beSmrg  (eval "$ac_compile") 2>conftest.err
1481625f88beSmrg  ac_status=$?
1482625f88beSmrg  if test -s conftest.err; then
1483625f88beSmrg    grep -v '^ *+' conftest.err >conftest.er1
1484625f88beSmrg    cat conftest.er1 >&5
1485625f88beSmrg    mv -f conftest.er1 conftest.err
1486625f88beSmrg  fi
1487625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488625f88beSmrg  test $ac_status = 0; } && {
1489625f88beSmrg	 test -z "$ac_c_werror_flag" ||
1490625f88beSmrg	 test ! -s conftest.err
1491625f88beSmrg       } && test -s conftest.$ac_objext; then :
1492625f88beSmrg  ac_retval=0
1493625f88beSmrgelse
1494625f88beSmrg  $as_echo "$as_me: failed program was:" >&5
1495625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5
1496f299d47fSmrg
1497625f88beSmrg	ac_retval=1
1498625f88beSmrgfi
1499625f88beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500625f88beSmrg  as_fn_set_status $ac_retval
1501f299d47fSmrg
1502625f88beSmrg} # ac_fn_c_try_compile
1503f299d47fSmrg
1504625f88beSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1505625f88beSmrg# ---------------------------------------------
1506625f88beSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1507625f88beSmrg# accordingly.
1508625f88beSmrgac_fn_c_check_decl ()
1509625f88beSmrg{
1510625f88beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511625f88beSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1512625f88beSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1513625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1514625f88beSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1515625f88beSmrgif eval \${$3+:} false; then :
1516625f88beSmrg  $as_echo_n "(cached) " >&6
1517625f88beSmrgelse
1518625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1519625f88beSmrg/* end confdefs.h.  */
1520625f88beSmrg$4
1521625f88beSmrgint
1522625f88beSmrgmain ()
1523625f88beSmrg{
1524625f88beSmrg#ifndef $as_decl_name
1525625f88beSmrg#ifdef __cplusplus
1526625f88beSmrg  (void) $as_decl_use;
1527625f88beSmrg#else
1528625f88beSmrg  (void) $as_decl_name;
1529625f88beSmrg#endif
1530625f88beSmrg#endif
1531625f88beSmrg
1532625f88beSmrg  ;
1533625f88beSmrg  return 0;
1534625f88beSmrg}
1535625f88beSmrg_ACEOF
1536625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
1537625f88beSmrg  eval "$3=yes"
1538625f88beSmrgelse
1539625f88beSmrg  eval "$3=no"
1540625f88beSmrgfi
1541625f88beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1542625f88beSmrgfi
1543625f88beSmrgeval ac_res=\$$3
1544625f88beSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1545625f88beSmrg$as_echo "$ac_res" >&6; }
1546625f88beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547625f88beSmrg
1548625f88beSmrg} # ac_fn_c_check_decl
1549625f88beSmrg
1550625f88beSmrg# ac_fn_c_try_cpp LINENO
1551625f88beSmrg# ----------------------
1552625f88beSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1553625f88beSmrgac_fn_c_try_cpp ()
1554625f88beSmrg{
1555625f88beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556625f88beSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1557625f88beSmrgcase "(($ac_try" in
1558625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559625f88beSmrg  *) ac_try_echo=$ac_try;;
1560625f88beSmrgesac
1561625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562625f88beSmrg$as_echo "$ac_try_echo"; } >&5
1563625f88beSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1564625f88beSmrg  ac_status=$?
1565625f88beSmrg  if test -s conftest.err; then
1566625f88beSmrg    grep -v '^ *+' conftest.err >conftest.er1
1567625f88beSmrg    cat conftest.er1 >&5
1568625f88beSmrg    mv -f conftest.er1 conftest.err
1569625f88beSmrg  fi
1570625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571625f88beSmrg  test $ac_status = 0; } > conftest.i && {
1572625f88beSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1573625f88beSmrg	 test ! -s conftest.err
1574625f88beSmrg       }; then :
1575625f88beSmrg  ac_retval=0
1576625f88beSmrgelse
1577625f88beSmrg  $as_echo "$as_me: failed program was:" >&5
1578625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5
1579625f88beSmrg
1580625f88beSmrg    ac_retval=1
1581625f88beSmrgfi
1582625f88beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583625f88beSmrg  as_fn_set_status $ac_retval
1584625f88beSmrg
1585625f88beSmrg} # ac_fn_c_try_cpp
1586625f88beSmrg
1587625f88beSmrg# ac_fn_c_try_run LINENO
1588625f88beSmrg# ----------------------
1589625f88beSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1590625f88beSmrg# that executables *can* be run.
1591625f88beSmrgac_fn_c_try_run ()
1592625f88beSmrg{
1593625f88beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594625f88beSmrg  if { { ac_try="$ac_link"
1595625f88beSmrgcase "(($ac_try" in
1596625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597625f88beSmrg  *) ac_try_echo=$ac_try;;
1598625f88beSmrgesac
1599625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600625f88beSmrg$as_echo "$ac_try_echo"; } >&5
1601625f88beSmrg  (eval "$ac_link") 2>&5
1602625f88beSmrg  ac_status=$?
1603625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604625f88beSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1605625f88beSmrg  { { case "(($ac_try" in
1606625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607625f88beSmrg  *) ac_try_echo=$ac_try;;
1608625f88beSmrgesac
1609625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610625f88beSmrg$as_echo "$ac_try_echo"; } >&5
1611625f88beSmrg  (eval "$ac_try") 2>&5
1612625f88beSmrg  ac_status=$?
1613625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614625f88beSmrg  test $ac_status = 0; }; }; then :
1615625f88beSmrg  ac_retval=0
1616625f88beSmrgelse
1617625f88beSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1618625f88beSmrg       $as_echo "$as_me: failed program was:" >&5
1619625f88beSmrgsed 's/^/| /' conftest.$ac_ext >&5
1620625f88beSmrg
1621625f88beSmrg       ac_retval=$ac_status
1622625f88beSmrgfi
1623625f88beSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624625f88beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625625f88beSmrg  as_fn_set_status $ac_retval
1626625f88beSmrg
1627625f88beSmrg} # ac_fn_c_try_run
1628625f88beSmrg
1629625f88beSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630625f88beSmrg# -------------------------------------------------------
1631625f88beSmrg# Tests whether HEADER exists and can be compiled using the include files in
1632625f88beSmrg# INCLUDES, setting the cache variable VAR accordingly.
1633625f88beSmrgac_fn_c_check_header_compile ()
1634625f88beSmrg{
1635625f88beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637625f88beSmrg$as_echo_n "checking for $2... " >&6; }
1638625f88beSmrgif eval \${$3+:} false; then :
1639625f88beSmrg  $as_echo_n "(cached) " >&6
1640625f88beSmrgelse
1641625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642625f88beSmrg/* end confdefs.h.  */
1643625f88beSmrg$4
1644625f88beSmrg#include <$2>
1645625f88beSmrg_ACEOF
1646625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
1647625f88beSmrg  eval "$3=yes"
1648625f88beSmrgelse
1649625f88beSmrg  eval "$3=no"
1650625f88beSmrgfi
1651625f88beSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652625f88beSmrgfi
1653625f88beSmrgeval ac_res=\$$3
1654625f88beSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655625f88beSmrg$as_echo "$ac_res" >&6; }
1656625f88beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657625f88beSmrg
1658625f88beSmrg} # ac_fn_c_check_header_compile
1659625f88beSmrgcat >config.log <<_ACEOF
1660625f88beSmrgThis file contains any messages produced by compilers while
1661625f88beSmrgrunning configure, to aid debugging if configure makes a mistake.
1662625f88beSmrg
1663625f88beSmrgIt was created by xev $as_me 1.1.0, which was
1664625f88beSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1665625f88beSmrg
1666625f88beSmrg  $ $0 $@
1667625f88beSmrg
1668625f88beSmrg_ACEOF
1669625f88beSmrgexec 5>>config.log
1670625f88beSmrg{
1671625f88beSmrgcat <<_ASUNAME
1672625f88beSmrg## --------- ##
1673625f88beSmrg## Platform. ##
1674625f88beSmrg## --------- ##
1675625f88beSmrg
1676625f88beSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1677625f88beSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1678625f88beSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1679625f88beSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1680625f88beSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1681625f88beSmrg
1682625f88beSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1683625f88beSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1684625f88beSmrg
1685625f88beSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1686625f88beSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1687625f88beSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1688625f88beSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1689625f88beSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1690625f88beSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1691625f88beSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1692625f88beSmrg
1693625f88beSmrg_ASUNAME
1694625f88beSmrg
1695625f88beSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696f299d47fSmrgfor as_dir in $PATH
1697f299d47fSmrgdo
1698f299d47fSmrg  IFS=$as_save_IFS
1699f299d47fSmrg  test -z "$as_dir" && as_dir=.
1700625f88beSmrg    $as_echo "PATH: $as_dir"
1701625f88beSmrg  done
1702f299d47fSmrgIFS=$as_save_IFS
1703f299d47fSmrg
1704f299d47fSmrg} >&5
1705f299d47fSmrg
1706f299d47fSmrgcat >&5 <<_ACEOF
1707f299d47fSmrg
1708f299d47fSmrg
1709f299d47fSmrg## ----------- ##
1710f299d47fSmrg## Core tests. ##
1711f299d47fSmrg## ----------- ##
1712f299d47fSmrg
1713f299d47fSmrg_ACEOF
1714f299d47fSmrg
1715f299d47fSmrg
1716f299d47fSmrg# Keep a trace of the command line.
1717f299d47fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1718f299d47fSmrg# Strip out --silent because we don't want to record it for future runs.
1719f299d47fSmrg# Also quote any args containing shell meta-characters.
1720f299d47fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1721f299d47fSmrgac_configure_args=
1722f299d47fSmrgac_configure_args0=
1723f299d47fSmrgac_configure_args1=
1724f299d47fSmrgac_must_keep_next=false
1725f299d47fSmrgfor ac_pass in 1 2
1726f299d47fSmrgdo
1727f299d47fSmrg  for ac_arg
1728f299d47fSmrg  do
1729f299d47fSmrg    case $ac_arg in
1730f299d47fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1731f299d47fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1732f299d47fSmrg    | -silent | --silent | --silen | --sile | --sil)
1733f299d47fSmrg      continue ;;
1734f299d47fSmrg    *\'*)
1735aa98702cSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736f299d47fSmrg    esac
1737f299d47fSmrg    case $ac_pass in
1738625f88beSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1739f299d47fSmrg    2)
1740625f88beSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1741f299d47fSmrg      if test $ac_must_keep_next = true; then
1742f299d47fSmrg	ac_must_keep_next=false # Got value, back to normal.
1743f299d47fSmrg      else
1744f299d47fSmrg	case $ac_arg in
1745f299d47fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1746f299d47fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1747f299d47fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1748f299d47fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1749f299d47fSmrg	    case "$ac_configure_args0 " in
1750f299d47fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1751f299d47fSmrg	    esac
1752f299d47fSmrg	    ;;
1753f299d47fSmrg	  -* ) ac_must_keep_next=true ;;
1754f299d47fSmrg	esac
1755f299d47fSmrg      fi
1756625f88beSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1757f299d47fSmrg      ;;
1758f299d47fSmrg    esac
1759f299d47fSmrg  done
1760f299d47fSmrgdone
1761625f88beSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1762625f88beSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1763f299d47fSmrg
1764f299d47fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1765f299d47fSmrg# config.log.  We remove comments because anyway the quotes in there
1766f299d47fSmrg# would cause problems or look ugly.
1767f299d47fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1768f299d47fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1769f299d47fSmrgtrap 'exit_status=$?
1770f299d47fSmrg  # Save into config.log some information that might help in debugging.
1771f299d47fSmrg  {
1772f299d47fSmrg    echo
1773f299d47fSmrg
1774625f88beSmrg    $as_echo "## ---------------- ##
1775f299d47fSmrg## Cache variables. ##
1776625f88beSmrg## ---------------- ##"
1777f299d47fSmrg    echo
1778f299d47fSmrg    # The following way of writing the cache mishandles newlines in values,
1779f299d47fSmrg(
1780f299d47fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781f299d47fSmrg    eval ac_val=\$$ac_var
1782f299d47fSmrg    case $ac_val in #(
1783f299d47fSmrg    *${as_nl}*)
1784f299d47fSmrg      case $ac_var in #(
1785625f88beSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1786aa98702cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1787f299d47fSmrg      esac
1788f299d47fSmrg      case $ac_var in #(
1789f299d47fSmrg      _ | IFS | as_nl) ;; #(
1790aa98702cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1791625f88beSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1792f299d47fSmrg      esac ;;
1793f299d47fSmrg    esac
1794f299d47fSmrg  done
1795f299d47fSmrg  (set) 2>&1 |
1796f299d47fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1797f299d47fSmrg    *${as_nl}ac_space=\ *)
1798f299d47fSmrg      sed -n \
1799f299d47fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1800f299d47fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1801f299d47fSmrg      ;; #(
1802f299d47fSmrg    *)
1803f299d47fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804f299d47fSmrg      ;;
1805f299d47fSmrg    esac |
1806f299d47fSmrg    sort
1807f299d47fSmrg)
1808f299d47fSmrg    echo
1809f299d47fSmrg
1810625f88beSmrg    $as_echo "## ----------------- ##
1811f299d47fSmrg## Output variables. ##
1812625f88beSmrg## ----------------- ##"
1813f299d47fSmrg    echo
1814f299d47fSmrg    for ac_var in $ac_subst_vars
1815f299d47fSmrg    do
1816f299d47fSmrg      eval ac_val=\$$ac_var
1817f299d47fSmrg      case $ac_val in
1818aa98702cSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819f299d47fSmrg      esac
1820aa98702cSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1821f299d47fSmrg    done | sort
1822f299d47fSmrg    echo
1823f299d47fSmrg
1824f299d47fSmrg    if test -n "$ac_subst_files"; then
1825625f88beSmrg      $as_echo "## ------------------- ##
1826f299d47fSmrg## File substitutions. ##
1827625f88beSmrg## ------------------- ##"
1828f299d47fSmrg      echo
1829f299d47fSmrg      for ac_var in $ac_subst_files
1830f299d47fSmrg      do
1831f299d47fSmrg	eval ac_val=\$$ac_var
1832f299d47fSmrg	case $ac_val in
1833aa98702cSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834f299d47fSmrg	esac
1835aa98702cSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1836f299d47fSmrg      done | sort
1837f299d47fSmrg      echo
1838f299d47fSmrg    fi
1839f299d47fSmrg
1840f299d47fSmrg    if test -s confdefs.h; then
1841625f88beSmrg      $as_echo "## ----------- ##
1842f299d47fSmrg## confdefs.h. ##
1843625f88beSmrg## ----------- ##"
1844f299d47fSmrg      echo
1845f299d47fSmrg      cat confdefs.h
1846f299d47fSmrg      echo
1847f299d47fSmrg    fi
1848f299d47fSmrg    test "$ac_signal" != 0 &&
1849aa98702cSmrg      $as_echo "$as_me: caught signal $ac_signal"
1850aa98702cSmrg    $as_echo "$as_me: exit $exit_status"
1851f299d47fSmrg  } >&5
1852f299d47fSmrg  rm -f core *.core core.conftest.* &&
1853f299d47fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854f299d47fSmrg    exit $exit_status
1855f299d47fSmrg' 0
1856f299d47fSmrgfor ac_signal in 1 2 13 15; do
1857625f88beSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1858f299d47fSmrgdone
1859f299d47fSmrgac_signal=0
1860f299d47fSmrg
1861f299d47fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1862f299d47fSmrgrm -f -r conftest* confdefs.h
1863f299d47fSmrg
1864625f88beSmrg$as_echo "/* confdefs.h */" > confdefs.h
1865625f88beSmrg
1866f299d47fSmrg# Predefined preprocessor variables.
1867f299d47fSmrg
1868f299d47fSmrgcat >>confdefs.h <<_ACEOF
1869f299d47fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
1870f299d47fSmrg_ACEOF
1871f299d47fSmrg
1872f299d47fSmrgcat >>confdefs.h <<_ACEOF
1873f299d47fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874f299d47fSmrg_ACEOF
1875f299d47fSmrg
1876f299d47fSmrgcat >>confdefs.h <<_ACEOF
1877f299d47fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1878f299d47fSmrg_ACEOF
1879f299d47fSmrg
1880f299d47fSmrgcat >>confdefs.h <<_ACEOF
1881f299d47fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
1882f299d47fSmrg_ACEOF
1883f299d47fSmrg
1884f299d47fSmrgcat >>confdefs.h <<_ACEOF
1885f299d47fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886f299d47fSmrg_ACEOF
1887f299d47fSmrg
1888625f88beSmrgcat >>confdefs.h <<_ACEOF
1889625f88beSmrg#define PACKAGE_URL "$PACKAGE_URL"
1890625f88beSmrg_ACEOF
1891625f88beSmrg
1892f299d47fSmrg
1893f299d47fSmrg# Let the site file select an alternate cache file if it wants to.
1894aa98702cSmrg# Prefer an explicitly selected file to automatically selected ones.
1895aa98702cSmrgac_site_file1=NONE
1896aa98702cSmrgac_site_file2=NONE
1897f299d47fSmrgif test -n "$CONFIG_SITE"; then
1898625f88beSmrg  # We do not want a PATH search for config.site.
1899625f88beSmrg  case $CONFIG_SITE in #((
1900625f88beSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
1901625f88beSmrg    */*) ac_site_file1=$CONFIG_SITE;;
1902625f88beSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
1903625f88beSmrg  esac
1904f299d47fSmrgelif test "x$prefix" != xNONE; then
1905aa98702cSmrg  ac_site_file1=$prefix/share/config.site
1906aa98702cSmrg  ac_site_file2=$prefix/etc/config.site
1907f299d47fSmrgelse
1908aa98702cSmrg  ac_site_file1=$ac_default_prefix/share/config.site
1909aa98702cSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
1910f299d47fSmrgfi
1911aa98702cSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1912f299d47fSmrgdo
1913aa98702cSmrg  test "x$ac_site_file" = xNONE && continue
1914625f88beSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1915625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1916aa98702cSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1917f299d47fSmrg    sed 's/^/| /' "$ac_site_file" >&5
1918625f88beSmrg    . "$ac_site_file" \
1919625f88beSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1920625f88beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1921625f88beSmrgas_fn_error $? "failed to load site script $ac_site_file
1922625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
1923f299d47fSmrg  fi
1924f299d47fSmrgdone
1925f299d47fSmrg
1926f299d47fSmrgif test -r "$cache_file"; then
1927625f88beSmrg  # Some versions of bash will fail to source /dev/null (special files
1928625f88beSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1929625f88beSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1930625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1931aa98702cSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1932f299d47fSmrg    case $cache_file in
1933f299d47fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934f299d47fSmrg      *)                      . "./$cache_file";;
1935f299d47fSmrg    esac
1936f299d47fSmrg  fi
1937f299d47fSmrgelse
1938625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1939aa98702cSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1940f299d47fSmrg  >$cache_file
1941f299d47fSmrgfi
1942f299d47fSmrg
1943f299d47fSmrg# Check that the precious variables saved in the cache have kept the same
1944f299d47fSmrg# value.
1945f299d47fSmrgac_cache_corrupted=false
1946f299d47fSmrgfor ac_var in $ac_precious_vars; do
1947f299d47fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948f299d47fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
1949f299d47fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950f299d47fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
1951f299d47fSmrg  case $ac_old_set,$ac_new_set in
1952f299d47fSmrg    set,)
1953625f88beSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955f299d47fSmrg      ac_cache_corrupted=: ;;
1956f299d47fSmrg    ,set)
1957625f88beSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1958aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959f299d47fSmrg      ac_cache_corrupted=: ;;
1960f299d47fSmrg    ,);;
1961f299d47fSmrg    *)
1962f299d47fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1963aa98702cSmrg	# differences in whitespace do not lead to failure.
1964aa98702cSmrg	ac_old_val_w=`echo x $ac_old_val`
1965aa98702cSmrg	ac_new_val_w=`echo x $ac_new_val`
1966aa98702cSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1967625f88beSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1968aa98702cSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969aa98702cSmrg	  ac_cache_corrupted=:
1970aa98702cSmrg	else
1971625f88beSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1972aa98702cSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1973aa98702cSmrg	  eval $ac_var=\$ac_old_val
1974aa98702cSmrg	fi
1975625f88beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1976aa98702cSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1977625f88beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1978aa98702cSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1979f299d47fSmrg      fi;;
1980f299d47fSmrg  esac
1981f299d47fSmrg  # Pass precious variables to config.status.
1982f299d47fSmrg  if test "$ac_new_set" = set; then
1983f299d47fSmrg    case $ac_new_val in
1984aa98702cSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985f299d47fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
1986f299d47fSmrg    esac
1987f299d47fSmrg    case " $ac_configure_args " in
1988f299d47fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1989625f88beSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1990f299d47fSmrg    esac
1991f299d47fSmrg  fi
1992f299d47fSmrgdone
1993f299d47fSmrgif $ac_cache_corrupted; then
1994625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1995aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1996625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1997aa98702cSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998625f88beSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1999f299d47fSmrgfi
2000625f88beSmrg## -------------------- ##
2001625f88beSmrg## Main body of script. ##
2002625f88beSmrg## -------------------- ##
2003f299d47fSmrg
2004f299d47fSmrgac_ext=c
2005f299d47fSmrgac_cpp='$CPP $CPPFLAGS'
2006f299d47fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007f299d47fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008f299d47fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2009f299d47fSmrg
2010f299d47fSmrg
2011aa98702cSmrgam__api_version='1.11'
2012f299d47fSmrg
2013f299d47fSmrgac_aux_dir=
2014f299d47fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2015f299d47fSmrg  if test -f "$ac_dir/install-sh"; then
2016f299d47fSmrg    ac_aux_dir=$ac_dir
2017f299d47fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2018f299d47fSmrg    break
2019f299d47fSmrg  elif test -f "$ac_dir/install.sh"; then
2020f299d47fSmrg    ac_aux_dir=$ac_dir
2021f299d47fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2022f299d47fSmrg    break
2023f299d47fSmrg  elif test -f "$ac_dir/shtool"; then
2024f299d47fSmrg    ac_aux_dir=$ac_dir
2025f299d47fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2026f299d47fSmrg    break
2027f299d47fSmrg  fi
2028f299d47fSmrgdone
2029f299d47fSmrgif test -z "$ac_aux_dir"; then
2030625f88beSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2031f299d47fSmrgfi
2032f299d47fSmrg
2033f299d47fSmrg# These three variables are undocumented and unsupported,
2034f299d47fSmrg# and are intended to be withdrawn in a future Autoconf release.
2035f299d47fSmrg# They can cause serious problems if a builder's source tree is in a directory
2036f299d47fSmrg# whose full name contains unusual characters.
2037f299d47fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2038f299d47fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2039f299d47fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2040f299d47fSmrg
2041f299d47fSmrg
2042f299d47fSmrg# Find a good install program.  We prefer a C program (faster),
2043f299d47fSmrg# so one script is as good as another.  But avoid the broken or
2044f299d47fSmrg# incompatible versions:
2045f299d47fSmrg# SysV /etc/install, /usr/sbin/install
2046f299d47fSmrg# SunOS /usr/etc/install
2047f299d47fSmrg# IRIX /sbin/install
2048f299d47fSmrg# AIX /bin/install
2049f299d47fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2050f299d47fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2051f299d47fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2052f299d47fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2053f299d47fSmrg# OS/2's system install, which has a completely different semantic
2054f299d47fSmrg# ./install, which can be erroneously created by make from ./install.sh.
2055aa98702cSmrg# Reject install programs that cannot install multiple files.
2056625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2057aa98702cSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2058f299d47fSmrgif test -z "$INSTALL"; then
2059625f88beSmrgif ${ac_cv_path_install+:} false; then :
2060aa98702cSmrg  $as_echo_n "(cached) " >&6
2061f299d47fSmrgelse
2062f299d47fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063f299d47fSmrgfor as_dir in $PATH
2064f299d47fSmrgdo
2065f299d47fSmrg  IFS=$as_save_IFS
2066f299d47fSmrg  test -z "$as_dir" && as_dir=.
2067625f88beSmrg    # Account for people who put trailing slashes in PATH elements.
2068625f88beSmrgcase $as_dir/ in #((
2069625f88beSmrg  ./ | .// | /[cC]/* | \
2070f299d47fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071625f88beSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2072f299d47fSmrg  /usr/ucb/* ) ;;
2073f299d47fSmrg  *)
2074f299d47fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2075f299d47fSmrg    # Don't use installbsd from OSF since it installs stuff as root
2076f299d47fSmrg    # by default.
2077f299d47fSmrg    for ac_prog in ginstall scoinst install; do
2078f299d47fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2079f299d47fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2080f299d47fSmrg	  if test $ac_prog = install &&
2081f299d47fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082f299d47fSmrg	    # AIX install.  It has an incompatible calling convention.
2083f299d47fSmrg	    :
2084f299d47fSmrg	  elif test $ac_prog = install &&
2085f299d47fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086f299d47fSmrg	    # program-specific install script used by HP pwplus--don't use.
2087f299d47fSmrg	    :
2088f299d47fSmrg	  else
2089aa98702cSmrg	    rm -rf conftest.one conftest.two conftest.dir
2090aa98702cSmrg	    echo one > conftest.one
2091aa98702cSmrg	    echo two > conftest.two
2092aa98702cSmrg	    mkdir conftest.dir
2093aa98702cSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2094aa98702cSmrg	      test -s conftest.one && test -s conftest.two &&
2095aa98702cSmrg	      test -s conftest.dir/conftest.one &&
2096aa98702cSmrg	      test -s conftest.dir/conftest.two
2097aa98702cSmrg	    then
2098aa98702cSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2099aa98702cSmrg	      break 3
2100aa98702cSmrg	    fi
2101f299d47fSmrg	  fi
2102f299d47fSmrg	fi
2103f299d47fSmrg      done
2104f299d47fSmrg    done
2105f299d47fSmrg    ;;
2106f299d47fSmrgesac
2107aa98702cSmrg
2108625f88beSmrg  done
2109f299d47fSmrgIFS=$as_save_IFS
2110f299d47fSmrg
2111aa98702cSmrgrm -rf conftest.one conftest.two conftest.dir
2112f299d47fSmrg
2113f299d47fSmrgfi
2114f299d47fSmrg  if test "${ac_cv_path_install+set}" = set; then
2115f299d47fSmrg    INSTALL=$ac_cv_path_install
2116f299d47fSmrg  else
2117f299d47fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2118f299d47fSmrg    # value for INSTALL within a source directory, because that will
2119f299d47fSmrg    # break other packages using the cache if that directory is
2120f299d47fSmrg    # removed, or if the value is a relative name.
2121f299d47fSmrg    INSTALL=$ac_install_sh
2122f299d47fSmrg  fi
2123f299d47fSmrgfi
2124625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2125aa98702cSmrg$as_echo "$INSTALL" >&6; }
2126f299d47fSmrg
2127f299d47fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2128f299d47fSmrg# It thinks the first close brace ends the variable substitution.
2129f299d47fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2130f299d47fSmrg
2131f299d47fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2132f299d47fSmrg
2133f299d47fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2134f299d47fSmrg
2135625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2136aa98702cSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2137f299d47fSmrg# Just in case
2138f299d47fSmrgsleep 1
2139f299d47fSmrgecho timestamp > conftest.file
2140aa98702cSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2141aa98702cSmrg# name.  Accept space and tab only in the latter.
2142aa98702cSmrgam_lf='
2143aa98702cSmrg'
2144aa98702cSmrgcase `pwd` in
2145aa98702cSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2146625f88beSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2147aa98702cSmrgesac
2148aa98702cSmrgcase $srcdir in
2149aa98702cSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2150625f88beSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2151aa98702cSmrgesac
2152aa98702cSmrg
2153f299d47fSmrg# Do `set' in a subshell so we don't clobber the current shell's
2154f299d47fSmrg# arguments.  Must try -L first in case configure is actually a
2155f299d47fSmrg# symlink; some systems play weird games with the mod time of symlinks
2156f299d47fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2157f299d47fSmrg# directory).
2158f299d47fSmrgif (
2159aa98702cSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2160f299d47fSmrg   if test "$*" = "X"; then
2161f299d47fSmrg      # -L didn't work.
2162aa98702cSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2163f299d47fSmrg   fi
2164f299d47fSmrg   rm -f conftest.file
2165f299d47fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2166f299d47fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2167f299d47fSmrg
2168f299d47fSmrg      # If neither matched, then we have a broken ls.  This can happen
2169f299d47fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2170f299d47fSmrg      # broken ls alias from the environment.  This has actually
2171f299d47fSmrg      # happened.  Such a system could not be considered "sane".
2172625f88beSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2173625f88beSmrgalias in your environment" "$LINENO" 5
2174f299d47fSmrg   fi
2175f299d47fSmrg
2176f299d47fSmrg   test "$2" = conftest.file
2177f299d47fSmrg   )
2178f299d47fSmrgthen
2179f299d47fSmrg   # Ok.
2180f299d47fSmrg   :
2181f299d47fSmrgelse
2182625f88beSmrg   as_fn_error $? "newly created file is older than distributed files!
2183625f88beSmrgCheck your system clock" "$LINENO" 5
2184f299d47fSmrgfi
2185625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2186aa98702cSmrg$as_echo "yes" >&6; }
2187f299d47fSmrgtest "$program_prefix" != NONE &&
2188f299d47fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2189f299d47fSmrg# Use a double $ so make ignores it.
2190f299d47fSmrgtest "$program_suffix" != NONE &&
2191f299d47fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2192aa98702cSmrg# Double any \ or $.
2193f299d47fSmrg# By default was `s,x,x', remove it if useless.
2194aa98702cSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2195aa98702cSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2196f299d47fSmrg
2197f299d47fSmrg# expand $ac_aux_dir to an absolute path
2198f299d47fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2199f299d47fSmrg
2200aa98702cSmrgif test x"${MISSING+set}" != xset; then
2201aa98702cSmrg  case $am_aux_dir in
2202aa98702cSmrg  *\ * | *\	*)
2203aa98702cSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2204aa98702cSmrg  *)
2205aa98702cSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2206aa98702cSmrg  esac
2207aa98702cSmrgfi
2208f299d47fSmrg# Use eval to expand $SHELL
2209f299d47fSmrgif eval "$MISSING --run true"; then
2210f299d47fSmrg  am_missing_run="$MISSING --run "
2211f299d47fSmrgelse
2212f299d47fSmrg  am_missing_run=
2213625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2214aa98702cSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2215f299d47fSmrgfi
2216f299d47fSmrg
2217aa98702cSmrgif test x"${install_sh}" != xset; then
2218aa98702cSmrg  case $am_aux_dir in
2219aa98702cSmrg  *\ * | *\	*)
2220aa98702cSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2221aa98702cSmrg  *)
2222aa98702cSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2223aa98702cSmrg  esac
2224aa98702cSmrgfi
2225aa98702cSmrg
2226aa98702cSmrg# Installed binaries are usually stripped using `strip' when the user
2227aa98702cSmrg# run `make install-strip'.  However `strip' might not be the right
2228aa98702cSmrg# tool to use in cross-compilation environments, therefore Automake
2229aa98702cSmrg# will honor the `STRIP' environment variable to overrule this program.
2230aa98702cSmrgif test "$cross_compiling" != no; then
2231aa98702cSmrg  if test -n "$ac_tool_prefix"; then
2232aa98702cSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2233aa98702cSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2234625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2235aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2236625f88beSmrgif ${ac_cv_prog_STRIP+:} false; then :
2237aa98702cSmrg  $as_echo_n "(cached) " >&6
2238aa98702cSmrgelse
2239aa98702cSmrg  if test -n "$STRIP"; then
2240aa98702cSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2241aa98702cSmrgelse
2242aa98702cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243aa98702cSmrgfor as_dir in $PATH
2244aa98702cSmrgdo
2245aa98702cSmrg  IFS=$as_save_IFS
2246aa98702cSmrg  test -z "$as_dir" && as_dir=.
2247625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2248aa98702cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249aa98702cSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2250625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2251aa98702cSmrg    break 2
2252aa98702cSmrg  fi
2253aa98702cSmrgdone
2254625f88beSmrg  done
2255aa98702cSmrgIFS=$as_save_IFS
2256aa98702cSmrg
2257aa98702cSmrgfi
2258aa98702cSmrgfi
2259aa98702cSmrgSTRIP=$ac_cv_prog_STRIP
2260aa98702cSmrgif test -n "$STRIP"; then
2261625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2262aa98702cSmrg$as_echo "$STRIP" >&6; }
2263aa98702cSmrgelse
2264625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2265aa98702cSmrg$as_echo "no" >&6; }
2266aa98702cSmrgfi
2267aa98702cSmrg
2268aa98702cSmrg
2269aa98702cSmrgfi
2270aa98702cSmrgif test -z "$ac_cv_prog_STRIP"; then
2271aa98702cSmrg  ac_ct_STRIP=$STRIP
2272aa98702cSmrg  # Extract the first word of "strip", so it can be a program name with args.
2273aa98702cSmrgset dummy strip; ac_word=$2
2274625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2275aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2276625f88beSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2277aa98702cSmrg  $as_echo_n "(cached) " >&6
2278aa98702cSmrgelse
2279aa98702cSmrg  if test -n "$ac_ct_STRIP"; then
2280aa98702cSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2281aa98702cSmrgelse
2282aa98702cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283aa98702cSmrgfor as_dir in $PATH
2284aa98702cSmrgdo
2285aa98702cSmrg  IFS=$as_save_IFS
2286aa98702cSmrg  test -z "$as_dir" && as_dir=.
2287625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2288aa98702cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289aa98702cSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2290625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2291aa98702cSmrg    break 2
2292aa98702cSmrg  fi
2293aa98702cSmrgdone
2294625f88beSmrg  done
2295aa98702cSmrgIFS=$as_save_IFS
2296aa98702cSmrg
2297aa98702cSmrgfi
2298aa98702cSmrgfi
2299aa98702cSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2300aa98702cSmrgif test -n "$ac_ct_STRIP"; then
2301625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2302aa98702cSmrg$as_echo "$ac_ct_STRIP" >&6; }
2303aa98702cSmrgelse
2304625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2305aa98702cSmrg$as_echo "no" >&6; }
2306aa98702cSmrgfi
2307aa98702cSmrg
2308aa98702cSmrg  if test "x$ac_ct_STRIP" = x; then
2309aa98702cSmrg    STRIP=":"
2310aa98702cSmrg  else
2311aa98702cSmrg    case $cross_compiling:$ac_tool_warned in
2312aa98702cSmrgyes:)
2313625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2314aa98702cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2315aa98702cSmrgac_tool_warned=yes ;;
2316aa98702cSmrgesac
2317aa98702cSmrg    STRIP=$ac_ct_STRIP
2318aa98702cSmrg  fi
2319aa98702cSmrgelse
2320aa98702cSmrg  STRIP="$ac_cv_prog_STRIP"
2321aa98702cSmrgfi
2322aa98702cSmrg
2323aa98702cSmrgfi
2324aa98702cSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2325aa98702cSmrg
2326625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2327aa98702cSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2328aa98702cSmrgif test -z "$MKDIR_P"; then
2329625f88beSmrg  if ${ac_cv_path_mkdir+:} false; then :
2330aa98702cSmrg  $as_echo_n "(cached) " >&6
2331aa98702cSmrgelse
2332f299d47fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333f299d47fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2334f299d47fSmrgdo
2335f299d47fSmrg  IFS=$as_save_IFS
2336f299d47fSmrg  test -z "$as_dir" && as_dir=.
2337625f88beSmrg    for ac_prog in mkdir gmkdir; do
2338f299d47fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2339f299d47fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2340f299d47fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2341f299d47fSmrg	     'mkdir (GNU coreutils) '* | \
2342f299d47fSmrg	     'mkdir (coreutils) '* | \
2343f299d47fSmrg	     'mkdir (fileutils) '4.1*)
2344f299d47fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2345f299d47fSmrg	       break 3;;
2346f299d47fSmrg	   esac
2347f299d47fSmrg	 done
2348f299d47fSmrg       done
2349625f88beSmrg  done
2350f299d47fSmrgIFS=$as_save_IFS
2351f299d47fSmrg
2352f299d47fSmrgfi
2353f299d47fSmrg
2354625f88beSmrg  test -d ./--version && rmdir ./--version
2355f299d47fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2356f299d47fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2357f299d47fSmrg  else
2358f299d47fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2359f299d47fSmrg    # value for MKDIR_P within a source directory, because that will
2360f299d47fSmrg    # break other packages using the cache if that directory is
2361f299d47fSmrg    # removed, or if the value is a relative name.
2362f299d47fSmrg    MKDIR_P="$ac_install_sh -d"
2363f299d47fSmrg  fi
2364f299d47fSmrgfi
2365625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2366aa98702cSmrg$as_echo "$MKDIR_P" >&6; }
2367f299d47fSmrg
2368f299d47fSmrgmkdir_p="$MKDIR_P"
2369f299d47fSmrgcase $mkdir_p in
2370f299d47fSmrg  [\\/$]* | ?:[\\/]*) ;;
2371f299d47fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2372f299d47fSmrgesac
2373f299d47fSmrg
2374f299d47fSmrgfor ac_prog in gawk mawk nawk awk
2375f299d47fSmrgdo
2376f299d47fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2377f299d47fSmrgset dummy $ac_prog; ac_word=$2
2378625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2380625f88beSmrgif ${ac_cv_prog_AWK+:} false; then :
2381aa98702cSmrg  $as_echo_n "(cached) " >&6
2382f299d47fSmrgelse
2383f299d47fSmrg  if test -n "$AWK"; then
2384f299d47fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385f299d47fSmrgelse
2386f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387f299d47fSmrgfor as_dir in $PATH
2388f299d47fSmrgdo
2389f299d47fSmrg  IFS=$as_save_IFS
2390f299d47fSmrg  test -z "$as_dir" && as_dir=.
2391625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2392f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393f299d47fSmrg    ac_cv_prog_AWK="$ac_prog"
2394625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395f299d47fSmrg    break 2
2396f299d47fSmrg  fi
2397f299d47fSmrgdone
2398625f88beSmrg  done
2399f299d47fSmrgIFS=$as_save_IFS
2400f299d47fSmrg
2401f299d47fSmrgfi
2402f299d47fSmrgfi
2403f299d47fSmrgAWK=$ac_cv_prog_AWK
2404f299d47fSmrgif test -n "$AWK"; then
2405625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2406aa98702cSmrg$as_echo "$AWK" >&6; }
2407f299d47fSmrgelse
2408625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409aa98702cSmrg$as_echo "no" >&6; }
2410f299d47fSmrgfi
2411f299d47fSmrg
2412f299d47fSmrg
2413f299d47fSmrg  test -n "$AWK" && break
2414f299d47fSmrgdone
2415f299d47fSmrg
2416625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2417aa98702cSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2418aa98702cSmrgset x ${MAKE-make}
2419aa98702cSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2420625f88beSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2421aa98702cSmrg  $as_echo_n "(cached) " >&6
2422f299d47fSmrgelse
2423f299d47fSmrg  cat >conftest.make <<\_ACEOF
2424f299d47fSmrgSHELL = /bin/sh
2425f299d47fSmrgall:
2426f299d47fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2427f299d47fSmrg_ACEOF
2428625f88beSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2429f299d47fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2430f299d47fSmrg  *@@@%%%=?*=@@@%%%*)
2431f299d47fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2432f299d47fSmrg  *)
2433f299d47fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2434f299d47fSmrgesac
2435f299d47fSmrgrm -f conftest.make
2436f299d47fSmrgfi
2437f299d47fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2438625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2439aa98702cSmrg$as_echo "yes" >&6; }
2440f299d47fSmrg  SET_MAKE=
2441f299d47fSmrgelse
2442625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443aa98702cSmrg$as_echo "no" >&6; }
2444f299d47fSmrg  SET_MAKE="MAKE=${MAKE-make}"
2445f299d47fSmrgfi
2446f299d47fSmrg
2447f299d47fSmrgrm -rf .tst 2>/dev/null
2448f299d47fSmrgmkdir .tst 2>/dev/null
2449f299d47fSmrgif test -d .tst; then
2450f299d47fSmrg  am__leading_dot=.
2451f299d47fSmrgelse
2452f299d47fSmrg  am__leading_dot=_
2453f299d47fSmrgfi
2454f299d47fSmrgrmdir .tst 2>/dev/null
2455f299d47fSmrg
2456f299d47fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2457f299d47fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2458f299d47fSmrg  # is not polluted with repeated "-I."
2459f299d47fSmrg  am__isrc=' -I$(srcdir)'
2460f299d47fSmrg  # test to see if srcdir already configured
2461f299d47fSmrg  if test -f $srcdir/config.status; then
2462625f88beSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2463f299d47fSmrg  fi
2464f299d47fSmrgfi
2465f299d47fSmrg
2466f299d47fSmrg# test whether we have cygpath
2467f299d47fSmrgif test -z "$CYGPATH_W"; then
2468f299d47fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2469f299d47fSmrg    CYGPATH_W='cygpath -w'
2470f299d47fSmrg  else
2471f299d47fSmrg    CYGPATH_W=echo
2472f299d47fSmrg  fi
2473f299d47fSmrgfi
2474f299d47fSmrg
2475f299d47fSmrg
2476f299d47fSmrg# Define the identity of the package.
2477f299d47fSmrg PACKAGE='xev'
2478625f88beSmrg VERSION='1.1.0'
2479f299d47fSmrg
2480f299d47fSmrg
2481f299d47fSmrgcat >>confdefs.h <<_ACEOF
2482f299d47fSmrg#define PACKAGE "$PACKAGE"
2483f299d47fSmrg_ACEOF
2484f299d47fSmrg
2485f299d47fSmrg
2486f299d47fSmrgcat >>confdefs.h <<_ACEOF
2487f299d47fSmrg#define VERSION "$VERSION"
2488f299d47fSmrg_ACEOF
2489f299d47fSmrg
2490f299d47fSmrg# Some tools Automake needs.
2491f299d47fSmrg
2492f299d47fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2493f299d47fSmrg
2494f299d47fSmrg
2495f299d47fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2496f299d47fSmrg
2497f299d47fSmrg
2498f299d47fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2499f299d47fSmrg
2500f299d47fSmrg
2501f299d47fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2502f299d47fSmrg
2503f299d47fSmrg
2504f299d47fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2505f299d47fSmrg
2506f299d47fSmrg# We need awk for the "check" target.  The system "awk" is bad on
2507f299d47fSmrg# some platforms.
2508f299d47fSmrg# Always define AMTAR for backward compatibility.
2509f299d47fSmrg
2510f299d47fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2511f299d47fSmrg
2512f299d47fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2513f299d47fSmrg
2514f299d47fSmrg
2515f299d47fSmrg
2516f299d47fSmrg
2517f299d47fSmrg
2518aa98702cSmrg
2519625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2520aa98702cSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2521f299d47fSmrg    # Check whether --enable-maintainer-mode was given.
2522625f88beSmrgif test "${enable_maintainer_mode+set}" = set; then :
2523f299d47fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2524f299d47fSmrgelse
2525f299d47fSmrg  USE_MAINTAINER_MODE=no
2526f299d47fSmrgfi
2527f299d47fSmrg
2528625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2529aa98702cSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2530f299d47fSmrg   if test $USE_MAINTAINER_MODE = yes; then
2531f299d47fSmrg  MAINTAINER_MODE_TRUE=
2532f299d47fSmrg  MAINTAINER_MODE_FALSE='#'
2533f299d47fSmrgelse
2534f299d47fSmrg  MAINTAINER_MODE_TRUE='#'
2535f299d47fSmrg  MAINTAINER_MODE_FALSE=
2536f299d47fSmrgfi
2537f299d47fSmrg
2538f299d47fSmrg  MAINT=$MAINTAINER_MODE_TRUE
2539f299d47fSmrg
2540f299d47fSmrg
2541f299d47fSmrg
2542f299d47fSmrgac_config_headers="$ac_config_headers config.h"
2543f299d47fSmrg
2544f299d47fSmrg
2545625f88beSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2546625f88beSmrg
2547aa98702cSmrg
2548aa98702cSmrg
2549aa98702cSmrg
2550aa98702cSmrg
2551aa98702cSmrg
2552aa98702cSmrg
2553aa98702cSmrg
2554aa98702cSmrg
2555aa98702cSmrg
2556aa98702cSmrg
2557aa98702cSmrg
2558625f88beSmrgDEPDIR="${am__leading_dot}deps"
2559625f88beSmrg
2560625f88beSmrgac_config_commands="$ac_config_commands depfiles"
2561625f88beSmrg
2562625f88beSmrg
2563625f88beSmrgam_make=${MAKE-make}
2564625f88beSmrgcat > confinc << 'END'
2565625f88beSmrgam__doit:
2566625f88beSmrg	@echo this is the am__doit target
2567625f88beSmrg.PHONY: am__doit
2568625f88beSmrgEND
2569625f88beSmrg# If we don't find an include directive, just comment out the code.
2570625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2571625f88beSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2572625f88beSmrgam__include="#"
2573625f88beSmrgam__quote=
2574625f88beSmrg_am_result=none
2575625f88beSmrg# First try GNU make style include.
2576625f88beSmrgecho "include confinc" > confmf
2577625f88beSmrg# Ignore all kinds of additional output from `make'.
2578625f88beSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2579625f88beSmrg*the\ am__doit\ target*)
2580625f88beSmrg  am__include=include
2581625f88beSmrg  am__quote=
2582625f88beSmrg  _am_result=GNU
2583625f88beSmrg  ;;
2584625f88beSmrgesac
2585625f88beSmrg# Now try BSD make style include.
2586625f88beSmrgif test "$am__include" = "#"; then
2587625f88beSmrg   echo '.include "confinc"' > confmf
2588625f88beSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2589625f88beSmrg   *the\ am__doit\ target*)
2590625f88beSmrg     am__include=.include
2591625f88beSmrg     am__quote="\""
2592625f88beSmrg     _am_result=BSD
2593625f88beSmrg     ;;
2594625f88beSmrg   esac
2595625f88beSmrgfi
2596625f88beSmrg
2597625f88beSmrg
2598625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2599625f88beSmrg$as_echo "$_am_result" >&6; }
2600625f88beSmrgrm -f confinc confmf
2601625f88beSmrg
2602625f88beSmrg# Check whether --enable-dependency-tracking was given.
2603625f88beSmrgif test "${enable_dependency_tracking+set}" = set; then :
2604625f88beSmrg  enableval=$enable_dependency_tracking;
2605625f88beSmrgfi
2606625f88beSmrg
2607625f88beSmrgif test "x$enable_dependency_tracking" != xno; then
2608625f88beSmrg  am_depcomp="$ac_aux_dir/depcomp"
2609625f88beSmrg  AMDEPBACKSLASH='\'
2610625f88beSmrgfi
2611625f88beSmrg if test "x$enable_dependency_tracking" != xno; then
2612625f88beSmrg  AMDEP_TRUE=
2613625f88beSmrg  AMDEP_FALSE='#'
2614625f88beSmrgelse
2615625f88beSmrg  AMDEP_TRUE='#'
2616625f88beSmrg  AMDEP_FALSE=
2617625f88beSmrgfi
2618625f88beSmrg
2619aa98702cSmrg
2620f299d47fSmrgac_ext=c
2621f299d47fSmrgac_cpp='$CPP $CPPFLAGS'
2622f299d47fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623f299d47fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624f299d47fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2625f299d47fSmrgif test -n "$ac_tool_prefix"; then
2626f299d47fSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2627f299d47fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2628625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2630625f88beSmrgif ${ac_cv_prog_CC+:} false; then :
2631aa98702cSmrg  $as_echo_n "(cached) " >&6
2632f299d47fSmrgelse
2633f299d47fSmrg  if test -n "$CC"; then
2634f299d47fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2635f299d47fSmrgelse
2636f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637f299d47fSmrgfor as_dir in $PATH
2638f299d47fSmrgdo
2639f299d47fSmrg  IFS=$as_save_IFS
2640f299d47fSmrg  test -z "$as_dir" && as_dir=.
2641625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2642f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643f299d47fSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2644625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645f299d47fSmrg    break 2
2646f299d47fSmrg  fi
2647f299d47fSmrgdone
2648625f88beSmrg  done
2649f299d47fSmrgIFS=$as_save_IFS
2650f299d47fSmrg
2651f299d47fSmrgfi
2652f299d47fSmrgfi
2653f299d47fSmrgCC=$ac_cv_prog_CC
2654f299d47fSmrgif test -n "$CC"; then
2655625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656aa98702cSmrg$as_echo "$CC" >&6; }
2657f299d47fSmrgelse
2658625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659aa98702cSmrg$as_echo "no" >&6; }
2660f299d47fSmrgfi
2661f299d47fSmrg
2662f299d47fSmrg
2663f299d47fSmrgfi
2664f299d47fSmrgif test -z "$ac_cv_prog_CC"; then
2665f299d47fSmrg  ac_ct_CC=$CC
2666f299d47fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2667f299d47fSmrgset dummy gcc; ac_word=$2
2668625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2670625f88beSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2671aa98702cSmrg  $as_echo_n "(cached) " >&6
2672f299d47fSmrgelse
2673f299d47fSmrg  if test -n "$ac_ct_CC"; then
2674f299d47fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2675f299d47fSmrgelse
2676f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677f299d47fSmrgfor as_dir in $PATH
2678f299d47fSmrgdo
2679f299d47fSmrg  IFS=$as_save_IFS
2680f299d47fSmrg  test -z "$as_dir" && as_dir=.
2681625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2682f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683f299d47fSmrg    ac_cv_prog_ac_ct_CC="gcc"
2684625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685f299d47fSmrg    break 2
2686f299d47fSmrg  fi
2687f299d47fSmrgdone
2688625f88beSmrg  done
2689f299d47fSmrgIFS=$as_save_IFS
2690f299d47fSmrg
2691f299d47fSmrgfi
2692f299d47fSmrgfi
2693f299d47fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2694f299d47fSmrgif test -n "$ac_ct_CC"; then
2695625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2696aa98702cSmrg$as_echo "$ac_ct_CC" >&6; }
2697f299d47fSmrgelse
2698625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699aa98702cSmrg$as_echo "no" >&6; }
2700f299d47fSmrgfi
2701f299d47fSmrg
2702f299d47fSmrg  if test "x$ac_ct_CC" = x; then
2703f299d47fSmrg    CC=""
2704f299d47fSmrg  else
2705f299d47fSmrg    case $cross_compiling:$ac_tool_warned in
2706f299d47fSmrgyes:)
2707625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2708aa98702cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2709f299d47fSmrgac_tool_warned=yes ;;
2710f299d47fSmrgesac
2711f299d47fSmrg    CC=$ac_ct_CC
2712f299d47fSmrg  fi
2713f299d47fSmrgelse
2714f299d47fSmrg  CC="$ac_cv_prog_CC"
2715f299d47fSmrgfi
2716f299d47fSmrg
2717f299d47fSmrgif test -z "$CC"; then
2718f299d47fSmrg          if test -n "$ac_tool_prefix"; then
2719f299d47fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2720f299d47fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2721625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2723625f88beSmrgif ${ac_cv_prog_CC+:} false; then :
2724aa98702cSmrg  $as_echo_n "(cached) " >&6
2725f299d47fSmrgelse
2726f299d47fSmrg  if test -n "$CC"; then
2727f299d47fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2728f299d47fSmrgelse
2729f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730f299d47fSmrgfor as_dir in $PATH
2731f299d47fSmrgdo
2732f299d47fSmrg  IFS=$as_save_IFS
2733f299d47fSmrg  test -z "$as_dir" && as_dir=.
2734625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2735f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736f299d47fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2737625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738f299d47fSmrg    break 2
2739f299d47fSmrg  fi
2740f299d47fSmrgdone
2741625f88beSmrg  done
2742f299d47fSmrgIFS=$as_save_IFS
2743f299d47fSmrg
2744f299d47fSmrgfi
2745f299d47fSmrgfi
2746f299d47fSmrgCC=$ac_cv_prog_CC
2747f299d47fSmrgif test -n "$CC"; then
2748625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749aa98702cSmrg$as_echo "$CC" >&6; }
2750f299d47fSmrgelse
2751625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752aa98702cSmrg$as_echo "no" >&6; }
2753f299d47fSmrgfi
2754f299d47fSmrg
2755f299d47fSmrg
2756f299d47fSmrg  fi
2757f299d47fSmrgfi
2758f299d47fSmrgif test -z "$CC"; then
2759f299d47fSmrg  # Extract the first word of "cc", so it can be a program name with args.
2760f299d47fSmrgset dummy cc; ac_word=$2
2761625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2763625f88beSmrgif ${ac_cv_prog_CC+:} false; then :
2764aa98702cSmrg  $as_echo_n "(cached) " >&6
2765f299d47fSmrgelse
2766f299d47fSmrg  if test -n "$CC"; then
2767f299d47fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2768f299d47fSmrgelse
2769f299d47fSmrg  ac_prog_rejected=no
2770f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771f299d47fSmrgfor as_dir in $PATH
2772f299d47fSmrgdo
2773f299d47fSmrg  IFS=$as_save_IFS
2774f299d47fSmrg  test -z "$as_dir" && as_dir=.
2775625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2776f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777f299d47fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2778f299d47fSmrg       ac_prog_rejected=yes
2779f299d47fSmrg       continue
2780f299d47fSmrg     fi
2781f299d47fSmrg    ac_cv_prog_CC="cc"
2782625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783f299d47fSmrg    break 2
2784f299d47fSmrg  fi
2785f299d47fSmrgdone
2786625f88beSmrg  done
2787f299d47fSmrgIFS=$as_save_IFS
2788f299d47fSmrg
2789f299d47fSmrgif test $ac_prog_rejected = yes; then
2790f299d47fSmrg  # We found a bogon in the path, so make sure we never use it.
2791f299d47fSmrg  set dummy $ac_cv_prog_CC
2792f299d47fSmrg  shift
2793f299d47fSmrg  if test $# != 0; then
2794f299d47fSmrg    # We chose a different compiler from the bogus one.
2795f299d47fSmrg    # However, it has the same basename, so the bogon will be chosen
2796f299d47fSmrg    # first if we set CC to just the basename; use the full file name.
2797f299d47fSmrg    shift
2798f299d47fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2799f299d47fSmrg  fi
2800f299d47fSmrgfi
2801f299d47fSmrgfi
2802f299d47fSmrgfi
2803f299d47fSmrgCC=$ac_cv_prog_CC
2804f299d47fSmrgif test -n "$CC"; then
2805625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806aa98702cSmrg$as_echo "$CC" >&6; }
2807f299d47fSmrgelse
2808625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809aa98702cSmrg$as_echo "no" >&6; }
2810f299d47fSmrgfi
2811f299d47fSmrg
2812f299d47fSmrg
2813f299d47fSmrgfi
2814f299d47fSmrgif test -z "$CC"; then
2815f299d47fSmrg  if test -n "$ac_tool_prefix"; then
2816f299d47fSmrg  for ac_prog in cl.exe
2817f299d47fSmrg  do
2818f299d47fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819f299d47fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2822625f88beSmrgif ${ac_cv_prog_CC+:} false; then :
2823aa98702cSmrg  $as_echo_n "(cached) " >&6
2824f299d47fSmrgelse
2825f299d47fSmrg  if test -n "$CC"; then
2826f299d47fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2827f299d47fSmrgelse
2828f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829f299d47fSmrgfor as_dir in $PATH
2830f299d47fSmrgdo
2831f299d47fSmrg  IFS=$as_save_IFS
2832f299d47fSmrg  test -z "$as_dir" && as_dir=.
2833625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2834f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835f299d47fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2836625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837f299d47fSmrg    break 2
2838f299d47fSmrg  fi
2839f299d47fSmrgdone
2840625f88beSmrg  done
2841f299d47fSmrgIFS=$as_save_IFS
2842f299d47fSmrg
2843f299d47fSmrgfi
2844f299d47fSmrgfi
2845f299d47fSmrgCC=$ac_cv_prog_CC
2846f299d47fSmrgif test -n "$CC"; then
2847625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848aa98702cSmrg$as_echo "$CC" >&6; }
2849f299d47fSmrgelse
2850625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851aa98702cSmrg$as_echo "no" >&6; }
2852f299d47fSmrgfi
2853f299d47fSmrg
2854f299d47fSmrg
2855f299d47fSmrg    test -n "$CC" && break
2856f299d47fSmrg  done
2857f299d47fSmrgfi
2858f299d47fSmrgif test -z "$CC"; then
2859f299d47fSmrg  ac_ct_CC=$CC
2860f299d47fSmrg  for ac_prog in cl.exe
2861f299d47fSmrgdo
2862f299d47fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2863f299d47fSmrgset dummy $ac_prog; ac_word=$2
2864625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865aa98702cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2866625f88beSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2867aa98702cSmrg  $as_echo_n "(cached) " >&6
2868f299d47fSmrgelse
2869f299d47fSmrg  if test -n "$ac_ct_CC"; then
2870f299d47fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871f299d47fSmrgelse
2872f299d47fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873f299d47fSmrgfor as_dir in $PATH
2874f299d47fSmrgdo
2875f299d47fSmrg  IFS=$as_save_IFS
2876f299d47fSmrg  test -z "$as_dir" && as_dir=.
2877625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2878f299d47fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879f299d47fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2880625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881f299d47fSmrg    break 2
2882f299d47fSmrg  fi
2883f299d47fSmrgdone
2884625f88beSmrg  done
2885f299d47fSmrgIFS=$as_save_IFS
2886f299d47fSmrg
2887f299d47fSmrgfi
2888f299d47fSmrgfi
2889f299d47fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2890f299d47fSmrgif test -n "$ac_ct_CC"; then
2891625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2892aa98702cSmrg$as_echo "$ac_ct_CC" >&6; }
2893f299d47fSmrgelse
2894625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895aa98702cSmrg$as_echo "no" >&6; }
2896f299d47fSmrgfi
2897f299d47fSmrg
2898f299d47fSmrg
2899f299d47fSmrg  test -n "$ac_ct_CC" && break
2900f299d47fSmrgdone
2901f299d47fSmrg
2902f299d47fSmrg  if test "x$ac_ct_CC" = x; then
2903f299d47fSmrg    CC=""
2904f299d47fSmrg  else
2905f299d47fSmrg    case $cross_compiling:$ac_tool_warned in
2906f299d47fSmrgyes:)
2907625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908aa98702cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909f299d47fSmrgac_tool_warned=yes ;;
2910f299d47fSmrgesac
2911f299d47fSmrg    CC=$ac_ct_CC
2912f299d47fSmrg  fi
2913f299d47fSmrgfi
2914f299d47fSmrg
2915f299d47fSmrgfi
2916f299d47fSmrg
2917f299d47fSmrg
2918625f88beSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920625f88beSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
2921625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
2922f299d47fSmrg
2923f299d47fSmrg# Provide some information about the compiler.
2924625f88beSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2925aa98702cSmrgset X $ac_compile
2926aa98702cSmrgac_compiler=$2
2927625f88beSmrgfor ac_option in --version -v -V -qversion; do
2928625f88beSmrg  { { ac_try="$ac_compiler $ac_option >&5"
2929f299d47fSmrgcase "(($ac_try" in
2930f299d47fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931f299d47fSmrg  *) ac_try_echo=$ac_try;;
2932f299d47fSmrgesac
2933625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934625f88beSmrg$as_echo "$ac_try_echo"; } >&5
2935625f88beSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2936f299d47fSmrg  ac_status=$?
2937625f88beSmrg  if test -s conftest.err; then
2938625f88beSmrg    sed '10a\
2939625f88beSmrg... rest of stderr output deleted ...
2940625f88beSmrg         10q' conftest.err >conftest.er1
2941625f88beSmrg    cat conftest.er1 >&5
2942625f88beSmrg  fi
2943625f88beSmrg  rm -f conftest.er1 conftest.err
2944625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945625f88beSmrg  test $ac_status = 0; }
2946625f88beSmrgdone
2947f299d47fSmrg
2948625f88beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949f299d47fSmrg/* end confdefs.h.  */
2950f299d47fSmrg
2951f299d47fSmrgint
2952f299d47fSmrgmain ()
2953f299d47fSmrg{
2954f299d47fSmrg
2955f299d47fSmrg  ;
2956f299d47fSmrg  return 0;
2957f299d47fSmrg}
2958f299d47fSmrg_ACEOF
2959f299d47fSmrgac_clean_files_save=$ac_clean_files
2960aa98702cSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2961f299d47fSmrg# Try to create an executable without -o first, disregard a.out.
2962f299d47fSmrg# It will help us diagnose broken compilers, and finding out an intuition
2963f299d47fSmrg# of exeext.
2964625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2965625f88beSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
2966aa98702cSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967aa98702cSmrg
2968aa98702cSmrg# The possible output files:
2969aa98702cSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2970aa98702cSmrg
2971f299d47fSmrgac_rmfiles=
2972f299d47fSmrgfor ac_file in $ac_files
2973f299d47fSmrgdo
2974f299d47fSmrg  case $ac_file in
2975aa98702cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976f299d47fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977f299d47fSmrg  esac
2978f299d47fSmrgdone
2979f299d47fSmrgrm -f $ac_rmfiles
2980f299d47fSmrg
2981625f88beSmrgif { { ac_try="$ac_link_default"
2982f299d47fSmrgcase "(($ac_try" in
2983f299d47fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984f299d47fSmrg  *) ac_try_echo=$ac_try;;
2985f299d47fSmrgesac
2986625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987625f88beSmrg$as_echo "$ac_try_echo"; } >&5
2988f299d47fSmrg  (eval "$ac_link_default") 2>&5
2989f299d47fSmrg  ac_status=$?
2990625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991625f88beSmrg  test $ac_status = 0; }; then :
2992f299d47fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2993f299d47fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2994f299d47fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2995f299d47fSmrg# so that the user can short-circuit this test for compilers unknown to
2996f299d47fSmrg# Autoconf.
2997f299d47fSmrgfor ac_file in $ac_files ''
2998f299d47fSmrgdo
2999f299d47fSmrg  test -f "$ac_file" || continue
3000f299d47fSmrg  case $ac_file in
3001aa98702cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3002f299d47fSmrg	;;
3003f299d47fSmrg    [ab].out )
3004f299d47fSmrg	# We found the default executable, but exeext='' is most
3005f299d47fSmrg	# certainly right.
3006f299d47fSmrg	break;;
3007f299d47fSmrg    *.* )
3008625f88beSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3009f299d47fSmrg	then :; else
3010f299d47fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011f299d47fSmrg	fi
3012f299d47fSmrg	# We set ac_cv_exeext here because the later test for it is not
3013f299d47fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3014f299d47fSmrg	# argument, so we may need to know it at that point already.
3015f299d47fSmrg	# Even if this section looks crufty: it has the advantage of
3016f299d47fSmrg	# actually working.
3017f299d47fSmrg	break;;
3018f299d47fSmrg    * )
3019f299d47fSmrg	break;;
3020f299d47fSmrg  esac
3021f299d47fSmrgdone
3022f299d47fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3023f299d47fSmrg
3024f299d47fSmrgelse
3025f299d47fSmrg  ac_file=''
3026f299d47fSmrgfi
3027625f88beSmrgif test -z "$ac_file"; then :
3028625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029625f88beSmrg$as_echo "no" >&6; }
3030625f88beSmrg$as_echo "$as_me: failed program was:" >&5
3031f299d47fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3032f299d47fSmrg
3033625f88beSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035625f88beSmrgas_fn_error 77 "C compiler cannot create executables
3036625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
3037625f88beSmrgelse
3038625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039625f88beSmrg$as_echo "yes" >&6; }
3040f299d47fSmrgfi
3041625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3042625f88beSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3043625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3044625f88beSmrg$as_echo "$ac_file" >&6; }
3045f299d47fSmrgac_exeext=$ac_cv_exeext
3046f299d47fSmrg
3047aa98702cSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3048f299d47fSmrgac_clean_files=$ac_clean_files_save
3049625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3050aa98702cSmrg$as_echo_n "checking for suffix of executables... " >&6; }
3051625f88beSmrgif { { ac_try="$ac_link"
3052f299d47fSmrgcase "(($ac_try" in
3053f299d47fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054f299d47fSmrg  *) ac_try_echo=$ac_try;;
3055f299d47fSmrgesac
3056625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057625f88beSmrg$as_echo "$ac_try_echo"; } >&5
3058f299d47fSmrg  (eval "$ac_link") 2>&5
3059f299d47fSmrg  ac_status=$?
3060625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061625f88beSmrg  test $ac_status = 0; }; then :
3062f299d47fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3063f299d47fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3064f299d47fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3065f299d47fSmrg# `rm'.
3066f299d47fSmrgfor ac_file in conftest.exe conftest conftest.*; do
3067f299d47fSmrg  test -f "$ac_file" || continue
3068f299d47fSmrg  case $ac_file in
3069aa98702cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3070f299d47fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071f299d47fSmrg	  break;;
3072f299d47fSmrg    * ) break;;
3073f299d47fSmrg  esac
3074f299d47fSmrgdone
3075f299d47fSmrgelse
3076625f88beSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078625f88beSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3079625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
3080f299d47fSmrgfi
3081625f88beSmrgrm -f conftest conftest$ac_cv_exeext
3082625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3083aa98702cSmrg$as_echo "$ac_cv_exeext" >&6; }
3084f299d47fSmrg
3085f299d47fSmrgrm -f conftest.$ac_ext
3086f299d47fSmrgEXEEXT=$ac_cv_exeext
3087f299d47fSmrgac_exeext=$EXEEXT
3088625f88beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089625f88beSmrg/* end confdefs.h.  */
3090625f88beSmrg#include <stdio.h>
3091625f88beSmrgint
3092625f88beSmrgmain ()
3093625f88beSmrg{
3094625f88beSmrgFILE *f = fopen ("conftest.out", "w");
3095625f88beSmrg return ferror (f) || fclose (f) != 0;
3096625f88beSmrg
3097625f88beSmrg  ;
3098625f88beSmrg  return 0;
3099625f88beSmrg}
3100625f88beSmrg_ACEOF
3101625f88beSmrgac_clean_files="$ac_clean_files conftest.out"
3102625f88beSmrg# Check that the compiler produces executables we can run.  If not, either
3103625f88beSmrg# the compiler is broken, or we cross compile.
3104625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3105625f88beSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3106625f88beSmrgif test "$cross_compiling" != yes; then
3107625f88beSmrg  { { ac_try="$ac_link"
3108625f88beSmrgcase "(($ac_try" in
3109625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110625f88beSmrg  *) ac_try_echo=$ac_try;;
3111625f88beSmrgesac
3112625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113625f88beSmrg$as_echo "$ac_try_echo"; } >&5
3114625f88beSmrg  (eval "$ac_link") 2>&5
3115625f88beSmrg  ac_status=$?
3116625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117625f88beSmrg  test $ac_status = 0; }
3118625f88beSmrg  if { ac_try='./conftest$ac_cv_exeext'
3119625f88beSmrg  { { case "(($ac_try" in
3120625f88beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121625f88beSmrg  *) ac_try_echo=$ac_try;;
3122625f88beSmrgesac
3123625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124625f88beSmrg$as_echo "$ac_try_echo"; } >&5
3125625f88beSmrg  (eval "$ac_try") 2>&5
3126625f88beSmrg  ac_status=$?
3127625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128625f88beSmrg  test $ac_status = 0; }; }; then
3129625f88beSmrg    cross_compiling=no
3130625f88beSmrg  else
3131625f88beSmrg    if test "$cross_compiling" = maybe; then
3132625f88beSmrg	cross_compiling=yes
3133625f88beSmrg    else
3134625f88beSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135625f88beSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136625f88beSmrgas_fn_error $? "cannot run C compiled programs.
3137625f88beSmrgIf you meant to cross compile, use \`--host'.
3138625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
3139625f88beSmrg    fi
3140625f88beSmrg  fi
3141625f88beSmrgfi
3142625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3143625f88beSmrg$as_echo "$cross_compiling" >&6; }
3144625f88beSmrg
3145625f88beSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3146625f88beSmrgac_clean_files=$ac_clean_files_save
3147625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3148aa98702cSmrg$as_echo_n "checking for suffix of object files... " >&6; }
3149625f88beSmrgif ${ac_cv_objext+:} false; then :
3150aa98702cSmrg  $as_echo_n "(cached) " >&6
3151f299d47fSmrgelse
3152625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153f299d47fSmrg/* end confdefs.h.  */
3154f299d47fSmrg
3155f299d47fSmrgint
3156f299d47fSmrgmain ()
3157f299d47fSmrg{
3158f299d47fSmrg
3159f299d47fSmrg  ;
3160f299d47fSmrg  return 0;
3161f299d47fSmrg}
3162f299d47fSmrg_ACEOF
3163f299d47fSmrgrm -f conftest.o conftest.obj
3164625f88beSmrgif { { ac_try="$ac_compile"
3165f299d47fSmrgcase "(($ac_try" in
3166f299d47fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167f299d47fSmrg  *) ac_try_echo=$ac_try;;
3168f299d47fSmrgesac
3169625f88beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170625f88beSmrg$as_echo "$ac_try_echo"; } >&5
3171f299d47fSmrg  (eval "$ac_compile") 2>&5
3172f299d47fSmrg  ac_status=$?
3173625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174625f88beSmrg  test $ac_status = 0; }; then :
3175f299d47fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3176f299d47fSmrg  test -f "$ac_file" || continue;
3177f299d47fSmrg  case $ac_file in
3178aa98702cSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179f299d47fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180f299d47fSmrg       break;;
3181f299d47fSmrg  esac
3182f299d47fSmrgdone
3183f299d47fSmrgelse
3184aa98702cSmrg  $as_echo "$as_me: failed program was:" >&5
3185f299d47fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3186f299d47fSmrg
3187625f88beSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189625f88beSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3190625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
3191f299d47fSmrgfi
3192f299d47fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3193f299d47fSmrgfi
3194625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3195aa98702cSmrg$as_echo "$ac_cv_objext" >&6; }
3196f299d47fSmrgOBJEXT=$ac_cv_objext
3197f299d47fSmrgac_objext=$OBJEXT
3198625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3199aa98702cSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3200625f88beSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3201aa98702cSmrg  $as_echo_n "(cached) " >&6
3202f299d47fSmrgelse
3203625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204f299d47fSmrg/* end confdefs.h.  */
3205f299d47fSmrg
3206f299d47fSmrgint
3207f299d47fSmrgmain ()
3208f299d47fSmrg{
3209f299d47fSmrg#ifndef __GNUC__
3210f299d47fSmrg       choke me
3211f299d47fSmrg#endif
3212f299d47fSmrg
3213f299d47fSmrg  ;
3214f299d47fSmrg  return 0;
3215f299d47fSmrg}
3216f299d47fSmrg_ACEOF
3217625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
3218f299d47fSmrg  ac_compiler_gnu=yes
3219f299d47fSmrgelse
3220625f88beSmrg  ac_compiler_gnu=no
3221f299d47fSmrgfi
3222f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223f299d47fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3224f299d47fSmrg
3225f299d47fSmrgfi
3226625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3227aa98702cSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3228aa98702cSmrgif test $ac_compiler_gnu = yes; then
3229aa98702cSmrg  GCC=yes
3230aa98702cSmrgelse
3231aa98702cSmrg  GCC=
3232aa98702cSmrgfi
3233f299d47fSmrgac_test_CFLAGS=${CFLAGS+set}
3234f299d47fSmrgac_save_CFLAGS=$CFLAGS
3235625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3236aa98702cSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3237625f88beSmrgif ${ac_cv_prog_cc_g+:} false; then :
3238aa98702cSmrg  $as_echo_n "(cached) " >&6
3239f299d47fSmrgelse
3240f299d47fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3241f299d47fSmrg   ac_c_werror_flag=yes
3242f299d47fSmrg   ac_cv_prog_cc_g=no
3243f299d47fSmrg   CFLAGS="-g"
3244625f88beSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245f299d47fSmrg/* end confdefs.h.  */
3246f299d47fSmrg
3247f299d47fSmrgint
3248f299d47fSmrgmain ()
3249f299d47fSmrg{
3250f299d47fSmrg
3251f299d47fSmrg  ;
3252f299d47fSmrg  return 0;
3253f299d47fSmrg}
3254f299d47fSmrg_ACEOF
3255625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
3256f299d47fSmrg  ac_cv_prog_cc_g=yes
3257f299d47fSmrgelse
3258625f88beSmrg  CFLAGS=""
3259625f88beSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260f299d47fSmrg/* end confdefs.h.  */
3261f299d47fSmrg
3262f299d47fSmrgint
3263f299d47fSmrgmain ()
3264f299d47fSmrg{
3265f299d47fSmrg
3266f299d47fSmrg  ;
3267f299d47fSmrg  return 0;
3268f299d47fSmrg}
3269f299d47fSmrg_ACEOF
3270625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
3271f299d47fSmrg
3272625f88beSmrgelse
3273625f88beSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3274f299d47fSmrg	 CFLAGS="-g"
3275625f88beSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276f299d47fSmrg/* end confdefs.h.  */
3277f299d47fSmrg
3278f299d47fSmrgint
3279f299d47fSmrgmain ()
3280f299d47fSmrg{
3281f299d47fSmrg
3282f299d47fSmrg  ;
3283f299d47fSmrg  return 0;
3284f299d47fSmrg}
3285f299d47fSmrg_ACEOF
3286625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
3287f299d47fSmrg  ac_cv_prog_cc_g=yes
3288f299d47fSmrgfi
3289f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290f299d47fSmrgfi
3291f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292f299d47fSmrgfi
3293f299d47fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294f299d47fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3295f299d47fSmrgfi
3296625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3297aa98702cSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3298f299d47fSmrgif test "$ac_test_CFLAGS" = set; then
3299f299d47fSmrg  CFLAGS=$ac_save_CFLAGS
3300f299d47fSmrgelif test $ac_cv_prog_cc_g = yes; then
3301f299d47fSmrg  if test "$GCC" = yes; then
3302f299d47fSmrg    CFLAGS="-g -O2"
3303f299d47fSmrg  else
3304f299d47fSmrg    CFLAGS="-g"
3305f299d47fSmrg  fi
3306f299d47fSmrgelse
3307f299d47fSmrg  if test "$GCC" = yes; then
3308f299d47fSmrg    CFLAGS="-O2"
3309f299d47fSmrg  else
3310f299d47fSmrg    CFLAGS=
3311f299d47fSmrg  fi
3312f299d47fSmrgfi
3313625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3314aa98702cSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3315625f88beSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3316aa98702cSmrg  $as_echo_n "(cached) " >&6
3317f299d47fSmrgelse
3318f299d47fSmrg  ac_cv_prog_cc_c89=no
3319f299d47fSmrgac_save_CC=$CC
3320625f88beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321f299d47fSmrg/* end confdefs.h.  */
3322f299d47fSmrg#include <stdarg.h>
3323f299d47fSmrg#include <stdio.h>
3324f299d47fSmrg#include <sys/types.h>
3325f299d47fSmrg#include <sys/stat.h>
3326f299d47fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3327f299d47fSmrgstruct buf { int x; };
3328f299d47fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3329f299d47fSmrgstatic char *e (p, i)
3330f299d47fSmrg     char **p;
3331f299d47fSmrg     int i;
3332f299d47fSmrg{
3333f299d47fSmrg  return p[i];
3334f299d47fSmrg}
3335f299d47fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3336f299d47fSmrg{
3337f299d47fSmrg  char *s;
3338f299d47fSmrg  va_list v;
3339f299d47fSmrg  va_start (v,p);
3340f299d47fSmrg  s = g (p, va_arg (v,int));
3341f299d47fSmrg  va_end (v);
3342f299d47fSmrg  return s;
3343f299d47fSmrg}
3344f299d47fSmrg
3345f299d47fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3346f299d47fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3347f299d47fSmrg   These don't provoke an error unfortunately, instead are silently treated
3348f299d47fSmrg   as 'x'.  The following induces an error, until -std is added to get
3349f299d47fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3350f299d47fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3351f299d47fSmrg   that's true only with -std.  */
3352f299d47fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3353f299d47fSmrg
3354f299d47fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355f299d47fSmrg   inside strings and character constants.  */
3356f299d47fSmrg#define FOO(x) 'x'
3357f299d47fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3358f299d47fSmrg
3359f299d47fSmrgint test (int i, double x);
3360f299d47fSmrgstruct s1 {int (*f) (int a);};
3361f299d47fSmrgstruct s2 {int (*f) (double a);};
3362f299d47fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363f299d47fSmrgint argc;
3364f299d47fSmrgchar **argv;
3365f299d47fSmrgint
3366f299d47fSmrgmain ()
3367f299d47fSmrg{
3368f299d47fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3369f299d47fSmrg  ;
3370f299d47fSmrg  return 0;
3371f299d47fSmrg}
3372f299d47fSmrg_ACEOF
3373f299d47fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374f299d47fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3375f299d47fSmrgdo
3376f299d47fSmrg  CC="$ac_save_CC $ac_arg"
3377625f88beSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3378f299d47fSmrg  ac_cv_prog_cc_c89=$ac_arg
3379f299d47fSmrgfi
3380f299d47fSmrgrm -f core conftest.err conftest.$ac_objext
3381f299d47fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3382f299d47fSmrgdone
3383f299d47fSmrgrm -f conftest.$ac_ext
3384f299d47fSmrgCC=$ac_save_CC
3385f299d47fSmrg
3386f299d47fSmrgfi
3387f299d47fSmrg# AC_CACHE_VAL
3388f299d47fSmrgcase "x$ac_cv_prog_cc_c89" in
3389f299d47fSmrg  x)
3390625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3391aa98702cSmrg$as_echo "none needed" >&6; } ;;
3392f299d47fSmrg  xno)
3393625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3394aa98702cSmrg$as_echo "unsupported" >&6; } ;;
3395f299d47fSmrg  *)
3396f299d47fSmrg    CC="$CC $ac_cv_prog_cc_c89"
3397625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3398aa98702cSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3399f299d47fSmrgesac
3400625f88beSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3401f299d47fSmrg
3402625f88beSmrgfi
3403f299d47fSmrg
3404f299d47fSmrgac_ext=c
3405f299d47fSmrgac_cpp='$CPP $CPPFLAGS'
3406f299d47fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407f299d47fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408f299d47fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3409f299d47fSmrg
3410f299d47fSmrgdepcc="$CC"   am_compiler_list=
3411f299d47fSmrg
3412625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3413aa98702cSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3414625f88beSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3415aa98702cSmrg  $as_echo_n "(cached) " >&6
3416f299d47fSmrgelse
3417f299d47fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3418f299d47fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3419f299d47fSmrg  # making bogus files that we don't know about and never remove.  For
3420f299d47fSmrg  # instance it was reported that on HP-UX the gcc test will end up
3421f299d47fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3422f299d47fSmrg  # in D'.
3423f299d47fSmrg  mkdir conftest.dir
3424f299d47fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3425f299d47fSmrg  # using a relative directory.
3426f299d47fSmrg  cp "$am_depcomp" conftest.dir
3427f299d47fSmrg  cd conftest.dir
3428f299d47fSmrg  # We will build objects and dependencies in a subdirectory because
3429f299d47fSmrg  # it helps to detect inapplicable dependency modes.  For instance
3430f299d47fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3431f299d47fSmrg  # side effect of compilation, but ICC will put the dependencies in
3432f299d47fSmrg  # the current directory while Tru64 will put them in the object
3433f299d47fSmrg  # directory.
3434f299d47fSmrg  mkdir sub
3435f299d47fSmrg
3436f299d47fSmrg  am_cv_CC_dependencies_compiler_type=none
3437f299d47fSmrg  if test "$am_compiler_list" = ""; then
3438f299d47fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3439f299d47fSmrg  fi
3440aa98702cSmrg  am__universal=false
3441aa98702cSmrg  case " $depcc " in #(
3442aa98702cSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3443aa98702cSmrg     esac
3444aa98702cSmrg
3445f299d47fSmrg  for depmode in $am_compiler_list; do
3446f299d47fSmrg    # Setup a source with many dependencies, because some compilers
3447f299d47fSmrg    # like to wrap large dependency lists on column 80 (with \), and
3448f299d47fSmrg    # we should not choose a depcomp mode which is confused by this.
3449f299d47fSmrg    #
3450f299d47fSmrg    # We need to recreate these files for each test, as the compiler may
3451f299d47fSmrg    # overwrite some of them when testing with obscure command lines.
3452f299d47fSmrg    # This happens at least with the AIX C compiler.
3453f299d47fSmrg    : > sub/conftest.c
3454f299d47fSmrg    for i in 1 2 3 4 5 6; do
3455f299d47fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3456f299d47fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3457f299d47fSmrg      # Solaris 8's {/usr,}/bin/sh.
3458f299d47fSmrg      touch sub/conftst$i.h
3459f299d47fSmrg    done
3460f299d47fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3461f299d47fSmrg
3462aa98702cSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3463aa98702cSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3464aa98702cSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3465aa98702cSmrg    # versions had trouble with output in subdirs
3466aa98702cSmrg    am__obj=sub/conftest.${OBJEXT-o}
3467aa98702cSmrg    am__minus_obj="-o $am__obj"
3468f299d47fSmrg    case $depmode in
3469aa98702cSmrg    gcc)
3470aa98702cSmrg      # This depmode causes a compiler race in universal mode.
3471aa98702cSmrg      test "$am__universal" = false || continue
3472aa98702cSmrg      ;;
3473f299d47fSmrg    nosideeffect)
3474f299d47fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3475f299d47fSmrg      # only be used when explicitly requested
3476f299d47fSmrg      if test "x$enable_dependency_tracking" = xyes; then
3477f299d47fSmrg	continue
3478f299d47fSmrg      else
3479f299d47fSmrg	break
3480f299d47fSmrg      fi
3481f299d47fSmrg      ;;
3482aa98702cSmrg    msvisualcpp | msvcmsys)
3483aa98702cSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3484aa98702cSmrg      # not run yet.  These depmodes are late enough in the game, and
3485aa98702cSmrg      # so weak that their functioning should not be impacted.
3486aa98702cSmrg      am__obj=conftest.${OBJEXT-o}
3487aa98702cSmrg      am__minus_obj=
3488aa98702cSmrg      ;;
3489f299d47fSmrg    none) break ;;
3490f299d47fSmrg    esac
3491f299d47fSmrg    if depmode=$depmode \
3492aa98702cSmrg       source=sub/conftest.c object=$am__obj \
3493f299d47fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3494aa98702cSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3495f299d47fSmrg         >/dev/null 2>conftest.err &&
3496f299d47fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3497f299d47fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498aa98702cSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3499f299d47fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500f299d47fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3501f299d47fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3502f299d47fSmrg      # that says an option was ignored or not supported.
3503f299d47fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3504f299d47fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3505f299d47fSmrg      # The diagnosis changed in icc 8.0:
3506f299d47fSmrg      #   icc: Command line remark: option '-MP' not supported
3507f299d47fSmrg      if (grep 'ignoring option' conftest.err ||
3508f299d47fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509f299d47fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3510f299d47fSmrg        break
3511f299d47fSmrg      fi
3512f299d47fSmrg    fi
3513f299d47fSmrg  done
3514f299d47fSmrg
3515f299d47fSmrg  cd ..
3516f299d47fSmrg  rm -rf conftest.dir
3517f299d47fSmrgelse
3518f299d47fSmrg  am_cv_CC_dependencies_compiler_type=none
3519f299d47fSmrgfi
3520f299d47fSmrg
3521f299d47fSmrgfi
3522625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3523aa98702cSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3524f299d47fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3525f299d47fSmrg
3526f299d47fSmrg if
3527f299d47fSmrg  test "x$enable_dependency_tracking" != xno \
3528f299d47fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529f299d47fSmrg  am__fastdepCC_TRUE=
3530f299d47fSmrg  am__fastdepCC_FALSE='#'
3531f299d47fSmrgelse
3532f299d47fSmrg  am__fastdepCC_TRUE='#'
3533f299d47fSmrg  am__fastdepCC_FALSE=
3534f299d47fSmrgfi
3535f299d47fSmrg
3536f299d47fSmrg
3537625f88beSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3538625f88beSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3539625f88beSmrgif ${ac_cv_prog_cc_c99+:} false; then :
3540aa98702cSmrg  $as_echo_n "(cached) " >&6
3541f299d47fSmrgelse
3542625f88beSmrg  ac_cv_prog_cc_c99=no
3543625f88beSmrgac_save_CC=$CC
3544625f88beSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545625f88beSmrg/* end confdefs.h.  */
3546625f88beSmrg#include <stdarg.h>
3547625f88beSmrg#include <stdbool.h>
3548625f88beSmrg#include <stdlib.h>
3549625f88beSmrg#include <wchar.h>
3550625f88beSmrg#include <stdio.h>
3551aa98702cSmrg
3552625f88beSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3553625f88beSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3554625f88beSmrg#define showlist(...) puts (#__VA_ARGS__)
3555625f88beSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3556625f88beSmrgstatic void
3557625f88beSmrgtest_varargs_macros (void)
3558625f88beSmrg{
3559625f88beSmrg  int x = 1234;
3560625f88beSmrg  int y = 5678;
3561625f88beSmrg  debug ("Flag");
3562625f88beSmrg  debug ("X = %d\n", x);
3563625f88beSmrg  showlist (The first, second, and third items.);
3564625f88beSmrg  report (x>y, "x is %d but y is %d", x, y);
3565625f88beSmrg}
3566f299d47fSmrg
3567625f88beSmrg// Check long long types.
3568625f88beSmrg#define BIG64 18446744073709551615ull
3569625f88beSmrg#define BIG32 4294967295ul
3570625f88beSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3571625f88beSmrg#if !BIG_OK
3572625f88beSmrg  your preprocessor is broken;
3573625f88beSmrg#endif
3574625f88beSmrg#if BIG_OK
3575625f88beSmrg#else
3576625f88beSmrg  your preprocessor is broken;
3577625f88beSmrg#endif
3578625f88beSmrgstatic long long int bignum = -9223372036854775807LL;
3579625f88beSmrgstatic unsigned long long int ubignum = BIG64;
3580f299d47fSmrg
3581625f88beSmrgstruct incomplete_array
3582625f88beSmrg{
3583625f88beSmrg  int datasize;
3584625f88beSmrg  double data[];
3585625f88beSmrg};
3586f299d47fSmrg
3587625f88beSmrgstruct named_init {
3588625f88beSmrg  int number;
3589625f88beSmrg  const wchar_t *name;
3590625f88beSmrg  double average;
3591625f88beSmrg};
3592f299d47fSmrg
3593625f88beSmrgtypedef const char *ccp;
3594f299d47fSmrg
3595625f88beSmrgstatic inline int
3596625f88beSmrgtest_restrict (ccp restrict text)
3597625f88beSmrg{
3598625f88beSmrg  // See if C++-style comments work.
3599625f88beSmrg  // Iterate through items via the restricted pointer.
3600625f88beSmrg  // Also check for declarations in for loops.
3601625f88beSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3602625f88beSmrg    continue;
3603625f88beSmrg  return 0;
3604625f88beSmrg}
3605625f88beSmrg
3606625f88beSmrg// Check varargs and va_copy.
3607625f88beSmrgstatic void
3608625f88beSmrgtest_varargs (const char *format, ...)
3609625f88beSmrg{
3610625f88beSmrg  va_list args;
3611625f88beSmrg  va_start (args, format);
3612625f88beSmrg  va_list args_copy;
3613625f88beSmrg  va_copy (args_copy, args);
3614625f88beSmrg
3615625f88beSmrg  const char *str;
3616625f88beSmrg  int number;
3617625f88beSmrg  float fnumber;
3618625f88beSmrg
3619625f88beSmrg  while (*format)
3620625f88beSmrg    {
3621625f88beSmrg      switch (*format++)
3622625f88beSmrg	{
3623625f88beSmrg	case 's': // string
3624625f88beSmrg	  str = va_arg (args_copy, const char *);
3625625f88beSmrg	  break;
3626625f88beSmrg	case 'd': // int
3627625f88beSmrg	  number = va_arg (args_copy, int);
3628625f88beSmrg	  break;
3629625f88beSmrg	case 'f': // float
3630625f88beSmrg	  fnumber = va_arg (args_copy, double);
3631625f88beSmrg	  break;
3632625f88beSmrg	default:
3633625f88beSmrg	  break;
3634625f88beSmrg	}
3635625f88beSmrg    }
3636625f88beSmrg  va_end (args_copy);
3637625f88beSmrg  va_end (args);
3638625f88beSmrg}
3639625f88beSmrg
3640625f88beSmrgint
3641625f88beSmrgmain ()
3642625f88beSmrg{
3643625f88beSmrg
3644625f88beSmrg  // Check bool.
3645625f88beSmrg  _Bool success = false;
3646625f88beSmrg
3647625f88beSmrg  // Check restrict.
3648625f88beSmrg  if (test_restrict ("String literal") == 0)
3649625f88beSmrg    success = true;
3650625f88beSmrg  char *restrict newvar = "Another string";
3651625f88beSmrg
3652625f88beSmrg  // Check varargs.
3653625f88beSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3654625f88beSmrg  test_varargs_macros ();
3655625f88beSmrg
3656625f88beSmrg  // Check flexible array members.
3657625f88beSmrg  struct incomplete_array *ia =
3658625f88beSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3659625f88beSmrg  ia->datasize = 10;
3660625f88beSmrg  for (int i = 0; i < ia->datasize; ++i)
3661625f88beSmrg    ia->data[i] = i * 1.234;
3662625f88beSmrg
3663625f88beSmrg  // Check named initializers.
3664625f88beSmrg  struct named_init ni = {
3665625f88beSmrg    .number = 34,
3666625f88beSmrg    .name = L"Test wide string",
3667625f88beSmrg    .average = 543.34343,
3668625f88beSmrg  };
3669625f88beSmrg
3670625f88beSmrg  ni.number = 58;
3671625f88beSmrg
3672625f88beSmrg  int dynamic_array[ni.number];
3673625f88beSmrg  dynamic_array[ni.number - 1] = 543;
3674625f88beSmrg
3675625f88beSmrg  // work around unused variable warnings
3676625f88beSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3677625f88beSmrg	  || dynamic_array[ni.number - 1] != 543);
3678625f88beSmrg
3679625f88beSmrg  ;
3680625f88beSmrg  return 0;
3681625f88beSmrg}
3682625f88beSmrg_ACEOF
3683625f88beSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3684625f88beSmrgdo
3685625f88beSmrg  CC="$ac_save_CC $ac_arg"
3686625f88beSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3687625f88beSmrg  ac_cv_prog_cc_c99=$ac_arg
3688625f88beSmrgfi
3689625f88beSmrgrm -f core conftest.err conftest.$ac_objext
3690625f88beSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3691625f88beSmrgdone
3692625f88beSmrgrm -f conftest.$ac_ext
3693625f88beSmrgCC=$ac_save_CC
3694625f88beSmrg
3695625f88beSmrgfi
3696625f88beSmrg# AC_CACHE_VAL
3697625f88beSmrgcase "x$ac_cv_prog_cc_c99" in
3698625f88beSmrg  x)
3699625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700625f88beSmrg$as_echo "none needed" >&6; } ;;
3701625f88beSmrg  xno)
3702625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703625f88beSmrg$as_echo "unsupported" >&6; } ;;
3704625f88beSmrg  *)
3705625f88beSmrg    CC="$CC $ac_cv_prog_cc_c99"
3706625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3707625f88beSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3708625f88beSmrgesac
3709625f88beSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3710625f88beSmrg
3711625f88beSmrgfi
3712f299d47fSmrg
3713f299d47fSmrg
3714f299d47fSmrg
3715aa98702cSmrgac_ext=c
3716aa98702cSmrgac_cpp='$CPP $CPPFLAGS'
3717aa98702cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718aa98702cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719aa98702cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3720625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3721aa98702cSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3722aa98702cSmrg# On Suns, sometimes $CPP names a directory.
3723aa98702cSmrgif test -n "$CPP" && test -d "$CPP"; then
3724aa98702cSmrg  CPP=
3725aa98702cSmrgfi
3726aa98702cSmrgif test -z "$CPP"; then
3727625f88beSmrg  if ${ac_cv_prog_CPP+:} false; then :
3728aa98702cSmrg  $as_echo_n "(cached) " >&6
3729f299d47fSmrgelse
3730aa98702cSmrg      # Double quotes because CPP needs to be expanded
3731aa98702cSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3732aa98702cSmrg    do
3733aa98702cSmrg      ac_preproc_ok=false
3734aa98702cSmrgfor ac_c_preproc_warn_flag in '' yes
3735f299d47fSmrgdo
3736aa98702cSmrg  # Use a header file that comes with gcc, so configuring glibc
3737aa98702cSmrg  # with a fresh cross-compiler works.
3738aa98702cSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739aa98702cSmrg  # <limits.h> exists even on freestanding compilers.
3740aa98702cSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3741aa98702cSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3742625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743aa98702cSmrg/* end confdefs.h.  */
3744aa98702cSmrg#ifdef __STDC__
3745aa98702cSmrg# include <limits.h>
3746aa98702cSmrg#else
3747aa98702cSmrg# include <assert.h>
3748aa98702cSmrg#endif
3749aa98702cSmrg		     Syntax error
3750aa98702cSmrg_ACEOF
3751625f88beSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3752aa98702cSmrg
3753625f88beSmrgelse
3754aa98702cSmrg  # Broken: fails on valid input.
3755aa98702cSmrgcontinue
3756aa98702cSmrgfi
3757625f88beSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3758aa98702cSmrg
3759aa98702cSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3760aa98702cSmrg  # can be detected and how.
3761625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762aa98702cSmrg/* end confdefs.h.  */
3763aa98702cSmrg#include <ac_nonexistent.h>
3764aa98702cSmrg_ACEOF
3765625f88beSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3766aa98702cSmrg  # Broken: success on invalid input.
3767aa98702cSmrgcontinue
3768aa98702cSmrgelse
3769aa98702cSmrg  # Passes both tests.
3770aa98702cSmrgac_preproc_ok=:
3771aa98702cSmrgbreak
3772aa98702cSmrgfi
3773625f88beSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3774aa98702cSmrg
3775aa98702cSmrgdone
3776aa98702cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777625f88beSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3778625f88beSmrgif $ac_preproc_ok; then :
3779aa98702cSmrg  break
3780aa98702cSmrgfi
3781aa98702cSmrg
3782aa98702cSmrg    done
3783aa98702cSmrg    ac_cv_prog_CPP=$CPP
3784aa98702cSmrg
3785aa98702cSmrgfi
3786aa98702cSmrg  CPP=$ac_cv_prog_CPP
3787aa98702cSmrgelse
3788aa98702cSmrg  ac_cv_prog_CPP=$CPP
3789aa98702cSmrgfi
3790625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3791aa98702cSmrg$as_echo "$CPP" >&6; }
3792aa98702cSmrgac_preproc_ok=false
3793aa98702cSmrgfor ac_c_preproc_warn_flag in '' yes
3794aa98702cSmrgdo
3795aa98702cSmrg  # Use a header file that comes with gcc, so configuring glibc
3796aa98702cSmrg  # with a fresh cross-compiler works.
3797aa98702cSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798aa98702cSmrg  # <limits.h> exists even on freestanding compilers.
3799aa98702cSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3800aa98702cSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3801625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802aa98702cSmrg/* end confdefs.h.  */
3803aa98702cSmrg#ifdef __STDC__
3804aa98702cSmrg# include <limits.h>
3805aa98702cSmrg#else
3806aa98702cSmrg# include <assert.h>
3807aa98702cSmrg#endif
3808aa98702cSmrg		     Syntax error
3809aa98702cSmrg_ACEOF
3810625f88beSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3811aa98702cSmrg
3812625f88beSmrgelse
3813aa98702cSmrg  # Broken: fails on valid input.
3814aa98702cSmrgcontinue
3815aa98702cSmrgfi
3816625f88beSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3817aa98702cSmrg
3818aa98702cSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3819aa98702cSmrg  # can be detected and how.
3820625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821aa98702cSmrg/* end confdefs.h.  */
3822aa98702cSmrg#include <ac_nonexistent.h>
3823aa98702cSmrg_ACEOF
3824625f88beSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3825aa98702cSmrg  # Broken: success on invalid input.
3826aa98702cSmrgcontinue
3827aa98702cSmrgelse
3828aa98702cSmrg  # Passes both tests.
3829aa98702cSmrgac_preproc_ok=:
3830aa98702cSmrgbreak
3831aa98702cSmrgfi
3832625f88beSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3833aa98702cSmrg
3834aa98702cSmrgdone
3835aa98702cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836625f88beSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3837625f88beSmrgif $ac_preproc_ok; then :
3838625f88beSmrg
3839aa98702cSmrgelse
3840625f88beSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842625f88beSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3843625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
3844aa98702cSmrgfi
3845aa98702cSmrg
3846aa98702cSmrgac_ext=c
3847aa98702cSmrgac_cpp='$CPP $CPPFLAGS'
3848aa98702cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849aa98702cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850aa98702cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3851aa98702cSmrg
3852aa98702cSmrg
3853625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3854aa98702cSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3855625f88beSmrgif ${ac_cv_path_GREP+:} false; then :
3856aa98702cSmrg  $as_echo_n "(cached) " >&6
3857aa98702cSmrgelse
3858aa98702cSmrg  if test -z "$GREP"; then
3859aa98702cSmrg  ac_path_GREP_found=false
3860aa98702cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3861aa98702cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862aa98702cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863aa98702cSmrgdo
3864aa98702cSmrg  IFS=$as_save_IFS
3865aa98702cSmrg  test -z "$as_dir" && as_dir=.
3866625f88beSmrg    for ac_prog in grep ggrep; do
3867aa98702cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3868aa98702cSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3869aa98702cSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3870aa98702cSmrg# Check for GNU ac_path_GREP and select it if it is found.
3871aa98702cSmrg  # Check for GNU $ac_path_GREP
3872aa98702cSmrgcase `"$ac_path_GREP" --version 2>&1` in
3873aa98702cSmrg*GNU*)
3874aa98702cSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3875aa98702cSmrg*)
3876aa98702cSmrg  ac_count=0
3877aa98702cSmrg  $as_echo_n 0123456789 >"conftest.in"
3878aa98702cSmrg  while :
3879aa98702cSmrg  do
3880aa98702cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3881aa98702cSmrg    mv "conftest.tmp" "conftest.in"
3882aa98702cSmrg    cp "conftest.in" "conftest.nl"
3883aa98702cSmrg    $as_echo 'GREP' >> "conftest.nl"
3884aa98702cSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885aa98702cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886625f88beSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3887aa98702cSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3888aa98702cSmrg      # Best one so far, save it but keep looking for a better one
3889aa98702cSmrg      ac_cv_path_GREP="$ac_path_GREP"
3890aa98702cSmrg      ac_path_GREP_max=$ac_count
3891aa98702cSmrg    fi
3892aa98702cSmrg    # 10*(2^10) chars as input seems more than enough
3893aa98702cSmrg    test $ac_count -gt 10 && break
3894aa98702cSmrg  done
3895aa98702cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896aa98702cSmrgesac
3897aa98702cSmrg
3898aa98702cSmrg      $ac_path_GREP_found && break 3
3899aa98702cSmrg    done
3900aa98702cSmrg  done
3901625f88beSmrg  done
3902aa98702cSmrgIFS=$as_save_IFS
3903aa98702cSmrg  if test -z "$ac_cv_path_GREP"; then
3904625f88beSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3905aa98702cSmrg  fi
3906aa98702cSmrgelse
3907aa98702cSmrg  ac_cv_path_GREP=$GREP
3908aa98702cSmrgfi
3909aa98702cSmrg
3910aa98702cSmrgfi
3911625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3912aa98702cSmrg$as_echo "$ac_cv_path_GREP" >&6; }
3913aa98702cSmrg GREP="$ac_cv_path_GREP"
3914aa98702cSmrg
3915aa98702cSmrg
3916625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3917aa98702cSmrg$as_echo_n "checking for egrep... " >&6; }
3918625f88beSmrgif ${ac_cv_path_EGREP+:} false; then :
3919aa98702cSmrg  $as_echo_n "(cached) " >&6
3920aa98702cSmrgelse
3921aa98702cSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3922aa98702cSmrg   then ac_cv_path_EGREP="$GREP -E"
3923aa98702cSmrg   else
3924aa98702cSmrg     if test -z "$EGREP"; then
3925aa98702cSmrg  ac_path_EGREP_found=false
3926aa98702cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3927aa98702cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928aa98702cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929aa98702cSmrgdo
3930aa98702cSmrg  IFS=$as_save_IFS
3931aa98702cSmrg  test -z "$as_dir" && as_dir=.
3932625f88beSmrg    for ac_prog in egrep; do
3933aa98702cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3934aa98702cSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935aa98702cSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3936aa98702cSmrg# Check for GNU ac_path_EGREP and select it if it is found.
3937aa98702cSmrg  # Check for GNU $ac_path_EGREP
3938aa98702cSmrgcase `"$ac_path_EGREP" --version 2>&1` in
3939aa98702cSmrg*GNU*)
3940aa98702cSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3941aa98702cSmrg*)
3942aa98702cSmrg  ac_count=0
3943aa98702cSmrg  $as_echo_n 0123456789 >"conftest.in"
3944aa98702cSmrg  while :
3945aa98702cSmrg  do
3946aa98702cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947aa98702cSmrg    mv "conftest.tmp" "conftest.in"
3948aa98702cSmrg    cp "conftest.in" "conftest.nl"
3949aa98702cSmrg    $as_echo 'EGREP' >> "conftest.nl"
3950aa98702cSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951aa98702cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952625f88beSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3953aa98702cSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954aa98702cSmrg      # Best one so far, save it but keep looking for a better one
3955aa98702cSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
3956aa98702cSmrg      ac_path_EGREP_max=$ac_count
3957aa98702cSmrg    fi
3958aa98702cSmrg    # 10*(2^10) chars as input seems more than enough
3959aa98702cSmrg    test $ac_count -gt 10 && break
3960aa98702cSmrg  done
3961aa98702cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962aa98702cSmrgesac
3963aa98702cSmrg
3964aa98702cSmrg      $ac_path_EGREP_found && break 3
3965aa98702cSmrg    done
3966aa98702cSmrg  done
3967625f88beSmrg  done
3968aa98702cSmrgIFS=$as_save_IFS
3969aa98702cSmrg  if test -z "$ac_cv_path_EGREP"; then
3970625f88beSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3971aa98702cSmrg  fi
3972aa98702cSmrgelse
3973aa98702cSmrg  ac_cv_path_EGREP=$EGREP
3974aa98702cSmrgfi
3975aa98702cSmrg
3976aa98702cSmrg   fi
3977aa98702cSmrgfi
3978625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3979aa98702cSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
3980aa98702cSmrg EGREP="$ac_cv_path_EGREP"
3981aa98702cSmrg
3982aa98702cSmrg
3983625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3984aa98702cSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
3985625f88beSmrgif ${ac_cv_header_stdc+:} false; then :
3986aa98702cSmrg  $as_echo_n "(cached) " >&6
3987aa98702cSmrgelse
3988625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989aa98702cSmrg/* end confdefs.h.  */
3990aa98702cSmrg#include <stdlib.h>
3991aa98702cSmrg#include <stdarg.h>
3992aa98702cSmrg#include <string.h>
3993aa98702cSmrg#include <float.h>
3994aa98702cSmrg
3995aa98702cSmrgint
3996aa98702cSmrgmain ()
3997aa98702cSmrg{
3998aa98702cSmrg
3999aa98702cSmrg  ;
4000aa98702cSmrg  return 0;
4001aa98702cSmrg}
4002aa98702cSmrg_ACEOF
4003625f88beSmrgif ac_fn_c_try_compile "$LINENO"; then :
4004aa98702cSmrg  ac_cv_header_stdc=yes
4005aa98702cSmrgelse
4006625f88beSmrg  ac_cv_header_stdc=no
4007aa98702cSmrgfi
4008aa98702cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009aa98702cSmrg
4010aa98702cSmrgif test $ac_cv_header_stdc = yes; then
4011aa98702cSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4012625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013aa98702cSmrg/* end confdefs.h.  */
4014aa98702cSmrg#include <string.h>
4015aa98702cSmrg
4016aa98702cSmrg_ACEOF
4017aa98702cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018625f88beSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4019625f88beSmrg
4020aa98702cSmrgelse
4021aa98702cSmrg  ac_cv_header_stdc=no
4022aa98702cSmrgfi
4023aa98702cSmrgrm -f conftest*
4024aa98702cSmrg
4025aa98702cSmrgfi
4026aa98702cSmrg
4027aa98702cSmrgif test $ac_cv_header_stdc = yes; then
4028aa98702cSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4029625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030aa98702cSmrg/* end confdefs.h.  */
4031aa98702cSmrg#include <stdlib.h>
4032aa98702cSmrg
4033aa98702cSmrg_ACEOF
4034aa98702cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035625f88beSmrg  $EGREP "free" >/dev/null 2>&1; then :
4036625f88beSmrg
4037aa98702cSmrgelse
4038aa98702cSmrg  ac_cv_header_stdc=no
4039aa98702cSmrgfi
4040aa98702cSmrgrm -f conftest*
4041aa98702cSmrg
4042aa98702cSmrgfi
4043aa98702cSmrg
4044aa98702cSmrgif test $ac_cv_header_stdc = yes; then
4045aa98702cSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046625f88beSmrg  if test "$cross_compiling" = yes; then :
4047aa98702cSmrg  :
4048aa98702cSmrgelse
4049625f88beSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050aa98702cSmrg/* end confdefs.h.  */
4051aa98702cSmrg#include <ctype.h>
4052aa98702cSmrg#include <stdlib.h>
4053aa98702cSmrg#if ((' ' & 0x0FF) == 0x020)
4054aa98702cSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055aa98702cSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056aa98702cSmrg#else
4057aa98702cSmrg# define ISLOWER(c) \
4058aa98702cSmrg		   (('a' <= (c) && (c) <= 'i') \
4059aa98702cSmrg		     || ('j' <= (c) && (c) <= 'r') \
4060aa98702cSmrg		     || ('s' <= (c) && (c) <= 'z'))
4061aa98702cSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4062aa98702cSmrg#endif
4063aa98702cSmrg
4064aa98702cSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4065aa98702cSmrgint
4066aa98702cSmrgmain ()
4067aa98702cSmrg{
4068aa98702cSmrg  int i;
4069aa98702cSmrg  for (i = 0; i < 256; i++)
4070aa98702cSmrg    if (XOR (islower (i), ISLOWER (i))
4071aa98702cSmrg	|| toupper (i) != TOUPPER (i))
4072aa98702cSmrg      return 2;
4073aa98702cSmrg  return 0;
4074aa98702cSmrg}
4075aa98702cSmrg_ACEOF
4076625f88beSmrgif ac_fn_c_try_run "$LINENO"; then :
4077aa98702cSmrg
4078625f88beSmrgelse
4079625f88beSmrg  ac_cv_header_stdc=no
4080aa98702cSmrgfi
4081625f88beSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4082625f88beSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4083aa98702cSmrgfi
4084aa98702cSmrg
4085aa98702cSmrgfi
4086aa98702cSmrgfi
4087625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4088aa98702cSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4089aa98702cSmrgif test $ac_cv_header_stdc = yes; then
4090aa98702cSmrg
4091625f88beSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4092aa98702cSmrg
4093aa98702cSmrgfi
4094aa98702cSmrg
4095aa98702cSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4096aa98702cSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4097aa98702cSmrg		  inttypes.h stdint.h unistd.h
4098625f88beSmrgdo :
4099625f88beSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4100625f88beSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4101625f88beSmrg"
4102625f88beSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4103aa98702cSmrg  cat >>confdefs.h <<_ACEOF
4104aa98702cSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105aa98702cSmrg_ACEOF
4106aa98702cSmrg
4107aa98702cSmrgfi
4108aa98702cSmrg
4109aa98702cSmrgdone
4110aa98702cSmrg
4111aa98702cSmrg
4112aa98702cSmrg
4113aa98702cSmrg
4114625f88beSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4115625f88beSmrg	if test -n "$ac_tool_prefix"; then
4116625f88beSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4117625f88beSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4118625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119625f88beSmrg$as_echo_n "checking for $ac_word... " >&6; }
4120625f88beSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4121625f88beSmrg  $as_echo_n "(cached) " >&6
4122625f88beSmrgelse
4123625f88beSmrg  case $PKG_CONFIG in
4124625f88beSmrg  [\\/]* | ?:[\\/]*)
4125625f88beSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4126625f88beSmrg  ;;
4127625f88beSmrg  *)
4128625f88beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129625f88beSmrgfor as_dir in $PATH
4130aa98702cSmrgdo
4131625f88beSmrg  IFS=$as_save_IFS
4132625f88beSmrg  test -z "$as_dir" && as_dir=.
4133625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4134625f88beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135625f88beSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4136625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137625f88beSmrg    break 2
4138625f88beSmrg  fi
4139625f88beSmrgdone
4140625f88beSmrg  done
4141625f88beSmrgIFS=$as_save_IFS
4142625f88beSmrg
4143625f88beSmrg  ;;
4144aa98702cSmrgesac
4145625f88beSmrgfi
4146625f88beSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4147625f88beSmrgif test -n "$PKG_CONFIG"; then
4148625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4149625f88beSmrg$as_echo "$PKG_CONFIG" >&6; }
4150aa98702cSmrgelse
4151625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152625f88beSmrg$as_echo "no" >&6; }
4153aa98702cSmrgfi
4154aa98702cSmrg
4155aa98702cSmrg
4156aa98702cSmrgfi
4157625f88beSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4158625f88beSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4159625f88beSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4160625f88beSmrgset dummy pkg-config; ac_word=$2
4161625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162625f88beSmrg$as_echo_n "checking for $ac_word... " >&6; }
4163625f88beSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4164625f88beSmrg  $as_echo_n "(cached) " >&6
4165625f88beSmrgelse
4166625f88beSmrg  case $ac_pt_PKG_CONFIG in
4167625f88beSmrg  [\\/]* | ?:[\\/]*)
4168625f88beSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4169625f88beSmrg  ;;
4170aa98702cSmrg  *)
4171625f88beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172625f88beSmrgfor as_dir in $PATH
4173625f88beSmrgdo
4174625f88beSmrg  IFS=$as_save_IFS
4175625f88beSmrg  test -z "$as_dir" && as_dir=.
4176625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4177625f88beSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178625f88beSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4179625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180625f88beSmrg    break 2
4181625f88beSmrg  fi
4182625f88beSmrgdone
4183625f88beSmrg  done
4184625f88beSmrgIFS=$as_save_IFS
4185625f88beSmrg
4186625f88beSmrg  ;;
4187aa98702cSmrgesac
4188625f88beSmrgfi
4189625f88beSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4190625f88beSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4191625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4192625f88beSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4193625f88beSmrgelse
4194625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195625f88beSmrg$as_echo "no" >&6; }
4196625f88beSmrgfi
4197aa98702cSmrg
4198625f88beSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4199625f88beSmrg    PKG_CONFIG=""
4200625f88beSmrg  else
4201625f88beSmrg    case $cross_compiling:$ac_tool_warned in
4202625f88beSmrgyes:)
4203625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204625f88beSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205625f88beSmrgac_tool_warned=yes ;;
4206625f88beSmrgesac
4207625f88beSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4208625f88beSmrg  fi
4209625f88beSmrgelse
4210625f88beSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4211625f88beSmrgfi
4212aa98702cSmrg
4213625f88beSmrgfi
4214625f88beSmrgif test -n "$PKG_CONFIG"; then
4215625f88beSmrg	_pkg_min_version=0.9.0
4216625f88beSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4217625f88beSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4218625f88beSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4219625f88beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220625f88beSmrg$as_echo "yes" >&6; }
4221625f88beSmrg	else
4222625f88beSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223625f88beSmrg$as_echo "no" >&6; }
4224625f88beSmrg		PKG_CONFIG=""
4225625f88beSmrg	fi
4226aa98702cSmrg
4227625f88beSmrgfi
4228aa98702cSmrg# Make sure we can run config.sub.
4229aa98702cSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4230625f88beSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4231aa98702cSmrg
4232625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4233aa98702cSmrg$as_echo_n "checking build system type... " >&6; }
4234625f88beSmrgif ${ac_cv_build+:} false; then :
4235aa98702cSmrg  $as_echo_n "(cached) " >&6
4236aa98702cSmrgelse
4237aa98702cSmrg  ac_build_alias=$build_alias
4238aa98702cSmrgtest "x$ac_build_alias" = x &&
4239aa98702cSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4240aa98702cSmrgtest "x$ac_build_alias" = x &&
4241625f88beSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4242aa98702cSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4243625f88beSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4244aa98702cSmrg
4245aa98702cSmrgfi
4246625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4247aa98702cSmrg$as_echo "$ac_cv_build" >&6; }
4248aa98702cSmrgcase $ac_cv_build in
4249aa98702cSmrg*-*-*) ;;
4250625f88beSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4251aa98702cSmrgesac
4252aa98702cSmrgbuild=$ac_cv_build
4253aa98702cSmrgac_save_IFS=$IFS; IFS='-'
4254aa98702cSmrgset x $ac_cv_build
4255aa98702cSmrgshift
4256aa98702cSmrgbuild_cpu=$1
4257aa98702cSmrgbuild_vendor=$2
4258aa98702cSmrgshift; shift
4259aa98702cSmrg# Remember, the first character of IFS is used to create $*,
4260aa98702cSmrg# except with old shells:
4261aa98702cSmrgbuild_os=$*
4262aa98702cSmrgIFS=$ac_save_IFS
4263aa98702cSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4264aa98702cSmrg
4265aa98702cSmrg
4266625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4267aa98702cSmrg$as_echo_n "checking host system type... " >&6; }
4268625f88beSmrgif ${ac_cv_host+:} false; then :
4269aa98702cSmrg  $as_echo_n "(cached) " >&6
4270aa98702cSmrgelse
4271aa98702cSmrg  if test "x$host_alias" = x; then
4272aa98702cSmrg  ac_cv_host=$ac_cv_build
4273aa98702cSmrgelse
4274aa98702cSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4275625f88beSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4276aa98702cSmrgfi
4277aa98702cSmrg
4278aa98702cSmrgfi
4279625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4280aa98702cSmrg$as_echo "$ac_cv_host" >&6; }
4281aa98702cSmrgcase $ac_cv_host in
4282aa98702cSmrg*-*-*) ;;
4283625f88beSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4284aa98702cSmrgesac
4285aa98702cSmrghost=$ac_cv_host
4286aa98702cSmrgac_save_IFS=$IFS; IFS='-'
4287aa98702cSmrgset x $ac_cv_host
4288aa98702cSmrgshift
4289aa98702cSmrghost_cpu=$1
4290aa98702cSmrghost_vendor=$2
4291aa98702cSmrgshift; shift
4292aa98702cSmrg# Remember, the first character of IFS is used to create $*,
4293aa98702cSmrg# except with old shells:
4294aa98702cSmrghost_os=$*
4295aa98702cSmrgIFS=$ac_save_IFS
4296aa98702cSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4297aa98702cSmrg
4298aa98702cSmrg
4299625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4300625f88beSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4301625f88beSmrgif ${ac_cv_path_SED+:} false; then :
4302625f88beSmrg  $as_echo_n "(cached) " >&6
4303625f88beSmrgelse
4304625f88beSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4305625f88beSmrg     for ac_i in 1 2 3 4 5 6 7; do
4306625f88beSmrg       ac_script="$ac_script$as_nl$ac_script"
4307625f88beSmrg     done
4308625f88beSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4309625f88beSmrg     { ac_script=; unset ac_script;}
4310625f88beSmrg     if test -z "$SED"; then
4311625f88beSmrg  ac_path_SED_found=false
4312625f88beSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4313625f88beSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314625f88beSmrgfor as_dir in $PATH
4315625f88beSmrgdo
4316625f88beSmrg  IFS=$as_save_IFS
4317625f88beSmrg  test -z "$as_dir" && as_dir=.
4318625f88beSmrg    for ac_prog in sed gsed; do
4319625f88beSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4320625f88beSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4321625f88beSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4322625f88beSmrg# Check for GNU ac_path_SED and select it if it is found.
4323625f88beSmrg  # Check for GNU $ac_path_SED
4324625f88beSmrgcase `"$ac_path_SED" --version 2>&1` in
4325625f88beSmrg*GNU*)
4326625f88beSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4327625f88beSmrg*)
4328625f88beSmrg  ac_count=0
4329625f88beSmrg  $as_echo_n 0123456789 >"conftest.in"
4330625f88beSmrg  while :
4331625f88beSmrg  do
4332625f88beSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4333625f88beSmrg    mv "conftest.tmp" "conftest.in"
4334625f88beSmrg    cp "conftest.in" "conftest.nl"
4335625f88beSmrg    $as_echo '' >> "conftest.nl"
4336625f88beSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337625f88beSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338625f88beSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4339625f88beSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4340625f88beSmrg      # Best one so far, save it but keep looking for a better one
4341625f88beSmrg      ac_cv_path_SED="$ac_path_SED"
4342625f88beSmrg      ac_path_SED_max=$ac_count
4343625f88beSmrg    fi
4344625f88beSmrg    # 10*(2^10) chars as input seems more than enough
4345625f88beSmrg    test $ac_count -gt 10 && break
4346625f88beSmrg  done
4347625f88beSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348625f88beSmrgesac
4349625f88beSmrg
4350625f88beSmrg      $ac_path_SED_found && break 3
4351625f88beSmrg    done
4352625f88beSmrg  done
4353625f88beSmrg  done
4354625f88beSmrgIFS=$as_save_IFS
4355625f88beSmrg  if test -z "$ac_cv_path_SED"; then
4356625f88beSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4357625f88beSmrg  fi
4358625f88beSmrgelse
4359625f88beSmrg  ac_cv_path_SED=$SED
4360625f88beSmrgfi
4361625f88beSmrg
4362625f88beSmrgfi
4363625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4364625f88beSmrg$as_echo "$ac_cv_path_SED" >&6; }
4365625f88beSmrg SED="$ac_cv_path_SED"
4366625f88beSmrg  rm -f conftest.sed
4367625f88beSmrg
4368625f88beSmrg
4369aa98702cSmrg
4370aa98702cSmrg
4371aa98702cSmrg
4372aa98702cSmrgif  test "x$GCC" = xyes ; then
4373aa98702cSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4374aa98702cSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4375625f88beSmrg-Wbad-function-cast -Wformat=2"
4376aa98702cSmrg    case `$CC -dumpversion` in
4377aa98702cSmrg    3.4.* | 4.*)
4378aa98702cSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4379aa98702cSmrg	;;
4380aa98702cSmrg    esac
4381aa98702cSmrgelse
4382625f88beSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4383625f88beSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4384aa98702cSmrg  SUNCC="yes"
4385aa98702cSmrgelse
4386aa98702cSmrg  SUNCC="no"
4387aa98702cSmrgfi
4388aa98702cSmrg
4389aa98702cSmrg    if test "x$SUNCC" = "xyes"; then
4390aa98702cSmrg	CWARNFLAGS="-v"
4391aa98702cSmrg    fi
4392aa98702cSmrgfi
4393aa98702cSmrg
4394aa98702cSmrg
4395aa98702cSmrg
4396625f88beSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4397aa98702cSmrg
4398aa98702cSmrg
4399aa98702cSmrg
4400aa98702cSmrg# Check whether --enable-strict-compilation was given.
4401625f88beSmrgif test "${enable_strict_compilation+set}" = set; then :
4402aa98702cSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4403aa98702cSmrgelse
4404aa98702cSmrg  STRICT_COMPILE=no
4405aa98702cSmrgfi
4406aa98702cSmrg
4407aa98702cSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4408625f88beSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4409625f88beSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4410aa98702cSmrg  SUNCC="yes"
4411aa98702cSmrgelse
4412aa98702cSmrg  SUNCC="no"
4413aa98702cSmrgfi
4414aa98702cSmrg
4415625f88beSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4416625f88beSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4417aa98702cSmrg  INTELCC="yes"
4418aa98702cSmrgelse
4419aa98702cSmrg  INTELCC="no"
4420aa98702cSmrgfi
4421aa98702cSmrg
4422aa98702cSmrg	if test "x$GCC" = xyes ; then
4423aa98702cSmrg		STRICT_CFLAGS="-pedantic -Werror"
4424aa98702cSmrg	elif test "x$SUNCC" = "xyes"; then
4425aa98702cSmrg		STRICT_CFLAGS="-errwarn"
4426aa98702cSmrg    elif test "x$INTELCC" = "xyes"; then
4427aa98702cSmrg		STRICT_CFLAGS="-Werror"
4428aa98702cSmrg	fi
4429aa98702cSmrgfi
4430aa98702cSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4431aa98702cSmrg
4432aa98702cSmrg
4433aa98702cSmrg
4434aa98702cSmrg
4435aa98702cSmrgcat >>confdefs.h <<_ACEOF
4436aa98702cSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4437aa98702cSmrg_ACEOF
4438aa98702cSmrg
4439aa98702cSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4440aa98702cSmrg	if test "x$PVM" = "x"; then
4441aa98702cSmrg		PVM="0"
4442aa98702cSmrg	fi
4443aa98702cSmrg
4444aa98702cSmrgcat >>confdefs.h <<_ACEOF
4445aa98702cSmrg#define PACKAGE_VERSION_MINOR $PVM
4446aa98702cSmrg_ACEOF
4447aa98702cSmrg
4448aa98702cSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4449aa98702cSmrg	if test "x$PVP" = "x"; then
4450aa98702cSmrg		PVP="0"
4451aa98702cSmrg	fi
4452aa98702cSmrg
4453aa98702cSmrgcat >>confdefs.h <<_ACEOF
4454aa98702cSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4455aa98702cSmrg_ACEOF
4456aa98702cSmrg
4457aa98702cSmrg
4458aa98702cSmrg
4459625f88beSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4460625f88beSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4461625f88beSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4462aa98702cSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4463aa98702cSmrg
4464625f88beSmrg
4465625f88beSmrg
4466625f88beSmrg
4467625f88beSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4468625f88beSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4469625f88beSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4470625f88beSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4471625f88beSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4472625f88beSmrg
4473aa98702cSmrg
4474aa98702cSmrg
4475aa98702cSmrg
4476aa98702cSmrg
4477aa98702cSmrg
4478aa98702cSmrgif test x$APP_MAN_SUFFIX = x    ; then
4479aa98702cSmrg    APP_MAN_SUFFIX=1
4480aa98702cSmrgfi
4481aa98702cSmrgif test x$APP_MAN_DIR = x    ; then
4482aa98702cSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4483aa98702cSmrgfi
4484aa98702cSmrg
4485aa98702cSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4486aa98702cSmrg    LIB_MAN_SUFFIX=3
4487aa98702cSmrgfi
4488aa98702cSmrgif test x$LIB_MAN_DIR = x    ; then
4489aa98702cSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4490aa98702cSmrgfi
4491aa98702cSmrg
4492aa98702cSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4493aa98702cSmrg    case $host_os in
4494aa98702cSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4495aa98702cSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4496aa98702cSmrg    esac
4497aa98702cSmrgfi
4498aa98702cSmrgif test x$FILE_MAN_DIR = x    ; then
4499aa98702cSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4500aa98702cSmrgfi
4501aa98702cSmrg
4502aa98702cSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4503aa98702cSmrg    case $host_os in
4504aa98702cSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4505aa98702cSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4506aa98702cSmrg    esac
4507aa98702cSmrgfi
4508aa98702cSmrgif test x$MISC_MAN_DIR = x    ; then
4509aa98702cSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4510aa98702cSmrgfi
4511aa98702cSmrg
4512aa98702cSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4513aa98702cSmrg    case $host_os in
4514aa98702cSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4515aa98702cSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4516aa98702cSmrg    esac
4517aa98702cSmrgfi
4518aa98702cSmrgif test x$DRIVER_MAN_DIR = x    ; then
4519aa98702cSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4520aa98702cSmrgfi
4521aa98702cSmrg
4522aa98702cSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4523aa98702cSmrg    case $host_os in
4524aa98702cSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4525aa98702cSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4526aa98702cSmrg    esac
4527aa98702cSmrgfi
4528aa98702cSmrgif test x$ADMIN_MAN_DIR = x    ; then
4529aa98702cSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4530aa98702cSmrgfi
4531aa98702cSmrg
4532aa98702cSmrg
4533aa98702cSmrg
4534aa98702cSmrg
4535aa98702cSmrg
4536aa98702cSmrg
4537aa98702cSmrg
4538aa98702cSmrg
4539aa98702cSmrg
4540aa98702cSmrg
4541aa98702cSmrg
4542aa98702cSmrg
4543aa98702cSmrg
4544aa98702cSmrg
4545aa98702cSmrg
4546625f88beSmrgXORG_MAN_PAGE="X Version 11"
4547aa98702cSmrg
4548625f88beSmrgMAN_SUBSTS="\
4549625f88beSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4550625f88beSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4551625f88beSmrg	-e 's|__xservername__|Xorg|g' \
4552625f88beSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
4553625f88beSmrg	-e 's|__projectroot__|\$(prefix)|g' \
4554625f88beSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4555625f88beSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4556625f88beSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4557625f88beSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4558625f88beSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4559625f88beSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4560625f88beSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4561aa98702cSmrg
4562f299d47fSmrg
4563aa98702cSmrg
4564625f88beSmrg# Check whether --enable-silent-rules was given.
4565625f88beSmrgif test "${enable_silent_rules+set}" = set; then :
4566625f88beSmrg  enableval=$enable_silent_rules;
4567f299d47fSmrgfi
4568f299d47fSmrg
4569625f88beSmrgcase $enable_silent_rules in
4570625f88beSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4571625f88beSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4572625f88beSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4573625f88beSmrgesac
4574625f88beSmrgAM_BACKSLASH='\'
4575625f88beSmrg
4576625f88beSmrg
4577625f88beSmrg
4578625f88beSmrg# Checks for pkg-config packages
4579625f88beSmrg
4580aa98702cSmrgpkg_failed=no
4581625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5
4582aa98702cSmrg$as_echo_n "checking for XEV... " >&6; }
4583aa98702cSmrg
4584aa98702cSmrgif test -n "$XEV_CFLAGS"; then
4585aa98702cSmrg    pkg_cv_XEV_CFLAGS="$XEV_CFLAGS"
4586aa98702cSmrg elif test -n "$PKG_CONFIG"; then
4587aa98702cSmrg    if test -n "$PKG_CONFIG" && \
4588625f88beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4589aa98702cSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4590aa98702cSmrg  ac_status=$?
4591625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592625f88beSmrg  test $ac_status = 0; }; then
4593aa98702cSmrg  pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
4594aa98702cSmrgelse
4595aa98702cSmrg  pkg_failed=yes
4596f299d47fSmrgfi
4597aa98702cSmrg else
4598aa98702cSmrg    pkg_failed=untried
4599f299d47fSmrgfi
4600aa98702cSmrgif test -n "$XEV_LIBS"; then
4601aa98702cSmrg    pkg_cv_XEV_LIBS="$XEV_LIBS"
4602aa98702cSmrg elif test -n "$PKG_CONFIG"; then
4603aa98702cSmrg    if test -n "$PKG_CONFIG" && \
4604625f88beSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4605aa98702cSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4606aa98702cSmrg  ac_status=$?
4607625f88beSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608625f88beSmrg  test $ac_status = 0; }; then
4609aa98702cSmrg  pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4610aa98702cSmrgelse
4611aa98702cSmrg  pkg_failed=yes
4612f299d47fSmrgfi
4613aa98702cSmrg else
4614aa98702cSmrg    pkg_failed=untried
4615f299d47fSmrgfi
4616f299d47fSmrg
4617f299d47fSmrg
4618f299d47fSmrg
4619aa98702cSmrgif test $pkg_failed = yes; then
4620f299d47fSmrg
4621aa98702cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4622aa98702cSmrg        _pkg_short_errors_supported=yes
4623aa98702cSmrgelse
4624aa98702cSmrg        _pkg_short_errors_supported=no
4625aa98702cSmrgfi
4626aa98702cSmrg        if test $_pkg_short_errors_supported = yes; then
4627aa98702cSmrg	        XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
4628aa98702cSmrg        else
4629aa98702cSmrg	        XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
4630aa98702cSmrg        fi
4631aa98702cSmrg	# Put the nasty error message in config.log where it belongs
4632aa98702cSmrg	echo "$XEV_PKG_ERRORS" >&5
4633f299d47fSmrg
4634625f88beSmrg	as_fn_error $? "Package requirements (x11) were not met:
4635f299d47fSmrg
4636aa98702cSmrg$XEV_PKG_ERRORS
4637f299d47fSmrg
4638aa98702cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4639aa98702cSmrginstalled software in a non-standard prefix.
4640f299d47fSmrg
4641aa98702cSmrgAlternatively, you may set the environment variables XEV_CFLAGS
4642aa98702cSmrgand XEV_LIBS to avoid the need to call pkg-config.
4643aa98702cSmrgSee the pkg-config man page for more details.
4644625f88beSmrg" "$LINENO" 5
4645aa98702cSmrgelif test $pkg_failed = untried; then
4646625f88beSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647aa98702cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648625f88beSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4649aa98702cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4650aa98702cSmrgpath to pkg-config.
4651f299d47fSmrg
4652aa98702cSmrgAlternatively, you may set the environment variables XEV_CFLAGS
4653aa98702cSmrgand XEV_LIBS to avoid the need to call pkg-config.
4654aa98702cSmrgSee the pkg-config man page for more details.
4655f299d47fSmrg
4656aa98702cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4657625f88beSmrgSee \`config.log' for more details" "$LINENO" 5; }
4658f299d47fSmrgelse
4659aa98702cSmrg	XEV_CFLAGS=$pkg_cv_XEV_CFLAGS
4660aa98702cSmrg	XEV_LIBS=$pkg_cv_XEV_LIBS
4661625f88beSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662aa98702cSmrg$as_echo "yes" >&6; }
4663aa98702cSmrg	:
4664f299d47fSmrgfi
4665f299d47fSmrg
4666f299d47fSmrgac_config_files="$ac_config_files Makefile"
4667f299d47fSmrg
4668f299d47fSmrgcat >confcache <<\_ACEOF
4669f299d47fSmrg# This file is a shell script that caches the results of configure
4670f299d47fSmrg# tests run on this system so they can be shared between configure
4671f299d47fSmrg# scripts and configure runs, see configure's option --config-cache.
4672f299d47fSmrg# It is not useful on other systems.  If it contains results you don't
4673f299d47fSmrg# want to keep, you may remove or edit it.
4674f299d47fSmrg#
4675f299d47fSmrg# config.status only pays attention to the cache file if you give it
4676f299d47fSmrg# the --recheck option to rerun configure.
4677f299d47fSmrg#
4678f299d47fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
4679f299d47fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
4680f299d47fSmrg# following values.
4681f299d47fSmrg
4682f299d47fSmrg_ACEOF
4683f299d47fSmrg
4684f299d47fSmrg# The following way of writing the cache mishandles newlines in values,
4685f299d47fSmrg# but we know of no workaround that is simple, portable, and efficient.
4686f299d47fSmrg# So, we kill variables containing newlines.
4687f299d47fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
4688f299d47fSmrg# and sets the high bit in the cache file unless we assign to the vars.
4689f299d47fSmrg(
4690f299d47fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4691f299d47fSmrg    eval ac_val=\$$ac_var
4692f299d47fSmrg    case $ac_val in #(
4693f299d47fSmrg    *${as_nl}*)
4694f299d47fSmrg      case $ac_var in #(
4695625f88beSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4696aa98702cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4697f299d47fSmrg      esac
4698f299d47fSmrg      case $ac_var in #(
4699f299d47fSmrg      _ | IFS | as_nl) ;; #(
4700aa98702cSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4701625f88beSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
4702f299d47fSmrg      esac ;;
4703f299d47fSmrg    esac
4704f299d47fSmrg  done
4705f299d47fSmrg
4706f299d47fSmrg  (set) 2>&1 |
4707f299d47fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4708f299d47fSmrg    *${as_nl}ac_space=\ *)
4709625f88beSmrg      # `set' does not quote correctly, so add quotes: double-quote
4710625f88beSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
4711f299d47fSmrg      sed -n \
4712f299d47fSmrg	"s/'/'\\\\''/g;
4713f299d47fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4714f299d47fSmrg      ;; #(
4715f299d47fSmrg    *)
4716f299d47fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4717f299d47fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4718f299d47fSmrg      ;;
4719f299d47fSmrg    esac |
4720f299d47fSmrg    sort
4721f299d47fSmrg) |
4722f299d47fSmrg  sed '
4723f299d47fSmrg     /^ac_cv_env_/b end
4724f299d47fSmrg     t clear
4725f299d47fSmrg     :clear
4726f299d47fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4727f299d47fSmrg     t end
4728f299d47fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4729f299d47fSmrg     :end' >>confcache
4730f299d47fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4731f299d47fSmrg  if test -w "$cache_file"; then
4732625f88beSmrg    if test "x$cache_file" != "x/dev/null"; then
4733625f88beSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4734aa98702cSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
4735625f88beSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
4736625f88beSmrg	cat confcache >"$cache_file"
4737625f88beSmrg      else
4738625f88beSmrg        case $cache_file in #(
4739625f88beSmrg        */* | ?:*)
4740625f88beSmrg	  mv -f confcache "$cache_file"$$ &&
4741625f88beSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4742625f88beSmrg        *)
4743625f88beSmrg	  mv -f confcache "$cache_file" ;;
4744625f88beSmrg	esac
4745625f88beSmrg      fi
4746625f88beSmrg    fi
4747f299d47fSmrg  else
4748625f88beSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4749aa98702cSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4750f299d47fSmrg  fi
4751f299d47fSmrgfi
4752f299d47fSmrgrm -f confcache
4753f299d47fSmrg
4754f299d47fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
4755f299d47fSmrg# Let make expand exec_prefix.
4756f299d47fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4757f299d47fSmrg
4758f299d47fSmrgDEFS=-DHAVE_CONFIG_H
4759f299d47fSmrg
4760f299d47fSmrgac_libobjs=
4761f299d47fSmrgac_ltlibobjs=
4762625f88beSmrgU=
4763f299d47fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4764f299d47fSmrg  # 1. Remove the extension, and $U if already installed.
4765f299d47fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4766aa98702cSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4767f299d47fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4768f299d47fSmrg  #    will be set to the directory where LIBOBJS objects are built.
4769625f88beSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4770625f88beSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4771f299d47fSmrgdone
4772f299d47fSmrgLIBOBJS=$ac_libobjs
4773f299d47fSmrg
4774f299d47fSmrgLTLIBOBJS=$ac_ltlibobjs
4775f299d47fSmrg
4776f299d47fSmrg
4777aa98702cSmrg if test -n "$EXEEXT"; then
4778aa98702cSmrg  am__EXEEXT_TRUE=
4779aa98702cSmrg  am__EXEEXT_FALSE='#'
4780aa98702cSmrgelse
4781aa98702cSmrg  am__EXEEXT_TRUE='#'
4782aa98702cSmrg  am__EXEEXT_FALSE=
4783aa98702cSmrgfi
4784aa98702cSmrg
4785f299d47fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4786625f88beSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4787625f88beSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4788f299d47fSmrgfi
4789f299d47fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4790625f88beSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4791625f88beSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4792f299d47fSmrgfi
4793f299d47fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4794625f88beSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4795625f88beSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4796f299d47fSmrgfi
4797f299d47fSmrg
4798625f88beSmrg: "${CONFIG_STATUS=./config.status}"
4799aa98702cSmrgac_write_fail=0
4800f299d47fSmrgac_clean_files_save=$ac_clean_files
4801f299d47fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4802625f88beSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4803aa98702cSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4804625f88beSmrgas_write_fail=0
4805625f88beSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4806f299d47fSmrg#! $SHELL
4807f299d47fSmrg# Generated by $as_me.
4808f299d47fSmrg# Run this file to recreate the current configuration.
4809f299d47fSmrg# Compiler output produced by configure, useful for debugging
4810f299d47fSmrg# configure, is in config.log if it exists.
4811f299d47fSmrg
4812f299d47fSmrgdebug=false
4813f299d47fSmrgac_cs_recheck=false
4814f299d47fSmrgac_cs_silent=false
4815f299d47fSmrg
4816625f88beSmrgSHELL=\${CONFIG_SHELL-$SHELL}
4817625f88beSmrgexport SHELL
4818625f88beSmrg_ASEOF
4819625f88beSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4820625f88beSmrg## -------------------- ##
4821625f88beSmrg## M4sh Initialization. ##
4822625f88beSmrg## -------------------- ##
4823f299d47fSmrg
4824f299d47fSmrg# Be more Bourne compatible
4825f299d47fSmrgDUALCASE=1; export DUALCASE # for MKS sh
4826625f88beSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4827f299d47fSmrg  emulate sh
4828f299d47fSmrg  NULLCMD=:
4829aa98702cSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4830f299d47fSmrg  # is contrary to our usage.  Disable this feature.
4831f299d47fSmrg  alias -g '${1+"$@"}'='"$@"'
4832f299d47fSmrg  setopt NO_GLOB_SUBST
4833f299d47fSmrgelse
4834625f88beSmrg  case `(set -o) 2>/dev/null` in #(
4835625f88beSmrg  *posix*) :
4836625f88beSmrg    set -o posix ;; #(
4837625f88beSmrg  *) :
4838625f88beSmrg     ;;
4839f299d47fSmrgesac
4840f299d47fSmrgfi
4841f299d47fSmrg
4842f299d47fSmrg
4843aa98702cSmrgas_nl='
4844aa98702cSmrg'
4845aa98702cSmrgexport as_nl
4846aa98702cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4847aa98702cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4848aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4849aa98702cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4850625f88beSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4851625f88beSmrg# but without wasting forks for bash or zsh.
4852625f88beSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4853625f88beSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4854625f88beSmrg  as_echo='print -r --'
4855625f88beSmrg  as_echo_n='print -rn --'
4856625f88beSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4857aa98702cSmrg  as_echo='printf %s\n'
4858aa98702cSmrg  as_echo_n='printf %s'
4859aa98702cSmrgelse
4860aa98702cSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4861aa98702cSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4862aa98702cSmrg    as_echo_n='/usr/ucb/echo -n'
4863f299d47fSmrg  else
4864aa98702cSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4865aa98702cSmrg    as_echo_n_body='eval
4866aa98702cSmrg      arg=$1;
4867625f88beSmrg      case $arg in #(
4868aa98702cSmrg      *"$as_nl"*)
4869aa98702cSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
4870aa98702cSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4871aa98702cSmrg      esac;
4872aa98702cSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4873aa98702cSmrg    '
4874aa98702cSmrg    export as_echo_n_body
4875aa98702cSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
4876f299d47fSmrg  fi
4877aa98702cSmrg  export as_echo_body
4878aa98702cSmrg  as_echo='sh -c $as_echo_body as_echo'
4879aa98702cSmrgfi
4880aa98702cSmrg
4881aa98702cSmrg# The user is always right.
4882aa98702cSmrgif test "${PATH_SEPARATOR+set}" != set; then
4883aa98702cSmrg  PATH_SEPARATOR=:
4884aa98702cSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4885aa98702cSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4886aa98702cSmrg      PATH_SEPARATOR=';'
4887aa98702cSmrg  }
4888f299d47fSmrgfi
4889f299d47fSmrg
4890f299d47fSmrg
4891f299d47fSmrg# IFS
4892f299d47fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
4893f299d47fSmrg# there to prevent editors from complaining about space-tab.
4894f299d47fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4895f299d47fSmrg# splitting by setting IFS to empty value.)
4896f299d47fSmrgIFS=" ""	$as_nl"
4897f299d47fSmrg
4898f299d47fSmrg# Find who we are.  Look in the path if we contain no directory separator.
4899625f88beSmrgas_myself=
4900625f88beSmrgcase $0 in #((
4901f299d47fSmrg  *[\\/]* ) as_myself=$0 ;;
4902f299d47fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903f299d47fSmrgfor as_dir in $PATH
4904f299d47fSmrgdo
4905f299d47fSmrg  IFS=$as_save_IFS
4906f299d47fSmrg  test -z "$as_dir" && as_dir=.
4907625f88beSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4908625f88beSmrg  done
4909f299d47fSmrgIFS=$as_save_IFS
4910f299d47fSmrg
4911f299d47fSmrg     ;;
4912f299d47fSmrgesac
4913f299d47fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
4914f299d47fSmrg# in which case we are not to be found in the path.
4915f299d47fSmrgif test "x$as_myself" = x; then
4916f299d47fSmrg  as_myself=$0
4917f299d47fSmrgfi
4918f299d47fSmrgif test ! -f "$as_myself"; then
4919aa98702cSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4920625f88beSmrg  exit 1
4921f299d47fSmrgfi
4922f299d47fSmrg
4923625f88beSmrg# Unset variables that we do not need and which cause bugs (e.g. in
4924625f88beSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4925625f88beSmrg# suppresses any "Segmentation fault" message there.  '((' could
4926625f88beSmrg# trigger a bug in pdksh 5.2.14.
4927625f88beSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
4928625f88beSmrgdo eval test x\${$as_var+set} = xset \
4929625f88beSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4930f299d47fSmrgdone
4931f299d47fSmrgPS1='$ '
4932f299d47fSmrgPS2='> '
4933f299d47fSmrgPS4='+ '
4934f299d47fSmrg
4935f299d47fSmrg# NLS nuisances.
4936aa98702cSmrgLC_ALL=C
4937aa98702cSmrgexport LC_ALL
4938aa98702cSmrgLANGUAGE=C
4939aa98702cSmrgexport LANGUAGE
4940f299d47fSmrg
4941625f88beSmrg# CDPATH.
4942625f88beSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4943625f88beSmrg
4944625f88beSmrg
4945625f88beSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4946625f88beSmrg# ----------------------------------------
4947625f88beSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4948625f88beSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4949625f88beSmrg# script with STATUS, using 1 if that was 0.
4950625f88beSmrgas_fn_error ()
4951625f88beSmrg{
4952625f88beSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
4953625f88beSmrg  if test "$4"; then
4954625f88beSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4955625f88beSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4956625f88beSmrg  fi
4957625f88beSmrg  $as_echo "$as_me: error: $2" >&2
4958625f88beSmrg  as_fn_exit $as_status
4959625f88beSmrg} # as_fn_error
4960625f88beSmrg
4961625f88beSmrg
4962625f88beSmrg# as_fn_set_status STATUS
4963625f88beSmrg# -----------------------
4964625f88beSmrg# Set $? to STATUS, without forking.
4965625f88beSmrgas_fn_set_status ()
4966625f88beSmrg{
4967625f88beSmrg  return $1
4968625f88beSmrg} # as_fn_set_status
4969625f88beSmrg
4970625f88beSmrg# as_fn_exit STATUS
4971625f88beSmrg# -----------------
4972625f88beSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4973625f88beSmrgas_fn_exit ()
4974625f88beSmrg{
4975625f88beSmrg  set +e
4976625f88beSmrg  as_fn_set_status $1
4977625f88beSmrg  exit $1
4978625f88beSmrg} # as_fn_exit
4979625f88beSmrg
4980625f88beSmrg# as_fn_unset VAR
4981625f88beSmrg# ---------------
4982625f88beSmrg# Portably unset VAR.
4983625f88beSmrgas_fn_unset ()
4984625f88beSmrg{
4985625f88beSmrg  { eval $1=; unset $1;}
4986625f88beSmrg}
4987625f88beSmrgas_unset=as_fn_unset
4988625f88beSmrg# as_fn_append VAR VALUE
4989625f88beSmrg# ----------------------
4990625f88beSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
4991625f88beSmrg# advantage of any shell optimizations that allow amortized linear growth over
4992625f88beSmrg# repeated appends, instead of the typical quadratic growth present in naive
4993625f88beSmrg# implementations.
4994625f88beSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4995625f88beSmrg  eval 'as_fn_append ()
4996625f88beSmrg  {
4997625f88beSmrg    eval $1+=\$2
4998625f88beSmrg  }'
4999625f88beSmrgelse
5000625f88beSmrg  as_fn_append ()
5001625f88beSmrg  {
5002625f88beSmrg    eval $1=\$$1\$2
5003625f88beSmrg  }
5004625f88beSmrgfi # as_fn_append
5005625f88beSmrg
5006625f88beSmrg# as_fn_arith ARG...
5007625f88beSmrg# ------------------
5008625f88beSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5009625f88beSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5010625f88beSmrg# must be portable across $(()) and expr.
5011625f88beSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5012625f88beSmrg  eval 'as_fn_arith ()
5013625f88beSmrg  {
5014625f88beSmrg    as_val=$(( $* ))
5015625f88beSmrg  }'
5016625f88beSmrgelse
5017625f88beSmrg  as_fn_arith ()
5018625f88beSmrg  {
5019625f88beSmrg    as_val=`expr "$@" || test $? -eq 1`
5020625f88beSmrg  }
5021625f88beSmrgfi # as_fn_arith
5022625f88beSmrg
5023625f88beSmrg
5024f299d47fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5025f299d47fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5026f299d47fSmrg  as_expr=expr
5027f299d47fSmrgelse
5028f299d47fSmrg  as_expr=false
5029f299d47fSmrgfi
5030f299d47fSmrg
5031f299d47fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5032f299d47fSmrg  as_basename=basename
5033f299d47fSmrgelse
5034f299d47fSmrg  as_basename=false
5035f299d47fSmrgfi
5036f299d47fSmrg
5037625f88beSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5038625f88beSmrg  as_dirname=dirname
5039625f88beSmrgelse
5040625f88beSmrg  as_dirname=false
5041625f88beSmrgfi
5042f299d47fSmrg
5043f299d47fSmrgas_me=`$as_basename -- "$0" ||
5044f299d47fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5045f299d47fSmrg	 X"$0" : 'X\(//\)$' \| \
5046f299d47fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5047aa98702cSmrg$as_echo X/"$0" |
5048f299d47fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5049f299d47fSmrg	    s//\1/
5050f299d47fSmrg	    q
5051f299d47fSmrg	  }
5052f299d47fSmrg	  /^X\/\(\/\/\)$/{
5053f299d47fSmrg	    s//\1/
5054f299d47fSmrg	    q
5055f299d47fSmrg	  }
5056f299d47fSmrg	  /^X\/\(\/\).*/{
5057f299d47fSmrg	    s//\1/
5058f299d47fSmrg	    q
5059f299d47fSmrg	  }
5060f299d47fSmrg	  s/.*/./; q'`
5061f299d47fSmrg
5062625f88beSmrg# Avoid depending upon Character Ranges.
5063625f88beSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5064625f88beSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5065625f88beSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5066625f88beSmrgas_cr_digits='0123456789'
5067625f88beSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5068f299d47fSmrg
5069f299d47fSmrgECHO_C= ECHO_N= ECHO_T=
5070625f88beSmrgcase `echo -n x` in #(((((
5071f299d47fSmrg-n*)
5072625f88beSmrg  case `echo 'xy\c'` in
5073f299d47fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5074625f88beSmrg  xy)  ECHO_C='\c';;
5075625f88beSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5076625f88beSmrg       ECHO_T='	';;
5077f299d47fSmrg  esac;;
5078f299d47fSmrg*)
5079f299d47fSmrg  ECHO_N='-n';;
5080f299d47fSmrgesac
5081f299d47fSmrg
5082f299d47fSmrgrm -f conf$$ conf$$.exe conf$$.file
5083f299d47fSmrgif test -d conf$$.dir; then
5084f299d47fSmrg  rm -f conf$$.dir/conf$$.file
5085f299d47fSmrgelse
5086f299d47fSmrg  rm -f conf$$.dir
5087aa98702cSmrg  mkdir conf$$.dir 2>/dev/null
5088aa98702cSmrgfi
5089aa98702cSmrgif (echo >conf$$.file) 2>/dev/null; then
5090aa98702cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5091aa98702cSmrg    as_ln_s='ln -s'
5092aa98702cSmrg    # ... but there are two gotchas:
5093aa98702cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5094aa98702cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5095aa98702cSmrg    # In both cases, we have to default to `cp -p'.
5096aa98702cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5097aa98702cSmrg      as_ln_s='cp -p'
5098aa98702cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5099aa98702cSmrg    as_ln_s=ln
5100aa98702cSmrg  else
5101f299d47fSmrg    as_ln_s='cp -p'
5102aa98702cSmrg  fi
5103f299d47fSmrgelse
5104f299d47fSmrg  as_ln_s='cp -p'
5105f299d47fSmrgfi
5106f299d47fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5107f299d47fSmrgrmdir conf$$.dir 2>/dev/null
5108f299d47fSmrg
5109625f88beSmrg
5110625f88beSmrg# as_fn_mkdir_p
5111625f88beSmrg# -------------
5112625f88beSmrg# Create "$as_dir" as a directory, including parents if necessary.
5113625f88beSmrgas_fn_mkdir_p ()
5114625f88beSmrg{
5115625f88beSmrg
5116625f88beSmrg  case $as_dir in #(
5117625f88beSmrg  -*) as_dir=./$as_dir;;
5118625f88beSmrg  esac
5119625f88beSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
5120625f88beSmrg    as_dirs=
5121625f88beSmrg    while :; do
5122625f88beSmrg      case $as_dir in #(
5123625f88beSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5124625f88beSmrg      *) as_qdir=$as_dir;;
5125625f88beSmrg      esac
5126625f88beSmrg      as_dirs="'$as_qdir' $as_dirs"
5127625f88beSmrg      as_dir=`$as_dirname -- "$as_dir" ||
5128625f88beSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5129625f88beSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5130625f88beSmrg	 X"$as_dir" : 'X\(//\)$' \| \
5131625f88beSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5132625f88beSmrg$as_echo X"$as_dir" |
5133625f88beSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5134625f88beSmrg	    s//\1/
5135625f88beSmrg	    q
5136625f88beSmrg	  }
5137625f88beSmrg	  /^X\(\/\/\)[^/].*/{
5138625f88beSmrg	    s//\1/
5139625f88beSmrg	    q
5140625f88beSmrg	  }
5141625f88beSmrg	  /^X\(\/\/\)$/{
5142625f88beSmrg	    s//\1/
5143625f88beSmrg	    q
5144625f88beSmrg	  }
5145625f88beSmrg	  /^X\(\/\).*/{
5146625f88beSmrg	    s//\1/
5147625f88beSmrg	    q
5148625f88beSmrg	  }
5149625f88beSmrg	  s/.*/./; q'`
5150625f88beSmrg      test -d "$as_dir" && break
5151625f88beSmrg    done
5152625f88beSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5153625f88beSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5154625f88beSmrg
5155625f88beSmrg
5156625f88beSmrg} # as_fn_mkdir_p
5157f299d47fSmrgif mkdir -p . 2>/dev/null; then
5158625f88beSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5159f299d47fSmrgelse
5160f299d47fSmrg  test -d ./-p && rmdir ./-p
5161f299d47fSmrg  as_mkdir_p=false
5162f299d47fSmrgfi
5163f299d47fSmrg
5164f299d47fSmrgif test -x / >/dev/null 2>&1; then
5165f299d47fSmrg  as_test_x='test -x'
5166f299d47fSmrgelse
5167f299d47fSmrg  if ls -dL / >/dev/null 2>&1; then
5168f299d47fSmrg    as_ls_L_option=L
5169f299d47fSmrg  else
5170f299d47fSmrg    as_ls_L_option=
5171f299d47fSmrg  fi
5172f299d47fSmrg  as_test_x='
5173f299d47fSmrg    eval sh -c '\''
5174f299d47fSmrg      if test -d "$1"; then
5175aa98702cSmrg	test -d "$1/.";
5176f299d47fSmrg      else
5177625f88beSmrg	case $1 in #(
5178aa98702cSmrg	-*)set "./$1";;
5179f299d47fSmrg	esac;
5180625f88beSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5181f299d47fSmrg	???[sx]*):;;*)false;;esac;fi
5182f299d47fSmrg    '\'' sh
5183f299d47fSmrg  '
5184f299d47fSmrgfi
5185f299d47fSmrgas_executable_p=$as_test_x
5186f299d47fSmrg
5187f299d47fSmrg# Sed expression to map a string onto a valid CPP name.
5188f299d47fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5189f299d47fSmrg
5190f299d47fSmrg# Sed expression to map a string onto a valid variable name.
5191f299d47fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5192f299d47fSmrg
5193f299d47fSmrg
5194f299d47fSmrgexec 6>&1
5195625f88beSmrg## ----------------------------------- ##
5196625f88beSmrg## Main body of $CONFIG_STATUS script. ##
5197625f88beSmrg## ----------------------------------- ##
5198625f88beSmrg_ASEOF
5199625f88beSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5200f299d47fSmrg
5201625f88beSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5202625f88beSmrg# Save the log message, to keep $0 and so on meaningful, and to
5203f299d47fSmrg# report actual input values of CONFIG_FILES etc. instead of their
5204f299d47fSmrg# values after options handling.
5205f299d47fSmrgac_log="
5206625f88beSmrgThis file was extended by xev $as_me 1.1.0, which was
5207625f88beSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
5208f299d47fSmrg
5209f299d47fSmrg  CONFIG_FILES    = $CONFIG_FILES
5210f299d47fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5211f299d47fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5212f299d47fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5213f299d47fSmrg  $ $0 $@
5214f299d47fSmrg
5215f299d47fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5216f299d47fSmrg"
5217f299d47fSmrg
5218f299d47fSmrg_ACEOF
5219f299d47fSmrg
5220aa98702cSmrgcase $ac_config_files in *"
5221aa98702cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5222aa98702cSmrgesac
5223aa98702cSmrg
5224aa98702cSmrgcase $ac_config_headers in *"
5225aa98702cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5226aa98702cSmrgesac
5227aa98702cSmrg
5228aa98702cSmrg
5229aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5230f299d47fSmrg# Files that config.status was made for.
5231f299d47fSmrgconfig_files="$ac_config_files"
5232f299d47fSmrgconfig_headers="$ac_config_headers"
5233f299d47fSmrgconfig_commands="$ac_config_commands"
5234f299d47fSmrg
5235f299d47fSmrg_ACEOF
5236f299d47fSmrg
5237aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5238f299d47fSmrgac_cs_usage="\
5239625f88beSmrg\`$as_me' instantiates files and other configuration actions
5240625f88beSmrgfrom templates according to the current configuration.  Unless the files
5241625f88beSmrgand actions are specified as TAGs, all are instantiated by default.
5242f299d47fSmrg
5243625f88beSmrgUsage: $0 [OPTION]... [TAG]...
5244f299d47fSmrg
5245f299d47fSmrg  -h, --help       print this help, then exit
5246f299d47fSmrg  -V, --version    print version number and configuration settings, then exit
5247625f88beSmrg      --config     print configuration, then exit
5248aa98702cSmrg  -q, --quiet, --silent
5249aa98702cSmrg                   do not print progress messages
5250f299d47fSmrg  -d, --debug      don't remove temporary files
5251f299d47fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
5252aa98702cSmrg      --file=FILE[:TEMPLATE]
5253aa98702cSmrg                   instantiate the configuration file FILE
5254aa98702cSmrg      --header=FILE[:TEMPLATE]
5255aa98702cSmrg                   instantiate the configuration header FILE
5256f299d47fSmrg
5257f299d47fSmrgConfiguration files:
5258f299d47fSmrg$config_files
5259f299d47fSmrg
5260f299d47fSmrgConfiguration headers:
5261f299d47fSmrg$config_headers
5262f299d47fSmrg
5263f299d47fSmrgConfiguration commands:
5264f299d47fSmrg$config_commands
5265f299d47fSmrg
5266625f88beSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5267f299d47fSmrg
5268f299d47fSmrg_ACEOF
5269aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5270625f88beSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5271f299d47fSmrgac_cs_version="\\
5272625f88beSmrgxev config.status 1.1.0
5273625f88beSmrgconfigured by $0, generated by GNU Autoconf 2.68,
5274625f88beSmrg  with options \\"\$ac_cs_config\\"
5275f299d47fSmrg
5276625f88beSmrgCopyright (C) 2010 Free Software Foundation, Inc.
5277f299d47fSmrgThis config.status script is free software; the Free Software Foundation
5278f299d47fSmrggives unlimited permission to copy, distribute and modify it."
5279f299d47fSmrg
5280f299d47fSmrgac_pwd='$ac_pwd'
5281f299d47fSmrgsrcdir='$srcdir'
5282f299d47fSmrgINSTALL='$INSTALL'
5283f299d47fSmrgMKDIR_P='$MKDIR_P'
5284aa98702cSmrgAWK='$AWK'
5285aa98702cSmrgtest -n "\$AWK" || AWK=awk
5286f299d47fSmrg_ACEOF
5287f299d47fSmrg
5288aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5289aa98702cSmrg# The default lists apply if the user does not specify any file.
5290f299d47fSmrgac_need_defaults=:
5291f299d47fSmrgwhile test $# != 0
5292f299d47fSmrgdo
5293f299d47fSmrg  case $1 in
5294625f88beSmrg  --*=?*)
5295f299d47fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5296f299d47fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5297f299d47fSmrg    ac_shift=:
5298f299d47fSmrg    ;;
5299625f88beSmrg  --*=)
5300625f88beSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5301625f88beSmrg    ac_optarg=
5302625f88beSmrg    ac_shift=:
5303625f88beSmrg    ;;
5304f299d47fSmrg  *)
5305f299d47fSmrg    ac_option=$1
5306f299d47fSmrg    ac_optarg=$2
5307f299d47fSmrg    ac_shift=shift
5308f299d47fSmrg    ;;
5309f299d47fSmrg  esac
5310f299d47fSmrg
5311f299d47fSmrg  case $ac_option in
5312f299d47fSmrg  # Handling of the options.
5313f299d47fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5314f299d47fSmrg    ac_cs_recheck=: ;;
5315f299d47fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5316aa98702cSmrg    $as_echo "$ac_cs_version"; exit ;;
5317625f88beSmrg  --config | --confi | --conf | --con | --co | --c )
5318625f88beSmrg    $as_echo "$ac_cs_config"; exit ;;
5319f299d47fSmrg  --debug | --debu | --deb | --de | --d | -d )
5320f299d47fSmrg    debug=: ;;
5321f299d47fSmrg  --file | --fil | --fi | --f )
5322f299d47fSmrg    $ac_shift
5323aa98702cSmrg    case $ac_optarg in
5324aa98702cSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5325625f88beSmrg    '') as_fn_error $? "missing file argument" ;;
5326aa98702cSmrg    esac
5327625f88beSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5328f299d47fSmrg    ac_need_defaults=false;;
5329f299d47fSmrg  --header | --heade | --head | --hea )
5330f299d47fSmrg    $ac_shift
5331aa98702cSmrg    case $ac_optarg in
5332aa98702cSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5333aa98702cSmrg    esac
5334625f88beSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5335f299d47fSmrg    ac_need_defaults=false;;
5336f299d47fSmrg  --he | --h)
5337f299d47fSmrg    # Conflict between --help and --header
5338625f88beSmrg    as_fn_error $? "ambiguous option: \`$1'
5339625f88beSmrgTry \`$0 --help' for more information.";;
5340f299d47fSmrg  --help | --hel | -h )
5341aa98702cSmrg    $as_echo "$ac_cs_usage"; exit ;;
5342f299d47fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5343f299d47fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5344f299d47fSmrg    ac_cs_silent=: ;;
5345f299d47fSmrg
5346f299d47fSmrg  # This is an error.
5347625f88beSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
5348625f88beSmrgTry \`$0 --help' for more information." ;;
5349f299d47fSmrg
5350625f88beSmrg  *) as_fn_append ac_config_targets " $1"
5351f299d47fSmrg     ac_need_defaults=false ;;
5352f299d47fSmrg
5353f299d47fSmrg  esac
5354f299d47fSmrg  shift
5355f299d47fSmrgdone
5356f299d47fSmrg
5357f299d47fSmrgac_configure_extra_args=
5358f299d47fSmrg
5359f299d47fSmrgif $ac_cs_silent; then
5360f299d47fSmrg  exec 6>/dev/null
5361f299d47fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5362f299d47fSmrgfi
5363f299d47fSmrg
5364f299d47fSmrg_ACEOF
5365aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5366f299d47fSmrgif \$ac_cs_recheck; then
5367aa98702cSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5368aa98702cSmrg  shift
5369aa98702cSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5370aa98702cSmrg  CONFIG_SHELL='$SHELL'
5371f299d47fSmrg  export CONFIG_SHELL
5372aa98702cSmrg  exec "\$@"
5373f299d47fSmrgfi
5374f299d47fSmrg
5375f299d47fSmrg_ACEOF
5376aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5377f299d47fSmrgexec 5>>config.log
5378f299d47fSmrg{
5379f299d47fSmrg  echo
5380f299d47fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5381f299d47fSmrg## Running $as_me. ##
5382f299d47fSmrg_ASBOX
5383aa98702cSmrg  $as_echo "$ac_log"
5384f299d47fSmrg} >&5
5385f299d47fSmrg
5386f299d47fSmrg_ACEOF
5387aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5388f299d47fSmrg#
5389f299d47fSmrg# INIT-COMMANDS
5390f299d47fSmrg#
5391f299d47fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5392f299d47fSmrg
5393f299d47fSmrg_ACEOF
5394f299d47fSmrg
5395aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5396f299d47fSmrg
5397f299d47fSmrg# Handling of arguments.
5398f299d47fSmrgfor ac_config_target in $ac_config_targets
5399f299d47fSmrgdo
5400f299d47fSmrg  case $ac_config_target in
5401f299d47fSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5402f299d47fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5403f299d47fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5404f299d47fSmrg
5405625f88beSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5406f299d47fSmrg  esac
5407f299d47fSmrgdone
5408f299d47fSmrg
5409f299d47fSmrg
5410f299d47fSmrg# If the user did not use the arguments to specify the items to instantiate,
5411f299d47fSmrg# then the envvar interface is used.  Set only those that are not.
5412f299d47fSmrg# We use the long form for the default assignment because of an extremely
5413f299d47fSmrg# bizarre bug on SunOS 4.1.3.
5414f299d47fSmrgif $ac_need_defaults; then
5415f299d47fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5416f299d47fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5417f299d47fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5418f299d47fSmrgfi
5419f299d47fSmrg
5420f299d47fSmrg# Have a temporary directory for convenience.  Make it in the build tree
5421f299d47fSmrg# simply because there is no reason against having it here, and in addition,
5422f299d47fSmrg# creating and moving files from /tmp can sometimes cause problems.
5423f299d47fSmrg# Hook for its removal unless debugging.
5424f299d47fSmrg# Note that there is a small window in which the directory will not be cleaned:
5425f299d47fSmrg# after its creation but before its name has been assigned to `$tmp'.
5426f299d47fSmrg$debug ||
5427f299d47fSmrg{
5428625f88beSmrg  tmp= ac_tmp=
5429f299d47fSmrg  trap 'exit_status=$?
5430625f88beSmrg  : "${ac_tmp:=$tmp}"
5431625f88beSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5432f299d47fSmrg' 0
5433625f88beSmrg  trap 'as_fn_exit 1' 1 2 13 15
5434f299d47fSmrg}
5435f299d47fSmrg# Create a (secure) tmp directory for tmp files.
5436f299d47fSmrg
5437f299d47fSmrg{
5438f299d47fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5439625f88beSmrg  test -d "$tmp"
5440f299d47fSmrg}  ||
5441f299d47fSmrg{
5442f299d47fSmrg  tmp=./conf$$-$RANDOM
5443f299d47fSmrg  (umask 077 && mkdir "$tmp")
5444625f88beSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5445625f88beSmrgac_tmp=$tmp
5446f299d47fSmrg
5447aa98702cSmrg# Set up the scripts for CONFIG_FILES section.
5448aa98702cSmrg# No need to generate them if there are no CONFIG_FILES.
5449aa98702cSmrg# This happens for instance with `./config.status config.h'.
5450f299d47fSmrgif test -n "$CONFIG_FILES"; then
5451f299d47fSmrg
5452f299d47fSmrg
5453625f88beSmrgac_cr=`echo X | tr X '\015'`
5454625f88beSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5455625f88beSmrg# But we know of no other shell where ac_cr would be empty at this
5456625f88beSmrg# point, so we can use a bashism as a fallback.
5457625f88beSmrgif test "x$ac_cr" = x; then
5458625f88beSmrg  eval ac_cr=\$\'\\r\'
5459625f88beSmrgfi
5460aa98702cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5461aa98702cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5462aa98702cSmrg  ac_cs_awk_cr='\\r'
5463aa98702cSmrgelse
5464aa98702cSmrg  ac_cs_awk_cr=$ac_cr
5465f299d47fSmrgfi
5466f299d47fSmrg
5467625f88beSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5468f299d47fSmrg_ACEOF
5469f299d47fSmrg
5470f299d47fSmrg
5471aa98702cSmrg{
5472aa98702cSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5473aa98702cSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5474aa98702cSmrg  echo "_ACEOF"
5475aa98702cSmrg} >conf$$subs.sh ||
5476625f88beSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5477625f88beSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5478f299d47fSmrgac_delim='%!_!# '
5479f299d47fSmrgfor ac_last_try in false false false false false :; do
5480aa98702cSmrg  . ./conf$$subs.sh ||
5481625f88beSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5482f299d47fSmrg
5483aa98702cSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5484aa98702cSmrg  if test $ac_delim_n = $ac_delim_num; then
5485f299d47fSmrg    break
5486f299d47fSmrg  elif $ac_last_try; then
5487625f88beSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5488f299d47fSmrg  else
5489f299d47fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5490f299d47fSmrg  fi
5491f299d47fSmrgdone
5492aa98702cSmrgrm -f conf$$subs.sh
5493f299d47fSmrg
5494aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5495625f88beSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5496aa98702cSmrg_ACEOF
5497aa98702cSmrgsed -n '
5498aa98702cSmrgh
5499aa98702cSmrgs/^/S["/; s/!.*/"]=/
5500aa98702cSmrgp
5501aa98702cSmrgg
5502aa98702cSmrgs/^[^!]*!//
5503aa98702cSmrg:repl
5504aa98702cSmrgt repl
5505aa98702cSmrgs/'"$ac_delim"'$//
5506aa98702cSmrgt delim
5507aa98702cSmrg:nl
5508aa98702cSmrgh
5509625f88beSmrgs/\(.\{148\}\)..*/\1/
5510aa98702cSmrgt more1
5511aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5512aa98702cSmrgp
5513aa98702cSmrgn
5514aa98702cSmrgb repl
5515aa98702cSmrg:more1
5516aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5517aa98702cSmrgp
5518aa98702cSmrgg
5519aa98702cSmrgs/.\{148\}//
5520aa98702cSmrgt nl
5521aa98702cSmrg:delim
5522aa98702cSmrgh
5523625f88beSmrgs/\(.\{148\}\)..*/\1/
5524aa98702cSmrgt more2
5525aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5526aa98702cSmrgp
5527aa98702cSmrgb
5528aa98702cSmrg:more2
5529aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5530aa98702cSmrgp
5531aa98702cSmrgg
5532aa98702cSmrgs/.\{148\}//
5533aa98702cSmrgt delim
5534aa98702cSmrg' <conf$$subs.awk | sed '
5535aa98702cSmrg/^[^""]/{
5536aa98702cSmrg  N
5537aa98702cSmrg  s/\n//
5538aa98702cSmrg}
5539aa98702cSmrg' >>$CONFIG_STATUS || ac_write_fail=1
5540aa98702cSmrgrm -f conf$$subs.awk
5541aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5542aa98702cSmrg_ACAWK
5543625f88beSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5544aa98702cSmrg  for (key in S) S_is_set[key] = 1
5545aa98702cSmrg  FS = ""
5546aa98702cSmrg
5547aa98702cSmrg}
5548aa98702cSmrg{
5549aa98702cSmrg  line = $ 0
5550aa98702cSmrg  nfields = split(line, field, "@")
5551aa98702cSmrg  substed = 0
5552aa98702cSmrg  len = length(field[1])
5553aa98702cSmrg  for (i = 2; i < nfields; i++) {
5554aa98702cSmrg    key = field[i]
5555aa98702cSmrg    keylen = length(key)
5556aa98702cSmrg    if (S_is_set[key]) {
5557aa98702cSmrg      value = S[key]
5558aa98702cSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5559aa98702cSmrg      len += length(value) + length(field[++i])
5560aa98702cSmrg      substed = 1
5561aa98702cSmrg    } else
5562aa98702cSmrg      len += 1 + keylen
5563aa98702cSmrg  }
5564aa98702cSmrg
5565aa98702cSmrg  print line
5566aa98702cSmrg}
5567f299d47fSmrg
5568aa98702cSmrg_ACAWK
5569f299d47fSmrg_ACEOF
5570aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5571aa98702cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5572aa98702cSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5573aa98702cSmrgelse
5574aa98702cSmrg  cat
5575625f88beSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5576625f88beSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5577f299d47fSmrg_ACEOF
5578f299d47fSmrg
5579625f88beSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5580625f88beSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5581f299d47fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
5582f299d47fSmrg# (actually we leave an empty line to preserve line numbers).
5583f299d47fSmrgif test "x$srcdir" = x.; then
5584625f88beSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5585625f88beSmrgh
5586625f88beSmrgs///
5587625f88beSmrgs/^/:/
5588625f88beSmrgs/[	 ]*$/:/
5589625f88beSmrgs/:\$(srcdir):/:/g
5590625f88beSmrgs/:\${srcdir}:/:/g
5591625f88beSmrgs/:@srcdir@:/:/g
5592625f88beSmrgs/^:*//
5593f299d47fSmrgs/:*$//
5594625f88beSmrgx
5595625f88beSmrgs/\(=[	 ]*\).*/\1/
5596625f88beSmrgG
5597625f88beSmrgs/\n//
5598f299d47fSmrgs/^[^=]*=[	 ]*$//
5599f299d47fSmrg}'
5600f299d47fSmrgfi
5601f299d47fSmrg
5602aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5603f299d47fSmrgfi # test -n "$CONFIG_FILES"
5604f299d47fSmrg
5605aa98702cSmrg# Set up the scripts for CONFIG_HEADERS section.
5606aa98702cSmrg# No need to generate them if there are no CONFIG_HEADERS.
5607aa98702cSmrg# This happens for instance with `./config.status Makefile'.
5608aa98702cSmrgif test -n "$CONFIG_HEADERS"; then
5609625f88beSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5610aa98702cSmrgBEGIN {
5611aa98702cSmrg_ACEOF
5612aa98702cSmrg
5613aa98702cSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5614aa98702cSmrg# here-document in config.status, that substitutes the proper values into
5615aa98702cSmrg# config.h.in to produce config.h.
5616aa98702cSmrg
5617aa98702cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
5618aa98702cSmrg# handling of long lines.
5619aa98702cSmrgac_delim='%!_!# '
5620aa98702cSmrgfor ac_last_try in false false :; do
5621625f88beSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5622625f88beSmrg  if test -z "$ac_tt"; then
5623aa98702cSmrg    break
5624aa98702cSmrg  elif $ac_last_try; then
5625625f88beSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5626aa98702cSmrg  else
5627aa98702cSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5628aa98702cSmrg  fi
5629aa98702cSmrgdone
5630aa98702cSmrg
5631aa98702cSmrg# For the awk script, D is an array of macro values keyed by name,
5632aa98702cSmrg# likewise P contains macro parameters if any.  Preserve backslash
5633aa98702cSmrg# newline sequences.
5634aa98702cSmrg
5635aa98702cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5636aa98702cSmrgsed -n '
5637aa98702cSmrgs/.\{148\}/&'"$ac_delim"'/g
5638aa98702cSmrgt rset
5639aa98702cSmrg:rset
5640aa98702cSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5641aa98702cSmrgt def
5642aa98702cSmrgd
5643aa98702cSmrg:def
5644aa98702cSmrgs/\\$//
5645aa98702cSmrgt bsnl
5646aa98702cSmrgs/["\\]/\\&/g
5647aa98702cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5648aa98702cSmrgD["\1"]=" \3"/p
5649aa98702cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5650aa98702cSmrgd
5651aa98702cSmrg:bsnl
5652aa98702cSmrgs/["\\]/\\&/g
5653aa98702cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5654aa98702cSmrgD["\1"]=" \3\\\\\\n"\\/p
5655aa98702cSmrgt cont
5656aa98702cSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5657aa98702cSmrgt cont
5658aa98702cSmrgd
5659aa98702cSmrg:cont
5660aa98702cSmrgn
5661aa98702cSmrgs/.\{148\}/&'"$ac_delim"'/g
5662aa98702cSmrgt clear
5663aa98702cSmrg:clear
5664aa98702cSmrgs/\\$//
5665aa98702cSmrgt bsnlc
5666aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
5667aa98702cSmrgd
5668aa98702cSmrg:bsnlc
5669aa98702cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5670aa98702cSmrgb cont
5671aa98702cSmrg' <confdefs.h | sed '
5672aa98702cSmrgs/'"$ac_delim"'/"\\\
5673aa98702cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
5674aa98702cSmrg
5675aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5676aa98702cSmrg  for (key in D) D_is_set[key] = 1
5677aa98702cSmrg  FS = ""
5678aa98702cSmrg}
5679aa98702cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5680aa98702cSmrg  line = \$ 0
5681aa98702cSmrg  split(line, arg, " ")
5682aa98702cSmrg  if (arg[1] == "#") {
5683aa98702cSmrg    defundef = arg[2]
5684aa98702cSmrg    mac1 = arg[3]
5685aa98702cSmrg  } else {
5686aa98702cSmrg    defundef = substr(arg[1], 2)
5687aa98702cSmrg    mac1 = arg[2]
5688aa98702cSmrg  }
5689aa98702cSmrg  split(mac1, mac2, "(") #)
5690aa98702cSmrg  macro = mac2[1]
5691aa98702cSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
5692aa98702cSmrg  if (D_is_set[macro]) {
5693aa98702cSmrg    # Preserve the white space surrounding the "#".
5694aa98702cSmrg    print prefix "define", macro P[macro] D[macro]
5695aa98702cSmrg    next
5696aa98702cSmrg  } else {
5697aa98702cSmrg    # Replace #undef with comments.  This is necessary, for example,
5698aa98702cSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
5699aa98702cSmrg    # on some systems where configure will not decide to define it.
5700aa98702cSmrg    if (defundef == "undef") {
5701aa98702cSmrg      print "/*", prefix defundef, macro, "*/"
5702aa98702cSmrg      next
5703aa98702cSmrg    }
5704aa98702cSmrg  }
5705aa98702cSmrg}
5706aa98702cSmrg{ print }
5707aa98702cSmrg_ACAWK
5708aa98702cSmrg_ACEOF
5709aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5710625f88beSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5711aa98702cSmrgfi # test -n "$CONFIG_HEADERS"
5712aa98702cSmrg
5713f299d47fSmrg
5714aa98702cSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5715aa98702cSmrgshift
5716aa98702cSmrgfor ac_tag
5717f299d47fSmrgdo
5718f299d47fSmrg  case $ac_tag in
5719f299d47fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5720f299d47fSmrg  esac
5721f299d47fSmrg  case $ac_mode$ac_tag in
5722f299d47fSmrg  :[FHL]*:*);;
5723625f88beSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5724f299d47fSmrg  :[FH]-) ac_tag=-:-;;
5725f299d47fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5726f299d47fSmrg  esac
5727f299d47fSmrg  ac_save_IFS=$IFS
5728f299d47fSmrg  IFS=:
5729f299d47fSmrg  set x $ac_tag
5730f299d47fSmrg  IFS=$ac_save_IFS
5731f299d47fSmrg  shift
5732f299d47fSmrg  ac_file=$1
5733f299d47fSmrg  shift
5734f299d47fSmrg
5735f299d47fSmrg  case $ac_mode in
5736f299d47fSmrg  :L) ac_source=$1;;
5737f299d47fSmrg  :[FH])
5738f299d47fSmrg    ac_file_inputs=
5739f299d47fSmrg    for ac_f
5740f299d47fSmrg    do
5741f299d47fSmrg      case $ac_f in
5742625f88beSmrg      -) ac_f="$ac_tmp/stdin";;
5743f299d47fSmrg      *) # Look for the file first in the build tree, then in the source tree
5744f299d47fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5745f299d47fSmrg	 # because $ac_f cannot contain `:'.
5746f299d47fSmrg	 test -f "$ac_f" ||
5747f299d47fSmrg	   case $ac_f in
5748f299d47fSmrg	   [\\/$]*) false;;
5749f299d47fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5750f299d47fSmrg	   esac ||
5751625f88beSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5752f299d47fSmrg      esac
5753aa98702cSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5754625f88beSmrg      as_fn_append ac_file_inputs " '$ac_f'"
5755f299d47fSmrg    done
5756f299d47fSmrg
5757f299d47fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5758f299d47fSmrg    # use $as_me), people would be surprised to read:
5759f299d47fSmrg    #    /* config.h.  Generated by config.status.  */
5760aa98702cSmrg    configure_input='Generated from '`
5761aa98702cSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5762aa98702cSmrg	`' by configure.'
5763f299d47fSmrg    if test x"$ac_file" != x-; then
5764f299d47fSmrg      configure_input="$ac_file.  $configure_input"
5765625f88beSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5766aa98702cSmrg$as_echo "$as_me: creating $ac_file" >&6;}
5767f299d47fSmrg    fi
5768aa98702cSmrg    # Neutralize special characters interpreted by sed in replacement strings.
5769aa98702cSmrg    case $configure_input in #(
5770aa98702cSmrg    *\&* | *\|* | *\\* )
5771aa98702cSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
5772aa98702cSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5773aa98702cSmrg    *) ac_sed_conf_input=$configure_input;;
5774aa98702cSmrg    esac
5775f299d47fSmrg
5776f299d47fSmrg    case $ac_tag in
5777625f88beSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5778625f88beSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5779f299d47fSmrg    esac
5780f299d47fSmrg    ;;
5781f299d47fSmrg  esac
5782f299d47fSmrg
5783f299d47fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
5784f299d47fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5785f299d47fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
5786f299d47fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
5787f299d47fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5788aa98702cSmrg$as_echo X"$ac_file" |
5789f299d47fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5790f299d47fSmrg	    s//\1/
5791f299d47fSmrg	    q
5792f299d47fSmrg	  }
5793f299d47fSmrg	  /^X\(\/\/\)[^/].*/{
5794f299d47fSmrg	    s//\1/
5795f299d47fSmrg	    q
5796f299d47fSmrg	  }
5797f299d47fSmrg	  /^X\(\/\/\)$/{
5798f299d47fSmrg	    s//\1/
5799f299d47fSmrg	    q
5800f299d47fSmrg	  }
5801f299d47fSmrg	  /^X\(\/\).*/{
5802f299d47fSmrg	    s//\1/
5803f299d47fSmrg	    q
5804f299d47fSmrg	  }
5805f299d47fSmrg	  s/.*/./; q'`
5806625f88beSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
5807f299d47fSmrg  ac_builddir=.
5808f299d47fSmrg
5809f299d47fSmrgcase "$ac_dir" in
5810f299d47fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5811f299d47fSmrg*)
5812aa98702cSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5813f299d47fSmrg  # A ".." for each directory in $ac_dir_suffix.
5814aa98702cSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5815f299d47fSmrg  case $ac_top_builddir_sub in
5816f299d47fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5817f299d47fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5818f299d47fSmrg  esac ;;
5819f299d47fSmrgesac
5820f299d47fSmrgac_abs_top_builddir=$ac_pwd
5821f299d47fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5822f299d47fSmrg# for backward compatibility:
5823f299d47fSmrgac_top_builddir=$ac_top_build_prefix
5824f299d47fSmrg
5825f299d47fSmrgcase $srcdir in
5826f299d47fSmrg  .)  # We are building in place.
5827f299d47fSmrg    ac_srcdir=.
5828f299d47fSmrg    ac_top_srcdir=$ac_top_builddir_sub
5829f299d47fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
5830f299d47fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
5831f299d47fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
5832f299d47fSmrg    ac_top_srcdir=$srcdir
5833f299d47fSmrg    ac_abs_top_srcdir=$srcdir ;;
5834f299d47fSmrg  *) # Relative name.
5835f299d47fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5836f299d47fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5837f299d47fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5838f299d47fSmrgesac
5839f299d47fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5840f299d47fSmrg
5841f299d47fSmrg
5842f299d47fSmrg  case $ac_mode in
5843f299d47fSmrg  :F)
5844f299d47fSmrg  #
5845f299d47fSmrg  # CONFIG_FILE
5846f299d47fSmrg  #
5847f299d47fSmrg
5848f299d47fSmrg  case $INSTALL in
5849f299d47fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5850f299d47fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5851f299d47fSmrg  esac
5852f299d47fSmrg  ac_MKDIR_P=$MKDIR_P
5853f299d47fSmrg  case $MKDIR_P in
5854f299d47fSmrg  [\\/$]* | ?:[\\/]* ) ;;
5855f299d47fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5856f299d47fSmrg  esac
5857f299d47fSmrg_ACEOF
5858f299d47fSmrg
5859aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5860f299d47fSmrg# If the template does not know about datarootdir, expand it.
5861f299d47fSmrg# FIXME: This hack should be removed a few years after 2.60.
5862f299d47fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
5863aa98702cSmrgac_sed_dataroot='
5864aa98702cSmrg/datarootdir/ {
5865f299d47fSmrg  p
5866f299d47fSmrg  q
5867f299d47fSmrg}
5868f299d47fSmrg/@datadir@/p
5869f299d47fSmrg/@docdir@/p
5870f299d47fSmrg/@infodir@/p
5871f299d47fSmrg/@localedir@/p
5872625f88beSmrg/@mandir@/p'
5873aa98702cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5874f299d47fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
5875f299d47fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5876625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5877aa98702cSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5878f299d47fSmrg_ACEOF
5879aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5880f299d47fSmrg  ac_datarootdir_hack='
5881f299d47fSmrg  s&@datadir@&$datadir&g
5882f299d47fSmrg  s&@docdir@&$docdir&g
5883f299d47fSmrg  s&@infodir@&$infodir&g
5884f299d47fSmrg  s&@localedir@&$localedir&g
5885f299d47fSmrg  s&@mandir@&$mandir&g
5886625f88beSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
5887f299d47fSmrgesac
5888f299d47fSmrg_ACEOF
5889f299d47fSmrg
5890f299d47fSmrg# Neutralize VPATH when `$srcdir' = `.'.
5891f299d47fSmrg# Shell code in configure.ac might set extrasub.
5892f299d47fSmrg# FIXME: do we really want to maintain this feature?
5893aa98702cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5894aa98702cSmrgac_sed_extra="$ac_vpsub
5895f299d47fSmrg$extrasub
5896f299d47fSmrg_ACEOF
5897aa98702cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898f299d47fSmrg:t
5899f299d47fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5900aa98702cSmrgs|@configure_input@|$ac_sed_conf_input|;t t
5901f299d47fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
5902aa98702cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
5903f299d47fSmrgs&@srcdir@&$ac_srcdir&;t t
5904f299d47fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
5905f299d47fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
5906f299d47fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5907f299d47fSmrgs&@builddir@&$ac_builddir&;t t
5908f299d47fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
5909f299d47fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5910f299d47fSmrgs&@INSTALL@&$ac_INSTALL&;t t
5911f299d47fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
5912f299d47fSmrg$ac_datarootdir_hack
5913aa98702cSmrg"
5914625f88beSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5915625f88beSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5916f299d47fSmrg
5917f299d47fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5918625f88beSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5919625f88beSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5920625f88beSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5921625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5922625f88beSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
5923aa98702cSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5924625f88beSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
5925f299d47fSmrg
5926625f88beSmrg  rm -f "$ac_tmp/stdin"
5927f299d47fSmrg  case $ac_file in
5928625f88beSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5929625f88beSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5930aa98702cSmrg  esac \
5931625f88beSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5932f299d47fSmrg ;;
5933f299d47fSmrg  :H)
5934f299d47fSmrg  #
5935f299d47fSmrg  # CONFIG_HEADER
5936f299d47fSmrg  #
5937f299d47fSmrg  if test x"$ac_file" != x-; then
5938aa98702cSmrg    {
5939aa98702cSmrg      $as_echo "/* $configure_input  */" \
5940625f88beSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5941625f88beSmrg    } >"$ac_tmp/config.h" \
5942625f88beSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5943625f88beSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5944625f88beSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5945aa98702cSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
5946f299d47fSmrg    else
5947aa98702cSmrg      rm -f "$ac_file"
5948625f88beSmrg      mv "$ac_tmp/config.h" "$ac_file" \
5949625f88beSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5950f299d47fSmrg    fi
5951f299d47fSmrg  else
5952aa98702cSmrg    $as_echo "/* $configure_input  */" \
5953625f88beSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5954625f88beSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
5955f299d47fSmrg  fi
5956aa98702cSmrg# Compute "$ac_file"'s index in $config_headers.
5957aa98702cSmrg_am_arg="$ac_file"
5958f299d47fSmrg_am_stamp_count=1
5959f299d47fSmrgfor _am_header in $config_headers :; do
5960f299d47fSmrg  case $_am_header in
5961f299d47fSmrg    $_am_arg | $_am_arg:* )
5962f299d47fSmrg      break ;;
5963f299d47fSmrg    * )
5964f299d47fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5965f299d47fSmrg  esac
5966f299d47fSmrgdone
5967f299d47fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5968f299d47fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5969f299d47fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
5970f299d47fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
5971f299d47fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5972aa98702cSmrg$as_echo X"$_am_arg" |
5973f299d47fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5974f299d47fSmrg	    s//\1/
5975f299d47fSmrg	    q
5976f299d47fSmrg	  }
5977f299d47fSmrg	  /^X\(\/\/\)[^/].*/{
5978f299d47fSmrg	    s//\1/
5979f299d47fSmrg	    q
5980f299d47fSmrg	  }
5981f299d47fSmrg	  /^X\(\/\/\)$/{
5982f299d47fSmrg	    s//\1/
5983f299d47fSmrg	    q
5984f299d47fSmrg	  }
5985f299d47fSmrg	  /^X\(\/\).*/{
5986f299d47fSmrg	    s//\1/
5987f299d47fSmrg	    q
5988f299d47fSmrg	  }
5989f299d47fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
5990f299d47fSmrg ;;
5991f299d47fSmrg
5992625f88beSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5993aa98702cSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
5994f299d47fSmrg ;;
5995f299d47fSmrg  esac
5996f299d47fSmrg
5997f299d47fSmrg
5998f299d47fSmrg  case $ac_file$ac_mode in
5999aa98702cSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6000aa98702cSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6001aa98702cSmrg  # are listed without --file.  Let's play safe and only enable the eval
6002aa98702cSmrg  # if we detect the quoting.
6003aa98702cSmrg  case $CONFIG_FILES in
6004aa98702cSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6005aa98702cSmrg  *)   set x $CONFIG_FILES ;;
6006aa98702cSmrg  esac
6007aa98702cSmrg  shift
6008aa98702cSmrg  for mf
6009aa98702cSmrg  do
6010aa98702cSmrg    # Strip MF so we end up with the name of the file.
6011aa98702cSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6012aa98702cSmrg    # Check whether this is an Automake generated Makefile or not.
6013aa98702cSmrg    # We used to match only the files named `Makefile.in', but
6014aa98702cSmrg    # some people rename them; so instead we look at the file content.
6015aa98702cSmrg    # Grep'ing the first line is not enough: some people post-process
6016aa98702cSmrg    # each Makefile.in and add a new line on top of each file to say so.
6017aa98702cSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6018aa98702cSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6019aa98702cSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6020aa98702cSmrg      dirpart=`$as_dirname -- "$mf" ||
6021f299d47fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6022f299d47fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6023f299d47fSmrg	 X"$mf" : 'X\(//\)$' \| \
6024f299d47fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6025aa98702cSmrg$as_echo X"$mf" |
6026f299d47fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6027f299d47fSmrg	    s//\1/
6028f299d47fSmrg	    q
6029f299d47fSmrg	  }
6030f299d47fSmrg	  /^X\(\/\/\)[^/].*/{
6031f299d47fSmrg	    s//\1/
6032f299d47fSmrg	    q
6033f299d47fSmrg	  }
6034f299d47fSmrg	  /^X\(\/\/\)$/{
6035f299d47fSmrg	    s//\1/
6036f299d47fSmrg	    q
6037f299d47fSmrg	  }
6038f299d47fSmrg	  /^X\(\/\).*/{
6039f299d47fSmrg	    s//\1/
6040f299d47fSmrg	    q
6041f299d47fSmrg	  }
6042f299d47fSmrg	  s/.*/./; q'`
6043aa98702cSmrg    else
6044aa98702cSmrg      continue
6045aa98702cSmrg    fi
6046aa98702cSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6047aa98702cSmrg    # from the Makefile without running `make'.
6048aa98702cSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6049aa98702cSmrg    test -z "$DEPDIR" && continue
6050aa98702cSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6051aa98702cSmrg    test -z "am__include" && continue
6052aa98702cSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6053aa98702cSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6054aa98702cSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6055aa98702cSmrg    # Find all dependency output files, they are included files with
6056aa98702cSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6057aa98702cSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6058aa98702cSmrg    # expansion.
6059aa98702cSmrg    for file in `sed -n "
6060aa98702cSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6061aa98702cSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6062aa98702cSmrg      # Make sure the directory exists.
6063aa98702cSmrg      test -f "$dirpart/$file" && continue
6064aa98702cSmrg      fdir=`$as_dirname -- "$file" ||
6065f299d47fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6066f299d47fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6067f299d47fSmrg	 X"$file" : 'X\(//\)$' \| \
6068f299d47fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6069aa98702cSmrg$as_echo X"$file" |
6070f299d47fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6071f299d47fSmrg	    s//\1/
6072f299d47fSmrg	    q
6073f299d47fSmrg	  }
6074f299d47fSmrg	  /^X\(\/\/\)[^/].*/{
6075f299d47fSmrg	    s//\1/
6076f299d47fSmrg	    q
6077f299d47fSmrg	  }
6078f299d47fSmrg	  /^X\(\/\/\)$/{
6079f299d47fSmrg	    s//\1/
6080f299d47fSmrg	    q
6081f299d47fSmrg	  }
6082f299d47fSmrg	  /^X\(\/\).*/{
6083f299d47fSmrg	    s//\1/
6084f299d47fSmrg	    q
6085f299d47fSmrg	  }
6086f299d47fSmrg	  s/.*/./; q'`
6087625f88beSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6088aa98702cSmrg      # echo "creating $dirpart/$file"
6089aa98702cSmrg      echo '# dummy' > "$dirpart/$file"
6090aa98702cSmrg    done
6091f299d47fSmrg  done
6092aa98702cSmrg}
6093f299d47fSmrg ;;
6094f299d47fSmrg
6095f299d47fSmrg  esac
6096f299d47fSmrgdone # for ac_tag
6097f299d47fSmrg
6098f299d47fSmrg
6099625f88beSmrgas_fn_exit 0
6100f299d47fSmrg_ACEOF
6101f299d47fSmrgac_clean_files=$ac_clean_files_save
6102f299d47fSmrg
6103aa98702cSmrgtest $ac_write_fail = 0 ||
6104625f88beSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6105aa98702cSmrg
6106f299d47fSmrg
6107f299d47fSmrg# configure is writing to config.log, and then calls config.status.
6108f299d47fSmrg# config.status does its own redirection, appending to config.log.
6109f299d47fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6110f299d47fSmrg# by configure, so config.status won't be able to write to it; its
6111f299d47fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6112f299d47fSmrg# effectively closing config.log, so it can be properly (re)opened and
6113f299d47fSmrg# appended to by config.status.  When coming back to configure, we
6114f299d47fSmrg# need to make the FD available again.
6115f299d47fSmrgif test "$no_create" != yes; then
6116f299d47fSmrg  ac_cs_success=:
6117f299d47fSmrg  ac_config_status_args=
6118f299d47fSmrg  test "$silent" = yes &&
6119f299d47fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6120f299d47fSmrg  exec 5>/dev/null
6121f299d47fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6122f299d47fSmrg  exec 5>>config.log
6123f299d47fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6124f299d47fSmrg  # would make configure fail if this is the last instruction.
6125625f88beSmrg  $ac_cs_success || as_fn_exit 1
6126f299d47fSmrgfi
6127aa98702cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6128625f88beSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6129aa98702cSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6130aa98702cSmrgfi
6131f299d47fSmrg
6132