configure revision 781f9a67
1a0d3b6eaSmrg#! /bin/sh
2a0d3b6eaSmrg# Guess values for system-dependent variables and create Makefiles.
3781f9a67Smrg# Generated by GNU Autoconf 2.68 for xrandr 1.3.5.
4a0d3b6eaSmrg#
5a0d3b6eaSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0d3b6eaSmrg#
7f8a31ee4Smrg#
8a0d3b6eaSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
94def10e6Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
104def10e6Smrg# Foundation, Inc.
11f8a31ee4Smrg#
12f8a31ee4Smrg#
13a0d3b6eaSmrg# This configure script is free software; the Free Software Foundation
14a0d3b6eaSmrg# gives unlimited permission to copy, distribute and modify it.
15f8a31ee4Smrg## -------------------- ##
16f8a31ee4Smrg## M4sh Initialization. ##
17f8a31ee4Smrg## -------------------- ##
18a0d3b6eaSmrg
19a0d3b6eaSmrg# Be more Bourne compatible
20a0d3b6eaSmrgDUALCASE=1; export DUALCASE # for MKS sh
21f8a31ee4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a0d3b6eaSmrg  emulate sh
23a0d3b6eaSmrg  NULLCMD=:
2462df5ad0Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a0d3b6eaSmrg  # is contrary to our usage.  Disable this feature.
26a0d3b6eaSmrg  alias -g '${1+"$@"}'='"$@"'
27a0d3b6eaSmrg  setopt NO_GLOB_SUBST
28a0d3b6eaSmrgelse
29f8a31ee4Smrg  case `(set -o) 2>/dev/null` in #(
30f8a31ee4Smrg  *posix*) :
31f8a31ee4Smrg    set -o posix ;; #(
32f8a31ee4Smrg  *) :
33f8a31ee4Smrg     ;;
34a0d3b6eaSmrgesac
35a0d3b6eaSmrgfi
36a0d3b6eaSmrg
37a0d3b6eaSmrg
3862df5ad0Smrgas_nl='
3962df5ad0Smrg'
4062df5ad0Smrgexport as_nl
4162df5ad0Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4262df5ad0Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4362df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4462df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45f8a31ee4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46f8a31ee4Smrg# but without wasting forks for bash or zsh.
47f8a31ee4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48f8a31ee4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49f8a31ee4Smrg  as_echo='print -r --'
50f8a31ee4Smrg  as_echo_n='print -rn --'
51f8a31ee4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5262df5ad0Smrg  as_echo='printf %s\n'
5362df5ad0Smrg  as_echo_n='printf %s'
5462df5ad0Smrgelse
5562df5ad0Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5662df5ad0Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5762df5ad0Smrg    as_echo_n='/usr/ucb/echo -n'
58a0d3b6eaSmrg  else
5962df5ad0Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6062df5ad0Smrg    as_echo_n_body='eval
6162df5ad0Smrg      arg=$1;
62f8a31ee4Smrg      case $arg in #(
6362df5ad0Smrg      *"$as_nl"*)
6462df5ad0Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6562df5ad0Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6662df5ad0Smrg      esac;
6762df5ad0Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6862df5ad0Smrg    '
6962df5ad0Smrg    export as_echo_n_body
7062df5ad0Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a0d3b6eaSmrg  fi
7262df5ad0Smrg  export as_echo_body
7362df5ad0Smrg  as_echo='sh -c $as_echo_body as_echo'
7462df5ad0Smrgfi
7562df5ad0Smrg
7662df5ad0Smrg# The user is always right.
7762df5ad0Smrgif test "${PATH_SEPARATOR+set}" != set; then
7862df5ad0Smrg  PATH_SEPARATOR=:
7962df5ad0Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8062df5ad0Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8162df5ad0Smrg      PATH_SEPARATOR=';'
8262df5ad0Smrg  }
83a0d3b6eaSmrgfi
84a0d3b6eaSmrg
85a0d3b6eaSmrg
86a0d3b6eaSmrg# IFS
87a0d3b6eaSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a0d3b6eaSmrg# there to prevent editors from complaining about space-tab.
89a0d3b6eaSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a0d3b6eaSmrg# splitting by setting IFS to empty value.)
91a0d3b6eaSmrgIFS=" ""	$as_nl"
92a0d3b6eaSmrg
93a0d3b6eaSmrg# Find who we are.  Look in the path if we contain no directory separator.
944def10e6Smrgas_myself=
95f8a31ee4Smrgcase $0 in #((
96a0d3b6eaSmrg  *[\\/]* ) as_myself=$0 ;;
97a0d3b6eaSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98a0d3b6eaSmrgfor as_dir in $PATH
99a0d3b6eaSmrgdo
100a0d3b6eaSmrg  IFS=$as_save_IFS
101a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
102f8a31ee4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103f8a31ee4Smrg  done
104a0d3b6eaSmrgIFS=$as_save_IFS
105a0d3b6eaSmrg
106a0d3b6eaSmrg     ;;
107a0d3b6eaSmrgesac
108a0d3b6eaSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109a0d3b6eaSmrg# in which case we are not to be found in the path.
110a0d3b6eaSmrgif test "x$as_myself" = x; then
111a0d3b6eaSmrg  as_myself=$0
112a0d3b6eaSmrgfi
113a0d3b6eaSmrgif test ! -f "$as_myself"; then
11462df5ad0Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115f8a31ee4Smrg  exit 1
116a0d3b6eaSmrgfi
117a0d3b6eaSmrg
118f8a31ee4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119f8a31ee4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120f8a31ee4Smrg# suppresses any "Segmentation fault" message there.  '((' could
121f8a31ee4Smrg# trigger a bug in pdksh 5.2.14.
122f8a31ee4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123f8a31ee4Smrgdo eval test x\${$as_var+set} = xset \
124f8a31ee4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125a0d3b6eaSmrgdone
126a0d3b6eaSmrgPS1='$ '
127a0d3b6eaSmrgPS2='> '
128a0d3b6eaSmrgPS4='+ '
129a0d3b6eaSmrg
130a0d3b6eaSmrg# NLS nuisances.
13162df5ad0SmrgLC_ALL=C
13262df5ad0Smrgexport LC_ALL
13362df5ad0SmrgLANGUAGE=C
13462df5ad0Smrgexport LANGUAGE
135a0d3b6eaSmrg
136f8a31ee4Smrg# CDPATH.
137f8a31ee4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138f8a31ee4Smrg
139f8a31ee4Smrgif test "x$CONFIG_SHELL" = x; then
140f8a31ee4Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141f8a31ee4Smrg  emulate sh
142f8a31ee4Smrg  NULLCMD=:
143f8a31ee4Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144f8a31ee4Smrg  # is contrary to our usage.  Disable this feature.
145f8a31ee4Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146f8a31ee4Smrg  setopt NO_GLOB_SUBST
147f8a31ee4Smrgelse
148f8a31ee4Smrg  case \`(set -o) 2>/dev/null\` in #(
149f8a31ee4Smrg  *posix*) :
150f8a31ee4Smrg    set -o posix ;; #(
151f8a31ee4Smrg  *) :
152f8a31ee4Smrg     ;;
153f8a31ee4Smrgesac
154f8a31ee4Smrgfi
155f8a31ee4Smrg"
156f8a31ee4Smrg  as_required="as_fn_return () { (exit \$1); }
157f8a31ee4Smrgas_fn_success () { as_fn_return 0; }
158f8a31ee4Smrgas_fn_failure () { as_fn_return 1; }
159f8a31ee4Smrgas_fn_ret_success () { return 0; }
160f8a31ee4Smrgas_fn_ret_failure () { return 1; }
161f8a31ee4Smrg
162f8a31ee4Smrgexitcode=0
163f8a31ee4Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164f8a31ee4Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165f8a31ee4Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166f8a31ee4Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167f8a31ee4Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168f8a31ee4Smrg
169f8a31ee4Smrgelse
170f8a31ee4Smrg  exitcode=1; echo positional parameters were not saved.
171f8a31ee4Smrgfi
172f8a31ee4Smrgtest x\$exitcode = x0 || exit 1"
173f8a31ee4Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174f8a31ee4Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175f8a31ee4Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176f8a31ee4Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177f8a31ee4Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178f8a31ee4Smrg  if (eval "$as_required") 2>/dev/null; then :
179f8a31ee4Smrg  as_have_required=yes
180f8a31ee4Smrgelse
181f8a31ee4Smrg  as_have_required=no
182f8a31ee4Smrgfi
183f8a31ee4Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184f8a31ee4Smrg
185f8a31ee4Smrgelse
186f8a31ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187f8a31ee4Smrgas_found=false
188f8a31ee4Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189f8a31ee4Smrgdo
190f8a31ee4Smrg  IFS=$as_save_IFS
191f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
192f8a31ee4Smrg  as_found=:
193f8a31ee4Smrg  case $as_dir in #(
194f8a31ee4Smrg	 /*)
195f8a31ee4Smrg	   for as_base in sh bash ksh sh5; do
196f8a31ee4Smrg	     # Try only shells that exist, to save several forks.
197f8a31ee4Smrg	     as_shell=$as_dir/$as_base
198f8a31ee4Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199f8a31ee4Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200f8a31ee4Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201f8a31ee4Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202f8a31ee4Smrg  break 2
203f8a31ee4Smrgfi
204f8a31ee4Smrgfi
205f8a31ee4Smrg	   done;;
206f8a31ee4Smrg       esac
207f8a31ee4Smrg  as_found=false
208f8a31ee4Smrgdone
209f8a31ee4Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210f8a31ee4Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211f8a31ee4Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212f8a31ee4Smrgfi; }
213f8a31ee4SmrgIFS=$as_save_IFS
214f8a31ee4Smrg
215f8a31ee4Smrg
216f8a31ee4Smrg      if test "x$CONFIG_SHELL" != x; then :
217f8a31ee4Smrg  # We cannot yet assume a decent shell, so we have to provide a
218f8a31ee4Smrg	# neutralization value for shells without unset; and this also
219f8a31ee4Smrg	# works around shells that cannot unset nonexistent variables.
2204def10e6Smrg	# Preserve -v and -x to the replacement shell.
221f8a31ee4Smrg	BASH_ENV=/dev/null
222f8a31ee4Smrg	ENV=/dev/null
223f8a31ee4Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224f8a31ee4Smrg	export CONFIG_SHELL
2254def10e6Smrg	case $- in # ((((
2264def10e6Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2274def10e6Smrg	  *v* ) as_opts=-v ;;
2284def10e6Smrg	  *x* ) as_opts=-x ;;
2294def10e6Smrg	  * ) as_opts= ;;
2304def10e6Smrg	esac
2314def10e6Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232f8a31ee4Smrgfi
233f8a31ee4Smrg
234f8a31ee4Smrg    if test x$as_have_required = xno; then :
235f8a31ee4Smrg  $as_echo "$0: This script requires a shell more modern than all"
236f8a31ee4Smrg  $as_echo "$0: the shells that I found on your system."
237f8a31ee4Smrg  if test x${ZSH_VERSION+set} = xset ; then
238f8a31ee4Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239f8a31ee4Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240f8a31ee4Smrg  else
241f8a31ee4Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242f8a31ee4Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243f8a31ee4Smrg$0: about your system, including any error possibly output
244f8a31ee4Smrg$0: before this message. Then install a modern shell, or
245f8a31ee4Smrg$0: manually run the script under such a shell if you do
246f8a31ee4Smrg$0: have one."
247f8a31ee4Smrg  fi
248f8a31ee4Smrg  exit 1
249f8a31ee4Smrgfi
250f8a31ee4Smrgfi
251f8a31ee4Smrgfi
252f8a31ee4SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253f8a31ee4Smrgexport SHELL
254f8a31ee4Smrg# Unset more variables known to interfere with behavior of common tools.
255f8a31ee4SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256f8a31ee4Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257f8a31ee4Smrg
258f8a31ee4Smrg## --------------------- ##
259f8a31ee4Smrg## M4sh Shell Functions. ##
260f8a31ee4Smrg## --------------------- ##
261f8a31ee4Smrg# as_fn_unset VAR
262f8a31ee4Smrg# ---------------
263f8a31ee4Smrg# Portably unset VAR.
264f8a31ee4Smrgas_fn_unset ()
265f8a31ee4Smrg{
266f8a31ee4Smrg  { eval $1=; unset $1;}
267f8a31ee4Smrg}
268f8a31ee4Smrgas_unset=as_fn_unset
269f8a31ee4Smrg
270f8a31ee4Smrg# as_fn_set_status STATUS
271f8a31ee4Smrg# -----------------------
272f8a31ee4Smrg# Set $? to STATUS, without forking.
273f8a31ee4Smrgas_fn_set_status ()
274f8a31ee4Smrg{
275f8a31ee4Smrg  return $1
276f8a31ee4Smrg} # as_fn_set_status
277f8a31ee4Smrg
278f8a31ee4Smrg# as_fn_exit STATUS
279f8a31ee4Smrg# -----------------
280f8a31ee4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281f8a31ee4Smrgas_fn_exit ()
282f8a31ee4Smrg{
283f8a31ee4Smrg  set +e
284f8a31ee4Smrg  as_fn_set_status $1
285f8a31ee4Smrg  exit $1
286f8a31ee4Smrg} # as_fn_exit
287f8a31ee4Smrg
288f8a31ee4Smrg# as_fn_mkdir_p
289f8a31ee4Smrg# -------------
290f8a31ee4Smrg# Create "$as_dir" as a directory, including parents if necessary.
291f8a31ee4Smrgas_fn_mkdir_p ()
292f8a31ee4Smrg{
293f8a31ee4Smrg
294f8a31ee4Smrg  case $as_dir in #(
295f8a31ee4Smrg  -*) as_dir=./$as_dir;;
296f8a31ee4Smrg  esac
297f8a31ee4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298f8a31ee4Smrg    as_dirs=
299f8a31ee4Smrg    while :; do
300f8a31ee4Smrg      case $as_dir in #(
301f8a31ee4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302f8a31ee4Smrg      *) as_qdir=$as_dir;;
303f8a31ee4Smrg      esac
304f8a31ee4Smrg      as_dirs="'$as_qdir' $as_dirs"
305f8a31ee4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306f8a31ee4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309f8a31ee4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310f8a31ee4Smrg$as_echo X"$as_dir" |
311f8a31ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312f8a31ee4Smrg	    s//\1/
313f8a31ee4Smrg	    q
314f8a31ee4Smrg	  }
315f8a31ee4Smrg	  /^X\(\/\/\)[^/].*/{
316f8a31ee4Smrg	    s//\1/
317f8a31ee4Smrg	    q
318f8a31ee4Smrg	  }
319f8a31ee4Smrg	  /^X\(\/\/\)$/{
320f8a31ee4Smrg	    s//\1/
321f8a31ee4Smrg	    q
322f8a31ee4Smrg	  }
323f8a31ee4Smrg	  /^X\(\/\).*/{
324f8a31ee4Smrg	    s//\1/
325f8a31ee4Smrg	    q
326f8a31ee4Smrg	  }
327f8a31ee4Smrg	  s/.*/./; q'`
328f8a31ee4Smrg      test -d "$as_dir" && break
329f8a31ee4Smrg    done
330f8a31ee4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3314def10e6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332f8a31ee4Smrg
333f8a31ee4Smrg
334f8a31ee4Smrg} # as_fn_mkdir_p
335f8a31ee4Smrg# as_fn_append VAR VALUE
336f8a31ee4Smrg# ----------------------
337f8a31ee4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338f8a31ee4Smrg# advantage of any shell optimizations that allow amortized linear growth over
339f8a31ee4Smrg# repeated appends, instead of the typical quadratic growth present in naive
340f8a31ee4Smrg# implementations.
341f8a31ee4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342f8a31ee4Smrg  eval 'as_fn_append ()
343f8a31ee4Smrg  {
344f8a31ee4Smrg    eval $1+=\$2
345f8a31ee4Smrg  }'
346f8a31ee4Smrgelse
347f8a31ee4Smrg  as_fn_append ()
348f8a31ee4Smrg  {
349f8a31ee4Smrg    eval $1=\$$1\$2
350f8a31ee4Smrg  }
351f8a31ee4Smrgfi # as_fn_append
352f8a31ee4Smrg
353f8a31ee4Smrg# as_fn_arith ARG...
354f8a31ee4Smrg# ------------------
355f8a31ee4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356f8a31ee4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357f8a31ee4Smrg# must be portable across $(()) and expr.
358f8a31ee4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359f8a31ee4Smrg  eval 'as_fn_arith ()
360f8a31ee4Smrg  {
361f8a31ee4Smrg    as_val=$(( $* ))
362f8a31ee4Smrg  }'
363f8a31ee4Smrgelse
364f8a31ee4Smrg  as_fn_arith ()
365f8a31ee4Smrg  {
366f8a31ee4Smrg    as_val=`expr "$@" || test $? -eq 1`
367f8a31ee4Smrg  }
368f8a31ee4Smrgfi # as_fn_arith
369f8a31ee4Smrg
370f8a31ee4Smrg
3714def10e6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3724def10e6Smrg# ----------------------------------------
373f8a31ee4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374f8a31ee4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3754def10e6Smrg# script with STATUS, using 1 if that was 0.
376f8a31ee4Smrgas_fn_error ()
377f8a31ee4Smrg{
3784def10e6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3794def10e6Smrg  if test "$4"; then
3804def10e6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3814def10e6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382f8a31ee4Smrg  fi
3834def10e6Smrg  $as_echo "$as_me: error: $2" >&2
384f8a31ee4Smrg  as_fn_exit $as_status
385f8a31ee4Smrg} # as_fn_error
386f8a31ee4Smrg
387a0d3b6eaSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388a0d3b6eaSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389a0d3b6eaSmrg  as_expr=expr
390a0d3b6eaSmrgelse
391a0d3b6eaSmrg  as_expr=false
392a0d3b6eaSmrgfi
393a0d3b6eaSmrg
394a0d3b6eaSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395a0d3b6eaSmrg  as_basename=basename
396a0d3b6eaSmrgelse
397a0d3b6eaSmrg  as_basename=false
398a0d3b6eaSmrgfi
399a0d3b6eaSmrg
400f8a31ee4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401f8a31ee4Smrg  as_dirname=dirname
402f8a31ee4Smrgelse
403f8a31ee4Smrg  as_dirname=false
404f8a31ee4Smrgfi
405a0d3b6eaSmrg
406a0d3b6eaSmrgas_me=`$as_basename -- "$0" ||
407a0d3b6eaSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408a0d3b6eaSmrg	 X"$0" : 'X\(//\)$' \| \
409a0d3b6eaSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41062df5ad0Smrg$as_echo X/"$0" |
411a0d3b6eaSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412a0d3b6eaSmrg	    s//\1/
413a0d3b6eaSmrg	    q
414a0d3b6eaSmrg	  }
415a0d3b6eaSmrg	  /^X\/\(\/\/\)$/{
416a0d3b6eaSmrg	    s//\1/
417a0d3b6eaSmrg	    q
418a0d3b6eaSmrg	  }
419a0d3b6eaSmrg	  /^X\/\(\/\).*/{
420a0d3b6eaSmrg	    s//\1/
421a0d3b6eaSmrg	    q
422a0d3b6eaSmrg	  }
423a0d3b6eaSmrg	  s/.*/./; q'`
424a0d3b6eaSmrg
425f8a31ee4Smrg# Avoid depending upon Character Ranges.
426f8a31ee4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427f8a31ee4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428f8a31ee4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429f8a31ee4Smrgas_cr_digits='0123456789'
430f8a31ee4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431a0d3b6eaSmrg
432a0d3b6eaSmrg
433f8a31ee4Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434f8a31ee4Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435f8a31ee4Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436f8a31ee4Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437f8a31ee4Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438f8a31ee4Smrg  sed -n '
439f8a31ee4Smrg    p
440f8a31ee4Smrg    /[$]LINENO/=
441f8a31ee4Smrg  ' <$as_myself |
442f8a31ee4Smrg    sed '
443f8a31ee4Smrg      s/[$]LINENO.*/&-/
444f8a31ee4Smrg      t lineno
445f8a31ee4Smrg      b
446f8a31ee4Smrg      :lineno
447f8a31ee4Smrg      N
448f8a31ee4Smrg      :loop
449f8a31ee4Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450f8a31ee4Smrg      t loop
451f8a31ee4Smrg      s/-\n.*//
452f8a31ee4Smrg    ' >$as_me.lineno &&
453f8a31ee4Smrg  chmod +x "$as_me.lineno" ||
454f8a31ee4Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455a0d3b6eaSmrg
456f8a31ee4Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457f8a31ee4Smrg  # (the dirname of $[0] is not the place where we might find the
458f8a31ee4Smrg  # original and so on.  Autoconf is especially sensitive to this).
459f8a31ee4Smrg  . "./$as_me.lineno"
460f8a31ee4Smrg  # Exit status is that of the last command.
461f8a31ee4Smrg  exit
462a0d3b6eaSmrg}
463a0d3b6eaSmrg
464f8a31ee4SmrgECHO_C= ECHO_N= ECHO_T=
465f8a31ee4Smrgcase `echo -n x` in #(((((
466f8a31ee4Smrg-n*)
467f8a31ee4Smrg  case `echo 'xy\c'` in
468f8a31ee4Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469f8a31ee4Smrg  xy)  ECHO_C='\c';;
470f8a31ee4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471f8a31ee4Smrg       ECHO_T='	';;
472f8a31ee4Smrg  esac;;
473f8a31ee4Smrg*)
474f8a31ee4Smrg  ECHO_N='-n';;
475f8a31ee4Smrgesac
476a0d3b6eaSmrg
477f8a31ee4Smrgrm -f conf$$ conf$$.exe conf$$.file
478f8a31ee4Smrgif test -d conf$$.dir; then
479f8a31ee4Smrg  rm -f conf$$.dir/conf$$.file
480f8a31ee4Smrgelse
481f8a31ee4Smrg  rm -f conf$$.dir
482f8a31ee4Smrg  mkdir conf$$.dir 2>/dev/null
483a0d3b6eaSmrgfi
484f8a31ee4Smrgif (echo >conf$$.file) 2>/dev/null; then
485f8a31ee4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486f8a31ee4Smrg    as_ln_s='ln -s'
487f8a31ee4Smrg    # ... but there are two gotchas:
488f8a31ee4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489f8a31ee4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490f8a31ee4Smrg    # In both cases, we have to default to `cp -p'.
491f8a31ee4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492f8a31ee4Smrg      as_ln_s='cp -p'
493f8a31ee4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494f8a31ee4Smrg    as_ln_s=ln
495f8a31ee4Smrg  else
496f8a31ee4Smrg    as_ln_s='cp -p'
497f8a31ee4Smrg  fi
498a0d3b6eaSmrgelse
499f8a31ee4Smrg  as_ln_s='cp -p'
500a0d3b6eaSmrgfi
501f8a31ee4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502f8a31ee4Smrgrmdir conf$$.dir 2>/dev/null
503a0d3b6eaSmrg
504f8a31ee4Smrgif mkdir -p . 2>/dev/null; then
505f8a31ee4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506f8a31ee4Smrgelse
507f8a31ee4Smrg  test -d ./-p && rmdir ./-p
508f8a31ee4Smrg  as_mkdir_p=false
509a0d3b6eaSmrgfi
510a0d3b6eaSmrg
511f8a31ee4Smrgif test -x / >/dev/null 2>&1; then
512f8a31ee4Smrg  as_test_x='test -x'
513a0d3b6eaSmrgelse
514f8a31ee4Smrg  if ls -dL / >/dev/null 2>&1; then
515f8a31ee4Smrg    as_ls_L_option=L
516f8a31ee4Smrg  else
517f8a31ee4Smrg    as_ls_L_option=
518f8a31ee4Smrg  fi
519f8a31ee4Smrg  as_test_x='
520f8a31ee4Smrg    eval sh -c '\''
521f8a31ee4Smrg      if test -d "$1"; then
522f8a31ee4Smrg	test -d "$1/.";
523f8a31ee4Smrg      else
524f8a31ee4Smrg	case $1 in #(
525f8a31ee4Smrg	-*)set "./$1";;
526f8a31ee4Smrg	esac;
527f8a31ee4Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528f8a31ee4Smrg	???[sx]*):;;*)false;;esac;fi
529f8a31ee4Smrg    '\'' sh
530f8a31ee4Smrg  '
531a0d3b6eaSmrgfi
532f8a31ee4Smrgas_executable_p=$as_test_x
533a0d3b6eaSmrg
534f8a31ee4Smrg# Sed expression to map a string onto a valid CPP name.
535f8a31ee4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536a0d3b6eaSmrg
537f8a31ee4Smrg# Sed expression to map a string onto a valid variable name.
538f8a31ee4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539a0d3b6eaSmrg
540a0d3b6eaSmrg
541f8a31ee4Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542f8a31ee4Smrgexec 6>&1
543a0d3b6eaSmrg
544a0d3b6eaSmrg# Name of the host.
5454def10e6Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546a0d3b6eaSmrg# so uname gets run too.
547a0d3b6eaSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548a0d3b6eaSmrg
549a0d3b6eaSmrg#
550a0d3b6eaSmrg# Initializations.
551a0d3b6eaSmrg#
552a0d3b6eaSmrgac_default_prefix=/usr/local
553a0d3b6eaSmrgac_clean_files=
554a0d3b6eaSmrgac_config_libobj_dir=.
555a0d3b6eaSmrgLIBOBJS=
556a0d3b6eaSmrgcross_compiling=no
557a0d3b6eaSmrgsubdirs=
558a0d3b6eaSmrgMFLAGS=
559a0d3b6eaSmrgMAKEFLAGS=
560a0d3b6eaSmrg
561a0d3b6eaSmrg# Identity of this package.
562a0d3b6eaSmrgPACKAGE_NAME='xrandr'
563a0d3b6eaSmrgPACKAGE_TARNAME='xrandr'
564781f9a67SmrgPACKAGE_VERSION='1.3.5'
565781f9a67SmrgPACKAGE_STRING='xrandr 1.3.5'
566a0d3b6eaSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567f8a31ee4SmrgPACKAGE_URL=''
568a0d3b6eaSmrg
56962df5ad0Smrg# Factoring default headers for most tests.
57062df5ad0Smrgac_includes_default="\
57162df5ad0Smrg#include <stdio.h>
57262df5ad0Smrg#ifdef HAVE_SYS_TYPES_H
57362df5ad0Smrg# include <sys/types.h>
57462df5ad0Smrg#endif
57562df5ad0Smrg#ifdef HAVE_SYS_STAT_H
57662df5ad0Smrg# include <sys/stat.h>
57762df5ad0Smrg#endif
57862df5ad0Smrg#ifdef STDC_HEADERS
57962df5ad0Smrg# include <stdlib.h>
58062df5ad0Smrg# include <stddef.h>
58162df5ad0Smrg#else
58262df5ad0Smrg# ifdef HAVE_STDLIB_H
58362df5ad0Smrg#  include <stdlib.h>
58462df5ad0Smrg# endif
58562df5ad0Smrg#endif
58662df5ad0Smrg#ifdef HAVE_STRING_H
58762df5ad0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58862df5ad0Smrg#  include <memory.h>
58962df5ad0Smrg# endif
59062df5ad0Smrg# include <string.h>
59162df5ad0Smrg#endif
59262df5ad0Smrg#ifdef HAVE_STRINGS_H
59362df5ad0Smrg# include <strings.h>
59462df5ad0Smrg#endif
59562df5ad0Smrg#ifdef HAVE_INTTYPES_H
59662df5ad0Smrg# include <inttypes.h>
59762df5ad0Smrg#endif
59862df5ad0Smrg#ifdef HAVE_STDINT_H
59962df5ad0Smrg# include <stdint.h>
60062df5ad0Smrg#endif
60162df5ad0Smrg#ifdef HAVE_UNISTD_H
60262df5ad0Smrg# include <unistd.h>
60362df5ad0Smrg#endif"
60462df5ad0Smrg
605f8a31ee4Smrgac_subst_vars='am__EXEEXT_FALSE
606f8a31ee4Smrgam__EXEEXT_TRUE
607f8a31ee4SmrgLTLIBOBJS
608a0d3b6eaSmrgLIBOBJS
609f8a31ee4SmrgXRANDR_LIBS
610f8a31ee4SmrgXRANDR_CFLAGS
611f8a31ee4SmrgAM_BACKSLASH
612f8a31ee4SmrgAM_DEFAULT_VERBOSITY
613f8a31ee4SmrgMAN_SUBSTS
614f8a31ee4SmrgXORG_MAN_PAGE
61562df5ad0SmrgADMIN_MAN_DIR
61662df5ad0SmrgDRIVER_MAN_DIR
61762df5ad0SmrgMISC_MAN_DIR
61862df5ad0SmrgFILE_MAN_DIR
61962df5ad0SmrgLIB_MAN_DIR
62062df5ad0SmrgAPP_MAN_DIR
62162df5ad0SmrgADMIN_MAN_SUFFIX
62262df5ad0SmrgDRIVER_MAN_SUFFIX
62362df5ad0SmrgMISC_MAN_SUFFIX
62462df5ad0SmrgFILE_MAN_SUFFIX
62562df5ad0SmrgLIB_MAN_SUFFIX
62662df5ad0SmrgAPP_MAN_SUFFIX
627f8a31ee4SmrgSED
62862df5ad0Smrghost_os
62962df5ad0Smrghost_vendor
63062df5ad0Smrghost_cpu
63162df5ad0Smrghost
63262df5ad0Smrgbuild_os
63362df5ad0Smrgbuild_vendor
63462df5ad0Smrgbuild_cpu
63562df5ad0Smrgbuild
636f8a31ee4SmrgINSTALL_CMD
63762df5ad0SmrgPKG_CONFIG
638f8a31ee4SmrgCHANGELOG_CMD
639781f9a67SmrgSTRICT_CFLAGS
64062df5ad0SmrgCWARNFLAGS
64162df5ad0SmrgEGREP
64262df5ad0SmrgGREP
64362df5ad0SmrgCPP
64462df5ad0Smrgam__fastdepCC_FALSE
64562df5ad0Smrgam__fastdepCC_TRUE
64662df5ad0SmrgCCDEPMODE
64762df5ad0SmrgAMDEPBACKSLASH
64862df5ad0SmrgAMDEP_FALSE
64962df5ad0SmrgAMDEP_TRUE
65062df5ad0Smrgam__quote
65162df5ad0Smrgam__include
65262df5ad0SmrgDEPDIR
65362df5ad0SmrgOBJEXT
65462df5ad0SmrgEXEEXT
65562df5ad0Smrgac_ct_CC
65662df5ad0SmrgCPPFLAGS
65762df5ad0SmrgLDFLAGS
65862df5ad0SmrgCFLAGS
65962df5ad0SmrgCC
66062df5ad0SmrgMAINT
66162df5ad0SmrgMAINTAINER_MODE_FALSE
66262df5ad0SmrgMAINTAINER_MODE_TRUE
66362df5ad0Smrgam__untar
66462df5ad0Smrgam__tar
66562df5ad0SmrgAMTAR
66662df5ad0Smrgam__leading_dot
66762df5ad0SmrgSET_MAKE
66862df5ad0SmrgAWK
66962df5ad0Smrgmkdir_p
67062df5ad0SmrgMKDIR_P
67162df5ad0SmrgINSTALL_STRIP_PROGRAM
67262df5ad0SmrgSTRIP
67362df5ad0Smrginstall_sh
67462df5ad0SmrgMAKEINFO
67562df5ad0SmrgAUTOHEADER
67662df5ad0SmrgAUTOMAKE
67762df5ad0SmrgAUTOCONF
67862df5ad0SmrgACLOCAL
67962df5ad0SmrgVERSION
68062df5ad0SmrgPACKAGE
68162df5ad0SmrgCYGPATH_W
68262df5ad0Smrgam__isrc
68362df5ad0SmrgINSTALL_DATA
68462df5ad0SmrgINSTALL_SCRIPT
68562df5ad0SmrgINSTALL_PROGRAM
68662df5ad0Smrgtarget_alias
68762df5ad0Smrghost_alias
68862df5ad0Smrgbuild_alias
68962df5ad0SmrgLIBS
69062df5ad0SmrgECHO_T
69162df5ad0SmrgECHO_N
69262df5ad0SmrgECHO_C
69362df5ad0SmrgDEFS
69462df5ad0Smrgmandir
69562df5ad0Smrglocaledir
69662df5ad0Smrglibdir
69762df5ad0Smrgpsdir
69862df5ad0Smrgpdfdir
69962df5ad0Smrgdvidir
70062df5ad0Smrghtmldir
70162df5ad0Smrginfodir
70262df5ad0Smrgdocdir
70362df5ad0Smrgoldincludedir
70462df5ad0Smrgincludedir
70562df5ad0Smrglocalstatedir
70662df5ad0Smrgsharedstatedir
70762df5ad0Smrgsysconfdir
70862df5ad0Smrgdatadir
70962df5ad0Smrgdatarootdir
71062df5ad0Smrglibexecdir
71162df5ad0Smrgsbindir
71262df5ad0Smrgbindir
71362df5ad0Smrgprogram_transform_name
71462df5ad0Smrgprefix
71562df5ad0Smrgexec_prefix
716f8a31ee4SmrgPACKAGE_URL
71762df5ad0SmrgPACKAGE_BUGREPORT
71862df5ad0SmrgPACKAGE_STRING
71962df5ad0SmrgPACKAGE_VERSION
72062df5ad0SmrgPACKAGE_TARNAME
72162df5ad0SmrgPACKAGE_NAME
72262df5ad0SmrgPATH_SEPARATOR
72362df5ad0SmrgSHELL'
724a0d3b6eaSmrgac_subst_files=''
72562df5ad0Smrgac_user_opts='
72662df5ad0Smrgenable_option_checking
72762df5ad0Smrgenable_maintainer_mode
72862df5ad0Smrgenable_dependency_tracking
729f8a31ee4Smrgenable_strict_compilation
730f8a31ee4Smrgenable_silent_rules
73162df5ad0Smrg'
732a0d3b6eaSmrg      ac_precious_vars='build_alias
733a0d3b6eaSmrghost_alias
734a0d3b6eaSmrgtarget_alias
735a0d3b6eaSmrgCC
736a0d3b6eaSmrgCFLAGS
737a0d3b6eaSmrgLDFLAGS
738a0d3b6eaSmrgLIBS
739a0d3b6eaSmrgCPPFLAGS
74062df5ad0SmrgCPP
741a0d3b6eaSmrgPKG_CONFIG
742a0d3b6eaSmrgXRANDR_CFLAGS
743a0d3b6eaSmrgXRANDR_LIBS'
744a0d3b6eaSmrg
745a0d3b6eaSmrg
746a0d3b6eaSmrg# Initialize some variables set by options.
747a0d3b6eaSmrgac_init_help=
748a0d3b6eaSmrgac_init_version=false
74962df5ad0Smrgac_unrecognized_opts=
75062df5ad0Smrgac_unrecognized_sep=
751a0d3b6eaSmrg# The variables have the same names as the options, with
752a0d3b6eaSmrg# dashes changed to underlines.
753a0d3b6eaSmrgcache_file=/dev/null
754a0d3b6eaSmrgexec_prefix=NONE
755a0d3b6eaSmrgno_create=
756a0d3b6eaSmrgno_recursion=
757a0d3b6eaSmrgprefix=NONE
758a0d3b6eaSmrgprogram_prefix=NONE
759a0d3b6eaSmrgprogram_suffix=NONE
760a0d3b6eaSmrgprogram_transform_name=s,x,x,
761a0d3b6eaSmrgsilent=
762a0d3b6eaSmrgsite=
763a0d3b6eaSmrgsrcdir=
764a0d3b6eaSmrgverbose=
765a0d3b6eaSmrgx_includes=NONE
766a0d3b6eaSmrgx_libraries=NONE
767a0d3b6eaSmrg
768a0d3b6eaSmrg# Installation directory options.
769a0d3b6eaSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
770a0d3b6eaSmrg# and all the variables that are supposed to be based on exec_prefix
771a0d3b6eaSmrg# by default will actually change.
772a0d3b6eaSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
773a0d3b6eaSmrg# (The list follows the same order as the GNU Coding Standards.)
774a0d3b6eaSmrgbindir='${exec_prefix}/bin'
775a0d3b6eaSmrgsbindir='${exec_prefix}/sbin'
776a0d3b6eaSmrglibexecdir='${exec_prefix}/libexec'
777a0d3b6eaSmrgdatarootdir='${prefix}/share'
778a0d3b6eaSmrgdatadir='${datarootdir}'
779a0d3b6eaSmrgsysconfdir='${prefix}/etc'
780a0d3b6eaSmrgsharedstatedir='${prefix}/com'
781a0d3b6eaSmrglocalstatedir='${prefix}/var'
782a0d3b6eaSmrgincludedir='${prefix}/include'
783a0d3b6eaSmrgoldincludedir='/usr/include'
784a0d3b6eaSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785a0d3b6eaSmrginfodir='${datarootdir}/info'
786a0d3b6eaSmrghtmldir='${docdir}'
787a0d3b6eaSmrgdvidir='${docdir}'
788a0d3b6eaSmrgpdfdir='${docdir}'
789a0d3b6eaSmrgpsdir='${docdir}'
790a0d3b6eaSmrglibdir='${exec_prefix}/lib'
791a0d3b6eaSmrglocaledir='${datarootdir}/locale'
792a0d3b6eaSmrgmandir='${datarootdir}/man'
793a0d3b6eaSmrg
794a0d3b6eaSmrgac_prev=
795a0d3b6eaSmrgac_dashdash=
796a0d3b6eaSmrgfor ac_option
797a0d3b6eaSmrgdo
798a0d3b6eaSmrg  # If the previous option needs an argument, assign it.
799a0d3b6eaSmrg  if test -n "$ac_prev"; then
800a0d3b6eaSmrg    eval $ac_prev=\$ac_option
801a0d3b6eaSmrg    ac_prev=
802a0d3b6eaSmrg    continue
803a0d3b6eaSmrg  fi
804a0d3b6eaSmrg
805a0d3b6eaSmrg  case $ac_option in
8064def10e6Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8074def10e6Smrg  *=)   ac_optarg= ;;
8084def10e6Smrg  *)    ac_optarg=yes ;;
809a0d3b6eaSmrg  esac
810a0d3b6eaSmrg
811a0d3b6eaSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
812a0d3b6eaSmrg
813a0d3b6eaSmrg  case $ac_dashdash$ac_option in
814a0d3b6eaSmrg  --)
815a0d3b6eaSmrg    ac_dashdash=yes ;;
816a0d3b6eaSmrg
817a0d3b6eaSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
818a0d3b6eaSmrg    ac_prev=bindir ;;
819a0d3b6eaSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820a0d3b6eaSmrg    bindir=$ac_optarg ;;
821a0d3b6eaSmrg
822a0d3b6eaSmrg  -build | --build | --buil | --bui | --bu)
823a0d3b6eaSmrg    ac_prev=build_alias ;;
824a0d3b6eaSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825a0d3b6eaSmrg    build_alias=$ac_optarg ;;
826a0d3b6eaSmrg
827a0d3b6eaSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
828a0d3b6eaSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829a0d3b6eaSmrg    ac_prev=cache_file ;;
830a0d3b6eaSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831a0d3b6eaSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832a0d3b6eaSmrg    cache_file=$ac_optarg ;;
833a0d3b6eaSmrg
834a0d3b6eaSmrg  --config-cache | -C)
835a0d3b6eaSmrg    cache_file=config.cache ;;
836a0d3b6eaSmrg
837a0d3b6eaSmrg  -datadir | --datadir | --datadi | --datad)
838a0d3b6eaSmrg    ac_prev=datadir ;;
839a0d3b6eaSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
840a0d3b6eaSmrg    datadir=$ac_optarg ;;
841a0d3b6eaSmrg
842a0d3b6eaSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843a0d3b6eaSmrg  | --dataroo | --dataro | --datar)
844a0d3b6eaSmrg    ac_prev=datarootdir ;;
845a0d3b6eaSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846a0d3b6eaSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847a0d3b6eaSmrg    datarootdir=$ac_optarg ;;
848a0d3b6eaSmrg
849a0d3b6eaSmrg  -disable-* | --disable-*)
85062df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
85262df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8534def10e6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
85462df5ad0Smrg    ac_useropt_orig=$ac_useropt
85562df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
85662df5ad0Smrg    case $ac_user_opts in
85762df5ad0Smrg      *"
85862df5ad0Smrg"enable_$ac_useropt"
85962df5ad0Smrg"*) ;;
86062df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
86162df5ad0Smrg	 ac_unrecognized_sep=', ';;
86262df5ad0Smrg    esac
86362df5ad0Smrg    eval enable_$ac_useropt=no ;;
864a0d3b6eaSmrg
865a0d3b6eaSmrg  -docdir | --docdir | --docdi | --doc | --do)
866a0d3b6eaSmrg    ac_prev=docdir ;;
867a0d3b6eaSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868a0d3b6eaSmrg    docdir=$ac_optarg ;;
869a0d3b6eaSmrg
870a0d3b6eaSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871a0d3b6eaSmrg    ac_prev=dvidir ;;
872a0d3b6eaSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873a0d3b6eaSmrg    dvidir=$ac_optarg ;;
874a0d3b6eaSmrg
875a0d3b6eaSmrg  -enable-* | --enable-*)
87662df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
87862df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8794def10e6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88062df5ad0Smrg    ac_useropt_orig=$ac_useropt
88162df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88262df5ad0Smrg    case $ac_user_opts in
88362df5ad0Smrg      *"
88462df5ad0Smrg"enable_$ac_useropt"
88562df5ad0Smrg"*) ;;
88662df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
88762df5ad0Smrg	 ac_unrecognized_sep=', ';;
88862df5ad0Smrg    esac
88962df5ad0Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
890a0d3b6eaSmrg
891a0d3b6eaSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892a0d3b6eaSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893a0d3b6eaSmrg  | --exec | --exe | --ex)
894a0d3b6eaSmrg    ac_prev=exec_prefix ;;
895a0d3b6eaSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896a0d3b6eaSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897a0d3b6eaSmrg  | --exec=* | --exe=* | --ex=*)
898a0d3b6eaSmrg    exec_prefix=$ac_optarg ;;
899a0d3b6eaSmrg
900a0d3b6eaSmrg  -gas | --gas | --ga | --g)
901a0d3b6eaSmrg    # Obsolete; use --with-gas.
902a0d3b6eaSmrg    with_gas=yes ;;
903a0d3b6eaSmrg
904a0d3b6eaSmrg  -help | --help | --hel | --he | -h)
905a0d3b6eaSmrg    ac_init_help=long ;;
906a0d3b6eaSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907a0d3b6eaSmrg    ac_init_help=recursive ;;
908a0d3b6eaSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909a0d3b6eaSmrg    ac_init_help=short ;;
910a0d3b6eaSmrg
911a0d3b6eaSmrg  -host | --host | --hos | --ho)
912a0d3b6eaSmrg    ac_prev=host_alias ;;
913a0d3b6eaSmrg  -host=* | --host=* | --hos=* | --ho=*)
914a0d3b6eaSmrg    host_alias=$ac_optarg ;;
915a0d3b6eaSmrg
916a0d3b6eaSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917a0d3b6eaSmrg    ac_prev=htmldir ;;
918a0d3b6eaSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919a0d3b6eaSmrg  | --ht=*)
920a0d3b6eaSmrg    htmldir=$ac_optarg ;;
921a0d3b6eaSmrg
922a0d3b6eaSmrg  -includedir | --includedir | --includedi | --included | --include \
923a0d3b6eaSmrg  | --includ | --inclu | --incl | --inc)
924a0d3b6eaSmrg    ac_prev=includedir ;;
925a0d3b6eaSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926a0d3b6eaSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
927a0d3b6eaSmrg    includedir=$ac_optarg ;;
928a0d3b6eaSmrg
929a0d3b6eaSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
930a0d3b6eaSmrg    ac_prev=infodir ;;
931a0d3b6eaSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932a0d3b6eaSmrg    infodir=$ac_optarg ;;
933a0d3b6eaSmrg
934a0d3b6eaSmrg  -libdir | --libdir | --libdi | --libd)
935a0d3b6eaSmrg    ac_prev=libdir ;;
936a0d3b6eaSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
937a0d3b6eaSmrg    libdir=$ac_optarg ;;
938a0d3b6eaSmrg
939a0d3b6eaSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940a0d3b6eaSmrg  | --libexe | --libex | --libe)
941a0d3b6eaSmrg    ac_prev=libexecdir ;;
942a0d3b6eaSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943a0d3b6eaSmrg  | --libexe=* | --libex=* | --libe=*)
944a0d3b6eaSmrg    libexecdir=$ac_optarg ;;
945a0d3b6eaSmrg
946a0d3b6eaSmrg  -localedir | --localedir | --localedi | --localed | --locale)
947a0d3b6eaSmrg    ac_prev=localedir ;;
948a0d3b6eaSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949a0d3b6eaSmrg    localedir=$ac_optarg ;;
950a0d3b6eaSmrg
951a0d3b6eaSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
952a0d3b6eaSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
953a0d3b6eaSmrg    ac_prev=localstatedir ;;
954a0d3b6eaSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955a0d3b6eaSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956a0d3b6eaSmrg    localstatedir=$ac_optarg ;;
957a0d3b6eaSmrg
958a0d3b6eaSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959a0d3b6eaSmrg    ac_prev=mandir ;;
960a0d3b6eaSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961a0d3b6eaSmrg    mandir=$ac_optarg ;;
962a0d3b6eaSmrg
963a0d3b6eaSmrg  -nfp | --nfp | --nf)
964a0d3b6eaSmrg    # Obsolete; use --without-fp.
965a0d3b6eaSmrg    with_fp=no ;;
966a0d3b6eaSmrg
967a0d3b6eaSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968a0d3b6eaSmrg  | --no-cr | --no-c | -n)
969a0d3b6eaSmrg    no_create=yes ;;
970a0d3b6eaSmrg
971a0d3b6eaSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972a0d3b6eaSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973a0d3b6eaSmrg    no_recursion=yes ;;
974a0d3b6eaSmrg
975a0d3b6eaSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976a0d3b6eaSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977a0d3b6eaSmrg  | --oldin | --oldi | --old | --ol | --o)
978a0d3b6eaSmrg    ac_prev=oldincludedir ;;
979a0d3b6eaSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980a0d3b6eaSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981a0d3b6eaSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982a0d3b6eaSmrg    oldincludedir=$ac_optarg ;;
983a0d3b6eaSmrg
984a0d3b6eaSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985a0d3b6eaSmrg    ac_prev=prefix ;;
986a0d3b6eaSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987a0d3b6eaSmrg    prefix=$ac_optarg ;;
988a0d3b6eaSmrg
989a0d3b6eaSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
990a0d3b6eaSmrg  | --program-pre | --program-pr | --program-p)
991a0d3b6eaSmrg    ac_prev=program_prefix ;;
992a0d3b6eaSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
993a0d3b6eaSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994a0d3b6eaSmrg    program_prefix=$ac_optarg ;;
995a0d3b6eaSmrg
996a0d3b6eaSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
997a0d3b6eaSmrg  | --program-suf | --program-su | --program-s)
998a0d3b6eaSmrg    ac_prev=program_suffix ;;
999a0d3b6eaSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000a0d3b6eaSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001a0d3b6eaSmrg    program_suffix=$ac_optarg ;;
1002a0d3b6eaSmrg
1003a0d3b6eaSmrg  -program-transform-name | --program-transform-name \
1004a0d3b6eaSmrg  | --program-transform-nam | --program-transform-na \
1005a0d3b6eaSmrg  | --program-transform-n | --program-transform- \
1006a0d3b6eaSmrg  | --program-transform | --program-transfor \
1007a0d3b6eaSmrg  | --program-transfo | --program-transf \
1008a0d3b6eaSmrg  | --program-trans | --program-tran \
1009a0d3b6eaSmrg  | --progr-tra | --program-tr | --program-t)
1010a0d3b6eaSmrg    ac_prev=program_transform_name ;;
1011a0d3b6eaSmrg  -program-transform-name=* | --program-transform-name=* \
1012a0d3b6eaSmrg  | --program-transform-nam=* | --program-transform-na=* \
1013a0d3b6eaSmrg  | --program-transform-n=* | --program-transform-=* \
1014a0d3b6eaSmrg  | --program-transform=* | --program-transfor=* \
1015a0d3b6eaSmrg  | --program-transfo=* | --program-transf=* \
1016a0d3b6eaSmrg  | --program-trans=* | --program-tran=* \
1017a0d3b6eaSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1018a0d3b6eaSmrg    program_transform_name=$ac_optarg ;;
1019a0d3b6eaSmrg
1020a0d3b6eaSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021a0d3b6eaSmrg    ac_prev=pdfdir ;;
1022a0d3b6eaSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023a0d3b6eaSmrg    pdfdir=$ac_optarg ;;
1024a0d3b6eaSmrg
1025a0d3b6eaSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1026a0d3b6eaSmrg    ac_prev=psdir ;;
1027a0d3b6eaSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028a0d3b6eaSmrg    psdir=$ac_optarg ;;
1029a0d3b6eaSmrg
1030a0d3b6eaSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031a0d3b6eaSmrg  | -silent | --silent | --silen | --sile | --sil)
1032a0d3b6eaSmrg    silent=yes ;;
1033a0d3b6eaSmrg
1034a0d3b6eaSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035a0d3b6eaSmrg    ac_prev=sbindir ;;
1036a0d3b6eaSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037a0d3b6eaSmrg  | --sbi=* | --sb=*)
1038a0d3b6eaSmrg    sbindir=$ac_optarg ;;
1039a0d3b6eaSmrg
1040a0d3b6eaSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041a0d3b6eaSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042a0d3b6eaSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1043a0d3b6eaSmrg  | --sha | --sh)
1044a0d3b6eaSmrg    ac_prev=sharedstatedir ;;
1045a0d3b6eaSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046a0d3b6eaSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047a0d3b6eaSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048a0d3b6eaSmrg  | --sha=* | --sh=*)
1049a0d3b6eaSmrg    sharedstatedir=$ac_optarg ;;
1050a0d3b6eaSmrg
1051a0d3b6eaSmrg  -site | --site | --sit)
1052a0d3b6eaSmrg    ac_prev=site ;;
1053a0d3b6eaSmrg  -site=* | --site=* | --sit=*)
1054a0d3b6eaSmrg    site=$ac_optarg ;;
1055a0d3b6eaSmrg
1056a0d3b6eaSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057a0d3b6eaSmrg    ac_prev=srcdir ;;
1058a0d3b6eaSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059a0d3b6eaSmrg    srcdir=$ac_optarg ;;
1060a0d3b6eaSmrg
1061a0d3b6eaSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062a0d3b6eaSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1063a0d3b6eaSmrg    ac_prev=sysconfdir ;;
1064a0d3b6eaSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065a0d3b6eaSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066a0d3b6eaSmrg    sysconfdir=$ac_optarg ;;
1067a0d3b6eaSmrg
1068a0d3b6eaSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1069a0d3b6eaSmrg    ac_prev=target_alias ;;
1070a0d3b6eaSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071a0d3b6eaSmrg    target_alias=$ac_optarg ;;
1072a0d3b6eaSmrg
1073a0d3b6eaSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074a0d3b6eaSmrg    verbose=yes ;;
1075a0d3b6eaSmrg
1076a0d3b6eaSmrg  -version | --version | --versio | --versi | --vers | -V)
1077a0d3b6eaSmrg    ac_init_version=: ;;
1078a0d3b6eaSmrg
1079a0d3b6eaSmrg  -with-* | --with-*)
108062df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
108262df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10834def10e6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
108462df5ad0Smrg    ac_useropt_orig=$ac_useropt
108562df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
108662df5ad0Smrg    case $ac_user_opts in
108762df5ad0Smrg      *"
108862df5ad0Smrg"with_$ac_useropt"
108962df5ad0Smrg"*) ;;
109062df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
109162df5ad0Smrg	 ac_unrecognized_sep=', ';;
109262df5ad0Smrg    esac
109362df5ad0Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1094a0d3b6eaSmrg
1095a0d3b6eaSmrg  -without-* | --without-*)
109662df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
109862df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10994def10e6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
110062df5ad0Smrg    ac_useropt_orig=$ac_useropt
110162df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
110262df5ad0Smrg    case $ac_user_opts in
110362df5ad0Smrg      *"
110462df5ad0Smrg"with_$ac_useropt"
110562df5ad0Smrg"*) ;;
110662df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
110762df5ad0Smrg	 ac_unrecognized_sep=', ';;
110862df5ad0Smrg    esac
110962df5ad0Smrg    eval with_$ac_useropt=no ;;
1110a0d3b6eaSmrg
1111a0d3b6eaSmrg  --x)
1112a0d3b6eaSmrg    # Obsolete; use --with-x.
1113a0d3b6eaSmrg    with_x=yes ;;
1114a0d3b6eaSmrg
1115a0d3b6eaSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116a0d3b6eaSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1117a0d3b6eaSmrg    ac_prev=x_includes ;;
1118a0d3b6eaSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119a0d3b6eaSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120a0d3b6eaSmrg    x_includes=$ac_optarg ;;
1121a0d3b6eaSmrg
1122a0d3b6eaSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123a0d3b6eaSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124a0d3b6eaSmrg    ac_prev=x_libraries ;;
1125a0d3b6eaSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126a0d3b6eaSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127a0d3b6eaSmrg    x_libraries=$ac_optarg ;;
1128a0d3b6eaSmrg
11294def10e6Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11304def10e6SmrgTry \`$0 --help' for more information"
1131a0d3b6eaSmrg    ;;
1132a0d3b6eaSmrg
1133a0d3b6eaSmrg  *=*)
1134a0d3b6eaSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
1136f8a31ee4Smrg    case $ac_envvar in #(
1137f8a31ee4Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11384def10e6Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139f8a31ee4Smrg    esac
1140a0d3b6eaSmrg    eval $ac_envvar=\$ac_optarg
1141a0d3b6eaSmrg    export $ac_envvar ;;
1142a0d3b6eaSmrg
1143a0d3b6eaSmrg  *)
1144a0d3b6eaSmrg    # FIXME: should be removed in autoconf 3.0.
114562df5ad0Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146a0d3b6eaSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
114762df5ad0Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11484def10e6Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149a0d3b6eaSmrg    ;;
1150a0d3b6eaSmrg
1151a0d3b6eaSmrg  esac
1152a0d3b6eaSmrgdone
1153a0d3b6eaSmrg
1154a0d3b6eaSmrgif test -n "$ac_prev"; then
1155a0d3b6eaSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11564def10e6Smrg  as_fn_error $? "missing argument to $ac_option"
1157a0d3b6eaSmrgfi
1158a0d3b6eaSmrg
115962df5ad0Smrgif test -n "$ac_unrecognized_opts"; then
116062df5ad0Smrg  case $enable_option_checking in
116162df5ad0Smrg    no) ;;
11624def10e6Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
116362df5ad0Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116462df5ad0Smrg  esac
116562df5ad0Smrgfi
116662df5ad0Smrg
116762df5ad0Smrg# Check all directory arguments for consistency.
1168a0d3b6eaSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169a0d3b6eaSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1170a0d3b6eaSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171a0d3b6eaSmrg		libdir localedir mandir
1172a0d3b6eaSmrgdo
1173a0d3b6eaSmrg  eval ac_val=\$$ac_var
117462df5ad0Smrg  # Remove trailing slashes.
117562df5ad0Smrg  case $ac_val in
117662df5ad0Smrg    */ )
117762df5ad0Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
117862df5ad0Smrg      eval $ac_var=\$ac_val;;
117962df5ad0Smrg  esac
118062df5ad0Smrg  # Be sure to have absolute directory names.
1181a0d3b6eaSmrg  case $ac_val in
1182a0d3b6eaSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1183a0d3b6eaSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184a0d3b6eaSmrg  esac
11854def10e6Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186a0d3b6eaSmrgdone
1187a0d3b6eaSmrg
1188a0d3b6eaSmrg# There might be people who depend on the old broken behavior: `$host'
1189a0d3b6eaSmrg# used to hold the argument of --host etc.
1190a0d3b6eaSmrg# FIXME: To remove some day.
1191a0d3b6eaSmrgbuild=$build_alias
1192a0d3b6eaSmrghost=$host_alias
1193a0d3b6eaSmrgtarget=$target_alias
1194a0d3b6eaSmrg
1195a0d3b6eaSmrg# FIXME: To remove some day.
1196a0d3b6eaSmrgif test "x$host_alias" != x; then
1197a0d3b6eaSmrg  if test "x$build_alias" = x; then
1198a0d3b6eaSmrg    cross_compiling=maybe
11994def10e6Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12004def10e6Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1201a0d3b6eaSmrg  elif test "x$build_alias" != "x$host_alias"; then
1202a0d3b6eaSmrg    cross_compiling=yes
1203a0d3b6eaSmrg  fi
1204a0d3b6eaSmrgfi
1205a0d3b6eaSmrg
1206a0d3b6eaSmrgac_tool_prefix=
1207a0d3b6eaSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1208a0d3b6eaSmrg
1209a0d3b6eaSmrgtest "$silent" = yes && exec 6>/dev/null
1210a0d3b6eaSmrg
1211a0d3b6eaSmrg
1212a0d3b6eaSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1213a0d3b6eaSmrgac_ls_di=`ls -di .` &&
1214a0d3b6eaSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12154def10e6Smrg  as_fn_error $? "working directory cannot be determined"
1216a0d3b6eaSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12174def10e6Smrg  as_fn_error $? "pwd does not report name of working directory"
1218a0d3b6eaSmrg
1219a0d3b6eaSmrg
1220a0d3b6eaSmrg# Find the source files, if location was not specified.
1221a0d3b6eaSmrgif test -z "$srcdir"; then
1222a0d3b6eaSmrg  ac_srcdir_defaulted=yes
1223a0d3b6eaSmrg  # Try the directory containing this script, then the parent directory.
122462df5ad0Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
122562df5ad0Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122662df5ad0Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
122762df5ad0Smrg	 X"$as_myself" : 'X\(//\)$' \| \
122862df5ad0Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
122962df5ad0Smrg$as_echo X"$as_myself" |
1230a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231a0d3b6eaSmrg	    s//\1/
1232a0d3b6eaSmrg	    q
1233a0d3b6eaSmrg	  }
1234a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
1235a0d3b6eaSmrg	    s//\1/
1236a0d3b6eaSmrg	    q
1237a0d3b6eaSmrg	  }
1238a0d3b6eaSmrg	  /^X\(\/\/\)$/{
1239a0d3b6eaSmrg	    s//\1/
1240a0d3b6eaSmrg	    q
1241a0d3b6eaSmrg	  }
1242a0d3b6eaSmrg	  /^X\(\/\).*/{
1243a0d3b6eaSmrg	    s//\1/
1244a0d3b6eaSmrg	    q
1245a0d3b6eaSmrg	  }
1246a0d3b6eaSmrg	  s/.*/./; q'`
1247a0d3b6eaSmrg  srcdir=$ac_confdir
1248a0d3b6eaSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1249a0d3b6eaSmrg    srcdir=..
1250a0d3b6eaSmrg  fi
1251a0d3b6eaSmrgelse
1252a0d3b6eaSmrg  ac_srcdir_defaulted=no
1253a0d3b6eaSmrgfi
1254a0d3b6eaSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1255a0d3b6eaSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12564def10e6Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257a0d3b6eaSmrgfi
1258a0d3b6eaSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259a0d3b6eaSmrgac_abs_confdir=`(
12604def10e6Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261a0d3b6eaSmrg	pwd)`
1262a0d3b6eaSmrg# When building in place, set srcdir=.
1263a0d3b6eaSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1264a0d3b6eaSmrg  srcdir=.
1265a0d3b6eaSmrgfi
1266a0d3b6eaSmrg# Remove unnecessary trailing slashes from srcdir.
1267a0d3b6eaSmrg# Double slashes in file names in object file debugging info
1268a0d3b6eaSmrg# mess up M-x gdb in Emacs.
1269a0d3b6eaSmrgcase $srcdir in
1270a0d3b6eaSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271a0d3b6eaSmrgesac
1272a0d3b6eaSmrgfor ac_var in $ac_precious_vars; do
1273a0d3b6eaSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274a0d3b6eaSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1275a0d3b6eaSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276a0d3b6eaSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277a0d3b6eaSmrgdone
1278a0d3b6eaSmrg
1279a0d3b6eaSmrg#
1280a0d3b6eaSmrg# Report the --help message.
1281a0d3b6eaSmrg#
1282a0d3b6eaSmrgif test "$ac_init_help" = "long"; then
1283a0d3b6eaSmrg  # Omit some internal or obsolete options to make the list less imposing.
1284a0d3b6eaSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1285a0d3b6eaSmrg  cat <<_ACEOF
1286781f9a67Smrg\`configure' configures xrandr 1.3.5 to adapt to many kinds of systems.
1287a0d3b6eaSmrg
1288a0d3b6eaSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1289a0d3b6eaSmrg
1290a0d3b6eaSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1291a0d3b6eaSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1292a0d3b6eaSmrg
1293a0d3b6eaSmrgDefaults for the options are specified in brackets.
1294a0d3b6eaSmrg
1295a0d3b6eaSmrgConfiguration:
1296a0d3b6eaSmrg  -h, --help              display this help and exit
1297a0d3b6eaSmrg      --help=short        display options specific to this package
1298a0d3b6eaSmrg      --help=recursive    display the short help of all the included packages
1299a0d3b6eaSmrg  -V, --version           display version information and exit
13004def10e6Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1301a0d3b6eaSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1302a0d3b6eaSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1303a0d3b6eaSmrg  -n, --no-create         do not create output files
1304a0d3b6eaSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1305a0d3b6eaSmrg
1306a0d3b6eaSmrgInstallation directories:
1307a0d3b6eaSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
130862df5ad0Smrg                          [$ac_default_prefix]
1309a0d3b6eaSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
131062df5ad0Smrg                          [PREFIX]
1311a0d3b6eaSmrg
1312a0d3b6eaSmrgBy default, \`make install' will install all the files in
1313a0d3b6eaSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1314a0d3b6eaSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315a0d3b6eaSmrgfor instance \`--prefix=\$HOME'.
1316a0d3b6eaSmrg
1317a0d3b6eaSmrgFor better control, use the options below.
1318a0d3b6eaSmrg
1319a0d3b6eaSmrgFine tuning of the installation directories:
132062df5ad0Smrg  --bindir=DIR            user executables [EPREFIX/bin]
132162df5ad0Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
132262df5ad0Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
132362df5ad0Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
132462df5ad0Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
132562df5ad0Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
132662df5ad0Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
132762df5ad0Smrg  --includedir=DIR        C header files [PREFIX/include]
132862df5ad0Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
132962df5ad0Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
133062df5ad0Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
133162df5ad0Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
133262df5ad0Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
133362df5ad0Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
133462df5ad0Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrandr]
133562df5ad0Smrg  --htmldir=DIR           html documentation [DOCDIR]
133662df5ad0Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
133762df5ad0Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
133862df5ad0Smrg  --psdir=DIR             ps documentation [DOCDIR]
1339a0d3b6eaSmrg_ACEOF
1340a0d3b6eaSmrg
1341a0d3b6eaSmrg  cat <<\_ACEOF
1342a0d3b6eaSmrg
1343a0d3b6eaSmrgProgram names:
1344a0d3b6eaSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1345a0d3b6eaSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1346a0d3b6eaSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1347a0d3b6eaSmrg
1348a0d3b6eaSmrgSystem types:
1349a0d3b6eaSmrg  --build=BUILD     configure for building on BUILD [guessed]
1350a0d3b6eaSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351a0d3b6eaSmrg_ACEOF
1352a0d3b6eaSmrgfi
1353a0d3b6eaSmrg
1354a0d3b6eaSmrgif test -n "$ac_init_help"; then
1355a0d3b6eaSmrg  case $ac_init_help in
1356781f9a67Smrg     short | recursive ) echo "Configuration of xrandr 1.3.5:";;
1357a0d3b6eaSmrg   esac
1358a0d3b6eaSmrg  cat <<\_ACEOF
1359a0d3b6eaSmrg
1360a0d3b6eaSmrgOptional Features:
136162df5ad0Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1362a0d3b6eaSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363a0d3b6eaSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364a0d3b6eaSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1365a0d3b6eaSmrg			  (and sometimes confusing) to the casual installer
1366a0d3b6eaSmrg  --disable-dependency-tracking  speeds up one-time build
1367a0d3b6eaSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1368f8a31ee4Smrg  --enable-strict-compilation
1369f8a31ee4Smrg                          Enable all warnings from compiler and make them
1370f8a31ee4Smrg                          errors (default: disabled)
1371f8a31ee4Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1372f8a31ee4Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1373a0d3b6eaSmrg
1374a0d3b6eaSmrgSome influential environment variables:
1375a0d3b6eaSmrg  CC          C compiler command
1376a0d3b6eaSmrg  CFLAGS      C compiler flags
1377a0d3b6eaSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1378a0d3b6eaSmrg              nonstandard directory <lib dir>
1379a0d3b6eaSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1380f8a31ee4Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1381a0d3b6eaSmrg              you have headers in a nonstandard directory <include dir>
138262df5ad0Smrg  CPP         C preprocessor
1383a0d3b6eaSmrg  PKG_CONFIG  path to pkg-config utility
1384a0d3b6eaSmrg  XRANDR_CFLAGS
1385a0d3b6eaSmrg              C compiler flags for XRANDR, overriding pkg-config
1386a0d3b6eaSmrg  XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1387a0d3b6eaSmrg
1388a0d3b6eaSmrgUse these variables to override the choices made by `configure' or to help
1389a0d3b6eaSmrgit to find libraries and programs with nonstandard names/locations.
1390a0d3b6eaSmrg
1391a0d3b6eaSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1392a0d3b6eaSmrg_ACEOF
1393a0d3b6eaSmrgac_status=$?
1394a0d3b6eaSmrgfi
1395a0d3b6eaSmrg
1396a0d3b6eaSmrgif test "$ac_init_help" = "recursive"; then
1397a0d3b6eaSmrg  # If there are subdirs, report their specific --help.
1398a0d3b6eaSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
139962df5ad0Smrg    test -d "$ac_dir" ||
140062df5ad0Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
140162df5ad0Smrg      continue
1402a0d3b6eaSmrg    ac_builddir=.
1403a0d3b6eaSmrg
1404a0d3b6eaSmrgcase "$ac_dir" in
1405a0d3b6eaSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406a0d3b6eaSmrg*)
140762df5ad0Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408a0d3b6eaSmrg  # A ".." for each directory in $ac_dir_suffix.
140962df5ad0Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410a0d3b6eaSmrg  case $ac_top_builddir_sub in
1411a0d3b6eaSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412a0d3b6eaSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413a0d3b6eaSmrg  esac ;;
1414a0d3b6eaSmrgesac
1415a0d3b6eaSmrgac_abs_top_builddir=$ac_pwd
1416a0d3b6eaSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1417a0d3b6eaSmrg# for backward compatibility:
1418a0d3b6eaSmrgac_top_builddir=$ac_top_build_prefix
1419a0d3b6eaSmrg
1420a0d3b6eaSmrgcase $srcdir in
1421a0d3b6eaSmrg  .)  # We are building in place.
1422a0d3b6eaSmrg    ac_srcdir=.
1423a0d3b6eaSmrg    ac_top_srcdir=$ac_top_builddir_sub
1424a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1425a0d3b6eaSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1426a0d3b6eaSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1427a0d3b6eaSmrg    ac_top_srcdir=$srcdir
1428a0d3b6eaSmrg    ac_abs_top_srcdir=$srcdir ;;
1429a0d3b6eaSmrg  *) # Relative name.
1430a0d3b6eaSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431a0d3b6eaSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1432a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433a0d3b6eaSmrgesac
1434a0d3b6eaSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435a0d3b6eaSmrg
1436a0d3b6eaSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1437a0d3b6eaSmrg    # Check for guested configure.
1438a0d3b6eaSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1439a0d3b6eaSmrg      echo &&
1440a0d3b6eaSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441a0d3b6eaSmrg    elif test -f "$ac_srcdir/configure"; then
1442a0d3b6eaSmrg      echo &&
1443a0d3b6eaSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1444a0d3b6eaSmrg    else
144562df5ad0Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446a0d3b6eaSmrg    fi || ac_status=$?
1447a0d3b6eaSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1448a0d3b6eaSmrg  done
1449a0d3b6eaSmrgfi
1450a0d3b6eaSmrg
1451a0d3b6eaSmrgtest -n "$ac_init_help" && exit $ac_status
1452a0d3b6eaSmrgif $ac_init_version; then
1453a0d3b6eaSmrg  cat <<\_ACEOF
1454781f9a67Smrgxrandr configure 1.3.5
14554def10e6Smrggenerated by GNU Autoconf 2.68
1456a0d3b6eaSmrg
14574def10e6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1458a0d3b6eaSmrgThis configure script is free software; the Free Software Foundation
1459a0d3b6eaSmrggives unlimited permission to copy, distribute and modify it.
1460a0d3b6eaSmrg_ACEOF
1461a0d3b6eaSmrg  exit
1462a0d3b6eaSmrgfi
1463a0d3b6eaSmrg
1464f8a31ee4Smrg## ------------------------ ##
1465f8a31ee4Smrg## Autoconf initialization. ##
1466f8a31ee4Smrg## ------------------------ ##
1467a0d3b6eaSmrg
1468f8a31ee4Smrg# ac_fn_c_try_compile LINENO
1469f8a31ee4Smrg# --------------------------
1470f8a31ee4Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1471f8a31ee4Smrgac_fn_c_try_compile ()
1472a0d3b6eaSmrg{
1473f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474f8a31ee4Smrg  rm -f conftest.$ac_objext
1475f8a31ee4Smrg  if { { ac_try="$ac_compile"
1476f8a31ee4Smrgcase "(($ac_try" in
1477f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1479f8a31ee4Smrgesac
1480f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1482f8a31ee4Smrg  (eval "$ac_compile") 2>conftest.err
1483f8a31ee4Smrg  ac_status=$?
1484f8a31ee4Smrg  if test -s conftest.err; then
1485f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1486f8a31ee4Smrg    cat conftest.er1 >&5
1487f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1488f8a31ee4Smrg  fi
1489f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490f8a31ee4Smrg  test $ac_status = 0; } && {
1491f8a31ee4Smrg	 test -z "$ac_c_werror_flag" ||
1492f8a31ee4Smrg	 test ! -s conftest.err
1493f8a31ee4Smrg       } && test -s conftest.$ac_objext; then :
1494f8a31ee4Smrg  ac_retval=0
1495f8a31ee4Smrgelse
1496f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1497f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1498a0d3b6eaSmrg
1499f8a31ee4Smrg	ac_retval=1
1500f8a31ee4Smrgfi
15014def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502f8a31ee4Smrg  as_fn_set_status $ac_retval
1503a0d3b6eaSmrg
1504f8a31ee4Smrg} # ac_fn_c_try_compile
1505a0d3b6eaSmrg
15064def10e6Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15074def10e6Smrg# ---------------------------------------------
15084def10e6Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15094def10e6Smrg# accordingly.
1510f8a31ee4Smrgac_fn_c_check_decl ()
1511f8a31ee4Smrg{
1512f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15134def10e6Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15144def10e6Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15154def10e6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15164def10e6Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15174def10e6Smrgif eval \${$3+:} false; then :
1518f8a31ee4Smrg  $as_echo_n "(cached) " >&6
1519f8a31ee4Smrgelse
1520f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521f8a31ee4Smrg/* end confdefs.h.  */
1522f8a31ee4Smrg$4
1523f8a31ee4Smrgint
1524f8a31ee4Smrgmain ()
1525f8a31ee4Smrg{
15264def10e6Smrg#ifndef $as_decl_name
15274def10e6Smrg#ifdef __cplusplus
15284def10e6Smrg  (void) $as_decl_use;
15294def10e6Smrg#else
15304def10e6Smrg  (void) $as_decl_name;
15314def10e6Smrg#endif
1532f8a31ee4Smrg#endif
1533a0d3b6eaSmrg
1534f8a31ee4Smrg  ;
1535f8a31ee4Smrg  return 0;
1536f8a31ee4Smrg}
1537f8a31ee4Smrg_ACEOF
1538f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
1539f8a31ee4Smrg  eval "$3=yes"
1540f8a31ee4Smrgelse
1541f8a31ee4Smrg  eval "$3=no"
1542f8a31ee4Smrgfi
1543f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544f8a31ee4Smrgfi
1545f8a31ee4Smrgeval ac_res=\$$3
1546f8a31ee4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547f8a31ee4Smrg$as_echo "$ac_res" >&6; }
15484def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549f8a31ee4Smrg
1550f8a31ee4Smrg} # ac_fn_c_check_decl
1551f8a31ee4Smrg
1552f8a31ee4Smrg# ac_fn_c_try_cpp LINENO
1553f8a31ee4Smrg# ----------------------
1554f8a31ee4Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555f8a31ee4Smrgac_fn_c_try_cpp ()
1556f8a31ee4Smrg{
1557f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558f8a31ee4Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1559f8a31ee4Smrgcase "(($ac_try" in
1560f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1562f8a31ee4Smrgesac
1563f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1565f8a31ee4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566f8a31ee4Smrg  ac_status=$?
1567f8a31ee4Smrg  if test -s conftest.err; then
1568f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1569f8a31ee4Smrg    cat conftest.er1 >&5
1570f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1571f8a31ee4Smrg  fi
1572f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734def10e6Smrg  test $ac_status = 0; } > conftest.i && {
1574f8a31ee4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575f8a31ee4Smrg	 test ! -s conftest.err
1576f8a31ee4Smrg       }; then :
1577f8a31ee4Smrg  ac_retval=0
1578f8a31ee4Smrgelse
1579f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1580f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1581f8a31ee4Smrg
1582f8a31ee4Smrg    ac_retval=1
1583f8a31ee4Smrgfi
15844def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585f8a31ee4Smrg  as_fn_set_status $ac_retval
1586f8a31ee4Smrg
1587f8a31ee4Smrg} # ac_fn_c_try_cpp
1588f8a31ee4Smrg
1589f8a31ee4Smrg# ac_fn_c_try_run LINENO
1590f8a31ee4Smrg# ----------------------
1591f8a31ee4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1592f8a31ee4Smrg# that executables *can* be run.
1593f8a31ee4Smrgac_fn_c_try_run ()
1594f8a31ee4Smrg{
1595f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596f8a31ee4Smrg  if { { ac_try="$ac_link"
1597f8a31ee4Smrgcase "(($ac_try" in
1598f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1600f8a31ee4Smrgesac
1601f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1603f8a31ee4Smrg  (eval "$ac_link") 2>&5
1604f8a31ee4Smrg  ac_status=$?
1605f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606f8a31ee4Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1607f8a31ee4Smrg  { { case "(($ac_try" in
1608f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1610f8a31ee4Smrgesac
1611f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1613f8a31ee4Smrg  (eval "$ac_try") 2>&5
1614f8a31ee4Smrg  ac_status=$?
1615f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616f8a31ee4Smrg  test $ac_status = 0; }; }; then :
1617f8a31ee4Smrg  ac_retval=0
1618f8a31ee4Smrgelse
1619f8a31ee4Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1620f8a31ee4Smrg       $as_echo "$as_me: failed program was:" >&5
1621f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1622f8a31ee4Smrg
1623f8a31ee4Smrg       ac_retval=$ac_status
1624f8a31ee4Smrgfi
1625f8a31ee4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16264def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627f8a31ee4Smrg  as_fn_set_status $ac_retval
1628f8a31ee4Smrg
1629f8a31ee4Smrg} # ac_fn_c_try_run
1630f8a31ee4Smrg
1631f8a31ee4Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632f8a31ee4Smrg# -------------------------------------------------------
1633f8a31ee4Smrg# Tests whether HEADER exists and can be compiled using the include files in
1634f8a31ee4Smrg# INCLUDES, setting the cache variable VAR accordingly.
1635f8a31ee4Smrgac_fn_c_check_header_compile ()
1636f8a31ee4Smrg{
1637f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639f8a31ee4Smrg$as_echo_n "checking for $2... " >&6; }
16404def10e6Smrgif eval \${$3+:} false; then :
1641f8a31ee4Smrg  $as_echo_n "(cached) " >&6
1642f8a31ee4Smrgelse
1643f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644f8a31ee4Smrg/* end confdefs.h.  */
1645f8a31ee4Smrg$4
1646f8a31ee4Smrg#include <$2>
1647f8a31ee4Smrg_ACEOF
1648f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
1649f8a31ee4Smrg  eval "$3=yes"
1650f8a31ee4Smrgelse
1651f8a31ee4Smrg  eval "$3=no"
1652f8a31ee4Smrgfi
1653f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654f8a31ee4Smrgfi
1655f8a31ee4Smrgeval ac_res=\$$3
1656f8a31ee4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657f8a31ee4Smrg$as_echo "$ac_res" >&6; }
16584def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659f8a31ee4Smrg
1660f8a31ee4Smrg} # ac_fn_c_check_header_compile
1661f8a31ee4Smrg
1662f8a31ee4Smrg# ac_fn_c_try_link LINENO
1663f8a31ee4Smrg# -----------------------
1664f8a31ee4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1665f8a31ee4Smrgac_fn_c_try_link ()
1666f8a31ee4Smrg{
1667f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668f8a31ee4Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1669f8a31ee4Smrg  if { { ac_try="$ac_link"
1670f8a31ee4Smrgcase "(($ac_try" in
1671f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1673f8a31ee4Smrgesac
1674f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1676f8a31ee4Smrg  (eval "$ac_link") 2>conftest.err
1677f8a31ee4Smrg  ac_status=$?
1678f8a31ee4Smrg  if test -s conftest.err; then
1679f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1680f8a31ee4Smrg    cat conftest.er1 >&5
1681f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1682f8a31ee4Smrg  fi
1683f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684f8a31ee4Smrg  test $ac_status = 0; } && {
1685f8a31ee4Smrg	 test -z "$ac_c_werror_flag" ||
1686f8a31ee4Smrg	 test ! -s conftest.err
1687f8a31ee4Smrg       } && test -s conftest$ac_exeext && {
1688f8a31ee4Smrg	 test "$cross_compiling" = yes ||
1689f8a31ee4Smrg	 $as_test_x conftest$ac_exeext
1690f8a31ee4Smrg       }; then :
1691f8a31ee4Smrg  ac_retval=0
1692f8a31ee4Smrgelse
1693f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1694f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1695f8a31ee4Smrg
1696f8a31ee4Smrg	ac_retval=1
1697f8a31ee4Smrgfi
1698f8a31ee4Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699f8a31ee4Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700f8a31ee4Smrg  # interfere with the next link command; also delete a directory that is
1701f8a31ee4Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1702f8a31ee4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17034def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704f8a31ee4Smrg  as_fn_set_status $ac_retval
1705f8a31ee4Smrg
1706f8a31ee4Smrg} # ac_fn_c_try_link
1707f8a31ee4Smrgcat >config.log <<_ACEOF
1708f8a31ee4SmrgThis file contains any messages produced by compilers while
1709f8a31ee4Smrgrunning configure, to aid debugging if configure makes a mistake.
1710f8a31ee4Smrg
1711781f9a67SmrgIt was created by xrandr $as_me 1.3.5, which was
17124def10e6Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1713f8a31ee4Smrg
1714f8a31ee4Smrg  $ $0 $@
1715f8a31ee4Smrg
1716f8a31ee4Smrg_ACEOF
1717f8a31ee4Smrgexec 5>>config.log
1718f8a31ee4Smrg{
1719f8a31ee4Smrgcat <<_ASUNAME
1720f8a31ee4Smrg## --------- ##
1721f8a31ee4Smrg## Platform. ##
1722f8a31ee4Smrg## --------- ##
1723f8a31ee4Smrg
1724f8a31ee4Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725f8a31ee4Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1726f8a31ee4Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1727f8a31ee4Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1728f8a31ee4Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1729f8a31ee4Smrg
1730f8a31ee4Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731f8a31ee4Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1732f8a31ee4Smrg
1733f8a31ee4Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1734f8a31ee4Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1735f8a31ee4Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736f8a31ee4Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1737f8a31ee4Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1738f8a31ee4Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1739f8a31ee4Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1740f8a31ee4Smrg
1741f8a31ee4Smrg_ASUNAME
1742a0d3b6eaSmrg
1743a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744a0d3b6eaSmrgfor as_dir in $PATH
1745a0d3b6eaSmrgdo
1746a0d3b6eaSmrg  IFS=$as_save_IFS
1747a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
1748f8a31ee4Smrg    $as_echo "PATH: $as_dir"
1749f8a31ee4Smrg  done
1750a0d3b6eaSmrgIFS=$as_save_IFS
1751a0d3b6eaSmrg
1752a0d3b6eaSmrg} >&5
1753a0d3b6eaSmrg
1754a0d3b6eaSmrgcat >&5 <<_ACEOF
1755a0d3b6eaSmrg
1756a0d3b6eaSmrg
1757a0d3b6eaSmrg## ----------- ##
1758a0d3b6eaSmrg## Core tests. ##
1759a0d3b6eaSmrg## ----------- ##
1760a0d3b6eaSmrg
1761a0d3b6eaSmrg_ACEOF
1762a0d3b6eaSmrg
1763a0d3b6eaSmrg
1764a0d3b6eaSmrg# Keep a trace of the command line.
1765a0d3b6eaSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1766a0d3b6eaSmrg# Strip out --silent because we don't want to record it for future runs.
1767a0d3b6eaSmrg# Also quote any args containing shell meta-characters.
1768a0d3b6eaSmrg# Make two passes to allow for proper duplicate-argument suppression.
1769a0d3b6eaSmrgac_configure_args=
1770a0d3b6eaSmrgac_configure_args0=
1771a0d3b6eaSmrgac_configure_args1=
1772a0d3b6eaSmrgac_must_keep_next=false
1773a0d3b6eaSmrgfor ac_pass in 1 2
1774a0d3b6eaSmrgdo
1775a0d3b6eaSmrg  for ac_arg
1776a0d3b6eaSmrg  do
1777a0d3b6eaSmrg    case $ac_arg in
1778a0d3b6eaSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779a0d3b6eaSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780a0d3b6eaSmrg    | -silent | --silent | --silen | --sile | --sil)
1781a0d3b6eaSmrg      continue ;;
1782a0d3b6eaSmrg    *\'*)
178362df5ad0Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784a0d3b6eaSmrg    esac
1785a0d3b6eaSmrg    case $ac_pass in
1786f8a31ee4Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1787a0d3b6eaSmrg    2)
1788f8a31ee4Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1789a0d3b6eaSmrg      if test $ac_must_keep_next = true; then
1790a0d3b6eaSmrg	ac_must_keep_next=false # Got value, back to normal.
1791a0d3b6eaSmrg      else
1792a0d3b6eaSmrg	case $ac_arg in
1793a0d3b6eaSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1794a0d3b6eaSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795a0d3b6eaSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796a0d3b6eaSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1797a0d3b6eaSmrg	    case "$ac_configure_args0 " in
1798a0d3b6eaSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799a0d3b6eaSmrg	    esac
1800a0d3b6eaSmrg	    ;;
1801a0d3b6eaSmrg	  -* ) ac_must_keep_next=true ;;
1802a0d3b6eaSmrg	esac
1803a0d3b6eaSmrg      fi
1804f8a31ee4Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1805a0d3b6eaSmrg      ;;
1806a0d3b6eaSmrg    esac
1807a0d3b6eaSmrg  done
1808a0d3b6eaSmrgdone
1809f8a31ee4Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1810f8a31ee4Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1811a0d3b6eaSmrg
1812a0d3b6eaSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1813a0d3b6eaSmrg# config.log.  We remove comments because anyway the quotes in there
1814a0d3b6eaSmrg# would cause problems or look ugly.
1815a0d3b6eaSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1816a0d3b6eaSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817a0d3b6eaSmrgtrap 'exit_status=$?
1818a0d3b6eaSmrg  # Save into config.log some information that might help in debugging.
1819a0d3b6eaSmrg  {
1820a0d3b6eaSmrg    echo
1821a0d3b6eaSmrg
18224def10e6Smrg    $as_echo "## ---------------- ##
1823a0d3b6eaSmrg## Cache variables. ##
18244def10e6Smrg## ---------------- ##"
1825a0d3b6eaSmrg    echo
1826a0d3b6eaSmrg    # The following way of writing the cache mishandles newlines in values,
1827a0d3b6eaSmrg(
1828a0d3b6eaSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1829a0d3b6eaSmrg    eval ac_val=\$$ac_var
1830a0d3b6eaSmrg    case $ac_val in #(
1831a0d3b6eaSmrg    *${as_nl}*)
1832a0d3b6eaSmrg      case $ac_var in #(
1833f8a31ee4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
183462df5ad0Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1835a0d3b6eaSmrg      esac
1836a0d3b6eaSmrg      case $ac_var in #(
1837a0d3b6eaSmrg      _ | IFS | as_nl) ;; #(
183862df5ad0Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1839f8a31ee4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1840a0d3b6eaSmrg      esac ;;
1841a0d3b6eaSmrg    esac
1842a0d3b6eaSmrg  done
1843a0d3b6eaSmrg  (set) 2>&1 |
1844a0d3b6eaSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1845a0d3b6eaSmrg    *${as_nl}ac_space=\ *)
1846a0d3b6eaSmrg      sed -n \
1847a0d3b6eaSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1848a0d3b6eaSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1849a0d3b6eaSmrg      ;; #(
1850a0d3b6eaSmrg    *)
1851a0d3b6eaSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852a0d3b6eaSmrg      ;;
1853a0d3b6eaSmrg    esac |
1854a0d3b6eaSmrg    sort
1855a0d3b6eaSmrg)
1856a0d3b6eaSmrg    echo
1857a0d3b6eaSmrg
18584def10e6Smrg    $as_echo "## ----------------- ##
1859a0d3b6eaSmrg## Output variables. ##
18604def10e6Smrg## ----------------- ##"
1861a0d3b6eaSmrg    echo
1862a0d3b6eaSmrg    for ac_var in $ac_subst_vars
1863a0d3b6eaSmrg    do
1864a0d3b6eaSmrg      eval ac_val=\$$ac_var
1865a0d3b6eaSmrg      case $ac_val in
186662df5ad0Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867a0d3b6eaSmrg      esac
186862df5ad0Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1869a0d3b6eaSmrg    done | sort
1870a0d3b6eaSmrg    echo
1871a0d3b6eaSmrg
1872a0d3b6eaSmrg    if test -n "$ac_subst_files"; then
18734def10e6Smrg      $as_echo "## ------------------- ##
1874a0d3b6eaSmrg## File substitutions. ##
18754def10e6Smrg## ------------------- ##"
1876a0d3b6eaSmrg      echo
1877a0d3b6eaSmrg      for ac_var in $ac_subst_files
1878a0d3b6eaSmrg      do
1879a0d3b6eaSmrg	eval ac_val=\$$ac_var
1880a0d3b6eaSmrg	case $ac_val in
188162df5ad0Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882a0d3b6eaSmrg	esac
188362df5ad0Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1884a0d3b6eaSmrg      done | sort
1885a0d3b6eaSmrg      echo
1886a0d3b6eaSmrg    fi
1887a0d3b6eaSmrg
1888a0d3b6eaSmrg    if test -s confdefs.h; then
18894def10e6Smrg      $as_echo "## ----------- ##
1890a0d3b6eaSmrg## confdefs.h. ##
18914def10e6Smrg## ----------- ##"
1892a0d3b6eaSmrg      echo
1893a0d3b6eaSmrg      cat confdefs.h
1894a0d3b6eaSmrg      echo
1895a0d3b6eaSmrg    fi
1896a0d3b6eaSmrg    test "$ac_signal" != 0 &&
189762df5ad0Smrg      $as_echo "$as_me: caught signal $ac_signal"
189862df5ad0Smrg    $as_echo "$as_me: exit $exit_status"
1899a0d3b6eaSmrg  } >&5
1900a0d3b6eaSmrg  rm -f core *.core core.conftest.* &&
1901a0d3b6eaSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1902a0d3b6eaSmrg    exit $exit_status
1903a0d3b6eaSmrg' 0
1904a0d3b6eaSmrgfor ac_signal in 1 2 13 15; do
1905f8a31ee4Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1906a0d3b6eaSmrgdone
1907a0d3b6eaSmrgac_signal=0
1908a0d3b6eaSmrg
1909a0d3b6eaSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1910a0d3b6eaSmrgrm -f -r conftest* confdefs.h
1911a0d3b6eaSmrg
1912f8a31ee4Smrg$as_echo "/* confdefs.h */" > confdefs.h
1913f8a31ee4Smrg
1914a0d3b6eaSmrg# Predefined preprocessor variables.
1915a0d3b6eaSmrg
1916a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1917a0d3b6eaSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
1918a0d3b6eaSmrg_ACEOF
1919a0d3b6eaSmrg
1920a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1921a0d3b6eaSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922a0d3b6eaSmrg_ACEOF
1923a0d3b6eaSmrg
1924a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1925a0d3b6eaSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1926a0d3b6eaSmrg_ACEOF
1927a0d3b6eaSmrg
1928a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1929a0d3b6eaSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
1930a0d3b6eaSmrg_ACEOF
1931a0d3b6eaSmrg
1932a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1933a0d3b6eaSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934a0d3b6eaSmrg_ACEOF
1935a0d3b6eaSmrg
1936f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
1937f8a31ee4Smrg#define PACKAGE_URL "$PACKAGE_URL"
1938f8a31ee4Smrg_ACEOF
1939f8a31ee4Smrg
1940a0d3b6eaSmrg
1941a0d3b6eaSmrg# Let the site file select an alternate cache file if it wants to.
194262df5ad0Smrg# Prefer an explicitly selected file to automatically selected ones.
194362df5ad0Smrgac_site_file1=NONE
194462df5ad0Smrgac_site_file2=NONE
1945a0d3b6eaSmrgif test -n "$CONFIG_SITE"; then
19464def10e6Smrg  # We do not want a PATH search for config.site.
19474def10e6Smrg  case $CONFIG_SITE in #((
19484def10e6Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
19494def10e6Smrg    */*) ac_site_file1=$CONFIG_SITE;;
19504def10e6Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
19514def10e6Smrg  esac
1952a0d3b6eaSmrgelif test "x$prefix" != xNONE; then
195362df5ad0Smrg  ac_site_file1=$prefix/share/config.site
195462df5ad0Smrg  ac_site_file2=$prefix/etc/config.site
1955a0d3b6eaSmrgelse
195662df5ad0Smrg  ac_site_file1=$ac_default_prefix/share/config.site
195762df5ad0Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1958a0d3b6eaSmrgfi
195962df5ad0Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1960a0d3b6eaSmrgdo
196162df5ad0Smrg  test "x$ac_site_file" = xNONE && continue
1962f8a31ee4Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1963f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
196462df5ad0Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1965a0d3b6eaSmrg    sed 's/^/| /' "$ac_site_file" >&5
19664def10e6Smrg    . "$ac_site_file" \
19674def10e6Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19684def10e6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19694def10e6Smrgas_fn_error $? "failed to load site script $ac_site_file
19704def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
1971a0d3b6eaSmrg  fi
1972a0d3b6eaSmrgdone
1973a0d3b6eaSmrg
1974a0d3b6eaSmrgif test -r "$cache_file"; then
1975f8a31ee4Smrg  # Some versions of bash will fail to source /dev/null (special files
1976f8a31ee4Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1977f8a31ee4Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1978f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
197962df5ad0Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1980a0d3b6eaSmrg    case $cache_file in
1981a0d3b6eaSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982a0d3b6eaSmrg      *)                      . "./$cache_file";;
1983a0d3b6eaSmrg    esac
1984a0d3b6eaSmrg  fi
1985a0d3b6eaSmrgelse
1986f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
198762df5ad0Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1988a0d3b6eaSmrg  >$cache_file
1989a0d3b6eaSmrgfi
1990a0d3b6eaSmrg
1991a0d3b6eaSmrg# Check that the precious variables saved in the cache have kept the same
1992a0d3b6eaSmrg# value.
1993a0d3b6eaSmrgac_cache_corrupted=false
1994a0d3b6eaSmrgfor ac_var in $ac_precious_vars; do
1995a0d3b6eaSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1996a0d3b6eaSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
1997a0d3b6eaSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1998a0d3b6eaSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
1999a0d3b6eaSmrg  case $ac_old_set,$ac_new_set in
2000a0d3b6eaSmrg    set,)
2001f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
200262df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2003a0d3b6eaSmrg      ac_cache_corrupted=: ;;
2004a0d3b6eaSmrg    ,set)
2005f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
200662df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2007a0d3b6eaSmrg      ac_cache_corrupted=: ;;
2008a0d3b6eaSmrg    ,);;
2009a0d3b6eaSmrg    *)
2010a0d3b6eaSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
201162df5ad0Smrg	# differences in whitespace do not lead to failure.
201262df5ad0Smrg	ac_old_val_w=`echo x $ac_old_val`
201362df5ad0Smrg	ac_new_val_w=`echo x $ac_new_val`
201462df5ad0Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2015f8a31ee4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
201662df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
201762df5ad0Smrg	  ac_cache_corrupted=:
201862df5ad0Smrg	else
2019f8a31ee4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
202062df5ad0Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
202162df5ad0Smrg	  eval $ac_var=\$ac_old_val
202262df5ad0Smrg	fi
2023f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
202462df5ad0Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2025f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
202662df5ad0Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2027a0d3b6eaSmrg      fi;;
2028a0d3b6eaSmrg  esac
2029a0d3b6eaSmrg  # Pass precious variables to config.status.
2030a0d3b6eaSmrg  if test "$ac_new_set" = set; then
2031a0d3b6eaSmrg    case $ac_new_val in
203262df5ad0Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2033a0d3b6eaSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2034a0d3b6eaSmrg    esac
2035a0d3b6eaSmrg    case " $ac_configure_args " in
2036a0d3b6eaSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2037f8a31ee4Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2038a0d3b6eaSmrg    esac
2039a0d3b6eaSmrg  fi
2040a0d3b6eaSmrgdone
2041a0d3b6eaSmrgif $ac_cache_corrupted; then
2042f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
204362df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
204562df5ad0Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
20464def10e6Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2047a0d3b6eaSmrgfi
2048f8a31ee4Smrg## -------------------- ##
2049f8a31ee4Smrg## Main body of script. ##
2050f8a31ee4Smrg## -------------------- ##
2051a0d3b6eaSmrg
2052a0d3b6eaSmrgac_ext=c
2053a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
2054a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2057a0d3b6eaSmrg
2058a0d3b6eaSmrg
2059f8a31ee4Smrgam__api_version='1.11'
2060a0d3b6eaSmrg
2061a0d3b6eaSmrgac_aux_dir=
2062a0d3b6eaSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
20634def10e6Smrg  if test -f "$ac_dir/install-sh"; then
20644def10e6Smrg    ac_aux_dir=$ac_dir
20654def10e6Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
20664def10e6Smrg    break
20674def10e6Smrg  elif test -f "$ac_dir/install.sh"; then
20684def10e6Smrg    ac_aux_dir=$ac_dir
20694def10e6Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
20704def10e6Smrg    break
20714def10e6Smrg  elif test -f "$ac_dir/shtool"; then
20724def10e6Smrg    ac_aux_dir=$ac_dir
20734def10e6Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
20744def10e6Smrg    break
20754def10e6Smrg  fi
2076a0d3b6eaSmrgdone
2077a0d3b6eaSmrgif test -z "$ac_aux_dir"; then
20784def10e6Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2079a0d3b6eaSmrgfi
2080a0d3b6eaSmrg
2081a0d3b6eaSmrg# These three variables are undocumented and unsupported,
2082a0d3b6eaSmrg# and are intended to be withdrawn in a future Autoconf release.
2083a0d3b6eaSmrg# They can cause serious problems if a builder's source tree is in a directory
2084a0d3b6eaSmrg# whose full name contains unusual characters.
2085a0d3b6eaSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2086a0d3b6eaSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2087a0d3b6eaSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2088a0d3b6eaSmrg
2089a0d3b6eaSmrg
2090a0d3b6eaSmrg# Find a good install program.  We prefer a C program (faster),
2091a0d3b6eaSmrg# so one script is as good as another.  But avoid the broken or
2092a0d3b6eaSmrg# incompatible versions:
2093a0d3b6eaSmrg# SysV /etc/install, /usr/sbin/install
2094a0d3b6eaSmrg# SunOS /usr/etc/install
2095a0d3b6eaSmrg# IRIX /sbin/install
2096a0d3b6eaSmrg# AIX /bin/install
2097a0d3b6eaSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2098a0d3b6eaSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099a0d3b6eaSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100a0d3b6eaSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101a0d3b6eaSmrg# OS/2's system install, which has a completely different semantic
2102a0d3b6eaSmrg# ./install, which can be erroneously created by make from ./install.sh.
210362df5ad0Smrg# Reject install programs that cannot install multiple files.
2104f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
210562df5ad0Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2106a0d3b6eaSmrgif test -z "$INSTALL"; then
21074def10e6Smrgif ${ac_cv_path_install+:} false; then :
210862df5ad0Smrg  $as_echo_n "(cached) " >&6
2109a0d3b6eaSmrgelse
2110a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111a0d3b6eaSmrgfor as_dir in $PATH
2112a0d3b6eaSmrgdo
2113a0d3b6eaSmrg  IFS=$as_save_IFS
2114a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2115f8a31ee4Smrg    # Account for people who put trailing slashes in PATH elements.
2116f8a31ee4Smrgcase $as_dir/ in #((
2117f8a31ee4Smrg  ./ | .// | /[cC]/* | \
2118a0d3b6eaSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2119f8a31ee4Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2120a0d3b6eaSmrg  /usr/ucb/* ) ;;
2121a0d3b6eaSmrg  *)
2122a0d3b6eaSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2123a0d3b6eaSmrg    # Don't use installbsd from OSF since it installs stuff as root
2124a0d3b6eaSmrg    # by default.
2125a0d3b6eaSmrg    for ac_prog in ginstall scoinst install; do
2126a0d3b6eaSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2127a0d3b6eaSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2128a0d3b6eaSmrg	  if test $ac_prog = install &&
2129a0d3b6eaSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2130a0d3b6eaSmrg	    # AIX install.  It has an incompatible calling convention.
2131a0d3b6eaSmrg	    :
2132a0d3b6eaSmrg	  elif test $ac_prog = install &&
2133a0d3b6eaSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2134a0d3b6eaSmrg	    # program-specific install script used by HP pwplus--don't use.
2135a0d3b6eaSmrg	    :
2136a0d3b6eaSmrg	  else
213762df5ad0Smrg	    rm -rf conftest.one conftest.two conftest.dir
213862df5ad0Smrg	    echo one > conftest.one
213962df5ad0Smrg	    echo two > conftest.two
214062df5ad0Smrg	    mkdir conftest.dir
214162df5ad0Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
214262df5ad0Smrg	      test -s conftest.one && test -s conftest.two &&
214362df5ad0Smrg	      test -s conftest.dir/conftest.one &&
214462df5ad0Smrg	      test -s conftest.dir/conftest.two
214562df5ad0Smrg	    then
214662df5ad0Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
214762df5ad0Smrg	      break 3
214862df5ad0Smrg	    fi
2149a0d3b6eaSmrg	  fi
2150a0d3b6eaSmrg	fi
2151a0d3b6eaSmrg      done
2152a0d3b6eaSmrg    done
2153a0d3b6eaSmrg    ;;
2154a0d3b6eaSmrgesac
215562df5ad0Smrg
2156f8a31ee4Smrg  done
2157a0d3b6eaSmrgIFS=$as_save_IFS
2158a0d3b6eaSmrg
215962df5ad0Smrgrm -rf conftest.one conftest.two conftest.dir
2160a0d3b6eaSmrg
2161a0d3b6eaSmrgfi
2162a0d3b6eaSmrg  if test "${ac_cv_path_install+set}" = set; then
2163a0d3b6eaSmrg    INSTALL=$ac_cv_path_install
2164a0d3b6eaSmrg  else
2165a0d3b6eaSmrg    # As a last resort, use the slow shell script.  Don't cache a
2166a0d3b6eaSmrg    # value for INSTALL within a source directory, because that will
2167a0d3b6eaSmrg    # break other packages using the cache if that directory is
2168a0d3b6eaSmrg    # removed, or if the value is a relative name.
2169a0d3b6eaSmrg    INSTALL=$ac_install_sh
2170a0d3b6eaSmrg  fi
2171a0d3b6eaSmrgfi
2172f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
217362df5ad0Smrg$as_echo "$INSTALL" >&6; }
2174a0d3b6eaSmrg
2175a0d3b6eaSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176a0d3b6eaSmrg# It thinks the first close brace ends the variable substitution.
2177a0d3b6eaSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178a0d3b6eaSmrg
2179a0d3b6eaSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180a0d3b6eaSmrg
2181a0d3b6eaSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182a0d3b6eaSmrg
2183f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
218462df5ad0Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2185a0d3b6eaSmrg# Just in case
2186a0d3b6eaSmrgsleep 1
2187a0d3b6eaSmrgecho timestamp > conftest.file
2188f8a31ee4Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2189f8a31ee4Smrg# name.  Accept space and tab only in the latter.
2190f8a31ee4Smrgam_lf='
2191f8a31ee4Smrg'
2192f8a31ee4Smrgcase `pwd` in
2193f8a31ee4Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
21944def10e6Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2195f8a31ee4Smrgesac
2196f8a31ee4Smrgcase $srcdir in
2197f8a31ee4Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
21984def10e6Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2199f8a31ee4Smrgesac
2200f8a31ee4Smrg
2201a0d3b6eaSmrg# Do `set' in a subshell so we don't clobber the current shell's
2202a0d3b6eaSmrg# arguments.  Must try -L first in case configure is actually a
2203a0d3b6eaSmrg# symlink; some systems play weird games with the mod time of symlinks
2204a0d3b6eaSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2205a0d3b6eaSmrg# directory).
2206a0d3b6eaSmrgif (
2207f8a31ee4Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2208a0d3b6eaSmrg   if test "$*" = "X"; then
2209a0d3b6eaSmrg      # -L didn't work.
2210f8a31ee4Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2211a0d3b6eaSmrg   fi
2212a0d3b6eaSmrg   rm -f conftest.file
2213a0d3b6eaSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2214a0d3b6eaSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2215a0d3b6eaSmrg
2216a0d3b6eaSmrg      # If neither matched, then we have a broken ls.  This can happen
2217a0d3b6eaSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2218a0d3b6eaSmrg      # broken ls alias from the environment.  This has actually
2219a0d3b6eaSmrg      # happened.  Such a system could not be considered "sane".
22204def10e6Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2221f8a31ee4Smrgalias in your environment" "$LINENO" 5
2222a0d3b6eaSmrg   fi
2223a0d3b6eaSmrg
2224a0d3b6eaSmrg   test "$2" = conftest.file
2225a0d3b6eaSmrg   )
2226a0d3b6eaSmrgthen
2227a0d3b6eaSmrg   # Ok.
2228a0d3b6eaSmrg   :
2229a0d3b6eaSmrgelse
22304def10e6Smrg   as_fn_error $? "newly created file is older than distributed files!
2231f8a31ee4SmrgCheck your system clock" "$LINENO" 5
2232a0d3b6eaSmrgfi
2233f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
223462df5ad0Smrg$as_echo "yes" >&6; }
2235a0d3b6eaSmrgtest "$program_prefix" != NONE &&
2236a0d3b6eaSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2237a0d3b6eaSmrg# Use a double $ so make ignores it.
2238a0d3b6eaSmrgtest "$program_suffix" != NONE &&
2239a0d3b6eaSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
224062df5ad0Smrg# Double any \ or $.
2241a0d3b6eaSmrg# By default was `s,x,x', remove it if useless.
224262df5ad0Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
224362df5ad0Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2244a0d3b6eaSmrg
2245a0d3b6eaSmrg# expand $ac_aux_dir to an absolute path
2246a0d3b6eaSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2247a0d3b6eaSmrg
2248f8a31ee4Smrgif test x"${MISSING+set}" != xset; then
2249f8a31ee4Smrg  case $am_aux_dir in
2250f8a31ee4Smrg  *\ * | *\	*)
2251f8a31ee4Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2252f8a31ee4Smrg  *)
2253f8a31ee4Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2254f8a31ee4Smrg  esac
2255f8a31ee4Smrgfi
2256a0d3b6eaSmrg# Use eval to expand $SHELL
2257a0d3b6eaSmrgif eval "$MISSING --run true"; then
2258a0d3b6eaSmrg  am_missing_run="$MISSING --run "
2259a0d3b6eaSmrgelse
2260a0d3b6eaSmrg  am_missing_run=
2261f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
226262df5ad0Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263a0d3b6eaSmrgfi
2264a0d3b6eaSmrg
2265f8a31ee4Smrgif test x"${install_sh}" != xset; then
2266f8a31ee4Smrg  case $am_aux_dir in
2267f8a31ee4Smrg  *\ * | *\	*)
2268f8a31ee4Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2269f8a31ee4Smrg  *)
2270f8a31ee4Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2271f8a31ee4Smrg  esac
2272f8a31ee4Smrgfi
2273f8a31ee4Smrg
2274f8a31ee4Smrg# Installed binaries are usually stripped using `strip' when the user
2275f8a31ee4Smrg# run `make install-strip'.  However `strip' might not be the right
2276f8a31ee4Smrg# tool to use in cross-compilation environments, therefore Automake
2277f8a31ee4Smrg# will honor the `STRIP' environment variable to overrule this program.
2278f8a31ee4Smrgif test "$cross_compiling" != no; then
2279f8a31ee4Smrg  if test -n "$ac_tool_prefix"; then
2280f8a31ee4Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2281f8a31ee4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2282f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2283f8a31ee4Smrg$as_echo_n "checking for $ac_word... " >&6; }
22844def10e6Smrgif ${ac_cv_prog_STRIP+:} false; then :
2285f8a31ee4Smrg  $as_echo_n "(cached) " >&6
2286f8a31ee4Smrgelse
2287f8a31ee4Smrg  if test -n "$STRIP"; then
2288f8a31ee4Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2289f8a31ee4Smrgelse
2290f8a31ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291f8a31ee4Smrgfor as_dir in $PATH
2292f8a31ee4Smrgdo
2293f8a31ee4Smrg  IFS=$as_save_IFS
2294f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
2295f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2296f8a31ee4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297f8a31ee4Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2298f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299f8a31ee4Smrg    break 2
2300f8a31ee4Smrg  fi
2301f8a31ee4Smrgdone
2302f8a31ee4Smrg  done
2303f8a31ee4SmrgIFS=$as_save_IFS
2304f8a31ee4Smrg
2305f8a31ee4Smrgfi
2306f8a31ee4Smrgfi
2307f8a31ee4SmrgSTRIP=$ac_cv_prog_STRIP
2308f8a31ee4Smrgif test -n "$STRIP"; then
2309f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2310f8a31ee4Smrg$as_echo "$STRIP" >&6; }
2311f8a31ee4Smrgelse
2312f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2313f8a31ee4Smrg$as_echo "no" >&6; }
2314f8a31ee4Smrgfi
2315f8a31ee4Smrg
2316f8a31ee4Smrg
2317f8a31ee4Smrgfi
2318f8a31ee4Smrgif test -z "$ac_cv_prog_STRIP"; then
2319f8a31ee4Smrg  ac_ct_STRIP=$STRIP
2320f8a31ee4Smrg  # Extract the first word of "strip", so it can be a program name with args.
2321f8a31ee4Smrgset dummy strip; ac_word=$2
2322f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323f8a31ee4Smrg$as_echo_n "checking for $ac_word... " >&6; }
23244def10e6Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2325f8a31ee4Smrg  $as_echo_n "(cached) " >&6
2326f8a31ee4Smrgelse
2327f8a31ee4Smrg  if test -n "$ac_ct_STRIP"; then
2328f8a31ee4Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2329f8a31ee4Smrgelse
2330f8a31ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331f8a31ee4Smrgfor as_dir in $PATH
2332f8a31ee4Smrgdo
2333f8a31ee4Smrg  IFS=$as_save_IFS
2334f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
2335f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2336f8a31ee4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337f8a31ee4Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2338f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339f8a31ee4Smrg    break 2
2340f8a31ee4Smrg  fi
2341f8a31ee4Smrgdone
2342f8a31ee4Smrg  done
2343f8a31ee4SmrgIFS=$as_save_IFS
2344f8a31ee4Smrg
2345f8a31ee4Smrgfi
2346f8a31ee4Smrgfi
2347f8a31ee4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2348f8a31ee4Smrgif test -n "$ac_ct_STRIP"; then
2349f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2350f8a31ee4Smrg$as_echo "$ac_ct_STRIP" >&6; }
2351f8a31ee4Smrgelse
2352f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2353f8a31ee4Smrg$as_echo "no" >&6; }
2354f8a31ee4Smrgfi
2355f8a31ee4Smrg
2356f8a31ee4Smrg  if test "x$ac_ct_STRIP" = x; then
2357f8a31ee4Smrg    STRIP=":"
2358f8a31ee4Smrg  else
2359f8a31ee4Smrg    case $cross_compiling:$ac_tool_warned in
2360f8a31ee4Smrgyes:)
2361f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2362f8a31ee4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2363f8a31ee4Smrgac_tool_warned=yes ;;
2364f8a31ee4Smrgesac
2365f8a31ee4Smrg    STRIP=$ac_ct_STRIP
2366f8a31ee4Smrg  fi
2367f8a31ee4Smrgelse
2368f8a31ee4Smrg  STRIP="$ac_cv_prog_STRIP"
2369f8a31ee4Smrgfi
2370f8a31ee4Smrg
2371f8a31ee4Smrgfi
2372f8a31ee4SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2373f8a31ee4Smrg
2374f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
237562df5ad0Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2376a0d3b6eaSmrgif test -z "$MKDIR_P"; then
23774def10e6Smrg  if ${ac_cv_path_mkdir+:} false; then :
237862df5ad0Smrg  $as_echo_n "(cached) " >&6
2379a0d3b6eaSmrgelse
2380a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381a0d3b6eaSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2382a0d3b6eaSmrgdo
2383a0d3b6eaSmrg  IFS=$as_save_IFS
2384a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2385f8a31ee4Smrg    for ac_prog in mkdir gmkdir; do
2386a0d3b6eaSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2387a0d3b6eaSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2388a0d3b6eaSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2389a0d3b6eaSmrg	     'mkdir (GNU coreutils) '* | \
2390a0d3b6eaSmrg	     'mkdir (coreutils) '* | \
2391a0d3b6eaSmrg	     'mkdir (fileutils) '4.1*)
2392a0d3b6eaSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2393a0d3b6eaSmrg	       break 3;;
2394a0d3b6eaSmrg	   esac
2395a0d3b6eaSmrg	 done
2396a0d3b6eaSmrg       done
2397f8a31ee4Smrg  done
2398a0d3b6eaSmrgIFS=$as_save_IFS
2399a0d3b6eaSmrg
2400a0d3b6eaSmrgfi
2401a0d3b6eaSmrg
2402f8a31ee4Smrg  test -d ./--version && rmdir ./--version
2403a0d3b6eaSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2404a0d3b6eaSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2405a0d3b6eaSmrg  else
2406a0d3b6eaSmrg    # As a last resort, use the slow shell script.  Don't cache a
2407a0d3b6eaSmrg    # value for MKDIR_P within a source directory, because that will
2408a0d3b6eaSmrg    # break other packages using the cache if that directory is
2409a0d3b6eaSmrg    # removed, or if the value is a relative name.
2410a0d3b6eaSmrg    MKDIR_P="$ac_install_sh -d"
2411a0d3b6eaSmrg  fi
2412a0d3b6eaSmrgfi
2413f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
241462df5ad0Smrg$as_echo "$MKDIR_P" >&6; }
2415a0d3b6eaSmrg
2416a0d3b6eaSmrgmkdir_p="$MKDIR_P"
2417a0d3b6eaSmrgcase $mkdir_p in
2418a0d3b6eaSmrg  [\\/$]* | ?:[\\/]*) ;;
2419a0d3b6eaSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2420a0d3b6eaSmrgesac
2421a0d3b6eaSmrg
2422a0d3b6eaSmrgfor ac_prog in gawk mawk nawk awk
2423a0d3b6eaSmrgdo
2424a0d3b6eaSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2425a0d3b6eaSmrgset dummy $ac_prog; ac_word=$2
2426f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
242762df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
24284def10e6Smrgif ${ac_cv_prog_AWK+:} false; then :
242962df5ad0Smrg  $as_echo_n "(cached) " >&6
2430a0d3b6eaSmrgelse
2431a0d3b6eaSmrg  if test -n "$AWK"; then
2432a0d3b6eaSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2433a0d3b6eaSmrgelse
2434a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435a0d3b6eaSmrgfor as_dir in $PATH
2436a0d3b6eaSmrgdo
2437a0d3b6eaSmrg  IFS=$as_save_IFS
2438a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2439f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2440a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441a0d3b6eaSmrg    ac_cv_prog_AWK="$ac_prog"
2442f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443a0d3b6eaSmrg    break 2
2444a0d3b6eaSmrg  fi
2445a0d3b6eaSmrgdone
2446f8a31ee4Smrg  done
2447a0d3b6eaSmrgIFS=$as_save_IFS
2448a0d3b6eaSmrg
2449a0d3b6eaSmrgfi
2450a0d3b6eaSmrgfi
2451a0d3b6eaSmrgAWK=$ac_cv_prog_AWK
2452a0d3b6eaSmrgif test -n "$AWK"; then
2453f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
245462df5ad0Smrg$as_echo "$AWK" >&6; }
2455a0d3b6eaSmrgelse
2456f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
245762df5ad0Smrg$as_echo "no" >&6; }
2458a0d3b6eaSmrgfi
2459a0d3b6eaSmrg
2460a0d3b6eaSmrg
2461a0d3b6eaSmrg  test -n "$AWK" && break
2462a0d3b6eaSmrgdone
2463a0d3b6eaSmrg
2464f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
246562df5ad0Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
246662df5ad0Smrgset x ${MAKE-make}
246762df5ad0Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24684def10e6Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
246962df5ad0Smrg  $as_echo_n "(cached) " >&6
2470a0d3b6eaSmrgelse
2471a0d3b6eaSmrg  cat >conftest.make <<\_ACEOF
2472a0d3b6eaSmrgSHELL = /bin/sh
2473a0d3b6eaSmrgall:
2474a0d3b6eaSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2475a0d3b6eaSmrg_ACEOF
24764def10e6Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2477a0d3b6eaSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2478a0d3b6eaSmrg  *@@@%%%=?*=@@@%%%*)
2479a0d3b6eaSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2480a0d3b6eaSmrg  *)
2481a0d3b6eaSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2482a0d3b6eaSmrgesac
2483a0d3b6eaSmrgrm -f conftest.make
2484a0d3b6eaSmrgfi
2485a0d3b6eaSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2486f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
248762df5ad0Smrg$as_echo "yes" >&6; }
2488a0d3b6eaSmrg  SET_MAKE=
2489a0d3b6eaSmrgelse
2490f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
249162df5ad0Smrg$as_echo "no" >&6; }
2492a0d3b6eaSmrg  SET_MAKE="MAKE=${MAKE-make}"
2493a0d3b6eaSmrgfi
2494a0d3b6eaSmrg
2495a0d3b6eaSmrgrm -rf .tst 2>/dev/null
2496a0d3b6eaSmrgmkdir .tst 2>/dev/null
2497a0d3b6eaSmrgif test -d .tst; then
2498a0d3b6eaSmrg  am__leading_dot=.
2499a0d3b6eaSmrgelse
2500a0d3b6eaSmrg  am__leading_dot=_
2501a0d3b6eaSmrgfi
2502a0d3b6eaSmrgrmdir .tst 2>/dev/null
2503a0d3b6eaSmrg
2504a0d3b6eaSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2505a0d3b6eaSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2506a0d3b6eaSmrg  # is not polluted with repeated "-I."
2507a0d3b6eaSmrg  am__isrc=' -I$(srcdir)'
2508a0d3b6eaSmrg  # test to see if srcdir already configured
2509a0d3b6eaSmrg  if test -f $srcdir/config.status; then
25104def10e6Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2511a0d3b6eaSmrg  fi
2512a0d3b6eaSmrgfi
2513a0d3b6eaSmrg
2514a0d3b6eaSmrg# test whether we have cygpath
2515a0d3b6eaSmrgif test -z "$CYGPATH_W"; then
2516a0d3b6eaSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2517a0d3b6eaSmrg    CYGPATH_W='cygpath -w'
2518a0d3b6eaSmrg  else
2519a0d3b6eaSmrg    CYGPATH_W=echo
2520a0d3b6eaSmrg  fi
2521a0d3b6eaSmrgfi
2522a0d3b6eaSmrg
2523a0d3b6eaSmrg
2524a0d3b6eaSmrg# Define the identity of the package.
2525a0d3b6eaSmrg PACKAGE='xrandr'
2526781f9a67Smrg VERSION='1.3.5'
2527a0d3b6eaSmrg
2528a0d3b6eaSmrg
2529a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
2530a0d3b6eaSmrg#define PACKAGE "$PACKAGE"
2531a0d3b6eaSmrg_ACEOF
2532a0d3b6eaSmrg
2533a0d3b6eaSmrg
2534a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
2535a0d3b6eaSmrg#define VERSION "$VERSION"
2536a0d3b6eaSmrg_ACEOF
2537a0d3b6eaSmrg
2538a0d3b6eaSmrg# Some tools Automake needs.
2539a0d3b6eaSmrg
2540a0d3b6eaSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2541a0d3b6eaSmrg
2542a0d3b6eaSmrg
2543a0d3b6eaSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2544a0d3b6eaSmrg
2545a0d3b6eaSmrg
2546a0d3b6eaSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2547a0d3b6eaSmrg
2548a0d3b6eaSmrg
2549a0d3b6eaSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2550a0d3b6eaSmrg
2551a0d3b6eaSmrg
2552a0d3b6eaSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2553a0d3b6eaSmrg
2554a0d3b6eaSmrg# We need awk for the "check" target.  The system "awk" is bad on
2555a0d3b6eaSmrg# some platforms.
2556a0d3b6eaSmrg# Always define AMTAR for backward compatibility.
2557a0d3b6eaSmrg
2558a0d3b6eaSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2559a0d3b6eaSmrg
2560a0d3b6eaSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2561a0d3b6eaSmrg
2562a0d3b6eaSmrg
2563a0d3b6eaSmrg
2564a0d3b6eaSmrg
2565a0d3b6eaSmrg
2566f8a31ee4Smrg
2567f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
256862df5ad0Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2569a0d3b6eaSmrg    # Check whether --enable-maintainer-mode was given.
2570f8a31ee4Smrgif test "${enable_maintainer_mode+set}" = set; then :
2571a0d3b6eaSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2572a0d3b6eaSmrgelse
2573a0d3b6eaSmrg  USE_MAINTAINER_MODE=no
2574a0d3b6eaSmrgfi
2575a0d3b6eaSmrg
2576f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
257762df5ad0Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2578a0d3b6eaSmrg   if test $USE_MAINTAINER_MODE = yes; then
2579a0d3b6eaSmrg  MAINTAINER_MODE_TRUE=
2580a0d3b6eaSmrg  MAINTAINER_MODE_FALSE='#'
2581a0d3b6eaSmrgelse
2582a0d3b6eaSmrg  MAINTAINER_MODE_TRUE='#'
2583a0d3b6eaSmrg  MAINTAINER_MODE_FALSE=
2584a0d3b6eaSmrgfi
2585a0d3b6eaSmrg
2586a0d3b6eaSmrg  MAINT=$MAINTAINER_MODE_TRUE
2587a0d3b6eaSmrg
2588a0d3b6eaSmrg
2589a0d3b6eaSmrg
25904def10e6Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2591f8a31ee4Smrg
259262df5ad0Smrg
259362df5ad0Smrg
259462770414Smrg
259562770414Smrg
259662770414Smrg
259762770414Smrg
259862770414Smrg
259962770414Smrg
260062770414Smrg
260162770414Smrg
2602f8a31ee4SmrgDEPDIR="${am__leading_dot}deps"
2603f8a31ee4Smrg
2604f8a31ee4Smrgac_config_commands="$ac_config_commands depfiles"
260562df5ad0Smrg
260662df5ad0Smrg
2607f8a31ee4Smrgam_make=${MAKE-make}
2608f8a31ee4Smrgcat > confinc << 'END'
2609f8a31ee4Smrgam__doit:
2610f8a31ee4Smrg	@echo this is the am__doit target
2611f8a31ee4Smrg.PHONY: am__doit
2612f8a31ee4SmrgEND
2613f8a31ee4Smrg# If we don't find an include directive, just comment out the code.
2614f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2615f8a31ee4Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2616f8a31ee4Smrgam__include="#"
2617f8a31ee4Smrgam__quote=
2618f8a31ee4Smrg_am_result=none
2619f8a31ee4Smrg# First try GNU make style include.
2620f8a31ee4Smrgecho "include confinc" > confmf
2621f8a31ee4Smrg# Ignore all kinds of additional output from `make'.
2622f8a31ee4Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2623f8a31ee4Smrg*the\ am__doit\ target*)
2624f8a31ee4Smrg  am__include=include
2625f8a31ee4Smrg  am__quote=
2626f8a31ee4Smrg  _am_result=GNU
2627f8a31ee4Smrg  ;;
2628f8a31ee4Smrgesac
2629f8a31ee4Smrg# Now try BSD make style include.
2630f8a31ee4Smrgif test "$am__include" = "#"; then
2631f8a31ee4Smrg   echo '.include "confinc"' > confmf
2632f8a31ee4Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2633f8a31ee4Smrg   *the\ am__doit\ target*)
2634f8a31ee4Smrg     am__include=.include
2635f8a31ee4Smrg     am__quote="\""
2636f8a31ee4Smrg     _am_result=BSD
2637f8a31ee4Smrg     ;;
2638f8a31ee4Smrg   esac
2639f8a31ee4Smrgfi
2640f8a31ee4Smrg
2641f8a31ee4Smrg
2642f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2643f8a31ee4Smrg$as_echo "$_am_result" >&6; }
2644f8a31ee4Smrgrm -f confinc confmf
2645f8a31ee4Smrg
2646f8a31ee4Smrg# Check whether --enable-dependency-tracking was given.
2647f8a31ee4Smrgif test "${enable_dependency_tracking+set}" = set; then :
2648f8a31ee4Smrg  enableval=$enable_dependency_tracking;
2649f8a31ee4Smrgfi
2650f8a31ee4Smrg
2651f8a31ee4Smrgif test "x$enable_dependency_tracking" != xno; then
2652f8a31ee4Smrg  am_depcomp="$ac_aux_dir/depcomp"
2653f8a31ee4Smrg  AMDEPBACKSLASH='\'
2654f8a31ee4Smrgfi
2655f8a31ee4Smrg if test "x$enable_dependency_tracking" != xno; then
2656f8a31ee4Smrg  AMDEP_TRUE=
2657f8a31ee4Smrg  AMDEP_FALSE='#'
2658f8a31ee4Smrgelse
2659f8a31ee4Smrg  AMDEP_TRUE='#'
2660f8a31ee4Smrg  AMDEP_FALSE=
2661f8a31ee4Smrgfi
2662a0d3b6eaSmrg
2663a0d3b6eaSmrg
2664a0d3b6eaSmrgac_ext=c
2665a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
2666a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2669a0d3b6eaSmrgif test -n "$ac_tool_prefix"; then
2670a0d3b6eaSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671a0d3b6eaSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2672f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
267362df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
26744def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
267562df5ad0Smrg  $as_echo_n "(cached) " >&6
2676a0d3b6eaSmrgelse
2677a0d3b6eaSmrg  if test -n "$CC"; then
2678a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2679a0d3b6eaSmrgelse
2680a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681a0d3b6eaSmrgfor as_dir in $PATH
2682a0d3b6eaSmrgdo
2683a0d3b6eaSmrg  IFS=$as_save_IFS
2684a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2685f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2686a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687a0d3b6eaSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689a0d3b6eaSmrg    break 2
2690a0d3b6eaSmrg  fi
2691a0d3b6eaSmrgdone
2692f8a31ee4Smrg  done
2693a0d3b6eaSmrgIFS=$as_save_IFS
2694a0d3b6eaSmrg
2695a0d3b6eaSmrgfi
2696a0d3b6eaSmrgfi
2697a0d3b6eaSmrgCC=$ac_cv_prog_CC
2698a0d3b6eaSmrgif test -n "$CC"; then
2699f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
270062df5ad0Smrg$as_echo "$CC" >&6; }
2701a0d3b6eaSmrgelse
2702f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
270362df5ad0Smrg$as_echo "no" >&6; }
2704a0d3b6eaSmrgfi
2705a0d3b6eaSmrg
2706a0d3b6eaSmrg
2707a0d3b6eaSmrgfi
2708a0d3b6eaSmrgif test -z "$ac_cv_prog_CC"; then
2709a0d3b6eaSmrg  ac_ct_CC=$CC
2710a0d3b6eaSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2711a0d3b6eaSmrgset dummy gcc; ac_word=$2
2712f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
271362df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
27144def10e6Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
271562df5ad0Smrg  $as_echo_n "(cached) " >&6
2716a0d3b6eaSmrgelse
2717a0d3b6eaSmrg  if test -n "$ac_ct_CC"; then
2718a0d3b6eaSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719a0d3b6eaSmrgelse
2720a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721a0d3b6eaSmrgfor as_dir in $PATH
2722a0d3b6eaSmrgdo
2723a0d3b6eaSmrg  IFS=$as_save_IFS
2724a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2725f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2726a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727a0d3b6eaSmrg    ac_cv_prog_ac_ct_CC="gcc"
2728f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729a0d3b6eaSmrg    break 2
2730a0d3b6eaSmrg  fi
2731a0d3b6eaSmrgdone
2732f8a31ee4Smrg  done
2733a0d3b6eaSmrgIFS=$as_save_IFS
2734a0d3b6eaSmrg
2735a0d3b6eaSmrgfi
2736a0d3b6eaSmrgfi
2737a0d3b6eaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2738a0d3b6eaSmrgif test -n "$ac_ct_CC"; then
2739f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
274062df5ad0Smrg$as_echo "$ac_ct_CC" >&6; }
2741a0d3b6eaSmrgelse
2742f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
274362df5ad0Smrg$as_echo "no" >&6; }
2744a0d3b6eaSmrgfi
2745a0d3b6eaSmrg
2746a0d3b6eaSmrg  if test "x$ac_ct_CC" = x; then
2747a0d3b6eaSmrg    CC=""
2748a0d3b6eaSmrg  else
2749a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
2750a0d3b6eaSmrgyes:)
2751f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
275262df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753a0d3b6eaSmrgac_tool_warned=yes ;;
2754a0d3b6eaSmrgesac
2755a0d3b6eaSmrg    CC=$ac_ct_CC
2756a0d3b6eaSmrg  fi
2757a0d3b6eaSmrgelse
2758a0d3b6eaSmrg  CC="$ac_cv_prog_CC"
2759a0d3b6eaSmrgfi
2760a0d3b6eaSmrg
2761a0d3b6eaSmrgif test -z "$CC"; then
2762a0d3b6eaSmrg          if test -n "$ac_tool_prefix"; then
2763a0d3b6eaSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2764a0d3b6eaSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2765f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
276662df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
27674def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
276862df5ad0Smrg  $as_echo_n "(cached) " >&6
2769a0d3b6eaSmrgelse
2770a0d3b6eaSmrg  if test -n "$CC"; then
2771a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2772a0d3b6eaSmrgelse
2773a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774a0d3b6eaSmrgfor as_dir in $PATH
2775a0d3b6eaSmrgdo
2776a0d3b6eaSmrg  IFS=$as_save_IFS
2777a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2778f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2779a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780a0d3b6eaSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2781f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782a0d3b6eaSmrg    break 2
2783a0d3b6eaSmrg  fi
2784a0d3b6eaSmrgdone
2785f8a31ee4Smrg  done
2786a0d3b6eaSmrgIFS=$as_save_IFS
2787a0d3b6eaSmrg
2788a0d3b6eaSmrgfi
2789a0d3b6eaSmrgfi
2790a0d3b6eaSmrgCC=$ac_cv_prog_CC
2791a0d3b6eaSmrgif test -n "$CC"; then
2792f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
279362df5ad0Smrg$as_echo "$CC" >&6; }
2794a0d3b6eaSmrgelse
2795f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
279662df5ad0Smrg$as_echo "no" >&6; }
2797a0d3b6eaSmrgfi
2798a0d3b6eaSmrg
2799a0d3b6eaSmrg
2800a0d3b6eaSmrg  fi
2801a0d3b6eaSmrgfi
2802a0d3b6eaSmrgif test -z "$CC"; then
2803a0d3b6eaSmrg  # Extract the first word of "cc", so it can be a program name with args.
2804a0d3b6eaSmrgset dummy cc; ac_word=$2
2805f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
280662df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
28074def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
280862df5ad0Smrg  $as_echo_n "(cached) " >&6
2809a0d3b6eaSmrgelse
2810a0d3b6eaSmrg  if test -n "$CC"; then
2811a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2812a0d3b6eaSmrgelse
2813a0d3b6eaSmrg  ac_prog_rejected=no
2814a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815a0d3b6eaSmrgfor as_dir in $PATH
2816a0d3b6eaSmrgdo
2817a0d3b6eaSmrg  IFS=$as_save_IFS
2818a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2819f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2820a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821a0d3b6eaSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822a0d3b6eaSmrg       ac_prog_rejected=yes
2823a0d3b6eaSmrg       continue
2824a0d3b6eaSmrg     fi
2825a0d3b6eaSmrg    ac_cv_prog_CC="cc"
2826f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827a0d3b6eaSmrg    break 2
2828a0d3b6eaSmrg  fi
2829a0d3b6eaSmrgdone
2830f8a31ee4Smrg  done
2831a0d3b6eaSmrgIFS=$as_save_IFS
2832a0d3b6eaSmrg
2833a0d3b6eaSmrgif test $ac_prog_rejected = yes; then
2834a0d3b6eaSmrg  # We found a bogon in the path, so make sure we never use it.
2835a0d3b6eaSmrg  set dummy $ac_cv_prog_CC
2836a0d3b6eaSmrg  shift
2837a0d3b6eaSmrg  if test $# != 0; then
2838a0d3b6eaSmrg    # We chose a different compiler from the bogus one.
2839a0d3b6eaSmrg    # However, it has the same basename, so the bogon will be chosen
2840a0d3b6eaSmrg    # first if we set CC to just the basename; use the full file name.
2841a0d3b6eaSmrg    shift
2842a0d3b6eaSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2843a0d3b6eaSmrg  fi
2844a0d3b6eaSmrgfi
2845a0d3b6eaSmrgfi
2846a0d3b6eaSmrgfi
2847a0d3b6eaSmrgCC=$ac_cv_prog_CC
2848a0d3b6eaSmrgif test -n "$CC"; then
2849f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
285062df5ad0Smrg$as_echo "$CC" >&6; }
2851a0d3b6eaSmrgelse
2852f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
285362df5ad0Smrg$as_echo "no" >&6; }
2854a0d3b6eaSmrgfi
2855a0d3b6eaSmrg
2856a0d3b6eaSmrg
2857a0d3b6eaSmrgfi
2858a0d3b6eaSmrgif test -z "$CC"; then
2859a0d3b6eaSmrg  if test -n "$ac_tool_prefix"; then
2860a0d3b6eaSmrg  for ac_prog in cl.exe
2861a0d3b6eaSmrg  do
2862a0d3b6eaSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863a0d3b6eaSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
286562df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
28664def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
286762df5ad0Smrg  $as_echo_n "(cached) " >&6
2868a0d3b6eaSmrgelse
2869a0d3b6eaSmrg  if test -n "$CC"; then
2870a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2871a0d3b6eaSmrgelse
2872a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873a0d3b6eaSmrgfor as_dir in $PATH
2874a0d3b6eaSmrgdo
2875a0d3b6eaSmrg  IFS=$as_save_IFS
2876a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2877f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2878a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879a0d3b6eaSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2880f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881a0d3b6eaSmrg    break 2
2882a0d3b6eaSmrg  fi
2883a0d3b6eaSmrgdone
2884f8a31ee4Smrg  done
2885a0d3b6eaSmrgIFS=$as_save_IFS
2886a0d3b6eaSmrg
2887a0d3b6eaSmrgfi
2888a0d3b6eaSmrgfi
2889a0d3b6eaSmrgCC=$ac_cv_prog_CC
2890a0d3b6eaSmrgif test -n "$CC"; then
2891f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
289262df5ad0Smrg$as_echo "$CC" >&6; }
2893a0d3b6eaSmrgelse
2894f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
289562df5ad0Smrg$as_echo "no" >&6; }
2896a0d3b6eaSmrgfi
2897a0d3b6eaSmrg
2898a0d3b6eaSmrg
2899a0d3b6eaSmrg    test -n "$CC" && break
2900a0d3b6eaSmrg  done
2901a0d3b6eaSmrgfi
2902a0d3b6eaSmrgif test -z "$CC"; then
2903a0d3b6eaSmrg  ac_ct_CC=$CC
2904a0d3b6eaSmrg  for ac_prog in cl.exe
2905a0d3b6eaSmrgdo
2906a0d3b6eaSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2907a0d3b6eaSmrgset dummy $ac_prog; ac_word=$2
2908f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
290962df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
29104def10e6Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
291162df5ad0Smrg  $as_echo_n "(cached) " >&6
2912a0d3b6eaSmrgelse
2913a0d3b6eaSmrg  if test -n "$ac_ct_CC"; then
2914a0d3b6eaSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915a0d3b6eaSmrgelse
2916a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917a0d3b6eaSmrgfor as_dir in $PATH
2918a0d3b6eaSmrgdo
2919a0d3b6eaSmrg  IFS=$as_save_IFS
2920a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2921f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2922a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923a0d3b6eaSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2924f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925a0d3b6eaSmrg    break 2
2926a0d3b6eaSmrg  fi
2927a0d3b6eaSmrgdone
2928f8a31ee4Smrg  done
2929a0d3b6eaSmrgIFS=$as_save_IFS
2930a0d3b6eaSmrg
2931a0d3b6eaSmrgfi
2932a0d3b6eaSmrgfi
2933a0d3b6eaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2934a0d3b6eaSmrgif test -n "$ac_ct_CC"; then
2935f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
293662df5ad0Smrg$as_echo "$ac_ct_CC" >&6; }
2937a0d3b6eaSmrgelse
2938f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
293962df5ad0Smrg$as_echo "no" >&6; }
2940a0d3b6eaSmrgfi
2941a0d3b6eaSmrg
2942a0d3b6eaSmrg
2943a0d3b6eaSmrg  test -n "$ac_ct_CC" && break
2944a0d3b6eaSmrgdone
2945a0d3b6eaSmrg
2946a0d3b6eaSmrg  if test "x$ac_ct_CC" = x; then
2947a0d3b6eaSmrg    CC=""
2948a0d3b6eaSmrg  else
2949a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
2950a0d3b6eaSmrgyes:)
2951f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
295262df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953a0d3b6eaSmrgac_tool_warned=yes ;;
2954a0d3b6eaSmrgesac
2955a0d3b6eaSmrg    CC=$ac_ct_CC
2956a0d3b6eaSmrg  fi
2957a0d3b6eaSmrgfi
2958a0d3b6eaSmrg
2959a0d3b6eaSmrgfi
2960a0d3b6eaSmrg
2961a0d3b6eaSmrg
2962f8a31ee4Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
296362df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29644def10e6Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
29654def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
2966a0d3b6eaSmrg
2967a0d3b6eaSmrg# Provide some information about the compiler.
2968f8a31ee4Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
296962df5ad0Smrgset X $ac_compile
297062df5ad0Smrgac_compiler=$2
2971f8a31ee4Smrgfor ac_option in --version -v -V -qversion; do
2972f8a31ee4Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2973a0d3b6eaSmrgcase "(($ac_try" in
2974a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
2976a0d3b6eaSmrgesac
2977f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
2979f8a31ee4Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980a0d3b6eaSmrg  ac_status=$?
2981f8a31ee4Smrg  if test -s conftest.err; then
2982f8a31ee4Smrg    sed '10a\
2983f8a31ee4Smrg... rest of stderr output deleted ...
2984f8a31ee4Smrg         10q' conftest.err >conftest.er1
2985f8a31ee4Smrg    cat conftest.er1 >&5
2986f8a31ee4Smrg  fi
2987f8a31ee4Smrg  rm -f conftest.er1 conftest.err
2988f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989f8a31ee4Smrg  test $ac_status = 0; }
2990f8a31ee4Smrgdone
2991a0d3b6eaSmrg
2992f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993a0d3b6eaSmrg/* end confdefs.h.  */
2994a0d3b6eaSmrg
2995a0d3b6eaSmrgint
2996a0d3b6eaSmrgmain ()
2997a0d3b6eaSmrg{
2998a0d3b6eaSmrg
2999a0d3b6eaSmrg  ;
3000a0d3b6eaSmrg  return 0;
3001a0d3b6eaSmrg}
3002a0d3b6eaSmrg_ACEOF
3003a0d3b6eaSmrgac_clean_files_save=$ac_clean_files
300462df5ad0Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3005a0d3b6eaSmrg# Try to create an executable without -o first, disregard a.out.
3006a0d3b6eaSmrg# It will help us diagnose broken compilers, and finding out an intuition
3007a0d3b6eaSmrg# of exeext.
3008f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3009f8a31ee4Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
301062df5ad0Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
301162df5ad0Smrg
301262df5ad0Smrg# The possible output files:
301362df5ad0Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
301462df5ad0Smrg
3015a0d3b6eaSmrgac_rmfiles=
3016a0d3b6eaSmrgfor ac_file in $ac_files
3017a0d3b6eaSmrgdo
3018a0d3b6eaSmrg  case $ac_file in
301962df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020a0d3b6eaSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3021a0d3b6eaSmrg  esac
3022a0d3b6eaSmrgdone
3023a0d3b6eaSmrgrm -f $ac_rmfiles
3024a0d3b6eaSmrg
3025f8a31ee4Smrgif { { ac_try="$ac_link_default"
3026a0d3b6eaSmrgcase "(($ac_try" in
3027a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3029a0d3b6eaSmrgesac
3030f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3032a0d3b6eaSmrg  (eval "$ac_link_default") 2>&5
3033a0d3b6eaSmrg  ac_status=$?
3034f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035f8a31ee4Smrg  test $ac_status = 0; }; then :
3036a0d3b6eaSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3037a0d3b6eaSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3038a0d3b6eaSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3039a0d3b6eaSmrg# so that the user can short-circuit this test for compilers unknown to
3040a0d3b6eaSmrg# Autoconf.
3041a0d3b6eaSmrgfor ac_file in $ac_files ''
3042a0d3b6eaSmrgdo
3043a0d3b6eaSmrg  test -f "$ac_file" || continue
3044a0d3b6eaSmrg  case $ac_file in
304562df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3046a0d3b6eaSmrg	;;
3047a0d3b6eaSmrg    [ab].out )
3048a0d3b6eaSmrg	# We found the default executable, but exeext='' is most
3049a0d3b6eaSmrg	# certainly right.
3050a0d3b6eaSmrg	break;;
3051a0d3b6eaSmrg    *.* )
3052f8a31ee4Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053a0d3b6eaSmrg	then :; else
3054a0d3b6eaSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055a0d3b6eaSmrg	fi
3056a0d3b6eaSmrg	# We set ac_cv_exeext here because the later test for it is not
3057a0d3b6eaSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3058a0d3b6eaSmrg	# argument, so we may need to know it at that point already.
3059a0d3b6eaSmrg	# Even if this section looks crufty: it has the advantage of
3060a0d3b6eaSmrg	# actually working.
3061a0d3b6eaSmrg	break;;
3062a0d3b6eaSmrg    * )
3063a0d3b6eaSmrg	break;;
3064a0d3b6eaSmrg  esac
3065a0d3b6eaSmrgdone
3066a0d3b6eaSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3067a0d3b6eaSmrg
3068a0d3b6eaSmrgelse
3069a0d3b6eaSmrg  ac_file=''
3070a0d3b6eaSmrgfi
3071f8a31ee4Smrgif test -z "$ac_file"; then :
3072f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073f8a31ee4Smrg$as_echo "no" >&6; }
3074f8a31ee4Smrg$as_echo "$as_me: failed program was:" >&5
3075a0d3b6eaSmrgsed 's/^/| /' conftest.$ac_ext >&5
3076a0d3b6eaSmrg
3077f8a31ee4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
307862df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30794def10e6Smrgas_fn_error 77 "C compiler cannot create executables
30804def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3081f8a31ee4Smrgelse
3082f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3083f8a31ee4Smrg$as_echo "yes" >&6; }
3084a0d3b6eaSmrgfi
3085f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3086f8a31ee4Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3087f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3088f8a31ee4Smrg$as_echo "$ac_file" >&6; }
3089a0d3b6eaSmrgac_exeext=$ac_cv_exeext
3090a0d3b6eaSmrg
309162df5ad0Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3092a0d3b6eaSmrgac_clean_files=$ac_clean_files_save
3093f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
309462df5ad0Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3095f8a31ee4Smrgif { { ac_try="$ac_link"
3096a0d3b6eaSmrgcase "(($ac_try" in
3097a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3099a0d3b6eaSmrgesac
3100f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3102a0d3b6eaSmrg  (eval "$ac_link") 2>&5
3103a0d3b6eaSmrg  ac_status=$?
3104f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105f8a31ee4Smrg  test $ac_status = 0; }; then :
3106a0d3b6eaSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107a0d3b6eaSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3108a0d3b6eaSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3109a0d3b6eaSmrg# `rm'.
3110a0d3b6eaSmrgfor ac_file in conftest.exe conftest conftest.*; do
3111a0d3b6eaSmrg  test -f "$ac_file" || continue
3112a0d3b6eaSmrg  case $ac_file in
311362df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114a0d3b6eaSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115a0d3b6eaSmrg	  break;;
3116a0d3b6eaSmrg    * ) break;;
3117a0d3b6eaSmrg  esac
3118a0d3b6eaSmrgdone
3119a0d3b6eaSmrgelse
3120f8a31ee4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
312162df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31224def10e6Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
31234def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3124a0d3b6eaSmrgfi
3125f8a31ee4Smrgrm -f conftest conftest$ac_cv_exeext
3126f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
312762df5ad0Smrg$as_echo "$ac_cv_exeext" >&6; }
3128a0d3b6eaSmrg
3129a0d3b6eaSmrgrm -f conftest.$ac_ext
3130a0d3b6eaSmrgEXEEXT=$ac_cv_exeext
3131a0d3b6eaSmrgac_exeext=$EXEEXT
3132f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133f8a31ee4Smrg/* end confdefs.h.  */
3134f8a31ee4Smrg#include <stdio.h>
3135f8a31ee4Smrgint
3136f8a31ee4Smrgmain ()
3137f8a31ee4Smrg{
3138f8a31ee4SmrgFILE *f = fopen ("conftest.out", "w");
3139f8a31ee4Smrg return ferror (f) || fclose (f) != 0;
3140f8a31ee4Smrg
3141f8a31ee4Smrg  ;
3142f8a31ee4Smrg  return 0;
3143f8a31ee4Smrg}
3144f8a31ee4Smrg_ACEOF
3145f8a31ee4Smrgac_clean_files="$ac_clean_files conftest.out"
3146f8a31ee4Smrg# Check that the compiler produces executables we can run.  If not, either
3147f8a31ee4Smrg# the compiler is broken, or we cross compile.
3148f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3149f8a31ee4Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3150f8a31ee4Smrgif test "$cross_compiling" != yes; then
3151f8a31ee4Smrg  { { ac_try="$ac_link"
3152f8a31ee4Smrgcase "(($ac_try" in
3153f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
3155f8a31ee4Smrgesac
3156f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3158f8a31ee4Smrg  (eval "$ac_link") 2>&5
3159f8a31ee4Smrg  ac_status=$?
3160f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161f8a31ee4Smrg  test $ac_status = 0; }
3162f8a31ee4Smrg  if { ac_try='./conftest$ac_cv_exeext'
3163f8a31ee4Smrg  { { case "(($ac_try" in
3164f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
3166f8a31ee4Smrgesac
3167f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3169f8a31ee4Smrg  (eval "$ac_try") 2>&5
3170f8a31ee4Smrg  ac_status=$?
3171f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172f8a31ee4Smrg  test $ac_status = 0; }; }; then
3173f8a31ee4Smrg    cross_compiling=no
3174f8a31ee4Smrg  else
3175f8a31ee4Smrg    if test "$cross_compiling" = maybe; then
3176f8a31ee4Smrg	cross_compiling=yes
3177f8a31ee4Smrg    else
3178f8a31ee4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179f8a31ee4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31804def10e6Smrgas_fn_error $? "cannot run C compiled programs.
3181f8a31ee4SmrgIf you meant to cross compile, use \`--host'.
31824def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3183f8a31ee4Smrg    fi
3184f8a31ee4Smrg  fi
3185f8a31ee4Smrgfi
3186f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3187f8a31ee4Smrg$as_echo "$cross_compiling" >&6; }
3188f8a31ee4Smrg
3189f8a31ee4Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3190f8a31ee4Smrgac_clean_files=$ac_clean_files_save
3191f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
319262df5ad0Smrg$as_echo_n "checking for suffix of object files... " >&6; }
31934def10e6Smrgif ${ac_cv_objext+:} false; then :
319462df5ad0Smrg  $as_echo_n "(cached) " >&6
3195a0d3b6eaSmrgelse
3196f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197a0d3b6eaSmrg/* end confdefs.h.  */
3198a0d3b6eaSmrg
3199a0d3b6eaSmrgint
3200a0d3b6eaSmrgmain ()
3201a0d3b6eaSmrg{
3202a0d3b6eaSmrg
3203a0d3b6eaSmrg  ;
3204a0d3b6eaSmrg  return 0;
3205a0d3b6eaSmrg}
3206a0d3b6eaSmrg_ACEOF
3207a0d3b6eaSmrgrm -f conftest.o conftest.obj
3208f8a31ee4Smrgif { { ac_try="$ac_compile"
3209a0d3b6eaSmrgcase "(($ac_try" in
3210a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3212a0d3b6eaSmrgesac
3213f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3215a0d3b6eaSmrg  (eval "$ac_compile") 2>&5
3216a0d3b6eaSmrg  ac_status=$?
3217f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218f8a31ee4Smrg  test $ac_status = 0; }; then :
3219a0d3b6eaSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3220a0d3b6eaSmrg  test -f "$ac_file" || continue;
3221a0d3b6eaSmrg  case $ac_file in
322262df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3223a0d3b6eaSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3224a0d3b6eaSmrg       break;;
3225a0d3b6eaSmrg  esac
3226a0d3b6eaSmrgdone
3227a0d3b6eaSmrgelse
322862df5ad0Smrg  $as_echo "$as_me: failed program was:" >&5
3229a0d3b6eaSmrgsed 's/^/| /' conftest.$ac_ext >&5
3230a0d3b6eaSmrg
3231f8a31ee4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
323262df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32334def10e6Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
32344def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3235a0d3b6eaSmrgfi
3236a0d3b6eaSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3237a0d3b6eaSmrgfi
3238f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
323962df5ad0Smrg$as_echo "$ac_cv_objext" >&6; }
3240a0d3b6eaSmrgOBJEXT=$ac_cv_objext
3241a0d3b6eaSmrgac_objext=$OBJEXT
3242f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
324362df5ad0Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
32444def10e6Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
324562df5ad0Smrg  $as_echo_n "(cached) " >&6
3246a0d3b6eaSmrgelse
3247f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248a0d3b6eaSmrg/* end confdefs.h.  */
3249a0d3b6eaSmrg
3250a0d3b6eaSmrgint
3251a0d3b6eaSmrgmain ()
3252a0d3b6eaSmrg{
3253a0d3b6eaSmrg#ifndef __GNUC__
3254a0d3b6eaSmrg       choke me
3255a0d3b6eaSmrg#endif
3256a0d3b6eaSmrg
3257a0d3b6eaSmrg  ;
3258a0d3b6eaSmrg  return 0;
3259a0d3b6eaSmrg}
3260a0d3b6eaSmrg_ACEOF
3261f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3262a0d3b6eaSmrg  ac_compiler_gnu=yes
3263a0d3b6eaSmrgelse
3264f8a31ee4Smrg  ac_compiler_gnu=no
3265a0d3b6eaSmrgfi
3266a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267a0d3b6eaSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3268a0d3b6eaSmrg
3269a0d3b6eaSmrgfi
3270f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
327162df5ad0Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
327262df5ad0Smrgif test $ac_compiler_gnu = yes; then
327362df5ad0Smrg  GCC=yes
327462df5ad0Smrgelse
327562df5ad0Smrg  GCC=
327662df5ad0Smrgfi
3277a0d3b6eaSmrgac_test_CFLAGS=${CFLAGS+set}
3278a0d3b6eaSmrgac_save_CFLAGS=$CFLAGS
3279f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
328062df5ad0Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
32814def10e6Smrgif ${ac_cv_prog_cc_g+:} false; then :
328262df5ad0Smrg  $as_echo_n "(cached) " >&6
3283a0d3b6eaSmrgelse
3284a0d3b6eaSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3285a0d3b6eaSmrg   ac_c_werror_flag=yes
3286a0d3b6eaSmrg   ac_cv_prog_cc_g=no
3287a0d3b6eaSmrg   CFLAGS="-g"
3288f8a31ee4Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289a0d3b6eaSmrg/* end confdefs.h.  */
3290a0d3b6eaSmrg
3291a0d3b6eaSmrgint
3292a0d3b6eaSmrgmain ()
3293a0d3b6eaSmrg{
3294a0d3b6eaSmrg
3295a0d3b6eaSmrg  ;
3296a0d3b6eaSmrg  return 0;
3297a0d3b6eaSmrg}
3298a0d3b6eaSmrg_ACEOF
3299f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3300a0d3b6eaSmrg  ac_cv_prog_cc_g=yes
3301a0d3b6eaSmrgelse
3302f8a31ee4Smrg  CFLAGS=""
3303f8a31ee4Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304a0d3b6eaSmrg/* end confdefs.h.  */
3305a0d3b6eaSmrg
3306a0d3b6eaSmrgint
3307a0d3b6eaSmrgmain ()
3308a0d3b6eaSmrg{
3309a0d3b6eaSmrg
3310a0d3b6eaSmrg  ;
3311a0d3b6eaSmrg  return 0;
3312a0d3b6eaSmrg}
3313a0d3b6eaSmrg_ACEOF
3314f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3315a0d3b6eaSmrg
3316f8a31ee4Smrgelse
3317f8a31ee4Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3318a0d3b6eaSmrg	 CFLAGS="-g"
3319f8a31ee4Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320a0d3b6eaSmrg/* end confdefs.h.  */
3321a0d3b6eaSmrg
3322a0d3b6eaSmrgint
3323a0d3b6eaSmrgmain ()
3324a0d3b6eaSmrg{
3325a0d3b6eaSmrg
3326a0d3b6eaSmrg  ;
3327a0d3b6eaSmrg  return 0;
3328a0d3b6eaSmrg}
3329a0d3b6eaSmrg_ACEOF
3330f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3331a0d3b6eaSmrg  ac_cv_prog_cc_g=yes
3332a0d3b6eaSmrgfi
3333a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334a0d3b6eaSmrgfi
3335a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336a0d3b6eaSmrgfi
3337a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338a0d3b6eaSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3339a0d3b6eaSmrgfi
3340f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
334162df5ad0Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3342a0d3b6eaSmrgif test "$ac_test_CFLAGS" = set; then
3343a0d3b6eaSmrg  CFLAGS=$ac_save_CFLAGS
3344a0d3b6eaSmrgelif test $ac_cv_prog_cc_g = yes; then
3345a0d3b6eaSmrg  if test "$GCC" = yes; then
3346a0d3b6eaSmrg    CFLAGS="-g -O2"
3347a0d3b6eaSmrg  else
3348a0d3b6eaSmrg    CFLAGS="-g"
3349a0d3b6eaSmrg  fi
3350a0d3b6eaSmrgelse
3351a0d3b6eaSmrg  if test "$GCC" = yes; then
3352a0d3b6eaSmrg    CFLAGS="-O2"
3353a0d3b6eaSmrg  else
3354a0d3b6eaSmrg    CFLAGS=
3355a0d3b6eaSmrg  fi
3356a0d3b6eaSmrgfi
3357f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
335862df5ad0Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
33594def10e6Smrgif ${ac_cv_prog_cc_c89+:} false; then :
336062df5ad0Smrg  $as_echo_n "(cached) " >&6
3361a0d3b6eaSmrgelse
3362a0d3b6eaSmrg  ac_cv_prog_cc_c89=no
3363a0d3b6eaSmrgac_save_CC=$CC
3364f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365a0d3b6eaSmrg/* end confdefs.h.  */
3366a0d3b6eaSmrg#include <stdarg.h>
3367a0d3b6eaSmrg#include <stdio.h>
3368a0d3b6eaSmrg#include <sys/types.h>
3369a0d3b6eaSmrg#include <sys/stat.h>
3370a0d3b6eaSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3371a0d3b6eaSmrgstruct buf { int x; };
3372a0d3b6eaSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3373a0d3b6eaSmrgstatic char *e (p, i)
3374a0d3b6eaSmrg     char **p;
3375a0d3b6eaSmrg     int i;
3376a0d3b6eaSmrg{
3377a0d3b6eaSmrg  return p[i];
3378a0d3b6eaSmrg}
3379a0d3b6eaSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3380a0d3b6eaSmrg{
3381a0d3b6eaSmrg  char *s;
3382a0d3b6eaSmrg  va_list v;
3383a0d3b6eaSmrg  va_start (v,p);
3384a0d3b6eaSmrg  s = g (p, va_arg (v,int));
3385a0d3b6eaSmrg  va_end (v);
3386a0d3b6eaSmrg  return s;
3387a0d3b6eaSmrg}
3388a0d3b6eaSmrg
3389a0d3b6eaSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3390a0d3b6eaSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3391a0d3b6eaSmrg   These don't provoke an error unfortunately, instead are silently treated
3392a0d3b6eaSmrg   as 'x'.  The following induces an error, until -std is added to get
3393a0d3b6eaSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3394a0d3b6eaSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3395a0d3b6eaSmrg   that's true only with -std.  */
3396a0d3b6eaSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397a0d3b6eaSmrg
3398a0d3b6eaSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399a0d3b6eaSmrg   inside strings and character constants.  */
3400a0d3b6eaSmrg#define FOO(x) 'x'
3401a0d3b6eaSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402a0d3b6eaSmrg
3403a0d3b6eaSmrgint test (int i, double x);
3404a0d3b6eaSmrgstruct s1 {int (*f) (int a);};
3405a0d3b6eaSmrgstruct s2 {int (*f) (double a);};
3406a0d3b6eaSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407a0d3b6eaSmrgint argc;
3408a0d3b6eaSmrgchar **argv;
3409a0d3b6eaSmrgint
3410a0d3b6eaSmrgmain ()
3411a0d3b6eaSmrg{
3412a0d3b6eaSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3413a0d3b6eaSmrg  ;
3414a0d3b6eaSmrg  return 0;
3415a0d3b6eaSmrg}
3416a0d3b6eaSmrg_ACEOF
3417a0d3b6eaSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418a0d3b6eaSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419a0d3b6eaSmrgdo
3420a0d3b6eaSmrg  CC="$ac_save_CC $ac_arg"
3421f8a31ee4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3422a0d3b6eaSmrg  ac_cv_prog_cc_c89=$ac_arg
3423a0d3b6eaSmrgfi
3424a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext
3425a0d3b6eaSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3426a0d3b6eaSmrgdone
3427a0d3b6eaSmrgrm -f conftest.$ac_ext
3428a0d3b6eaSmrgCC=$ac_save_CC
3429a0d3b6eaSmrg
3430a0d3b6eaSmrgfi
3431a0d3b6eaSmrg# AC_CACHE_VAL
3432a0d3b6eaSmrgcase "x$ac_cv_prog_cc_c89" in
3433a0d3b6eaSmrg  x)
3434f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
343562df5ad0Smrg$as_echo "none needed" >&6; } ;;
3436a0d3b6eaSmrg  xno)
3437f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
343862df5ad0Smrg$as_echo "unsupported" >&6; } ;;
3439a0d3b6eaSmrg  *)
3440a0d3b6eaSmrg    CC="$CC $ac_cv_prog_cc_c89"
3441f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
344262df5ad0Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443a0d3b6eaSmrgesac
3444f8a31ee4Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3445a0d3b6eaSmrg
3446f8a31ee4Smrgfi
3447a0d3b6eaSmrg
3448a0d3b6eaSmrgac_ext=c
3449a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
3450a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3453a0d3b6eaSmrg
3454a0d3b6eaSmrgdepcc="$CC"   am_compiler_list=
3455a0d3b6eaSmrg
3456f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
345762df5ad0Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34584def10e6Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
345962df5ad0Smrg  $as_echo_n "(cached) " >&6
3460a0d3b6eaSmrgelse
3461a0d3b6eaSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3462a0d3b6eaSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3463a0d3b6eaSmrg  # making bogus files that we don't know about and never remove.  For
3464a0d3b6eaSmrg  # instance it was reported that on HP-UX the gcc test will end up
3465a0d3b6eaSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3466a0d3b6eaSmrg  # in D'.
3467a0d3b6eaSmrg  mkdir conftest.dir
3468a0d3b6eaSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3469a0d3b6eaSmrg  # using a relative directory.
3470a0d3b6eaSmrg  cp "$am_depcomp" conftest.dir
3471a0d3b6eaSmrg  cd conftest.dir
3472a0d3b6eaSmrg  # We will build objects and dependencies in a subdirectory because
3473a0d3b6eaSmrg  # it helps to detect inapplicable dependency modes.  For instance
3474a0d3b6eaSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3475a0d3b6eaSmrg  # side effect of compilation, but ICC will put the dependencies in
3476a0d3b6eaSmrg  # the current directory while Tru64 will put them in the object
3477a0d3b6eaSmrg  # directory.
3478a0d3b6eaSmrg  mkdir sub
3479a0d3b6eaSmrg
3480a0d3b6eaSmrg  am_cv_CC_dependencies_compiler_type=none
3481a0d3b6eaSmrg  if test "$am_compiler_list" = ""; then
3482a0d3b6eaSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3483a0d3b6eaSmrg  fi
3484f8a31ee4Smrg  am__universal=false
3485f8a31ee4Smrg  case " $depcc " in #(
3486f8a31ee4Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3487f8a31ee4Smrg     esac
3488f8a31ee4Smrg
3489a0d3b6eaSmrg  for depmode in $am_compiler_list; do
3490a0d3b6eaSmrg    # Setup a source with many dependencies, because some compilers
3491a0d3b6eaSmrg    # like to wrap large dependency lists on column 80 (with \), and
3492a0d3b6eaSmrg    # we should not choose a depcomp mode which is confused by this.
3493a0d3b6eaSmrg    #
3494a0d3b6eaSmrg    # We need to recreate these files for each test, as the compiler may
3495a0d3b6eaSmrg    # overwrite some of them when testing with obscure command lines.
3496a0d3b6eaSmrg    # This happens at least with the AIX C compiler.
3497a0d3b6eaSmrg    : > sub/conftest.c
3498a0d3b6eaSmrg    for i in 1 2 3 4 5 6; do
3499a0d3b6eaSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3500a0d3b6eaSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3501a0d3b6eaSmrg      # Solaris 8's {/usr,}/bin/sh.
3502a0d3b6eaSmrg      touch sub/conftst$i.h
3503a0d3b6eaSmrg    done
3504a0d3b6eaSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3505a0d3b6eaSmrg
3506f8a31ee4Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3507f8a31ee4Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3508f8a31ee4Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3509f8a31ee4Smrg    # versions had trouble with output in subdirs
3510f8a31ee4Smrg    am__obj=sub/conftest.${OBJEXT-o}
3511f8a31ee4Smrg    am__minus_obj="-o $am__obj"
3512a0d3b6eaSmrg    case $depmode in
3513f8a31ee4Smrg    gcc)
3514f8a31ee4Smrg      # This depmode causes a compiler race in universal mode.
3515f8a31ee4Smrg      test "$am__universal" = false || continue
3516f8a31ee4Smrg      ;;
3517a0d3b6eaSmrg    nosideeffect)
3518a0d3b6eaSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3519a0d3b6eaSmrg      # only be used when explicitly requested
3520a0d3b6eaSmrg      if test "x$enable_dependency_tracking" = xyes; then
3521a0d3b6eaSmrg	continue
3522a0d3b6eaSmrg      else
3523a0d3b6eaSmrg	break
3524a0d3b6eaSmrg      fi
3525a0d3b6eaSmrg      ;;
3526f8a31ee4Smrg    msvisualcpp | msvcmsys)
3527f8a31ee4Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3528f8a31ee4Smrg      # not run yet.  These depmodes are late enough in the game, and
3529f8a31ee4Smrg      # so weak that their functioning should not be impacted.
3530f8a31ee4Smrg      am__obj=conftest.${OBJEXT-o}
3531f8a31ee4Smrg      am__minus_obj=
3532f8a31ee4Smrg      ;;
3533a0d3b6eaSmrg    none) break ;;
3534a0d3b6eaSmrg    esac
3535a0d3b6eaSmrg    if depmode=$depmode \
3536f8a31ee4Smrg       source=sub/conftest.c object=$am__obj \
3537a0d3b6eaSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3538f8a31ee4Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3539a0d3b6eaSmrg         >/dev/null 2>conftest.err &&
3540a0d3b6eaSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3541a0d3b6eaSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3542f8a31ee4Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3543a0d3b6eaSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3544a0d3b6eaSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3545a0d3b6eaSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3546a0d3b6eaSmrg      # that says an option was ignored or not supported.
3547a0d3b6eaSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3548a0d3b6eaSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3549a0d3b6eaSmrg      # The diagnosis changed in icc 8.0:
3550a0d3b6eaSmrg      #   icc: Command line remark: option '-MP' not supported
3551a0d3b6eaSmrg      if (grep 'ignoring option' conftest.err ||
3552a0d3b6eaSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3553a0d3b6eaSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3554a0d3b6eaSmrg        break
3555a0d3b6eaSmrg      fi
3556a0d3b6eaSmrg    fi
3557a0d3b6eaSmrg  done
3558a0d3b6eaSmrg
355962df5ad0Smrg  cd ..
356062df5ad0Smrg  rm -rf conftest.dir
356162df5ad0Smrgelse
356262df5ad0Smrg  am_cv_CC_dependencies_compiler_type=none
356362df5ad0Smrgfi
356462df5ad0Smrg
356562df5ad0Smrgfi
3566f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
356762df5ad0Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
356862df5ad0SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
356962df5ad0Smrg
357062df5ad0Smrg if
357162df5ad0Smrg  test "x$enable_dependency_tracking" != xno \
357262df5ad0Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
357362df5ad0Smrg  am__fastdepCC_TRUE=
357462df5ad0Smrg  am__fastdepCC_FALSE='#'
357562df5ad0Smrgelse
357662df5ad0Smrg  am__fastdepCC_TRUE='#'
357762df5ad0Smrg  am__fastdepCC_FALSE=
357862df5ad0Smrgfi
357962df5ad0Smrg
358062df5ad0Smrg
3581f8a31ee4Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3582f8a31ee4Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
35834def10e6Smrgif ${ac_cv_prog_cc_c99+:} false; then :
358462df5ad0Smrg  $as_echo_n "(cached) " >&6
358562df5ad0Smrgelse
3586f8a31ee4Smrg  ac_cv_prog_cc_c99=no
3587f8a31ee4Smrgac_save_CC=$CC
3588f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589f8a31ee4Smrg/* end confdefs.h.  */
3590f8a31ee4Smrg#include <stdarg.h>
3591f8a31ee4Smrg#include <stdbool.h>
3592f8a31ee4Smrg#include <stdlib.h>
3593f8a31ee4Smrg#include <wchar.h>
3594f8a31ee4Smrg#include <stdio.h>
359562df5ad0Smrg
3596f8a31ee4Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3597f8a31ee4Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3598f8a31ee4Smrg#define showlist(...) puts (#__VA_ARGS__)
3599f8a31ee4Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3600f8a31ee4Smrgstatic void
3601f8a31ee4Smrgtest_varargs_macros (void)
3602f8a31ee4Smrg{
3603f8a31ee4Smrg  int x = 1234;
3604f8a31ee4Smrg  int y = 5678;
3605f8a31ee4Smrg  debug ("Flag");
3606f8a31ee4Smrg  debug ("X = %d\n", x);
3607f8a31ee4Smrg  showlist (The first, second, and third items.);
3608f8a31ee4Smrg  report (x>y, "x is %d but y is %d", x, y);
3609f8a31ee4Smrg}
361062df5ad0Smrg
3611f8a31ee4Smrg// Check long long types.
3612f8a31ee4Smrg#define BIG64 18446744073709551615ull
3613f8a31ee4Smrg#define BIG32 4294967295ul
3614f8a31ee4Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3615f8a31ee4Smrg#if !BIG_OK
3616f8a31ee4Smrg  your preprocessor is broken;
3617f8a31ee4Smrg#endif
3618f8a31ee4Smrg#if BIG_OK
3619f8a31ee4Smrg#else
3620f8a31ee4Smrg  your preprocessor is broken;
3621f8a31ee4Smrg#endif
3622f8a31ee4Smrgstatic long long int bignum = -9223372036854775807LL;
3623f8a31ee4Smrgstatic unsigned long long int ubignum = BIG64;
362462df5ad0Smrg
3625f8a31ee4Smrgstruct incomplete_array
3626f8a31ee4Smrg{
3627f8a31ee4Smrg  int datasize;
3628f8a31ee4Smrg  double data[];
3629f8a31ee4Smrg};
3630f8a31ee4Smrg
3631f8a31ee4Smrgstruct named_init {
3632f8a31ee4Smrg  int number;
3633f8a31ee4Smrg  const wchar_t *name;
3634f8a31ee4Smrg  double average;
3635f8a31ee4Smrg};
3636f8a31ee4Smrg
3637f8a31ee4Smrgtypedef const char *ccp;
3638f8a31ee4Smrg
3639f8a31ee4Smrgstatic inline int
3640f8a31ee4Smrgtest_restrict (ccp restrict text)
3641f8a31ee4Smrg{
3642f8a31ee4Smrg  // See if C++-style comments work.
3643f8a31ee4Smrg  // Iterate through items via the restricted pointer.
3644f8a31ee4Smrg  // Also check for declarations in for loops.
3645f8a31ee4Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3646f8a31ee4Smrg    continue;
3647f8a31ee4Smrg  return 0;
3648f8a31ee4Smrg}
3649f8a31ee4Smrg
3650f8a31ee4Smrg// Check varargs and va_copy.
3651f8a31ee4Smrgstatic void
3652f8a31ee4Smrgtest_varargs (const char *format, ...)
3653f8a31ee4Smrg{
3654f8a31ee4Smrg  va_list args;
3655f8a31ee4Smrg  va_start (args, format);
3656f8a31ee4Smrg  va_list args_copy;
3657f8a31ee4Smrg  va_copy (args_copy, args);
3658f8a31ee4Smrg
3659f8a31ee4Smrg  const char *str;
3660f8a31ee4Smrg  int number;
3661f8a31ee4Smrg  float fnumber;
3662f8a31ee4Smrg
3663f8a31ee4Smrg  while (*format)
3664f8a31ee4Smrg    {
3665f8a31ee4Smrg      switch (*format++)
3666f8a31ee4Smrg	{
3667f8a31ee4Smrg	case 's': // string
3668f8a31ee4Smrg	  str = va_arg (args_copy, const char *);
3669f8a31ee4Smrg	  break;
3670f8a31ee4Smrg	case 'd': // int
3671f8a31ee4Smrg	  number = va_arg (args_copy, int);
3672f8a31ee4Smrg	  break;
3673f8a31ee4Smrg	case 'f': // float
3674f8a31ee4Smrg	  fnumber = va_arg (args_copy, double);
3675f8a31ee4Smrg	  break;
3676f8a31ee4Smrg	default:
3677f8a31ee4Smrg	  break;
3678f8a31ee4Smrg	}
3679f8a31ee4Smrg    }
3680f8a31ee4Smrg  va_end (args_copy);
3681f8a31ee4Smrg  va_end (args);
3682f8a31ee4Smrg}
3683f8a31ee4Smrg
3684f8a31ee4Smrgint
3685f8a31ee4Smrgmain ()
3686f8a31ee4Smrg{
3687f8a31ee4Smrg
3688f8a31ee4Smrg  // Check bool.
3689f8a31ee4Smrg  _Bool success = false;
3690f8a31ee4Smrg
3691f8a31ee4Smrg  // Check restrict.
3692f8a31ee4Smrg  if (test_restrict ("String literal") == 0)
3693f8a31ee4Smrg    success = true;
3694f8a31ee4Smrg  char *restrict newvar = "Another string";
3695f8a31ee4Smrg
3696f8a31ee4Smrg  // Check varargs.
3697f8a31ee4Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3698f8a31ee4Smrg  test_varargs_macros ();
3699f8a31ee4Smrg
3700f8a31ee4Smrg  // Check flexible array members.
3701f8a31ee4Smrg  struct incomplete_array *ia =
3702f8a31ee4Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3703f8a31ee4Smrg  ia->datasize = 10;
3704f8a31ee4Smrg  for (int i = 0; i < ia->datasize; ++i)
3705f8a31ee4Smrg    ia->data[i] = i * 1.234;
3706f8a31ee4Smrg
3707f8a31ee4Smrg  // Check named initializers.
3708f8a31ee4Smrg  struct named_init ni = {
3709f8a31ee4Smrg    .number = 34,
3710f8a31ee4Smrg    .name = L"Test wide string",
3711f8a31ee4Smrg    .average = 543.34343,
3712f8a31ee4Smrg  };
3713f8a31ee4Smrg
3714f8a31ee4Smrg  ni.number = 58;
3715f8a31ee4Smrg
3716f8a31ee4Smrg  int dynamic_array[ni.number];
3717f8a31ee4Smrg  dynamic_array[ni.number - 1] = 543;
3718f8a31ee4Smrg
3719f8a31ee4Smrg  // work around unused variable warnings
3720f8a31ee4Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3721f8a31ee4Smrg	  || dynamic_array[ni.number - 1] != 543);
3722f8a31ee4Smrg
3723f8a31ee4Smrg  ;
3724f8a31ee4Smrg  return 0;
3725f8a31ee4Smrg}
3726f8a31ee4Smrg_ACEOF
3727f8a31ee4Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3728f8a31ee4Smrgdo
3729f8a31ee4Smrg  CC="$ac_save_CC $ac_arg"
3730f8a31ee4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3731f8a31ee4Smrg  ac_cv_prog_cc_c99=$ac_arg
373262df5ad0Smrgfi
3733f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext
3734f8a31ee4Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3735f8a31ee4Smrgdone
3736f8a31ee4Smrgrm -f conftest.$ac_ext
3737f8a31ee4SmrgCC=$ac_save_CC
373862df5ad0Smrg
3739f8a31ee4Smrgfi
3740f8a31ee4Smrg# AC_CACHE_VAL
3741f8a31ee4Smrgcase "x$ac_cv_prog_cc_c99" in
3742f8a31ee4Smrg  x)
3743f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744f8a31ee4Smrg$as_echo "none needed" >&6; } ;;
3745f8a31ee4Smrg  xno)
3746f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747f8a31ee4Smrg$as_echo "unsupported" >&6; } ;;
3748f8a31ee4Smrg  *)
3749f8a31ee4Smrg    CC="$CC $ac_cv_prog_cc_c99"
3750f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3751f8a31ee4Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3752f8a31ee4Smrgesac
3753f8a31ee4Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
375462df5ad0Smrg
3755f8a31ee4Smrgfi
375662df5ad0Smrg
375762df5ad0Smrg
375862df5ad0Smrg
375962df5ad0Smrgac_ext=c
376062df5ad0Smrgac_cpp='$CPP $CPPFLAGS'
376162df5ad0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
376262df5ad0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
376362df5ad0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3764f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
376562df5ad0Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
376662df5ad0Smrg# On Suns, sometimes $CPP names a directory.
376762df5ad0Smrgif test -n "$CPP" && test -d "$CPP"; then
376862df5ad0Smrg  CPP=
376962df5ad0Smrgfi
377062df5ad0Smrgif test -z "$CPP"; then
37714def10e6Smrg  if ${ac_cv_prog_CPP+:} false; then :
377262df5ad0Smrg  $as_echo_n "(cached) " >&6
377362df5ad0Smrgelse
377462df5ad0Smrg      # Double quotes because CPP needs to be expanded
377562df5ad0Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
377662df5ad0Smrg    do
377762df5ad0Smrg      ac_preproc_ok=false
377862df5ad0Smrgfor ac_c_preproc_warn_flag in '' yes
377962df5ad0Smrgdo
378062df5ad0Smrg  # Use a header file that comes with gcc, so configuring glibc
378162df5ad0Smrg  # with a fresh cross-compiler works.
378262df5ad0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
378362df5ad0Smrg  # <limits.h> exists even on freestanding compilers.
378462df5ad0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
378562df5ad0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3786f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
378762df5ad0Smrg/* end confdefs.h.  */
378862df5ad0Smrg#ifdef __STDC__
378962df5ad0Smrg# include <limits.h>
379062df5ad0Smrg#else
379162df5ad0Smrg# include <assert.h>
379262df5ad0Smrg#endif
379362df5ad0Smrg		     Syntax error
379462df5ad0Smrg_ACEOF
3795f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
379662df5ad0Smrg
3797f8a31ee4Smrgelse
379862df5ad0Smrg  # Broken: fails on valid input.
379962df5ad0Smrgcontinue
380062df5ad0Smrgfi
38014def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
380262df5ad0Smrg
380362df5ad0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
380462df5ad0Smrg  # can be detected and how.
3805f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
380662df5ad0Smrg/* end confdefs.h.  */
380762df5ad0Smrg#include <ac_nonexistent.h>
380862df5ad0Smrg_ACEOF
3809f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
381062df5ad0Smrg  # Broken: success on invalid input.
381162df5ad0Smrgcontinue
381262df5ad0Smrgelse
381362df5ad0Smrg  # Passes both tests.
381462df5ad0Smrgac_preproc_ok=:
381562df5ad0Smrgbreak
381662df5ad0Smrgfi
38174def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
381862df5ad0Smrg
381962df5ad0Smrgdone
382062df5ad0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38214def10e6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3822f8a31ee4Smrgif $ac_preproc_ok; then :
382362df5ad0Smrg  break
382462df5ad0Smrgfi
382562df5ad0Smrg
382662df5ad0Smrg    done
382762df5ad0Smrg    ac_cv_prog_CPP=$CPP
382862df5ad0Smrg
382962df5ad0Smrgfi
383062df5ad0Smrg  CPP=$ac_cv_prog_CPP
383162df5ad0Smrgelse
383262df5ad0Smrg  ac_cv_prog_CPP=$CPP
383362df5ad0Smrgfi
3834f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
383562df5ad0Smrg$as_echo "$CPP" >&6; }
383662df5ad0Smrgac_preproc_ok=false
383762df5ad0Smrgfor ac_c_preproc_warn_flag in '' yes
383862df5ad0Smrgdo
383962df5ad0Smrg  # Use a header file that comes with gcc, so configuring glibc
384062df5ad0Smrg  # with a fresh cross-compiler works.
384162df5ad0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
384262df5ad0Smrg  # <limits.h> exists even on freestanding compilers.
384362df5ad0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
384462df5ad0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3845f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
384662df5ad0Smrg/* end confdefs.h.  */
384762df5ad0Smrg#ifdef __STDC__
384862df5ad0Smrg# include <limits.h>
384962df5ad0Smrg#else
385062df5ad0Smrg# include <assert.h>
385162df5ad0Smrg#endif
385262df5ad0Smrg		     Syntax error
385362df5ad0Smrg_ACEOF
3854f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
385562df5ad0Smrg
3856f8a31ee4Smrgelse
385762df5ad0Smrg  # Broken: fails on valid input.
385862df5ad0Smrgcontinue
385962df5ad0Smrgfi
38604def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
386162df5ad0Smrg
386262df5ad0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
386362df5ad0Smrg  # can be detected and how.
3864f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386562df5ad0Smrg/* end confdefs.h.  */
386662df5ad0Smrg#include <ac_nonexistent.h>
386762df5ad0Smrg_ACEOF
3868f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
386962df5ad0Smrg  # Broken: success on invalid input.
387062df5ad0Smrgcontinue
387162df5ad0Smrgelse
387262df5ad0Smrg  # Passes both tests.
387362df5ad0Smrgac_preproc_ok=:
387462df5ad0Smrgbreak
387562df5ad0Smrgfi
38764def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
387762df5ad0Smrg
387862df5ad0Smrgdone
387962df5ad0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38804def10e6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3881f8a31ee4Smrgif $ac_preproc_ok; then :
3882f8a31ee4Smrg
388362df5ad0Smrgelse
3884f8a31ee4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
388562df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38864def10e6Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
38874def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
388862df5ad0Smrgfi
388962df5ad0Smrg
389062df5ad0Smrgac_ext=c
389162df5ad0Smrgac_cpp='$CPP $CPPFLAGS'
389262df5ad0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
389362df5ad0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
389462df5ad0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
389562df5ad0Smrg
389662df5ad0Smrg
3897f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
389862df5ad0Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
38994def10e6Smrgif ${ac_cv_path_GREP+:} false; then :
390062df5ad0Smrg  $as_echo_n "(cached) " >&6
390162df5ad0Smrgelse
390262df5ad0Smrg  if test -z "$GREP"; then
390362df5ad0Smrg  ac_path_GREP_found=false
390462df5ad0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
390562df5ad0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
390662df5ad0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
390762df5ad0Smrgdo
390862df5ad0Smrg  IFS=$as_save_IFS
390962df5ad0Smrg  test -z "$as_dir" && as_dir=.
3910f8a31ee4Smrg    for ac_prog in grep ggrep; do
391162df5ad0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
391262df5ad0Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
391362df5ad0Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
391462df5ad0Smrg# Check for GNU ac_path_GREP and select it if it is found.
391562df5ad0Smrg  # Check for GNU $ac_path_GREP
391662df5ad0Smrgcase `"$ac_path_GREP" --version 2>&1` in
391762df5ad0Smrg*GNU*)
391862df5ad0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
391962df5ad0Smrg*)
392062df5ad0Smrg  ac_count=0
392162df5ad0Smrg  $as_echo_n 0123456789 >"conftest.in"
392262df5ad0Smrg  while :
392362df5ad0Smrg  do
392462df5ad0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
392562df5ad0Smrg    mv "conftest.tmp" "conftest.in"
392662df5ad0Smrg    cp "conftest.in" "conftest.nl"
392762df5ad0Smrg    $as_echo 'GREP' >> "conftest.nl"
392862df5ad0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
392962df5ad0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
393162df5ad0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
393262df5ad0Smrg      # Best one so far, save it but keep looking for a better one
393362df5ad0Smrg      ac_cv_path_GREP="$ac_path_GREP"
393462df5ad0Smrg      ac_path_GREP_max=$ac_count
393562df5ad0Smrg    fi
393662df5ad0Smrg    # 10*(2^10) chars as input seems more than enough
393762df5ad0Smrg    test $ac_count -gt 10 && break
393862df5ad0Smrg  done
393962df5ad0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
394062df5ad0Smrgesac
394162df5ad0Smrg
394262df5ad0Smrg      $ac_path_GREP_found && break 3
394362df5ad0Smrg    done
394462df5ad0Smrg  done
3945f8a31ee4Smrg  done
394662df5ad0SmrgIFS=$as_save_IFS
394762df5ad0Smrg  if test -z "$ac_cv_path_GREP"; then
39484def10e6Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
394962df5ad0Smrg  fi
395062df5ad0Smrgelse
395162df5ad0Smrg  ac_cv_path_GREP=$GREP
395262df5ad0Smrgfi
395362df5ad0Smrg
395462df5ad0Smrgfi
3955f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
395662df5ad0Smrg$as_echo "$ac_cv_path_GREP" >&6; }
395762df5ad0Smrg GREP="$ac_cv_path_GREP"
395862df5ad0Smrg
395962df5ad0Smrg
3960f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
396162df5ad0Smrg$as_echo_n "checking for egrep... " >&6; }
39624def10e6Smrgif ${ac_cv_path_EGREP+:} false; then :
396362df5ad0Smrg  $as_echo_n "(cached) " >&6
396462df5ad0Smrgelse
396562df5ad0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
396662df5ad0Smrg   then ac_cv_path_EGREP="$GREP -E"
396762df5ad0Smrg   else
396862df5ad0Smrg     if test -z "$EGREP"; then
396962df5ad0Smrg  ac_path_EGREP_found=false
397062df5ad0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
397162df5ad0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
397262df5ad0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
397362df5ad0Smrgdo
397462df5ad0Smrg  IFS=$as_save_IFS
397562df5ad0Smrg  test -z "$as_dir" && as_dir=.
3976f8a31ee4Smrg    for ac_prog in egrep; do
397762df5ad0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
397862df5ad0Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
397962df5ad0Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
398062df5ad0Smrg# Check for GNU ac_path_EGREP and select it if it is found.
398162df5ad0Smrg  # Check for GNU $ac_path_EGREP
398262df5ad0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
398362df5ad0Smrg*GNU*)
398462df5ad0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
398562df5ad0Smrg*)
398662df5ad0Smrg  ac_count=0
398762df5ad0Smrg  $as_echo_n 0123456789 >"conftest.in"
398862df5ad0Smrg  while :
398962df5ad0Smrg  do
399062df5ad0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
399162df5ad0Smrg    mv "conftest.tmp" "conftest.in"
399262df5ad0Smrg    cp "conftest.in" "conftest.nl"
399362df5ad0Smrg    $as_echo 'EGREP' >> "conftest.nl"
399462df5ad0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
399562df5ad0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
399762df5ad0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
399862df5ad0Smrg      # Best one so far, save it but keep looking for a better one
399962df5ad0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
400062df5ad0Smrg      ac_path_EGREP_max=$ac_count
400162df5ad0Smrg    fi
400262df5ad0Smrg    # 10*(2^10) chars as input seems more than enough
400362df5ad0Smrg    test $ac_count -gt 10 && break
400462df5ad0Smrg  done
400562df5ad0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
400662df5ad0Smrgesac
400762df5ad0Smrg
400862df5ad0Smrg      $ac_path_EGREP_found && break 3
400962df5ad0Smrg    done
401062df5ad0Smrg  done
4011f8a31ee4Smrg  done
401262df5ad0SmrgIFS=$as_save_IFS
401362df5ad0Smrg  if test -z "$ac_cv_path_EGREP"; then
40144def10e6Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
401562df5ad0Smrg  fi
401662df5ad0Smrgelse
401762df5ad0Smrg  ac_cv_path_EGREP=$EGREP
401862df5ad0Smrgfi
401962df5ad0Smrg
402062df5ad0Smrg   fi
402162df5ad0Smrgfi
4022f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
402362df5ad0Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
402462df5ad0Smrg EGREP="$ac_cv_path_EGREP"
402562df5ad0Smrg
402662df5ad0Smrg
4027f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
402862df5ad0Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
40294def10e6Smrgif ${ac_cv_header_stdc+:} false; then :
403062df5ad0Smrg  $as_echo_n "(cached) " >&6
403162df5ad0Smrgelse
4032f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
403362df5ad0Smrg/* end confdefs.h.  */
403462df5ad0Smrg#include <stdlib.h>
403562df5ad0Smrg#include <stdarg.h>
403662df5ad0Smrg#include <string.h>
403762df5ad0Smrg#include <float.h>
403862df5ad0Smrg
403962df5ad0Smrgint
404062df5ad0Smrgmain ()
404162df5ad0Smrg{
404262df5ad0Smrg
404362df5ad0Smrg  ;
404462df5ad0Smrg  return 0;
404562df5ad0Smrg}
404662df5ad0Smrg_ACEOF
4047f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
404862df5ad0Smrg  ac_cv_header_stdc=yes
404962df5ad0Smrgelse
4050f8a31ee4Smrg  ac_cv_header_stdc=no
405162df5ad0Smrgfi
405262df5ad0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
405362df5ad0Smrg
405462df5ad0Smrgif test $ac_cv_header_stdc = yes; then
405562df5ad0Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405762df5ad0Smrg/* end confdefs.h.  */
405862df5ad0Smrg#include <string.h>
405962df5ad0Smrg
406062df5ad0Smrg_ACEOF
406162df5ad0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062f8a31ee4Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4063f8a31ee4Smrg
406462df5ad0Smrgelse
406562df5ad0Smrg  ac_cv_header_stdc=no
406662df5ad0Smrgfi
406762df5ad0Smrgrm -f conftest*
406862df5ad0Smrg
406962df5ad0Smrgfi
407062df5ad0Smrg
407162df5ad0Smrgif test $ac_cv_header_stdc = yes; then
407262df5ad0Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4073f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
407462df5ad0Smrg/* end confdefs.h.  */
407562df5ad0Smrg#include <stdlib.h>
407662df5ad0Smrg
407762df5ad0Smrg_ACEOF
407862df5ad0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4079f8a31ee4Smrg  $EGREP "free" >/dev/null 2>&1; then :
4080f8a31ee4Smrg
408162df5ad0Smrgelse
408262df5ad0Smrg  ac_cv_header_stdc=no
408362df5ad0Smrgfi
408462df5ad0Smrgrm -f conftest*
408562df5ad0Smrg
408662df5ad0Smrgfi
408762df5ad0Smrg
408862df5ad0Smrgif test $ac_cv_header_stdc = yes; then
408962df5ad0Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4090f8a31ee4Smrg  if test "$cross_compiling" = yes; then :
409162df5ad0Smrg  :
409262df5ad0Smrgelse
4093f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
409462df5ad0Smrg/* end confdefs.h.  */
409562df5ad0Smrg#include <ctype.h>
409662df5ad0Smrg#include <stdlib.h>
409762df5ad0Smrg#if ((' ' & 0x0FF) == 0x020)
409862df5ad0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
409962df5ad0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
410062df5ad0Smrg#else
410162df5ad0Smrg# define ISLOWER(c) \
410262df5ad0Smrg		   (('a' <= (c) && (c) <= 'i') \
410362df5ad0Smrg		     || ('j' <= (c) && (c) <= 'r') \
410462df5ad0Smrg		     || ('s' <= (c) && (c) <= 'z'))
410562df5ad0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
410662df5ad0Smrg#endif
410762df5ad0Smrg
410862df5ad0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
410962df5ad0Smrgint
411062df5ad0Smrgmain ()
411162df5ad0Smrg{
411262df5ad0Smrg  int i;
411362df5ad0Smrg  for (i = 0; i < 256; i++)
411462df5ad0Smrg    if (XOR (islower (i), ISLOWER (i))
411562df5ad0Smrg	|| toupper (i) != TOUPPER (i))
411662df5ad0Smrg      return 2;
411762df5ad0Smrg  return 0;
411862df5ad0Smrg}
411962df5ad0Smrg_ACEOF
4120f8a31ee4Smrgif ac_fn_c_try_run "$LINENO"; then :
412162df5ad0Smrg
4122f8a31ee4Smrgelse
4123f8a31ee4Smrg  ac_cv_header_stdc=no
412462df5ad0Smrgfi
4125f8a31ee4Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4126f8a31ee4Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
412762df5ad0Smrgfi
412862df5ad0Smrg
412962df5ad0Smrgfi
413062df5ad0Smrgfi
4131f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
413262df5ad0Smrg$as_echo "$ac_cv_header_stdc" >&6; }
413362df5ad0Smrgif test $ac_cv_header_stdc = yes; then
413462df5ad0Smrg
4135f8a31ee4Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
413662df5ad0Smrg
413762df5ad0Smrgfi
413862df5ad0Smrg
413962df5ad0Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
414062df5ad0Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
414162df5ad0Smrg		  inttypes.h stdint.h unistd.h
4142f8a31ee4Smrgdo :
4143f8a31ee4Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144f8a31ee4Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4145f8a31ee4Smrg"
41464def10e6Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
414762df5ad0Smrg  cat >>confdefs.h <<_ACEOF
414862df5ad0Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
414962df5ad0Smrg_ACEOF
415062df5ad0Smrg
415162df5ad0Smrgfi
415262df5ad0Smrg
415362df5ad0Smrgdone
415462df5ad0Smrg
415562df5ad0Smrg
415662df5ad0Smrg
415762df5ad0Smrg
4158781f9a67Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4159781f9a67Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4160781f9a67Smrg  CLANGCC="yes"
4161781f9a67Smrgelse
4162781f9a67Smrg  CLANGCC="no"
4163781f9a67Smrgfi
4164781f9a67Smrg
4165781f9a67Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4166781f9a67Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4167781f9a67Smrg  INTELCC="yes"
4168781f9a67Smrgelse
4169781f9a67Smrg  INTELCC="no"
4170781f9a67Smrgfi
4171781f9a67Smrg
4172781f9a67Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4173781f9a67Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4174781f9a67Smrg  SUNCC="yes"
4175781f9a67Smrgelse
4176781f9a67Smrg  SUNCC="no"
4177781f9a67Smrgfi
4178781f9a67Smrg
4179781f9a67Smrg
4180781f9a67Smrg
4181781f9a67Smrg
4182a0d3b6eaSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4183a0d3b6eaSmrg	if test -n "$ac_tool_prefix"; then
4184a0d3b6eaSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4185a0d3b6eaSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4186f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
418762df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
41884def10e6Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
418962df5ad0Smrg  $as_echo_n "(cached) " >&6
4190a0d3b6eaSmrgelse
4191a0d3b6eaSmrg  case $PKG_CONFIG in
4192a0d3b6eaSmrg  [\\/]* | ?:[\\/]*)
4193a0d3b6eaSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4194a0d3b6eaSmrg  ;;
4195a0d3b6eaSmrg  *)
4196a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197a0d3b6eaSmrgfor as_dir in $PATH
4198a0d3b6eaSmrgdo
4199a0d3b6eaSmrg  IFS=$as_save_IFS
4200a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
4201f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4202a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203a0d3b6eaSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4204f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205a0d3b6eaSmrg    break 2
4206a0d3b6eaSmrg  fi
4207a0d3b6eaSmrgdone
4208f8a31ee4Smrg  done
4209a0d3b6eaSmrgIFS=$as_save_IFS
4210a0d3b6eaSmrg
4211a0d3b6eaSmrg  ;;
4212a0d3b6eaSmrgesac
4213a0d3b6eaSmrgfi
4214a0d3b6eaSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4215a0d3b6eaSmrgif test -n "$PKG_CONFIG"; then
4216f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
421762df5ad0Smrg$as_echo "$PKG_CONFIG" >&6; }
4218a0d3b6eaSmrgelse
4219f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
422062df5ad0Smrg$as_echo "no" >&6; }
4221a0d3b6eaSmrgfi
4222a0d3b6eaSmrg
4223a0d3b6eaSmrg
4224a0d3b6eaSmrgfi
4225a0d3b6eaSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4226a0d3b6eaSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4227a0d3b6eaSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4228a0d3b6eaSmrgset dummy pkg-config; ac_word=$2
4229f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
423062df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
42314def10e6Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
423262df5ad0Smrg  $as_echo_n "(cached) " >&6
4233a0d3b6eaSmrgelse
4234a0d3b6eaSmrg  case $ac_pt_PKG_CONFIG in
4235a0d3b6eaSmrg  [\\/]* | ?:[\\/]*)
4236a0d3b6eaSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4237a0d3b6eaSmrg  ;;
4238a0d3b6eaSmrg  *)
4239a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240a0d3b6eaSmrgfor as_dir in $PATH
4241a0d3b6eaSmrgdo
4242a0d3b6eaSmrg  IFS=$as_save_IFS
4243a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
4244f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4245a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246a0d3b6eaSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4247f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248a0d3b6eaSmrg    break 2
4249a0d3b6eaSmrg  fi
4250a0d3b6eaSmrgdone
4251f8a31ee4Smrg  done
4252a0d3b6eaSmrgIFS=$as_save_IFS
4253a0d3b6eaSmrg
4254a0d3b6eaSmrg  ;;
4255a0d3b6eaSmrgesac
4256a0d3b6eaSmrgfi
4257a0d3b6eaSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4258a0d3b6eaSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4259f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
426062df5ad0Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4261a0d3b6eaSmrgelse
4262f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
426362df5ad0Smrg$as_echo "no" >&6; }
4264a0d3b6eaSmrgfi
4265a0d3b6eaSmrg
4266a0d3b6eaSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4267a0d3b6eaSmrg    PKG_CONFIG=""
4268a0d3b6eaSmrg  else
4269a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
4270a0d3b6eaSmrgyes:)
4271f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
427262df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273a0d3b6eaSmrgac_tool_warned=yes ;;
4274a0d3b6eaSmrgesac
4275a0d3b6eaSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4276a0d3b6eaSmrg  fi
4277a0d3b6eaSmrgelse
4278a0d3b6eaSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4279a0d3b6eaSmrgfi
4280a0d3b6eaSmrg
4281a0d3b6eaSmrgfi
4282a0d3b6eaSmrgif test -n "$PKG_CONFIG"; then
4283a0d3b6eaSmrg	_pkg_min_version=0.9.0
4284f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
428562df5ad0Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4286a0d3b6eaSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4287f8a31ee4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
428862df5ad0Smrg$as_echo "yes" >&6; }
4289a0d3b6eaSmrg	else
4290f8a31ee4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
429162df5ad0Smrg$as_echo "no" >&6; }
4292a0d3b6eaSmrg		PKG_CONFIG=""
4293a0d3b6eaSmrg	fi
42944def10e6Smrg
4295a0d3b6eaSmrgfi
4296f8a31ee4Smrg# Make sure we can run config.sub.
4297f8a31ee4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
42984def10e6Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4299a0d3b6eaSmrg
4300f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4301f8a31ee4Smrg$as_echo_n "checking build system type... " >&6; }
43024def10e6Smrgif ${ac_cv_build+:} false; then :
4303f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4304a0d3b6eaSmrgelse
4305f8a31ee4Smrg  ac_build_alias=$build_alias
4306f8a31ee4Smrgtest "x$ac_build_alias" = x &&
4307f8a31ee4Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4308f8a31ee4Smrgtest "x$ac_build_alias" = x &&
43094def10e6Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4310f8a31ee4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
43114def10e6Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4312f8a31ee4Smrg
4313a0d3b6eaSmrgfi
4314f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
431562df5ad0Smrg$as_echo "$ac_cv_build" >&6; }
4316a0d3b6eaSmrgcase $ac_cv_build in
4317a0d3b6eaSmrg*-*-*) ;;
43184def10e6Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4319a0d3b6eaSmrgesac
4320a0d3b6eaSmrgbuild=$ac_cv_build
4321a0d3b6eaSmrgac_save_IFS=$IFS; IFS='-'
4322a0d3b6eaSmrgset x $ac_cv_build
4323a0d3b6eaSmrgshift
4324a0d3b6eaSmrgbuild_cpu=$1
4325a0d3b6eaSmrgbuild_vendor=$2
4326a0d3b6eaSmrgshift; shift
4327a0d3b6eaSmrg# Remember, the first character of IFS is used to create $*,
4328a0d3b6eaSmrg# except with old shells:
4329a0d3b6eaSmrgbuild_os=$*
4330a0d3b6eaSmrgIFS=$ac_save_IFS
4331a0d3b6eaSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4332a0d3b6eaSmrg
4333a0d3b6eaSmrg
4334f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
433562df5ad0Smrg$as_echo_n "checking host system type... " >&6; }
43364def10e6Smrgif ${ac_cv_host+:} false; then :
433762df5ad0Smrg  $as_echo_n "(cached) " >&6
4338a0d3b6eaSmrgelse
4339a0d3b6eaSmrg  if test "x$host_alias" = x; then
4340a0d3b6eaSmrg  ac_cv_host=$ac_cv_build
4341a0d3b6eaSmrgelse
4342a0d3b6eaSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
43434def10e6Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4344a0d3b6eaSmrgfi
4345a0d3b6eaSmrg
4346a0d3b6eaSmrgfi
4347f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
434862df5ad0Smrg$as_echo "$ac_cv_host" >&6; }
4349a0d3b6eaSmrgcase $ac_cv_host in
4350a0d3b6eaSmrg*-*-*) ;;
43514def10e6Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4352a0d3b6eaSmrgesac
4353a0d3b6eaSmrghost=$ac_cv_host
4354a0d3b6eaSmrgac_save_IFS=$IFS; IFS='-'
4355a0d3b6eaSmrgset x $ac_cv_host
4356a0d3b6eaSmrgshift
4357a0d3b6eaSmrghost_cpu=$1
4358a0d3b6eaSmrghost_vendor=$2
4359a0d3b6eaSmrgshift; shift
4360a0d3b6eaSmrg# Remember, the first character of IFS is used to create $*,
4361a0d3b6eaSmrg# except with old shells:
4362a0d3b6eaSmrghost_os=$*
4363a0d3b6eaSmrgIFS=$ac_save_IFS
4364a0d3b6eaSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4365a0d3b6eaSmrg
4366a0d3b6eaSmrg
4367f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4368f8a31ee4Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
43694def10e6Smrgif ${ac_cv_path_SED+:} false; then :
4370f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4371f8a31ee4Smrgelse
4372f8a31ee4Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4373f8a31ee4Smrg     for ac_i in 1 2 3 4 5 6 7; do
4374f8a31ee4Smrg       ac_script="$ac_script$as_nl$ac_script"
4375f8a31ee4Smrg     done
4376f8a31ee4Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4377f8a31ee4Smrg     { ac_script=; unset ac_script;}
4378f8a31ee4Smrg     if test -z "$SED"; then
4379f8a31ee4Smrg  ac_path_SED_found=false
4380f8a31ee4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4381f8a31ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382f8a31ee4Smrgfor as_dir in $PATH
4383f8a31ee4Smrgdo
4384f8a31ee4Smrg  IFS=$as_save_IFS
4385f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
4386f8a31ee4Smrg    for ac_prog in sed gsed; do
4387f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4388f8a31ee4Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4389f8a31ee4Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4390f8a31ee4Smrg# Check for GNU ac_path_SED and select it if it is found.
4391f8a31ee4Smrg  # Check for GNU $ac_path_SED
4392f8a31ee4Smrgcase `"$ac_path_SED" --version 2>&1` in
4393f8a31ee4Smrg*GNU*)
4394f8a31ee4Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4395f8a31ee4Smrg*)
4396f8a31ee4Smrg  ac_count=0
4397f8a31ee4Smrg  $as_echo_n 0123456789 >"conftest.in"
4398f8a31ee4Smrg  while :
4399f8a31ee4Smrg  do
4400f8a31ee4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4401f8a31ee4Smrg    mv "conftest.tmp" "conftest.in"
4402f8a31ee4Smrg    cp "conftest.in" "conftest.nl"
4403f8a31ee4Smrg    $as_echo '' >> "conftest.nl"
4404f8a31ee4Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405f8a31ee4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4407f8a31ee4Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4408f8a31ee4Smrg      # Best one so far, save it but keep looking for a better one
4409f8a31ee4Smrg      ac_cv_path_SED="$ac_path_SED"
4410f8a31ee4Smrg      ac_path_SED_max=$ac_count
4411f8a31ee4Smrg    fi
4412f8a31ee4Smrg    # 10*(2^10) chars as input seems more than enough
4413f8a31ee4Smrg    test $ac_count -gt 10 && break
4414f8a31ee4Smrg  done
4415f8a31ee4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416f8a31ee4Smrgesac
4417f8a31ee4Smrg
4418f8a31ee4Smrg      $ac_path_SED_found && break 3
4419f8a31ee4Smrg    done
4420f8a31ee4Smrg  done
4421f8a31ee4Smrg  done
4422f8a31ee4SmrgIFS=$as_save_IFS
4423f8a31ee4Smrg  if test -z "$ac_cv_path_SED"; then
44244def10e6Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4425f8a31ee4Smrg  fi
4426f8a31ee4Smrgelse
4427f8a31ee4Smrg  ac_cv_path_SED=$SED
4428f8a31ee4Smrgfi
4429f8a31ee4Smrg
4430f8a31ee4Smrgfi
4431f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4432f8a31ee4Smrg$as_echo "$ac_cv_path_SED" >&6; }
4433f8a31ee4Smrg SED="$ac_cv_path_SED"
4434f8a31ee4Smrg  rm -f conftest.sed
4435f8a31ee4Smrg
4436f8a31ee4Smrg
4437f8a31ee4Smrg
4438f8a31ee4Smrg
4439f8a31ee4Smrg
4440781f9a67Smrg
4441f8a31ee4Smrgif  test "x$GCC" = xyes ; then
4442f8a31ee4Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4443f8a31ee4Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4444f8a31ee4Smrg-Wbad-function-cast -Wformat=2"
4445f8a31ee4Smrg    case `$CC -dumpversion` in
4446f8a31ee4Smrg    3.4.* | 4.*)
4447f8a31ee4Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4448f8a31ee4Smrg	;;
4449f8a31ee4Smrg    esac
4450f8a31ee4Smrgelse
4451f8a31ee4Smrg    if test "x$SUNCC" = "xyes"; then
4452f8a31ee4Smrg	CWARNFLAGS="-v"
4453f8a31ee4Smrg    fi
4454f8a31ee4Smrgfi
4455f8a31ee4Smrg
4456f8a31ee4Smrg
4457f8a31ee4Smrg
4458f8a31ee4Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4459f8a31ee4Smrg
4460f8a31ee4Smrg
4461f8a31ee4Smrg
4462781f9a67Smrg
4463f8a31ee4Smrg# Check whether --enable-strict-compilation was given.
4464f8a31ee4Smrgif test "${enable_strict_compilation+set}" = set; then :
4465f8a31ee4Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4466f8a31ee4Smrgelse
4467f8a31ee4Smrg  STRICT_COMPILE=no
4468f8a31ee4Smrgfi
4469f8a31ee4Smrg
4470781f9a67Smrgif test "x$GCC" = xyes ; then
4471781f9a67Smrg    STRICT_CFLAGS="-pedantic -Werror"
4472781f9a67Smrg    # Add -Werror=attributes if supported (gcc 4.2 & later)
4473781f9a67Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4474781f9a67Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4475781f9a67Smrg    save_CFLAGS="$CFLAGS"
4476781f9a67Smrg    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4477781f9a67Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478781f9a67Smrg/* end confdefs.h.  */
4479781f9a67Smrgreturn 0;
4480781f9a67Smrg_ACEOF
4481781f9a67Smrgif ac_fn_c_try_compile "$LINENO"; then :
4482781f9a67Smrg  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4483781f9a67Smrg		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484781f9a67Smrg$as_echo "yes" >&6; }
4485f8a31ee4Smrgelse
4486781f9a67Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487781f9a67Smrg$as_echo "no" >&6; }
4488f8a31ee4Smrgfi
4489781f9a67Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490781f9a67Smrg    CFLAGS="$save_CFLAGS"
4491781f9a67Smrgelif test "x$SUNCC" = "xyes"; then
4492781f9a67Smrg    STRICT_CFLAGS="-errwarn"
4493781f9a67Smrgelif test "x$INTELCC" = "xyes"; then
4494781f9a67Smrg    STRICT_CFLAGS="-Werror"
4495f8a31ee4Smrgfi
4496781f9a67Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4497781f9a67Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4498f8a31ee4Smrgfi
4499781f9a67Smrg
4500f8a31ee4Smrg
4501f8a31ee4Smrg
4502f8a31ee4Smrg
4503f8a31ee4Smrg
4504f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4505f8a31ee4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4506f8a31ee4Smrg_ACEOF
4507f8a31ee4Smrg
4508f8a31ee4Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4509f8a31ee4Smrg	if test "x$PVM" = "x"; then
4510f8a31ee4Smrg		PVM="0"
4511f8a31ee4Smrg	fi
4512f8a31ee4Smrg
4513f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4514f8a31ee4Smrg#define PACKAGE_VERSION_MINOR $PVM
4515f8a31ee4Smrg_ACEOF
4516f8a31ee4Smrg
4517f8a31ee4Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4518f8a31ee4Smrg	if test "x$PVP" = "x"; then
4519f8a31ee4Smrg		PVP="0"
4520f8a31ee4Smrg	fi
4521f8a31ee4Smrg
4522f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4523f8a31ee4Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4524f8a31ee4Smrg_ACEOF
4525f8a31ee4Smrg
4526f8a31ee4Smrg
4527f8a31ee4Smrg
4528f8a31ee4SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4529f8a31ee4Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4530f8a31ee4Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4531f8a31ee4Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4532f8a31ee4Smrg
4533f8a31ee4Smrg
4534f8a31ee4Smrg
4535f8a31ee4Smrg
4536f8a31ee4Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4537f8a31ee4SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4538f8a31ee4Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4539f8a31ee4Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4540f8a31ee4Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4541f8a31ee4Smrg
4542f8a31ee4Smrg
4543f8a31ee4Smrg
4544a0d3b6eaSmrg
4545a0d3b6eaSmrg
4546a0d3b6eaSmrg
4547a0d3b6eaSmrgif test x$APP_MAN_SUFFIX = x    ; then
4548a0d3b6eaSmrg    APP_MAN_SUFFIX=1
4549a0d3b6eaSmrgfi
4550a0d3b6eaSmrgif test x$APP_MAN_DIR = x    ; then
4551a0d3b6eaSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4552a0d3b6eaSmrgfi
4553a0d3b6eaSmrg
4554a0d3b6eaSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4555a0d3b6eaSmrg    LIB_MAN_SUFFIX=3
4556a0d3b6eaSmrgfi
4557a0d3b6eaSmrgif test x$LIB_MAN_DIR = x    ; then
4558a0d3b6eaSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4559a0d3b6eaSmrgfi
4560a0d3b6eaSmrg
4561a0d3b6eaSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4562a0d3b6eaSmrg    case $host_os in
4563a0d3b6eaSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4564a0d3b6eaSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4565a0d3b6eaSmrg    esac
4566a0d3b6eaSmrgfi
4567a0d3b6eaSmrgif test x$FILE_MAN_DIR = x    ; then
4568a0d3b6eaSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4569a0d3b6eaSmrgfi
4570a0d3b6eaSmrg
4571a0d3b6eaSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4572a0d3b6eaSmrg    case $host_os in
4573a0d3b6eaSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4574a0d3b6eaSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4575a0d3b6eaSmrg    esac
4576a0d3b6eaSmrgfi
4577a0d3b6eaSmrgif test x$MISC_MAN_DIR = x    ; then
4578a0d3b6eaSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4579a0d3b6eaSmrgfi
4580a0d3b6eaSmrg
4581a0d3b6eaSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4582a0d3b6eaSmrg    case $host_os in
4583a0d3b6eaSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4584a0d3b6eaSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4585a0d3b6eaSmrg    esac
4586a0d3b6eaSmrgfi
4587a0d3b6eaSmrgif test x$DRIVER_MAN_DIR = x    ; then
4588a0d3b6eaSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4589a0d3b6eaSmrgfi
4590a0d3b6eaSmrg
4591a0d3b6eaSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4592a0d3b6eaSmrg    case $host_os in
4593a0d3b6eaSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4594a0d3b6eaSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4595a0d3b6eaSmrg    esac
4596a0d3b6eaSmrgfi
4597a0d3b6eaSmrgif test x$ADMIN_MAN_DIR = x    ; then
4598a0d3b6eaSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4599a0d3b6eaSmrgfi
4600a0d3b6eaSmrg
4601a0d3b6eaSmrg
4602a0d3b6eaSmrg
4603a0d3b6eaSmrg
4604a0d3b6eaSmrg
4605a0d3b6eaSmrg
4606a0d3b6eaSmrg
4607a0d3b6eaSmrg
4608a0d3b6eaSmrg
4609a0d3b6eaSmrg
4610a0d3b6eaSmrg
4611a0d3b6eaSmrg
4612a0d3b6eaSmrg
4613a0d3b6eaSmrg
4614a0d3b6eaSmrg
4615f8a31ee4SmrgXORG_MAN_PAGE="X Version 11"
4616a0d3b6eaSmrg
4617f8a31ee4SmrgMAN_SUBSTS="\
4618f8a31ee4Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4619f8a31ee4Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4620f8a31ee4Smrg	-e 's|__xservername__|Xorg|g' \
4621f8a31ee4Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4622f8a31ee4Smrg	-e 's|__projectroot__|\$(prefix)|g' \
46234def10e6Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4624f8a31ee4Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4625f8a31ee4Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4626f8a31ee4Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4627f8a31ee4Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4628f8a31ee4Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4629f8a31ee4Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4630a0d3b6eaSmrg
4631f8a31ee4Smrg
4632f8a31ee4Smrg
4633f8a31ee4Smrg# Check whether --enable-silent-rules was given.
4634f8a31ee4Smrgif test "${enable_silent_rules+set}" = set; then :
4635f8a31ee4Smrg  enableval=$enable_silent_rules;
4636a0d3b6eaSmrgfi
4637a0d3b6eaSmrg
4638f8a31ee4Smrgcase $enable_silent_rules in
4639f8a31ee4Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4640f8a31ee4Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4641f8a31ee4Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4642f8a31ee4Smrgesac
4643f8a31ee4SmrgAM_BACKSLASH='\'
4644a0d3b6eaSmrg
4645a0d3b6eaSmrg
4646a0d3b6eaSmrg
4647f8a31ee4Smrgac_config_headers="$ac_config_headers config.h"
4648a0d3b6eaSmrg
4649a0d3b6eaSmrg
46504def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
46514def10e6Smrg$as_echo_n "checking for floor in -lm... " >&6; }
46524def10e6Smrgif ${ac_cv_lib_m_floor+:} false; then :
4653f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4654f8a31ee4Smrgelse
46554def10e6Smrg  ac_check_lib_save_LIBS=$LIBS
46564def10e6SmrgLIBS="-lm  $LIBS"
46574def10e6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
46584def10e6Smrg/* end confdefs.h.  */
4659f8a31ee4Smrg
46604def10e6Smrg/* Override any GCC internal prototype to avoid an error.
46614def10e6Smrg   Use char because int might match the return type of a GCC
46624def10e6Smrg   builtin and then its argument prototype would still apply.  */
46634def10e6Smrg#ifdef __cplusplus
46644def10e6Smrgextern "C"
46654def10e6Smrg#endif
46664def10e6Smrgchar floor ();
46674def10e6Smrgint
46684def10e6Smrgmain ()
46694def10e6Smrg{
46704def10e6Smrgreturn floor ();
46714def10e6Smrg  ;
46724def10e6Smrg  return 0;
46734def10e6Smrg}
46744def10e6Smrg_ACEOF
46754def10e6Smrgif ac_fn_c_try_link "$LINENO"; then :
46764def10e6Smrg  ac_cv_lib_m_floor=yes
4677f8a31ee4Smrgelse
46784def10e6Smrg  ac_cv_lib_m_floor=no
46794def10e6Smrgfi
46804def10e6Smrgrm -f core conftest.err conftest.$ac_objext \
46814def10e6Smrg    conftest$ac_exeext conftest.$ac_ext
46824def10e6SmrgLIBS=$ac_check_lib_save_LIBS
4683f8a31ee4Smrgfi
46844def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
46854def10e6Smrg$as_echo "$ac_cv_lib_m_floor" >&6; }
46864def10e6Smrgif test "x$ac_cv_lib_m_floor" = xyes; then :
46874def10e6Smrg  cat >>confdefs.h <<_ACEOF
46884def10e6Smrg#define HAVE_LIBM 1
46894def10e6Smrg_ACEOF
4690f8a31ee4Smrg
46914def10e6Smrg  LIBS="-lm $LIBS"
4692f8a31ee4Smrg
4693f8a31ee4Smrgfi
4694f8a31ee4Smrg
46954def10e6Smrg
46964def10e6Smrg# Checks for pkg-config packages
46974def10e6Smrg
46984def10e6Smrgpkg_failed=no
46994def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
47004def10e6Smrg$as_echo_n "checking for XRANDR... " >&6; }
47014def10e6Smrg
47024def10e6Smrgif test -n "$XRANDR_CFLAGS"; then
47034def10e6Smrg    pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
47044def10e6Smrg elif test -n "$PKG_CONFIG"; then
47054def10e6Smrg    if test -n "$PKG_CONFIG" && \
4706781f9a67Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.3 xrender x11 xproto >= 7.0.17\""; } >&5
4707781f9a67Smrg  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.3 xrender x11 xproto >= 7.0.17") 2>&5
47084def10e6Smrg  ac_status=$?
47094def10e6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47104def10e6Smrg  test $ac_status = 0; }; then
4711781f9a67Smrg  pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.3 xrender x11 xproto >= 7.0.17" 2>/dev/null`
47124def10e6Smrgelse
47134def10e6Smrg  pkg_failed=yes
4714f8a31ee4Smrgfi
47154def10e6Smrg else
47164def10e6Smrg    pkg_failed=untried
4717f8a31ee4Smrgfi
47184def10e6Smrgif test -n "$XRANDR_LIBS"; then
47194def10e6Smrg    pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
47204def10e6Smrg elif test -n "$PKG_CONFIG"; then
47214def10e6Smrg    if test -n "$PKG_CONFIG" && \
4722781f9a67Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.3 xrender x11 xproto >= 7.0.17\""; } >&5
4723781f9a67Smrg  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.3 xrender x11 xproto >= 7.0.17") 2>&5
47244def10e6Smrg  ac_status=$?
47254def10e6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47264def10e6Smrg  test $ac_status = 0; }; then
4727781f9a67Smrg  pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.3 xrender x11 xproto >= 7.0.17" 2>/dev/null`
4728f8a31ee4Smrgelse
47294def10e6Smrg  pkg_failed=yes
47304def10e6Smrgfi
47314def10e6Smrg else
47324def10e6Smrg    pkg_failed=untried
4733f8a31ee4Smrgfi
4734f8a31ee4Smrg
47354def10e6Smrg
47364def10e6Smrg
47374def10e6Smrgif test $pkg_failed = yes; then
47384def10e6Smrg
47394def10e6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47404def10e6Smrg        _pkg_short_errors_supported=yes
4741f8a31ee4Smrgelse
47424def10e6Smrg        _pkg_short_errors_supported=no
4743f8a31ee4Smrgfi
47444def10e6Smrg        if test $_pkg_short_errors_supported = yes; then
4745781f9a67Smrg	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.3 xrender x11 xproto >= 7.0.17" 2>&1`
47464def10e6Smrg        else
4747781f9a67Smrg	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.3 xrender x11 xproto >= 7.0.17" 2>&1`
47484def10e6Smrg        fi
47494def10e6Smrg	# Put the nasty error message in config.log where it belongs
47504def10e6Smrg	echo "$XRANDR_PKG_ERRORS" >&5
4751f8a31ee4Smrg
4752781f9a67Smrg	as_fn_error $? "Package requirements (xrandr >= 1.3 xrender x11 xproto >= 7.0.17) were not met:
4753f8a31ee4Smrg
47544def10e6Smrg$XRANDR_PKG_ERRORS
47554def10e6Smrg
47564def10e6SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
47574def10e6Smrginstalled software in a non-standard prefix.
47584def10e6Smrg
47594def10e6SmrgAlternatively, you may set the environment variables XRANDR_CFLAGS
47604def10e6Smrgand XRANDR_LIBS to avoid the need to call pkg-config.
47614def10e6SmrgSee the pkg-config man page for more details.
47624def10e6Smrg" "$LINENO" 5
47634def10e6Smrgelif test $pkg_failed = untried; then
47644def10e6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47654def10e6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47664def10e6Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47674def10e6Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
47684def10e6Smrgpath to pkg-config.
47694def10e6Smrg
47704def10e6SmrgAlternatively, you may set the environment variables XRANDR_CFLAGS
47714def10e6Smrgand XRANDR_LIBS to avoid the need to call pkg-config.
47724def10e6SmrgSee the pkg-config man page for more details.
47734def10e6Smrg
47744def10e6SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
47754def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
4776f8a31ee4Smrgelse
47774def10e6Smrg	XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
47784def10e6Smrg	XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
47794def10e6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47804def10e6Smrg$as_echo "yes" >&6; }
47814def10e6Smrg	:
4782f8a31ee4Smrgfi
4783f8a31ee4Smrg
4784781f9a67Smrgac_config_files="$ac_config_files Makefile man/Makefile"
4785a0d3b6eaSmrg
4786a0d3b6eaSmrgcat >confcache <<\_ACEOF
4787a0d3b6eaSmrg# This file is a shell script that caches the results of configure
4788a0d3b6eaSmrg# tests run on this system so they can be shared between configure
4789a0d3b6eaSmrg# scripts and configure runs, see configure's option --config-cache.
4790a0d3b6eaSmrg# It is not useful on other systems.  If it contains results you don't
4791a0d3b6eaSmrg# want to keep, you may remove or edit it.
4792a0d3b6eaSmrg#
4793a0d3b6eaSmrg# config.status only pays attention to the cache file if you give it
4794a0d3b6eaSmrg# the --recheck option to rerun configure.
4795a0d3b6eaSmrg#
4796a0d3b6eaSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
4797a0d3b6eaSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
4798a0d3b6eaSmrg# following values.
4799a0d3b6eaSmrg
4800a0d3b6eaSmrg_ACEOF
4801a0d3b6eaSmrg
4802a0d3b6eaSmrg# The following way of writing the cache mishandles newlines in values,
4803a0d3b6eaSmrg# but we know of no workaround that is simple, portable, and efficient.
4804a0d3b6eaSmrg# So, we kill variables containing newlines.
4805a0d3b6eaSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
4806a0d3b6eaSmrg# and sets the high bit in the cache file unless we assign to the vars.
4807a0d3b6eaSmrg(
4808a0d3b6eaSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4809a0d3b6eaSmrg    eval ac_val=\$$ac_var
4810a0d3b6eaSmrg    case $ac_val in #(
4811a0d3b6eaSmrg    *${as_nl}*)
4812a0d3b6eaSmrg      case $ac_var in #(
4813f8a31ee4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
481462df5ad0Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4815a0d3b6eaSmrg      esac
4816a0d3b6eaSmrg      case $ac_var in #(
4817a0d3b6eaSmrg      _ | IFS | as_nl) ;; #(
481862df5ad0Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4819f8a31ee4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
4820a0d3b6eaSmrg      esac ;;
4821a0d3b6eaSmrg    esac
4822a0d3b6eaSmrg  done
4823a0d3b6eaSmrg
4824a0d3b6eaSmrg  (set) 2>&1 |
4825a0d3b6eaSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4826a0d3b6eaSmrg    *${as_nl}ac_space=\ *)
4827f8a31ee4Smrg      # `set' does not quote correctly, so add quotes: double-quote
4828f8a31ee4Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
4829a0d3b6eaSmrg      sed -n \
4830a0d3b6eaSmrg	"s/'/'\\\\''/g;
4831a0d3b6eaSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4832a0d3b6eaSmrg      ;; #(
4833a0d3b6eaSmrg    *)
4834a0d3b6eaSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4835a0d3b6eaSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4836a0d3b6eaSmrg      ;;
4837a0d3b6eaSmrg    esac |
4838a0d3b6eaSmrg    sort
4839a0d3b6eaSmrg) |
4840a0d3b6eaSmrg  sed '
4841a0d3b6eaSmrg     /^ac_cv_env_/b end
4842a0d3b6eaSmrg     t clear
4843a0d3b6eaSmrg     :clear
4844a0d3b6eaSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4845a0d3b6eaSmrg     t end
4846a0d3b6eaSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4847a0d3b6eaSmrg     :end' >>confcache
4848a0d3b6eaSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4849a0d3b6eaSmrg  if test -w "$cache_file"; then
48504def10e6Smrg    if test "x$cache_file" != "x/dev/null"; then
4851f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
485262df5ad0Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
48534def10e6Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
48544def10e6Smrg	cat confcache >"$cache_file"
48554def10e6Smrg      else
48564def10e6Smrg        case $cache_file in #(
48574def10e6Smrg        */* | ?:*)
48584def10e6Smrg	  mv -f confcache "$cache_file"$$ &&
48594def10e6Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
48604def10e6Smrg        *)
48614def10e6Smrg	  mv -f confcache "$cache_file" ;;
48624def10e6Smrg	esac
48634def10e6Smrg      fi
48644def10e6Smrg    fi
4865a0d3b6eaSmrg  else
4866f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
486762df5ad0Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4868a0d3b6eaSmrg  fi
4869a0d3b6eaSmrgfi
4870a0d3b6eaSmrgrm -f confcache
4871a0d3b6eaSmrg
4872a0d3b6eaSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
4873a0d3b6eaSmrg# Let make expand exec_prefix.
4874a0d3b6eaSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4875a0d3b6eaSmrg
4876a0d3b6eaSmrgDEFS=-DHAVE_CONFIG_H
4877a0d3b6eaSmrg
4878a0d3b6eaSmrgac_libobjs=
4879a0d3b6eaSmrgac_ltlibobjs=
48804def10e6SmrgU=
4881a0d3b6eaSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4882a0d3b6eaSmrg  # 1. Remove the extension, and $U if already installed.
4883a0d3b6eaSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
488462df5ad0Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4885a0d3b6eaSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4886a0d3b6eaSmrg  #    will be set to the directory where LIBOBJS objects are built.
4887f8a31ee4Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4888f8a31ee4Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4889a0d3b6eaSmrgdone
4890a0d3b6eaSmrgLIBOBJS=$ac_libobjs
4891a0d3b6eaSmrg
4892a0d3b6eaSmrgLTLIBOBJS=$ac_ltlibobjs
4893a0d3b6eaSmrg
4894a0d3b6eaSmrg
4895f8a31ee4Smrg if test -n "$EXEEXT"; then
4896f8a31ee4Smrg  am__EXEEXT_TRUE=
4897f8a31ee4Smrg  am__EXEEXT_FALSE='#'
4898f8a31ee4Smrgelse
4899f8a31ee4Smrg  am__EXEEXT_TRUE='#'
4900f8a31ee4Smrg  am__EXEEXT_FALSE=
4901f8a31ee4Smrgfi
4902f8a31ee4Smrg
4903a0d3b6eaSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
49044def10e6Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4905f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4906a0d3b6eaSmrgfi
4907a0d3b6eaSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49084def10e6Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4909f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4910f8a31ee4Smrgfi
4911f8a31ee4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49124def10e6Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4913f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4914a0d3b6eaSmrgfi
4915a0d3b6eaSmrg
49164def10e6Smrg: "${CONFIG_STATUS=./config.status}"
491762df5ad0Smrgac_write_fail=0
4918a0d3b6eaSmrgac_clean_files_save=$ac_clean_files
4919a0d3b6eaSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4920f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
492162df5ad0Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4922f8a31ee4Smrgas_write_fail=0
4923f8a31ee4Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4924a0d3b6eaSmrg#! $SHELL
4925a0d3b6eaSmrg# Generated by $as_me.
4926a0d3b6eaSmrg# Run this file to recreate the current configuration.
4927a0d3b6eaSmrg# Compiler output produced by configure, useful for debugging
4928a0d3b6eaSmrg# configure, is in config.log if it exists.
4929a0d3b6eaSmrg
4930a0d3b6eaSmrgdebug=false
4931a0d3b6eaSmrgac_cs_recheck=false
4932a0d3b6eaSmrgac_cs_silent=false
4933a0d3b6eaSmrg
4934f8a31ee4SmrgSHELL=\${CONFIG_SHELL-$SHELL}
4935f8a31ee4Smrgexport SHELL
4936f8a31ee4Smrg_ASEOF
4937f8a31ee4Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4938f8a31ee4Smrg## -------------------- ##
4939f8a31ee4Smrg## M4sh Initialization. ##
4940f8a31ee4Smrg## -------------------- ##
4941a0d3b6eaSmrg
4942a0d3b6eaSmrg# Be more Bourne compatible
4943a0d3b6eaSmrgDUALCASE=1; export DUALCASE # for MKS sh
4944f8a31ee4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4945a0d3b6eaSmrg  emulate sh
4946a0d3b6eaSmrg  NULLCMD=:
494762df5ad0Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4948a0d3b6eaSmrg  # is contrary to our usage.  Disable this feature.
4949a0d3b6eaSmrg  alias -g '${1+"$@"}'='"$@"'
4950a0d3b6eaSmrg  setopt NO_GLOB_SUBST
4951a0d3b6eaSmrgelse
4952f8a31ee4Smrg  case `(set -o) 2>/dev/null` in #(
4953f8a31ee4Smrg  *posix*) :
4954f8a31ee4Smrg    set -o posix ;; #(
4955f8a31ee4Smrg  *) :
4956f8a31ee4Smrg     ;;
4957a0d3b6eaSmrgesac
4958a0d3b6eaSmrgfi
4959a0d3b6eaSmrg
4960a0d3b6eaSmrg
496162df5ad0Smrgas_nl='
496262df5ad0Smrg'
496362df5ad0Smrgexport as_nl
496462df5ad0Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
496562df5ad0Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
496662df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
496762df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4968f8a31ee4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4969f8a31ee4Smrg# but without wasting forks for bash or zsh.
4970f8a31ee4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4971f8a31ee4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4972f8a31ee4Smrg  as_echo='print -r --'
4973f8a31ee4Smrg  as_echo_n='print -rn --'
4974f8a31ee4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
497562df5ad0Smrg  as_echo='printf %s\n'
497662df5ad0Smrg  as_echo_n='printf %s'
497762df5ad0Smrgelse
497862df5ad0Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
497962df5ad0Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
498062df5ad0Smrg    as_echo_n='/usr/ucb/echo -n'
4981a0d3b6eaSmrg  else
498262df5ad0Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
498362df5ad0Smrg    as_echo_n_body='eval
498462df5ad0Smrg      arg=$1;
4985f8a31ee4Smrg      case $arg in #(
498662df5ad0Smrg      *"$as_nl"*)
498762df5ad0Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
498862df5ad0Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
498962df5ad0Smrg      esac;
499062df5ad0Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
499162df5ad0Smrg    '
499262df5ad0Smrg    export as_echo_n_body
499362df5ad0Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
4994a0d3b6eaSmrg  fi
499562df5ad0Smrg  export as_echo_body
499662df5ad0Smrg  as_echo='sh -c $as_echo_body as_echo'
499762df5ad0Smrgfi
499862df5ad0Smrg
499962df5ad0Smrg# The user is always right.
500062df5ad0Smrgif test "${PATH_SEPARATOR+set}" != set; then
500162df5ad0Smrg  PATH_SEPARATOR=:
500262df5ad0Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
500362df5ad0Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
500462df5ad0Smrg      PATH_SEPARATOR=';'
500562df5ad0Smrg  }
5006a0d3b6eaSmrgfi
5007a0d3b6eaSmrg
5008a0d3b6eaSmrg
5009a0d3b6eaSmrg# IFS
5010a0d3b6eaSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5011a0d3b6eaSmrg# there to prevent editors from complaining about space-tab.
5012a0d3b6eaSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5013a0d3b6eaSmrg# splitting by setting IFS to empty value.)
5014a0d3b6eaSmrgIFS=" ""	$as_nl"
5015a0d3b6eaSmrg
5016a0d3b6eaSmrg# Find who we are.  Look in the path if we contain no directory separator.
50174def10e6Smrgas_myself=
5018f8a31ee4Smrgcase $0 in #((
5019a0d3b6eaSmrg  *[\\/]* ) as_myself=$0 ;;
5020a0d3b6eaSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021a0d3b6eaSmrgfor as_dir in $PATH
5022a0d3b6eaSmrgdo
5023a0d3b6eaSmrg  IFS=$as_save_IFS
5024a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
5025f8a31ee4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5026f8a31ee4Smrg  done
5027a0d3b6eaSmrgIFS=$as_save_IFS
5028a0d3b6eaSmrg
5029a0d3b6eaSmrg     ;;
5030a0d3b6eaSmrgesac
5031a0d3b6eaSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5032a0d3b6eaSmrg# in which case we are not to be found in the path.
5033a0d3b6eaSmrgif test "x$as_myself" = x; then
5034a0d3b6eaSmrg  as_myself=$0
5035a0d3b6eaSmrgfi
5036a0d3b6eaSmrgif test ! -f "$as_myself"; then
503762df5ad0Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5038f8a31ee4Smrg  exit 1
5039a0d3b6eaSmrgfi
5040a0d3b6eaSmrg
5041f8a31ee4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5042f8a31ee4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5043f8a31ee4Smrg# suppresses any "Segmentation fault" message there.  '((' could
5044f8a31ee4Smrg# trigger a bug in pdksh 5.2.14.
5045f8a31ee4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5046f8a31ee4Smrgdo eval test x\${$as_var+set} = xset \
5047f8a31ee4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5048a0d3b6eaSmrgdone
5049a0d3b6eaSmrgPS1='$ '
5050a0d3b6eaSmrgPS2='> '
5051a0d3b6eaSmrgPS4='+ '
5052a0d3b6eaSmrg
5053a0d3b6eaSmrg# NLS nuisances.
505462df5ad0SmrgLC_ALL=C
505562df5ad0Smrgexport LC_ALL
505662df5ad0SmrgLANGUAGE=C
505762df5ad0Smrgexport LANGUAGE
5058a0d3b6eaSmrg
5059f8a31ee4Smrg# CDPATH.
5060f8a31ee4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5061f8a31ee4Smrg
5062f8a31ee4Smrg
50634def10e6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
50644def10e6Smrg# ----------------------------------------
5065f8a31ee4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5066f8a31ee4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50674def10e6Smrg# script with STATUS, using 1 if that was 0.
5068f8a31ee4Smrgas_fn_error ()
5069f8a31ee4Smrg{
50704def10e6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
50714def10e6Smrg  if test "$4"; then
50724def10e6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
50734def10e6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5074f8a31ee4Smrg  fi
50754def10e6Smrg  $as_echo "$as_me: error: $2" >&2
5076f8a31ee4Smrg  as_fn_exit $as_status
5077f8a31ee4Smrg} # as_fn_error
5078f8a31ee4Smrg
5079f8a31ee4Smrg
5080f8a31ee4Smrg# as_fn_set_status STATUS
5081f8a31ee4Smrg# -----------------------
5082f8a31ee4Smrg# Set $? to STATUS, without forking.
5083f8a31ee4Smrgas_fn_set_status ()
5084f8a31ee4Smrg{
5085f8a31ee4Smrg  return $1
5086f8a31ee4Smrg} # as_fn_set_status
5087f8a31ee4Smrg
5088f8a31ee4Smrg# as_fn_exit STATUS
5089f8a31ee4Smrg# -----------------
5090f8a31ee4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5091f8a31ee4Smrgas_fn_exit ()
5092f8a31ee4Smrg{
5093f8a31ee4Smrg  set +e
5094f8a31ee4Smrg  as_fn_set_status $1
5095f8a31ee4Smrg  exit $1
5096f8a31ee4Smrg} # as_fn_exit
5097f8a31ee4Smrg
5098f8a31ee4Smrg# as_fn_unset VAR
5099f8a31ee4Smrg# ---------------
5100f8a31ee4Smrg# Portably unset VAR.
5101f8a31ee4Smrgas_fn_unset ()
5102f8a31ee4Smrg{
5103f8a31ee4Smrg  { eval $1=; unset $1;}
5104f8a31ee4Smrg}
5105f8a31ee4Smrgas_unset=as_fn_unset
5106f8a31ee4Smrg# as_fn_append VAR VALUE
5107f8a31ee4Smrg# ----------------------
5108f8a31ee4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5109f8a31ee4Smrg# advantage of any shell optimizations that allow amortized linear growth over
5110f8a31ee4Smrg# repeated appends, instead of the typical quadratic growth present in naive
5111f8a31ee4Smrg# implementations.
5112f8a31ee4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5113f8a31ee4Smrg  eval 'as_fn_append ()
5114f8a31ee4Smrg  {
5115f8a31ee4Smrg    eval $1+=\$2
5116f8a31ee4Smrg  }'
5117f8a31ee4Smrgelse
5118f8a31ee4Smrg  as_fn_append ()
5119f8a31ee4Smrg  {
5120f8a31ee4Smrg    eval $1=\$$1\$2
5121f8a31ee4Smrg  }
5122f8a31ee4Smrgfi # as_fn_append
5123f8a31ee4Smrg
5124f8a31ee4Smrg# as_fn_arith ARG...
5125f8a31ee4Smrg# ------------------
5126f8a31ee4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5127f8a31ee4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5128f8a31ee4Smrg# must be portable across $(()) and expr.
5129f8a31ee4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5130f8a31ee4Smrg  eval 'as_fn_arith ()
5131f8a31ee4Smrg  {
5132f8a31ee4Smrg    as_val=$(( $* ))
5133f8a31ee4Smrg  }'
5134f8a31ee4Smrgelse
5135f8a31ee4Smrg  as_fn_arith ()
5136f8a31ee4Smrg  {
5137f8a31ee4Smrg    as_val=`expr "$@" || test $? -eq 1`
5138f8a31ee4Smrg  }
5139f8a31ee4Smrgfi # as_fn_arith
5140f8a31ee4Smrg
5141f8a31ee4Smrg
5142a0d3b6eaSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5143a0d3b6eaSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5144a0d3b6eaSmrg  as_expr=expr
5145a0d3b6eaSmrgelse
5146a0d3b6eaSmrg  as_expr=false
5147a0d3b6eaSmrgfi
5148a0d3b6eaSmrg
5149a0d3b6eaSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5150a0d3b6eaSmrg  as_basename=basename
5151a0d3b6eaSmrgelse
5152a0d3b6eaSmrg  as_basename=false
5153a0d3b6eaSmrgfi
5154a0d3b6eaSmrg
5155f8a31ee4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5156f8a31ee4Smrg  as_dirname=dirname
5157f8a31ee4Smrgelse
5158f8a31ee4Smrg  as_dirname=false
5159f8a31ee4Smrgfi
5160a0d3b6eaSmrg
5161a0d3b6eaSmrgas_me=`$as_basename -- "$0" ||
5162a0d3b6eaSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5163a0d3b6eaSmrg	 X"$0" : 'X\(//\)$' \| \
5164a0d3b6eaSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
516562df5ad0Smrg$as_echo X/"$0" |
5166a0d3b6eaSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5167a0d3b6eaSmrg	    s//\1/
5168a0d3b6eaSmrg	    q
5169a0d3b6eaSmrg	  }
5170a0d3b6eaSmrg	  /^X\/\(\/\/\)$/{
5171a0d3b6eaSmrg	    s//\1/
5172a0d3b6eaSmrg	    q
5173a0d3b6eaSmrg	  }
5174a0d3b6eaSmrg	  /^X\/\(\/\).*/{
5175a0d3b6eaSmrg	    s//\1/
5176a0d3b6eaSmrg	    q
5177a0d3b6eaSmrg	  }
5178a0d3b6eaSmrg	  s/.*/./; q'`
5179a0d3b6eaSmrg
5180f8a31ee4Smrg# Avoid depending upon Character Ranges.
5181f8a31ee4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5182f8a31ee4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5183f8a31ee4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5184f8a31ee4Smrgas_cr_digits='0123456789'
5185f8a31ee4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5186a0d3b6eaSmrg
5187a0d3b6eaSmrgECHO_C= ECHO_N= ECHO_T=
5188f8a31ee4Smrgcase `echo -n x` in #(((((
5189a0d3b6eaSmrg-n*)
5190f8a31ee4Smrg  case `echo 'xy\c'` in
5191a0d3b6eaSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5192f8a31ee4Smrg  xy)  ECHO_C='\c';;
5193f8a31ee4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5194f8a31ee4Smrg       ECHO_T='	';;
5195a0d3b6eaSmrg  esac;;
5196a0d3b6eaSmrg*)
5197a0d3b6eaSmrg  ECHO_N='-n';;
5198a0d3b6eaSmrgesac
5199a0d3b6eaSmrg
5200a0d3b6eaSmrgrm -f conf$$ conf$$.exe conf$$.file
5201a0d3b6eaSmrgif test -d conf$$.dir; then
5202a0d3b6eaSmrg  rm -f conf$$.dir/conf$$.file
5203a0d3b6eaSmrgelse
5204a0d3b6eaSmrg  rm -f conf$$.dir
520562df5ad0Smrg  mkdir conf$$.dir 2>/dev/null
520662df5ad0Smrgfi
520762df5ad0Smrgif (echo >conf$$.file) 2>/dev/null; then
520862df5ad0Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
520962df5ad0Smrg    as_ln_s='ln -s'
521062df5ad0Smrg    # ... but there are two gotchas:
521162df5ad0Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521262df5ad0Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
521362df5ad0Smrg    # In both cases, we have to default to `cp -p'.
521462df5ad0Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
521562df5ad0Smrg      as_ln_s='cp -p'
521662df5ad0Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
521762df5ad0Smrg    as_ln_s=ln
521862df5ad0Smrg  else
5219a0d3b6eaSmrg    as_ln_s='cp -p'
522062df5ad0Smrg  fi
5221a0d3b6eaSmrgelse
5222a0d3b6eaSmrg  as_ln_s='cp -p'
5223a0d3b6eaSmrgfi
5224a0d3b6eaSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5225a0d3b6eaSmrgrmdir conf$$.dir 2>/dev/null
5226a0d3b6eaSmrg
5227f8a31ee4Smrg
5228f8a31ee4Smrg# as_fn_mkdir_p
5229f8a31ee4Smrg# -------------
5230f8a31ee4Smrg# Create "$as_dir" as a directory, including parents if necessary.
5231f8a31ee4Smrgas_fn_mkdir_p ()
5232f8a31ee4Smrg{
5233f8a31ee4Smrg
5234f8a31ee4Smrg  case $as_dir in #(
5235f8a31ee4Smrg  -*) as_dir=./$as_dir;;
5236f8a31ee4Smrg  esac
5237f8a31ee4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5238f8a31ee4Smrg    as_dirs=
5239f8a31ee4Smrg    while :; do
5240f8a31ee4Smrg      case $as_dir in #(
5241f8a31ee4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5242f8a31ee4Smrg      *) as_qdir=$as_dir;;
5243f8a31ee4Smrg      esac
5244f8a31ee4Smrg      as_dirs="'$as_qdir' $as_dirs"
5245f8a31ee4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5246f8a31ee4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5247f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5248f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5249f8a31ee4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5250f8a31ee4Smrg$as_echo X"$as_dir" |
5251f8a31ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5252f8a31ee4Smrg	    s//\1/
5253f8a31ee4Smrg	    q
5254f8a31ee4Smrg	  }
5255f8a31ee4Smrg	  /^X\(\/\/\)[^/].*/{
5256f8a31ee4Smrg	    s//\1/
5257f8a31ee4Smrg	    q
5258f8a31ee4Smrg	  }
5259f8a31ee4Smrg	  /^X\(\/\/\)$/{
5260f8a31ee4Smrg	    s//\1/
5261f8a31ee4Smrg	    q
5262f8a31ee4Smrg	  }
5263f8a31ee4Smrg	  /^X\(\/\).*/{
5264f8a31ee4Smrg	    s//\1/
5265f8a31ee4Smrg	    q
5266f8a31ee4Smrg	  }
5267f8a31ee4Smrg	  s/.*/./; q'`
5268f8a31ee4Smrg      test -d "$as_dir" && break
5269f8a31ee4Smrg    done
5270f8a31ee4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
52714def10e6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5272f8a31ee4Smrg
5273f8a31ee4Smrg
5274f8a31ee4Smrg} # as_fn_mkdir_p
5275a0d3b6eaSmrgif mkdir -p . 2>/dev/null; then
5276f8a31ee4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5277a0d3b6eaSmrgelse
5278a0d3b6eaSmrg  test -d ./-p && rmdir ./-p
5279a0d3b6eaSmrg  as_mkdir_p=false
5280a0d3b6eaSmrgfi
5281a0d3b6eaSmrg
5282a0d3b6eaSmrgif test -x / >/dev/null 2>&1; then
5283a0d3b6eaSmrg  as_test_x='test -x'
5284a0d3b6eaSmrgelse
5285a0d3b6eaSmrg  if ls -dL / >/dev/null 2>&1; then
5286a0d3b6eaSmrg    as_ls_L_option=L
5287a0d3b6eaSmrg  else
5288a0d3b6eaSmrg    as_ls_L_option=
5289a0d3b6eaSmrg  fi
5290a0d3b6eaSmrg  as_test_x='
5291a0d3b6eaSmrg    eval sh -c '\''
5292a0d3b6eaSmrg      if test -d "$1"; then
529362df5ad0Smrg	test -d "$1/.";
5294a0d3b6eaSmrg      else
5295f8a31ee4Smrg	case $1 in #(
529662df5ad0Smrg	-*)set "./$1";;
5297a0d3b6eaSmrg	esac;
5298f8a31ee4Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5299a0d3b6eaSmrg	???[sx]*):;;*)false;;esac;fi
5300a0d3b6eaSmrg    '\'' sh
5301a0d3b6eaSmrg  '
5302a0d3b6eaSmrgfi
5303a0d3b6eaSmrgas_executable_p=$as_test_x
5304a0d3b6eaSmrg
5305a0d3b6eaSmrg# Sed expression to map a string onto a valid CPP name.
5306a0d3b6eaSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5307a0d3b6eaSmrg
5308a0d3b6eaSmrg# Sed expression to map a string onto a valid variable name.
5309a0d3b6eaSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5310a0d3b6eaSmrg
5311a0d3b6eaSmrg
5312a0d3b6eaSmrgexec 6>&1
5313f8a31ee4Smrg## ----------------------------------- ##
5314f8a31ee4Smrg## Main body of $CONFIG_STATUS script. ##
5315f8a31ee4Smrg## ----------------------------------- ##
5316f8a31ee4Smrg_ASEOF
5317f8a31ee4Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5318a0d3b6eaSmrg
5319f8a31ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5320f8a31ee4Smrg# Save the log message, to keep $0 and so on meaningful, and to
5321a0d3b6eaSmrg# report actual input values of CONFIG_FILES etc. instead of their
5322a0d3b6eaSmrg# values after options handling.
5323a0d3b6eaSmrgac_log="
5324781f9a67SmrgThis file was extended by xrandr $as_me 1.3.5, which was
53254def10e6Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
5326a0d3b6eaSmrg
5327a0d3b6eaSmrg  CONFIG_FILES    = $CONFIG_FILES
5328a0d3b6eaSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5329a0d3b6eaSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5330a0d3b6eaSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5331a0d3b6eaSmrg  $ $0 $@
5332a0d3b6eaSmrg
5333a0d3b6eaSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5334a0d3b6eaSmrg"
5335a0d3b6eaSmrg
5336a0d3b6eaSmrg_ACEOF
5337a0d3b6eaSmrg
533862df5ad0Smrgcase $ac_config_files in *"
533962df5ad0Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
534062df5ad0Smrgesac
534162df5ad0Smrg
534262df5ad0Smrgcase $ac_config_headers in *"
534362df5ad0Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
534462df5ad0Smrgesac
534562df5ad0Smrg
534662df5ad0Smrg
534762df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5348a0d3b6eaSmrg# Files that config.status was made for.
5349a0d3b6eaSmrgconfig_files="$ac_config_files"
5350a0d3b6eaSmrgconfig_headers="$ac_config_headers"
5351a0d3b6eaSmrgconfig_commands="$ac_config_commands"
5352a0d3b6eaSmrg
5353a0d3b6eaSmrg_ACEOF
5354a0d3b6eaSmrg
535562df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5356a0d3b6eaSmrgac_cs_usage="\
5357f8a31ee4Smrg\`$as_me' instantiates files and other configuration actions
5358f8a31ee4Smrgfrom templates according to the current configuration.  Unless the files
5359f8a31ee4Smrgand actions are specified as TAGs, all are instantiated by default.
5360a0d3b6eaSmrg
5361f8a31ee4SmrgUsage: $0 [OPTION]... [TAG]...
5362a0d3b6eaSmrg
5363a0d3b6eaSmrg  -h, --help       print this help, then exit
5364a0d3b6eaSmrg  -V, --version    print version number and configuration settings, then exit
5365f8a31ee4Smrg      --config     print configuration, then exit
536662df5ad0Smrg  -q, --quiet, --silent
536762df5ad0Smrg                   do not print progress messages
5368a0d3b6eaSmrg  -d, --debug      don't remove temporary files
5369a0d3b6eaSmrg      --recheck    update $as_me by reconfiguring in the same conditions
537062df5ad0Smrg      --file=FILE[:TEMPLATE]
537162df5ad0Smrg                   instantiate the configuration file FILE
537262df5ad0Smrg      --header=FILE[:TEMPLATE]
537362df5ad0Smrg                   instantiate the configuration header FILE
5374a0d3b6eaSmrg
5375a0d3b6eaSmrgConfiguration files:
5376a0d3b6eaSmrg$config_files
5377a0d3b6eaSmrg
5378a0d3b6eaSmrgConfiguration headers:
5379a0d3b6eaSmrg$config_headers
5380a0d3b6eaSmrg
5381a0d3b6eaSmrgConfiguration commands:
5382a0d3b6eaSmrg$config_commands
5383a0d3b6eaSmrg
5384f8a31ee4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5385a0d3b6eaSmrg
5386a0d3b6eaSmrg_ACEOF
538762df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5388f8a31ee4Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5389a0d3b6eaSmrgac_cs_version="\\
5390781f9a67Smrgxrandr config.status 1.3.5
53914def10e6Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5392f8a31ee4Smrg  with options \\"\$ac_cs_config\\"
5393a0d3b6eaSmrg
53944def10e6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
5395a0d3b6eaSmrgThis config.status script is free software; the Free Software Foundation
5396a0d3b6eaSmrggives unlimited permission to copy, distribute and modify it."
5397a0d3b6eaSmrg
5398a0d3b6eaSmrgac_pwd='$ac_pwd'
5399a0d3b6eaSmrgsrcdir='$srcdir'
5400a0d3b6eaSmrgINSTALL='$INSTALL'
5401a0d3b6eaSmrgMKDIR_P='$MKDIR_P'
540262df5ad0SmrgAWK='$AWK'
540362df5ad0Smrgtest -n "\$AWK" || AWK=awk
5404a0d3b6eaSmrg_ACEOF
5405a0d3b6eaSmrg
540662df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
540762df5ad0Smrg# The default lists apply if the user does not specify any file.
5408a0d3b6eaSmrgac_need_defaults=:
5409a0d3b6eaSmrgwhile test $# != 0
5410a0d3b6eaSmrgdo
5411a0d3b6eaSmrg  case $1 in
54124def10e6Smrg  --*=?*)
5413a0d3b6eaSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5414a0d3b6eaSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5415a0d3b6eaSmrg    ac_shift=:
5416a0d3b6eaSmrg    ;;
54174def10e6Smrg  --*=)
54184def10e6Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
54194def10e6Smrg    ac_optarg=
54204def10e6Smrg    ac_shift=:
54214def10e6Smrg    ;;
5422a0d3b6eaSmrg  *)
5423a0d3b6eaSmrg    ac_option=$1
5424a0d3b6eaSmrg    ac_optarg=$2
5425a0d3b6eaSmrg    ac_shift=shift
5426a0d3b6eaSmrg    ;;
5427a0d3b6eaSmrg  esac
5428a0d3b6eaSmrg
5429a0d3b6eaSmrg  case $ac_option in
5430a0d3b6eaSmrg  # Handling of the options.
5431a0d3b6eaSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5432a0d3b6eaSmrg    ac_cs_recheck=: ;;
5433a0d3b6eaSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
543462df5ad0Smrg    $as_echo "$ac_cs_version"; exit ;;
5435f8a31ee4Smrg  --config | --confi | --conf | --con | --co | --c )
5436f8a31ee4Smrg    $as_echo "$ac_cs_config"; exit ;;
5437a0d3b6eaSmrg  --debug | --debu | --deb | --de | --d | -d )
5438a0d3b6eaSmrg    debug=: ;;
5439a0d3b6eaSmrg  --file | --fil | --fi | --f )
5440a0d3b6eaSmrg    $ac_shift
544162df5ad0Smrg    case $ac_optarg in
544262df5ad0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54434def10e6Smrg    '') as_fn_error $? "missing file argument" ;;
544462df5ad0Smrg    esac
5445f8a31ee4Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5446a0d3b6eaSmrg    ac_need_defaults=false;;
5447a0d3b6eaSmrg  --header | --heade | --head | --hea )
5448a0d3b6eaSmrg    $ac_shift
544962df5ad0Smrg    case $ac_optarg in
545062df5ad0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
545162df5ad0Smrg    esac
5452f8a31ee4Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5453a0d3b6eaSmrg    ac_need_defaults=false;;
5454a0d3b6eaSmrg  --he | --h)
5455a0d3b6eaSmrg    # Conflict between --help and --header
54564def10e6Smrg    as_fn_error $? "ambiguous option: \`$1'
5457f8a31ee4SmrgTry \`$0 --help' for more information.";;
5458a0d3b6eaSmrg  --help | --hel | -h )
545962df5ad0Smrg    $as_echo "$ac_cs_usage"; exit ;;
5460a0d3b6eaSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5461a0d3b6eaSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5462a0d3b6eaSmrg    ac_cs_silent=: ;;
5463a0d3b6eaSmrg
5464a0d3b6eaSmrg  # This is an error.
54654def10e6Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5466f8a31ee4SmrgTry \`$0 --help' for more information." ;;
5467a0d3b6eaSmrg
5468f8a31ee4Smrg  *) as_fn_append ac_config_targets " $1"
5469a0d3b6eaSmrg     ac_need_defaults=false ;;
5470a0d3b6eaSmrg
5471a0d3b6eaSmrg  esac
5472a0d3b6eaSmrg  shift
5473a0d3b6eaSmrgdone
5474a0d3b6eaSmrg
5475a0d3b6eaSmrgac_configure_extra_args=
5476a0d3b6eaSmrg
5477a0d3b6eaSmrgif $ac_cs_silent; then
5478a0d3b6eaSmrg  exec 6>/dev/null
5479a0d3b6eaSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5480a0d3b6eaSmrgfi
5481a0d3b6eaSmrg
5482a0d3b6eaSmrg_ACEOF
548362df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5484a0d3b6eaSmrgif \$ac_cs_recheck; then
548562df5ad0Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
548662df5ad0Smrg  shift
548762df5ad0Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
548862df5ad0Smrg  CONFIG_SHELL='$SHELL'
5489a0d3b6eaSmrg  export CONFIG_SHELL
549062df5ad0Smrg  exec "\$@"
5491a0d3b6eaSmrgfi
5492a0d3b6eaSmrg
5493a0d3b6eaSmrg_ACEOF
549462df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5495a0d3b6eaSmrgexec 5>>config.log
5496a0d3b6eaSmrg{
5497a0d3b6eaSmrg  echo
5498a0d3b6eaSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5499a0d3b6eaSmrg## Running $as_me. ##
5500a0d3b6eaSmrg_ASBOX
550162df5ad0Smrg  $as_echo "$ac_log"
5502a0d3b6eaSmrg} >&5
5503a0d3b6eaSmrg
5504a0d3b6eaSmrg_ACEOF
550562df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5506a0d3b6eaSmrg#
5507a0d3b6eaSmrg# INIT-COMMANDS
5508a0d3b6eaSmrg#
5509a0d3b6eaSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5510a0d3b6eaSmrg
5511a0d3b6eaSmrg_ACEOF
5512a0d3b6eaSmrg
551362df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5514a0d3b6eaSmrg
5515a0d3b6eaSmrg# Handling of arguments.
5516a0d3b6eaSmrgfor ac_config_target in $ac_config_targets
5517a0d3b6eaSmrgdo
5518a0d3b6eaSmrg  case $ac_config_target in
5519a0d3b6eaSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5520f8a31ee4Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5521a0d3b6eaSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5522781f9a67Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5523a0d3b6eaSmrg
55244def10e6Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5525a0d3b6eaSmrg  esac
5526a0d3b6eaSmrgdone
5527a0d3b6eaSmrg
5528a0d3b6eaSmrg
5529a0d3b6eaSmrg# If the user did not use the arguments to specify the items to instantiate,
5530a0d3b6eaSmrg# then the envvar interface is used.  Set only those that are not.
5531a0d3b6eaSmrg# We use the long form for the default assignment because of an extremely
5532a0d3b6eaSmrg# bizarre bug on SunOS 4.1.3.
5533a0d3b6eaSmrgif $ac_need_defaults; then
5534a0d3b6eaSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5535a0d3b6eaSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5536a0d3b6eaSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5537a0d3b6eaSmrgfi
5538a0d3b6eaSmrg
5539a0d3b6eaSmrg# Have a temporary directory for convenience.  Make it in the build tree
5540a0d3b6eaSmrg# simply because there is no reason against having it here, and in addition,
5541a0d3b6eaSmrg# creating and moving files from /tmp can sometimes cause problems.
5542a0d3b6eaSmrg# Hook for its removal unless debugging.
5543a0d3b6eaSmrg# Note that there is a small window in which the directory will not be cleaned:
5544a0d3b6eaSmrg# after its creation but before its name has been assigned to `$tmp'.
5545a0d3b6eaSmrg$debug ||
5546a0d3b6eaSmrg{
55474def10e6Smrg  tmp= ac_tmp=
5548a0d3b6eaSmrg  trap 'exit_status=$?
55494def10e6Smrg  : "${ac_tmp:=$tmp}"
55504def10e6Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5551a0d3b6eaSmrg' 0
5552f8a31ee4Smrg  trap 'as_fn_exit 1' 1 2 13 15
5553a0d3b6eaSmrg}
5554a0d3b6eaSmrg# Create a (secure) tmp directory for tmp files.
5555a0d3b6eaSmrg
5556a0d3b6eaSmrg{
5557a0d3b6eaSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55584def10e6Smrg  test -d "$tmp"
5559a0d3b6eaSmrg}  ||
5560a0d3b6eaSmrg{
5561a0d3b6eaSmrg  tmp=./conf$$-$RANDOM
5562a0d3b6eaSmrg  (umask 077 && mkdir "$tmp")
55634def10e6Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
55644def10e6Smrgac_tmp=$tmp
5565a0d3b6eaSmrg
556662df5ad0Smrg# Set up the scripts for CONFIG_FILES section.
556762df5ad0Smrg# No need to generate them if there are no CONFIG_FILES.
556862df5ad0Smrg# This happens for instance with `./config.status config.h'.
5569a0d3b6eaSmrgif test -n "$CONFIG_FILES"; then
5570a0d3b6eaSmrg
5571a0d3b6eaSmrg
5572f8a31ee4Smrgac_cr=`echo X | tr X '\015'`
5573f8a31ee4Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5574f8a31ee4Smrg# But we know of no other shell where ac_cr would be empty at this
5575f8a31ee4Smrg# point, so we can use a bashism as a fallback.
5576f8a31ee4Smrgif test "x$ac_cr" = x; then
5577f8a31ee4Smrg  eval ac_cr=\$\'\\r\'
5578f8a31ee4Smrgfi
557962df5ad0Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
558062df5ad0Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
55814def10e6Smrg  ac_cs_awk_cr='\\r'
558262df5ad0Smrgelse
558362df5ad0Smrg  ac_cs_awk_cr=$ac_cr
5584a0d3b6eaSmrgfi
5585a0d3b6eaSmrg
55864def10e6Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5587a0d3b6eaSmrg_ACEOF
5588a0d3b6eaSmrg
5589a0d3b6eaSmrg
559062df5ad0Smrg{
559162df5ad0Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
559262df5ad0Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
559362df5ad0Smrg  echo "_ACEOF"
559462df5ad0Smrg} >conf$$subs.sh ||
55954def10e6Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
55964def10e6Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5597a0d3b6eaSmrgac_delim='%!_!# '
5598a0d3b6eaSmrgfor ac_last_try in false false false false false :; do
559962df5ad0Smrg  . ./conf$$subs.sh ||
56004def10e6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5601a0d3b6eaSmrg
560262df5ad0Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
560362df5ad0Smrg  if test $ac_delim_n = $ac_delim_num; then
5604a0d3b6eaSmrg    break
5605a0d3b6eaSmrg  elif $ac_last_try; then
56064def10e6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5607a0d3b6eaSmrg  else
5608a0d3b6eaSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5609a0d3b6eaSmrg  fi
5610a0d3b6eaSmrgdone
561162df5ad0Smrgrm -f conf$$subs.sh
5612a0d3b6eaSmrg
561362df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56144def10e6Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
561562df5ad0Smrg_ACEOF
561662df5ad0Smrgsed -n '
561762df5ad0Smrgh
561862df5ad0Smrgs/^/S["/; s/!.*/"]=/
561962df5ad0Smrgp
562062df5ad0Smrgg
562162df5ad0Smrgs/^[^!]*!//
562262df5ad0Smrg:repl
562362df5ad0Smrgt repl
562462df5ad0Smrgs/'"$ac_delim"'$//
562562df5ad0Smrgt delim
562662df5ad0Smrg:nl
562762df5ad0Smrgh
5628f8a31ee4Smrgs/\(.\{148\}\)..*/\1/
562962df5ad0Smrgt more1
563062df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
563162df5ad0Smrgp
563262df5ad0Smrgn
563362df5ad0Smrgb repl
563462df5ad0Smrg:more1
563562df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
563662df5ad0Smrgp
563762df5ad0Smrgg
563862df5ad0Smrgs/.\{148\}//
563962df5ad0Smrgt nl
564062df5ad0Smrg:delim
564162df5ad0Smrgh
5642f8a31ee4Smrgs/\(.\{148\}\)..*/\1/
564362df5ad0Smrgt more2
564462df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
564562df5ad0Smrgp
564662df5ad0Smrgb
564762df5ad0Smrg:more2
564862df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
564962df5ad0Smrgp
565062df5ad0Smrgg
565162df5ad0Smrgs/.\{148\}//
565262df5ad0Smrgt delim
565362df5ad0Smrg' <conf$$subs.awk | sed '
565462df5ad0Smrg/^[^""]/{
565562df5ad0Smrg  N
565662df5ad0Smrg  s/\n//
565762df5ad0Smrg}
565862df5ad0Smrg' >>$CONFIG_STATUS || ac_write_fail=1
565962df5ad0Smrgrm -f conf$$subs.awk
566062df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
566162df5ad0Smrg_ACAWK
56624def10e6Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
566362df5ad0Smrg  for (key in S) S_is_set[key] = 1
566462df5ad0Smrg  FS = ""
566562df5ad0Smrg
566662df5ad0Smrg}
566762df5ad0Smrg{
566862df5ad0Smrg  line = $ 0
566962df5ad0Smrg  nfields = split(line, field, "@")
567062df5ad0Smrg  substed = 0
567162df5ad0Smrg  len = length(field[1])
567262df5ad0Smrg  for (i = 2; i < nfields; i++) {
567362df5ad0Smrg    key = field[i]
567462df5ad0Smrg    keylen = length(key)
567562df5ad0Smrg    if (S_is_set[key]) {
567662df5ad0Smrg      value = S[key]
567762df5ad0Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
567862df5ad0Smrg      len += length(value) + length(field[++i])
567962df5ad0Smrg      substed = 1
568062df5ad0Smrg    } else
568162df5ad0Smrg      len += 1 + keylen
568262df5ad0Smrg  }
568362df5ad0Smrg
568462df5ad0Smrg  print line
568562df5ad0Smrg}
5686a0d3b6eaSmrg
568762df5ad0Smrg_ACAWK
5688a0d3b6eaSmrg_ACEOF
568962df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
569062df5ad0Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
569162df5ad0Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
569262df5ad0Smrgelse
569362df5ad0Smrg  cat
56944def10e6Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
56954def10e6Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5696a0d3b6eaSmrg_ACEOF
5697a0d3b6eaSmrg
56984def10e6Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
56994def10e6Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5700a0d3b6eaSmrg# trailing colons and then remove the whole line if VPATH becomes empty
5701a0d3b6eaSmrg# (actually we leave an empty line to preserve line numbers).
5702a0d3b6eaSmrgif test "x$srcdir" = x.; then
57034def10e6Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
57044def10e6Smrgh
57054def10e6Smrgs///
57064def10e6Smrgs/^/:/
57074def10e6Smrgs/[	 ]*$/:/
57084def10e6Smrgs/:\$(srcdir):/:/g
57094def10e6Smrgs/:\${srcdir}:/:/g
57104def10e6Smrgs/:@srcdir@:/:/g
57114def10e6Smrgs/^:*//
5712a0d3b6eaSmrgs/:*$//
57134def10e6Smrgx
57144def10e6Smrgs/\(=[	 ]*\).*/\1/
57154def10e6SmrgG
57164def10e6Smrgs/\n//
5717a0d3b6eaSmrgs/^[^=]*=[	 ]*$//
5718a0d3b6eaSmrg}'
5719a0d3b6eaSmrgfi
5720a0d3b6eaSmrg
572162df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5722a0d3b6eaSmrgfi # test -n "$CONFIG_FILES"
5723a0d3b6eaSmrg
572462df5ad0Smrg# Set up the scripts for CONFIG_HEADERS section.
572562df5ad0Smrg# No need to generate them if there are no CONFIG_HEADERS.
572662df5ad0Smrg# This happens for instance with `./config.status Makefile'.
572762df5ad0Smrgif test -n "$CONFIG_HEADERS"; then
57284def10e6Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
572962df5ad0SmrgBEGIN {
573062df5ad0Smrg_ACEOF
573162df5ad0Smrg
573262df5ad0Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
573362df5ad0Smrg# here-document in config.status, that substitutes the proper values into
573462df5ad0Smrg# config.h.in to produce config.h.
573562df5ad0Smrg
573662df5ad0Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
573762df5ad0Smrg# handling of long lines.
573862df5ad0Smrgac_delim='%!_!# '
573962df5ad0Smrgfor ac_last_try in false false :; do
57404def10e6Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57414def10e6Smrg  if test -z "$ac_tt"; then
574262df5ad0Smrg    break
574362df5ad0Smrg  elif $ac_last_try; then
57444def10e6Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
574562df5ad0Smrg  else
574662df5ad0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
574762df5ad0Smrg  fi
574862df5ad0Smrgdone
574962df5ad0Smrg
575062df5ad0Smrg# For the awk script, D is an array of macro values keyed by name,
575162df5ad0Smrg# likewise P contains macro parameters if any.  Preserve backslash
575262df5ad0Smrg# newline sequences.
575362df5ad0Smrg
575462df5ad0Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
575562df5ad0Smrgsed -n '
575662df5ad0Smrgs/.\{148\}/&'"$ac_delim"'/g
575762df5ad0Smrgt rset
575862df5ad0Smrg:rset
575962df5ad0Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
576062df5ad0Smrgt def
576162df5ad0Smrgd
576262df5ad0Smrg:def
576362df5ad0Smrgs/\\$//
576462df5ad0Smrgt bsnl
576562df5ad0Smrgs/["\\]/\\&/g
576662df5ad0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
576762df5ad0SmrgD["\1"]=" \3"/p
576862df5ad0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
576962df5ad0Smrgd
577062df5ad0Smrg:bsnl
577162df5ad0Smrgs/["\\]/\\&/g
577262df5ad0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
577362df5ad0SmrgD["\1"]=" \3\\\\\\n"\\/p
577462df5ad0Smrgt cont
577562df5ad0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
577662df5ad0Smrgt cont
577762df5ad0Smrgd
577862df5ad0Smrg:cont
577962df5ad0Smrgn
578062df5ad0Smrgs/.\{148\}/&'"$ac_delim"'/g
578162df5ad0Smrgt clear
578262df5ad0Smrg:clear
578362df5ad0Smrgs/\\$//
578462df5ad0Smrgt bsnlc
578562df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
578662df5ad0Smrgd
578762df5ad0Smrg:bsnlc
578862df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
578962df5ad0Smrgb cont
579062df5ad0Smrg' <confdefs.h | sed '
579162df5ad0Smrgs/'"$ac_delim"'/"\\\
579262df5ad0Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
579362df5ad0Smrg
579462df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
579562df5ad0Smrg  for (key in D) D_is_set[key] = 1
579662df5ad0Smrg  FS = ""
579762df5ad0Smrg}
579862df5ad0Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
579962df5ad0Smrg  line = \$ 0
580062df5ad0Smrg  split(line, arg, " ")
580162df5ad0Smrg  if (arg[1] == "#") {
580262df5ad0Smrg    defundef = arg[2]
580362df5ad0Smrg    mac1 = arg[3]
580462df5ad0Smrg  } else {
580562df5ad0Smrg    defundef = substr(arg[1], 2)
580662df5ad0Smrg    mac1 = arg[2]
580762df5ad0Smrg  }
580862df5ad0Smrg  split(mac1, mac2, "(") #)
580962df5ad0Smrg  macro = mac2[1]
581062df5ad0Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
581162df5ad0Smrg  if (D_is_set[macro]) {
581262df5ad0Smrg    # Preserve the white space surrounding the "#".
581362df5ad0Smrg    print prefix "define", macro P[macro] D[macro]
581462df5ad0Smrg    next
581562df5ad0Smrg  } else {
581662df5ad0Smrg    # Replace #undef with comments.  This is necessary, for example,
581762df5ad0Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
581862df5ad0Smrg    # on some systems where configure will not decide to define it.
581962df5ad0Smrg    if (defundef == "undef") {
582062df5ad0Smrg      print "/*", prefix defundef, macro, "*/"
582162df5ad0Smrg      next
582262df5ad0Smrg    }
582362df5ad0Smrg  }
582462df5ad0Smrg}
582562df5ad0Smrg{ print }
582662df5ad0Smrg_ACAWK
582762df5ad0Smrg_ACEOF
582862df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58294def10e6Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
583062df5ad0Smrgfi # test -n "$CONFIG_HEADERS"
583162df5ad0Smrg
5832a0d3b6eaSmrg
583362df5ad0Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
583462df5ad0Smrgshift
583562df5ad0Smrgfor ac_tag
5836a0d3b6eaSmrgdo
5837a0d3b6eaSmrg  case $ac_tag in
5838a0d3b6eaSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5839a0d3b6eaSmrg  esac
5840a0d3b6eaSmrg  case $ac_mode$ac_tag in
5841a0d3b6eaSmrg  :[FHL]*:*);;
58424def10e6Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5843a0d3b6eaSmrg  :[FH]-) ac_tag=-:-;;
5844a0d3b6eaSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5845a0d3b6eaSmrg  esac
5846a0d3b6eaSmrg  ac_save_IFS=$IFS
5847a0d3b6eaSmrg  IFS=:
5848a0d3b6eaSmrg  set x $ac_tag
5849a0d3b6eaSmrg  IFS=$ac_save_IFS
5850a0d3b6eaSmrg  shift
5851a0d3b6eaSmrg  ac_file=$1
5852a0d3b6eaSmrg  shift
5853a0d3b6eaSmrg
5854a0d3b6eaSmrg  case $ac_mode in
5855a0d3b6eaSmrg  :L) ac_source=$1;;
5856a0d3b6eaSmrg  :[FH])
5857a0d3b6eaSmrg    ac_file_inputs=
5858a0d3b6eaSmrg    for ac_f
5859a0d3b6eaSmrg    do
5860a0d3b6eaSmrg      case $ac_f in
58614def10e6Smrg      -) ac_f="$ac_tmp/stdin";;
5862a0d3b6eaSmrg      *) # Look for the file first in the build tree, then in the source tree
5863a0d3b6eaSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5864a0d3b6eaSmrg	 # because $ac_f cannot contain `:'.
5865a0d3b6eaSmrg	 test -f "$ac_f" ||
5866a0d3b6eaSmrg	   case $ac_f in
5867a0d3b6eaSmrg	   [\\/$]*) false;;
5868a0d3b6eaSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5869a0d3b6eaSmrg	   esac ||
58704def10e6Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5871a0d3b6eaSmrg      esac
587262df5ad0Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5873f8a31ee4Smrg      as_fn_append ac_file_inputs " '$ac_f'"
5874a0d3b6eaSmrg    done
5875a0d3b6eaSmrg
5876a0d3b6eaSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5877a0d3b6eaSmrg    # use $as_me), people would be surprised to read:
5878a0d3b6eaSmrg    #    /* config.h.  Generated by config.status.  */
587962df5ad0Smrg    configure_input='Generated from '`
588062df5ad0Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
588162df5ad0Smrg	`' by configure.'
5882a0d3b6eaSmrg    if test x"$ac_file" != x-; then
5883a0d3b6eaSmrg      configure_input="$ac_file.  $configure_input"
5884f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
588562df5ad0Smrg$as_echo "$as_me: creating $ac_file" >&6;}
5886a0d3b6eaSmrg    fi
588762df5ad0Smrg    # Neutralize special characters interpreted by sed in replacement strings.
588862df5ad0Smrg    case $configure_input in #(
588962df5ad0Smrg    *\&* | *\|* | *\\* )
589062df5ad0Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
589162df5ad0Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
589262df5ad0Smrg    *) ac_sed_conf_input=$configure_input;;
589362df5ad0Smrg    esac
5894a0d3b6eaSmrg
5895a0d3b6eaSmrg    case $ac_tag in
58964def10e6Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
58974def10e6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5898a0d3b6eaSmrg    esac
5899a0d3b6eaSmrg    ;;
5900a0d3b6eaSmrg  esac
5901a0d3b6eaSmrg
5902a0d3b6eaSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
5903a0d3b6eaSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5904a0d3b6eaSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
5905a0d3b6eaSmrg	 X"$ac_file" : 'X\(//\)$' \| \
5906a0d3b6eaSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
590762df5ad0Smrg$as_echo X"$ac_file" |
5908a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5909a0d3b6eaSmrg	    s//\1/
5910a0d3b6eaSmrg	    q
5911a0d3b6eaSmrg	  }
5912a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
5913a0d3b6eaSmrg	    s//\1/
5914a0d3b6eaSmrg	    q
5915a0d3b6eaSmrg	  }
5916a0d3b6eaSmrg	  /^X\(\/\/\)$/{
5917a0d3b6eaSmrg	    s//\1/
5918a0d3b6eaSmrg	    q
5919a0d3b6eaSmrg	  }
5920a0d3b6eaSmrg	  /^X\(\/\).*/{
5921a0d3b6eaSmrg	    s//\1/
5922a0d3b6eaSmrg	    q
5923a0d3b6eaSmrg	  }
5924a0d3b6eaSmrg	  s/.*/./; q'`
5925f8a31ee4Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
5926a0d3b6eaSmrg  ac_builddir=.
5927a0d3b6eaSmrg
5928a0d3b6eaSmrgcase "$ac_dir" in
5929a0d3b6eaSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5930a0d3b6eaSmrg*)
593162df5ad0Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5932a0d3b6eaSmrg  # A ".." for each directory in $ac_dir_suffix.
593362df5ad0Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5934a0d3b6eaSmrg  case $ac_top_builddir_sub in
5935a0d3b6eaSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5936a0d3b6eaSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5937a0d3b6eaSmrg  esac ;;
5938a0d3b6eaSmrgesac
5939a0d3b6eaSmrgac_abs_top_builddir=$ac_pwd
5940a0d3b6eaSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5941a0d3b6eaSmrg# for backward compatibility:
5942a0d3b6eaSmrgac_top_builddir=$ac_top_build_prefix
5943a0d3b6eaSmrg
5944a0d3b6eaSmrgcase $srcdir in
5945a0d3b6eaSmrg  .)  # We are building in place.
5946a0d3b6eaSmrg    ac_srcdir=.
5947a0d3b6eaSmrg    ac_top_srcdir=$ac_top_builddir_sub
5948a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd ;;
5949a0d3b6eaSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
5950a0d3b6eaSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
5951a0d3b6eaSmrg    ac_top_srcdir=$srcdir
5952a0d3b6eaSmrg    ac_abs_top_srcdir=$srcdir ;;
5953a0d3b6eaSmrg  *) # Relative name.
5954a0d3b6eaSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5955a0d3b6eaSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5956a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5957a0d3b6eaSmrgesac
5958a0d3b6eaSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5959a0d3b6eaSmrg
5960a0d3b6eaSmrg
5961a0d3b6eaSmrg  case $ac_mode in
5962a0d3b6eaSmrg  :F)
5963a0d3b6eaSmrg  #
5964a0d3b6eaSmrg  # CONFIG_FILE
5965a0d3b6eaSmrg  #
5966a0d3b6eaSmrg
5967a0d3b6eaSmrg  case $INSTALL in
5968a0d3b6eaSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5969a0d3b6eaSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5970a0d3b6eaSmrg  esac
5971a0d3b6eaSmrg  ac_MKDIR_P=$MKDIR_P
5972a0d3b6eaSmrg  case $MKDIR_P in
5973a0d3b6eaSmrg  [\\/$]* | ?:[\\/]* ) ;;
5974a0d3b6eaSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5975a0d3b6eaSmrg  esac
5976a0d3b6eaSmrg_ACEOF
5977a0d3b6eaSmrg
597862df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979a0d3b6eaSmrg# If the template does not know about datarootdir, expand it.
5980a0d3b6eaSmrg# FIXME: This hack should be removed a few years after 2.60.
5981a0d3b6eaSmrgac_datarootdir_hack=; ac_datarootdir_seen=
598262df5ad0Smrgac_sed_dataroot='
598362df5ad0Smrg/datarootdir/ {
5984a0d3b6eaSmrg  p
5985a0d3b6eaSmrg  q
5986a0d3b6eaSmrg}
5987a0d3b6eaSmrg/@datadir@/p
5988a0d3b6eaSmrg/@docdir@/p
5989a0d3b6eaSmrg/@infodir@/p
5990a0d3b6eaSmrg/@localedir@/p
5991f8a31ee4Smrg/@mandir@/p'
599262df5ad0Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5993a0d3b6eaSmrg*datarootdir*) ac_datarootdir_seen=yes;;
5994a0d3b6eaSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5995f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
599662df5ad0Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5997a0d3b6eaSmrg_ACEOF
599862df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5999a0d3b6eaSmrg  ac_datarootdir_hack='
6000a0d3b6eaSmrg  s&@datadir@&$datadir&g
6001a0d3b6eaSmrg  s&@docdir@&$docdir&g
6002a0d3b6eaSmrg  s&@infodir@&$infodir&g
6003a0d3b6eaSmrg  s&@localedir@&$localedir&g
6004a0d3b6eaSmrg  s&@mandir@&$mandir&g
6005f8a31ee4Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6006a0d3b6eaSmrgesac
6007a0d3b6eaSmrg_ACEOF
6008a0d3b6eaSmrg
6009a0d3b6eaSmrg# Neutralize VPATH when `$srcdir' = `.'.
6010a0d3b6eaSmrg# Shell code in configure.ac might set extrasub.
6011a0d3b6eaSmrg# FIXME: do we really want to maintain this feature?
601262df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
601362df5ad0Smrgac_sed_extra="$ac_vpsub
6014a0d3b6eaSmrg$extrasub
6015a0d3b6eaSmrg_ACEOF
601662df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6017a0d3b6eaSmrg:t
6018a0d3b6eaSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
601962df5ad0Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6020a0d3b6eaSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
602162df5ad0Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6022a0d3b6eaSmrgs&@srcdir@&$ac_srcdir&;t t
6023a0d3b6eaSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6024a0d3b6eaSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6025a0d3b6eaSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6026a0d3b6eaSmrgs&@builddir@&$ac_builddir&;t t
6027a0d3b6eaSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6028a0d3b6eaSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6029a0d3b6eaSmrgs&@INSTALL@&$ac_INSTALL&;t t
6030a0d3b6eaSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6031a0d3b6eaSmrg$ac_datarootdir_hack
603262df5ad0Smrg"
60334def10e6Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
60344def10e6Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6035a0d3b6eaSmrg
6036a0d3b6eaSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60374def10e6Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
60384def10e6Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
60394def10e6Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6040f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60414def10e6Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
604262df5ad0Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60434def10e6Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6044a0d3b6eaSmrg
60454def10e6Smrg  rm -f "$ac_tmp/stdin"
6046a0d3b6eaSmrg  case $ac_file in
60474def10e6Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
60484def10e6Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
604962df5ad0Smrg  esac \
60504def10e6Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6051a0d3b6eaSmrg ;;
6052a0d3b6eaSmrg  :H)
6053a0d3b6eaSmrg  #
6054a0d3b6eaSmrg  # CONFIG_HEADER
6055a0d3b6eaSmrg  #
6056a0d3b6eaSmrg  if test x"$ac_file" != x-; then
605762df5ad0Smrg    {
605862df5ad0Smrg      $as_echo "/* $configure_input  */" \
60594def10e6Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
60604def10e6Smrg    } >"$ac_tmp/config.h" \
60614def10e6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
60624def10e6Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6063f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
606462df5ad0Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6065a0d3b6eaSmrg    else
606662df5ad0Smrg      rm -f "$ac_file"
60674def10e6Smrg      mv "$ac_tmp/config.h" "$ac_file" \
60684def10e6Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6069a0d3b6eaSmrg    fi
6070a0d3b6eaSmrg  else
607162df5ad0Smrg    $as_echo "/* $configure_input  */" \
60724def10e6Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
60734def10e6Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
6074a0d3b6eaSmrg  fi
607562df5ad0Smrg# Compute "$ac_file"'s index in $config_headers.
607662df5ad0Smrg_am_arg="$ac_file"
6077a0d3b6eaSmrg_am_stamp_count=1
6078a0d3b6eaSmrgfor _am_header in $config_headers :; do
6079a0d3b6eaSmrg  case $_am_header in
6080a0d3b6eaSmrg    $_am_arg | $_am_arg:* )
6081a0d3b6eaSmrg      break ;;
6082a0d3b6eaSmrg    * )
6083a0d3b6eaSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6084a0d3b6eaSmrg  esac
6085a0d3b6eaSmrgdone
6086a0d3b6eaSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6087a0d3b6eaSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6088a0d3b6eaSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6089a0d3b6eaSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6090a0d3b6eaSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
609162df5ad0Smrg$as_echo X"$_am_arg" |
6092a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6093a0d3b6eaSmrg	    s//\1/
6094a0d3b6eaSmrg	    q
6095a0d3b6eaSmrg	  }
6096a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6097a0d3b6eaSmrg	    s//\1/
6098a0d3b6eaSmrg	    q
6099a0d3b6eaSmrg	  }
6100a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6101a0d3b6eaSmrg	    s//\1/
6102a0d3b6eaSmrg	    q
6103a0d3b6eaSmrg	  }
6104a0d3b6eaSmrg	  /^X\(\/\).*/{
6105a0d3b6eaSmrg	    s//\1/
6106a0d3b6eaSmrg	    q
6107a0d3b6eaSmrg	  }
6108a0d3b6eaSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6109a0d3b6eaSmrg ;;
6110a0d3b6eaSmrg
6111f8a31ee4Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
611262df5ad0Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6113a0d3b6eaSmrg ;;
6114a0d3b6eaSmrg  esac
6115a0d3b6eaSmrg
6116a0d3b6eaSmrg
6117a0d3b6eaSmrg  case $ac_file$ac_mode in
6118f8a31ee4Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6119f8a31ee4Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6120f8a31ee4Smrg  # are listed without --file.  Let's play safe and only enable the eval
6121f8a31ee4Smrg  # if we detect the quoting.
6122f8a31ee4Smrg  case $CONFIG_FILES in
6123f8a31ee4Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6124f8a31ee4Smrg  *)   set x $CONFIG_FILES ;;
6125f8a31ee4Smrg  esac
6126f8a31ee4Smrg  shift
6127f8a31ee4Smrg  for mf
6128f8a31ee4Smrg  do
6129f8a31ee4Smrg    # Strip MF so we end up with the name of the file.
6130f8a31ee4Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6131f8a31ee4Smrg    # Check whether this is an Automake generated Makefile or not.
6132f8a31ee4Smrg    # We used to match only the files named `Makefile.in', but
6133f8a31ee4Smrg    # some people rename them; so instead we look at the file content.
6134f8a31ee4Smrg    # Grep'ing the first line is not enough: some people post-process
6135f8a31ee4Smrg    # each Makefile.in and add a new line on top of each file to say so.
6136f8a31ee4Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6137f8a31ee4Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6138f8a31ee4Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6139f8a31ee4Smrg      dirpart=`$as_dirname -- "$mf" ||
6140a0d3b6eaSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6141a0d3b6eaSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6142a0d3b6eaSmrg	 X"$mf" : 'X\(//\)$' \| \
6143a0d3b6eaSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
614462df5ad0Smrg$as_echo X"$mf" |
6145a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6146a0d3b6eaSmrg	    s//\1/
6147a0d3b6eaSmrg	    q
6148a0d3b6eaSmrg	  }
6149a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6150a0d3b6eaSmrg	    s//\1/
6151a0d3b6eaSmrg	    q
6152a0d3b6eaSmrg	  }
6153a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6154a0d3b6eaSmrg	    s//\1/
6155a0d3b6eaSmrg	    q
6156a0d3b6eaSmrg	  }
6157a0d3b6eaSmrg	  /^X\(\/\).*/{
6158a0d3b6eaSmrg	    s//\1/
6159a0d3b6eaSmrg	    q
6160a0d3b6eaSmrg	  }
6161a0d3b6eaSmrg	  s/.*/./; q'`
6162f8a31ee4Smrg    else
6163f8a31ee4Smrg      continue
6164f8a31ee4Smrg    fi
6165f8a31ee4Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6166f8a31ee4Smrg    # from the Makefile without running `make'.
6167f8a31ee4Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6168f8a31ee4Smrg    test -z "$DEPDIR" && continue
6169f8a31ee4Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6170f8a31ee4Smrg    test -z "am__include" && continue
6171f8a31ee4Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6172f8a31ee4Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6173f8a31ee4Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6174f8a31ee4Smrg    # Find all dependency output files, they are included files with
6175f8a31ee4Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6176f8a31ee4Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6177f8a31ee4Smrg    # expansion.
6178f8a31ee4Smrg    for file in `sed -n "
6179f8a31ee4Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6180f8a31ee4Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6181f8a31ee4Smrg      # Make sure the directory exists.
6182f8a31ee4Smrg      test -f "$dirpart/$file" && continue
6183f8a31ee4Smrg      fdir=`$as_dirname -- "$file" ||
6184a0d3b6eaSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6185a0d3b6eaSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6186a0d3b6eaSmrg	 X"$file" : 'X\(//\)$' \| \
6187a0d3b6eaSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
618862df5ad0Smrg$as_echo X"$file" |
6189a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6190a0d3b6eaSmrg	    s//\1/
6191a0d3b6eaSmrg	    q
6192a0d3b6eaSmrg	  }
6193a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6194a0d3b6eaSmrg	    s//\1/
6195a0d3b6eaSmrg	    q
6196a0d3b6eaSmrg	  }
6197a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6198a0d3b6eaSmrg	    s//\1/
6199a0d3b6eaSmrg	    q
6200a0d3b6eaSmrg	  }
6201a0d3b6eaSmrg	  /^X\(\/\).*/{
6202a0d3b6eaSmrg	    s//\1/
6203a0d3b6eaSmrg	    q
6204a0d3b6eaSmrg	  }
6205a0d3b6eaSmrg	  s/.*/./; q'`
6206f8a31ee4Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6207f8a31ee4Smrg      # echo "creating $dirpart/$file"
6208f8a31ee4Smrg      echo '# dummy' > "$dirpart/$file"
6209a0d3b6eaSmrg    done
6210a0d3b6eaSmrg  done
6211f8a31ee4Smrg}
6212a0d3b6eaSmrg ;;
6213a0d3b6eaSmrg
6214a0d3b6eaSmrg  esac
6215a0d3b6eaSmrgdone # for ac_tag
6216a0d3b6eaSmrg
6217a0d3b6eaSmrg
6218f8a31ee4Smrgas_fn_exit 0
6219a0d3b6eaSmrg_ACEOF
6220a0d3b6eaSmrgac_clean_files=$ac_clean_files_save
6221a0d3b6eaSmrg
622262df5ad0Smrgtest $ac_write_fail = 0 ||
62234def10e6Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
622462df5ad0Smrg
6225a0d3b6eaSmrg
6226a0d3b6eaSmrg# configure is writing to config.log, and then calls config.status.
6227a0d3b6eaSmrg# config.status does its own redirection, appending to config.log.
6228a0d3b6eaSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6229a0d3b6eaSmrg# by configure, so config.status won't be able to write to it; its
6230a0d3b6eaSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6231a0d3b6eaSmrg# effectively closing config.log, so it can be properly (re)opened and
6232a0d3b6eaSmrg# appended to by config.status.  When coming back to configure, we
6233a0d3b6eaSmrg# need to make the FD available again.
6234a0d3b6eaSmrgif test "$no_create" != yes; then
6235a0d3b6eaSmrg  ac_cs_success=:
6236a0d3b6eaSmrg  ac_config_status_args=
6237a0d3b6eaSmrg  test "$silent" = yes &&
6238a0d3b6eaSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6239a0d3b6eaSmrg  exec 5>/dev/null
6240a0d3b6eaSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6241a0d3b6eaSmrg  exec 5>>config.log
6242a0d3b6eaSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6243a0d3b6eaSmrg  # would make configure fail if this is the last instruction.
62444def10e6Smrg  $ac_cs_success || as_fn_exit 1
6245a0d3b6eaSmrgfi
624662df5ad0Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6247f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
624862df5ad0Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
624962df5ad0Smrgfi
6250a0d3b6eaSmrg
6251