configure revision 169a0819
164ce7165Smrg#! /bin/sh
264ce7165Smrg# Guess values for system-dependent variables and create Makefiles.
3169a0819Smrg# Generated by GNU Autoconf 2.68 for xhost 1.0.4.
464ce7165Smrg#
564ce7165Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
664ce7165Smrg#
7169a0819Smrg#
864ce7165Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9169a0819Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10169a0819Smrg# Foundation, Inc.
11169a0819Smrg#
12169a0819Smrg#
1364ce7165Smrg# This configure script is free software; the Free Software Foundation
1464ce7165Smrg# gives unlimited permission to copy, distribute and modify it.
15169a0819Smrg## -------------------- ##
16169a0819Smrg## M4sh Initialization. ##
17169a0819Smrg## -------------------- ##
1864ce7165Smrg
1964ce7165Smrg# Be more Bourne compatible
2064ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
21169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2264ce7165Smrg  emulate sh
2364ce7165Smrg  NULLCMD=:
24fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2564ce7165Smrg  # is contrary to our usage.  Disable this feature.
2664ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
2764ce7165Smrg  setopt NO_GLOB_SUBST
2864ce7165Smrgelse
29169a0819Smrg  case `(set -o) 2>/dev/null` in #(
30169a0819Smrg  *posix*) :
31169a0819Smrg    set -o posix ;; #(
32169a0819Smrg  *) :
33169a0819Smrg     ;;
3464ce7165Smrgesac
3564ce7165Smrgfi
3664ce7165Smrg
3764ce7165Smrg
38fb23d3a8Smrgas_nl='
39fb23d3a8Smrg'
40fb23d3a8Smrgexport as_nl
41fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46169a0819Smrg# but without wasting forks for bash or zsh.
47169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49169a0819Smrg  as_echo='print -r --'
50169a0819Smrg  as_echo_n='print -rn --'
51169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52fb23d3a8Smrg  as_echo='printf %s\n'
53fb23d3a8Smrg  as_echo_n='printf %s'
54fb23d3a8Smrgelse
55fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
5864ce7165Smrg  else
59fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60fb23d3a8Smrg    as_echo_n_body='eval
61fb23d3a8Smrg      arg=$1;
62169a0819Smrg      case $arg in #(
63fb23d3a8Smrg      *"$as_nl"*)
64fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66fb23d3a8Smrg      esac;
67fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68fb23d3a8Smrg    '
69fb23d3a8Smrg    export as_echo_n_body
70fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7164ce7165Smrg  fi
72fb23d3a8Smrg  export as_echo_body
73fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
74fb23d3a8Smrgfi
75fb23d3a8Smrg
76fb23d3a8Smrg# The user is always right.
77fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
78fb23d3a8Smrg  PATH_SEPARATOR=:
79fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81fb23d3a8Smrg      PATH_SEPARATOR=';'
82fb23d3a8Smrg  }
8364ce7165Smrgfi
8464ce7165Smrg
8564ce7165Smrg
8664ce7165Smrg# IFS
8764ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8864ce7165Smrg# there to prevent editors from complaining about space-tab.
8964ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9064ce7165Smrg# splitting by setting IFS to empty value.)
9164ce7165SmrgIFS=" ""	$as_nl"
9264ce7165Smrg
9364ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
94169a0819Smrgas_myself=
95169a0819Smrgcase $0 in #((
9664ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
9764ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864ce7165Smrgfor as_dir in $PATH
9964ce7165Smrgdo
10064ce7165Smrg  IFS=$as_save_IFS
10164ce7165Smrg  test -z "$as_dir" && as_dir=.
102169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103169a0819Smrg  done
10464ce7165SmrgIFS=$as_save_IFS
10564ce7165Smrg
10664ce7165Smrg     ;;
10764ce7165Smrgesac
10864ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10964ce7165Smrg# in which case we are not to be found in the path.
11064ce7165Smrgif test "x$as_myself" = x; then
11164ce7165Smrg  as_myself=$0
11264ce7165Smrgfi
11364ce7165Smrgif test ! -f "$as_myself"; then
114fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115169a0819Smrg  exit 1
11664ce7165Smrgfi
11764ce7165Smrg
118169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
121169a0819Smrg# trigger a bug in pdksh 5.2.14.
122169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123169a0819Smrgdo eval test x\${$as_var+set} = xset \
124169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12564ce7165Smrgdone
12664ce7165SmrgPS1='$ '
12764ce7165SmrgPS2='> '
12864ce7165SmrgPS4='+ '
12964ce7165Smrg
13064ce7165Smrg# NLS nuisances.
131fb23d3a8SmrgLC_ALL=C
132fb23d3a8Smrgexport LC_ALL
133fb23d3a8SmrgLANGUAGE=C
134fb23d3a8Smrgexport LANGUAGE
13564ce7165Smrg
136169a0819Smrg# CDPATH.
137169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138169a0819Smrg
139169a0819Smrgif test "x$CONFIG_SHELL" = x; then
140169a0819Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141169a0819Smrg  emulate sh
142169a0819Smrg  NULLCMD=:
143169a0819Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144169a0819Smrg  # is contrary to our usage.  Disable this feature.
145169a0819Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146169a0819Smrg  setopt NO_GLOB_SUBST
147169a0819Smrgelse
148169a0819Smrg  case \`(set -o) 2>/dev/null\` in #(
149169a0819Smrg  *posix*) :
150169a0819Smrg    set -o posix ;; #(
151169a0819Smrg  *) :
152169a0819Smrg     ;;
153169a0819Smrgesac
154169a0819Smrgfi
155169a0819Smrg"
156169a0819Smrg  as_required="as_fn_return () { (exit \$1); }
157169a0819Smrgas_fn_success () { as_fn_return 0; }
158169a0819Smrgas_fn_failure () { as_fn_return 1; }
159169a0819Smrgas_fn_ret_success () { return 0; }
160169a0819Smrgas_fn_ret_failure () { return 1; }
161169a0819Smrg
162169a0819Smrgexitcode=0
163169a0819Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164169a0819Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165169a0819Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166169a0819Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167169a0819Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168169a0819Smrg
169169a0819Smrgelse
170169a0819Smrg  exitcode=1; echo positional parameters were not saved.
171169a0819Smrgfi
172169a0819Smrgtest x\$exitcode = x0 || exit 1"
173169a0819Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174169a0819Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175169a0819Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176169a0819Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177169a0819Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178169a0819Smrg  if (eval "$as_required") 2>/dev/null; then :
179169a0819Smrg  as_have_required=yes
180169a0819Smrgelse
181169a0819Smrg  as_have_required=no
182169a0819Smrgfi
183169a0819Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184169a0819Smrg
185169a0819Smrgelse
186169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187169a0819Smrgas_found=false
188169a0819Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189169a0819Smrgdo
190169a0819Smrg  IFS=$as_save_IFS
191169a0819Smrg  test -z "$as_dir" && as_dir=.
192169a0819Smrg  as_found=:
193169a0819Smrg  case $as_dir in #(
194169a0819Smrg	 /*)
195169a0819Smrg	   for as_base in sh bash ksh sh5; do
196169a0819Smrg	     # Try only shells that exist, to save several forks.
197169a0819Smrg	     as_shell=$as_dir/$as_base
198169a0819Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199169a0819Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200169a0819Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201169a0819Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202169a0819Smrg  break 2
203169a0819Smrgfi
204169a0819Smrgfi
205169a0819Smrg	   done;;
206169a0819Smrg       esac
207169a0819Smrg  as_found=false
208169a0819Smrgdone
209169a0819Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210169a0819Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211169a0819Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212169a0819Smrgfi; }
213169a0819SmrgIFS=$as_save_IFS
214169a0819Smrg
215169a0819Smrg
216169a0819Smrg      if test "x$CONFIG_SHELL" != x; then :
217169a0819Smrg  # We cannot yet assume a decent shell, so we have to provide a
218169a0819Smrg	# neutralization value for shells without unset; and this also
219169a0819Smrg	# works around shells that cannot unset nonexistent variables.
220169a0819Smrg	# Preserve -v and -x to the replacement shell.
221169a0819Smrg	BASH_ENV=/dev/null
222169a0819Smrg	ENV=/dev/null
223169a0819Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224169a0819Smrg	export CONFIG_SHELL
225169a0819Smrg	case $- in # ((((
226169a0819Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227169a0819Smrg	  *v* ) as_opts=-v ;;
228169a0819Smrg	  *x* ) as_opts=-x ;;
229169a0819Smrg	  * ) as_opts= ;;
230169a0819Smrg	esac
231169a0819Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232169a0819Smrgfi
233169a0819Smrg
234169a0819Smrg    if test x$as_have_required = xno; then :
235169a0819Smrg  $as_echo "$0: This script requires a shell more modern than all"
236169a0819Smrg  $as_echo "$0: the shells that I found on your system."
237169a0819Smrg  if test x${ZSH_VERSION+set} = xset ; then
238169a0819Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239169a0819Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240169a0819Smrg  else
241169a0819Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242169a0819Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243169a0819Smrg$0: about your system, including any error possibly output
244169a0819Smrg$0: before this message. Then install a modern shell, or
245169a0819Smrg$0: manually run the script under such a shell if you do
246169a0819Smrg$0: have one."
247169a0819Smrg  fi
248169a0819Smrg  exit 1
249169a0819Smrgfi
250169a0819Smrgfi
251169a0819Smrgfi
252169a0819SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253169a0819Smrgexport SHELL
254169a0819Smrg# Unset more variables known to interfere with behavior of common tools.
255169a0819SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256169a0819Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257169a0819Smrg
258169a0819Smrg## --------------------- ##
259169a0819Smrg## M4sh Shell Functions. ##
260169a0819Smrg## --------------------- ##
261169a0819Smrg# as_fn_unset VAR
262169a0819Smrg# ---------------
263169a0819Smrg# Portably unset VAR.
264169a0819Smrgas_fn_unset ()
265169a0819Smrg{
266169a0819Smrg  { eval $1=; unset $1;}
267169a0819Smrg}
268169a0819Smrgas_unset=as_fn_unset
269169a0819Smrg
270169a0819Smrg# as_fn_set_status STATUS
271169a0819Smrg# -----------------------
272169a0819Smrg# Set $? to STATUS, without forking.
273169a0819Smrgas_fn_set_status ()
274169a0819Smrg{
275169a0819Smrg  return $1
276169a0819Smrg} # as_fn_set_status
277169a0819Smrg
278169a0819Smrg# as_fn_exit STATUS
279169a0819Smrg# -----------------
280169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281169a0819Smrgas_fn_exit ()
282169a0819Smrg{
283169a0819Smrg  set +e
284169a0819Smrg  as_fn_set_status $1
285169a0819Smrg  exit $1
286169a0819Smrg} # as_fn_exit
287169a0819Smrg
288169a0819Smrg# as_fn_mkdir_p
289169a0819Smrg# -------------
290169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
291169a0819Smrgas_fn_mkdir_p ()
292169a0819Smrg{
293169a0819Smrg
294169a0819Smrg  case $as_dir in #(
295169a0819Smrg  -*) as_dir=./$as_dir;;
296169a0819Smrg  esac
297169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298169a0819Smrg    as_dirs=
299169a0819Smrg    while :; do
300169a0819Smrg      case $as_dir in #(
301169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302169a0819Smrg      *) as_qdir=$as_dir;;
303169a0819Smrg      esac
304169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
305169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310169a0819Smrg$as_echo X"$as_dir" |
311169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312169a0819Smrg	    s//\1/
313169a0819Smrg	    q
314169a0819Smrg	  }
315169a0819Smrg	  /^X\(\/\/\)[^/].*/{
316169a0819Smrg	    s//\1/
317169a0819Smrg	    q
318169a0819Smrg	  }
319169a0819Smrg	  /^X\(\/\/\)$/{
320169a0819Smrg	    s//\1/
321169a0819Smrg	    q
322169a0819Smrg	  }
323169a0819Smrg	  /^X\(\/\).*/{
324169a0819Smrg	    s//\1/
325169a0819Smrg	    q
326169a0819Smrg	  }
327169a0819Smrg	  s/.*/./; q'`
328169a0819Smrg      test -d "$as_dir" && break
329169a0819Smrg    done
330169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332169a0819Smrg
333169a0819Smrg
334169a0819Smrg} # as_fn_mkdir_p
335169a0819Smrg# as_fn_append VAR VALUE
336169a0819Smrg# ----------------------
337169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
339169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
340169a0819Smrg# implementations.
341169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342169a0819Smrg  eval 'as_fn_append ()
343169a0819Smrg  {
344169a0819Smrg    eval $1+=\$2
345169a0819Smrg  }'
346169a0819Smrgelse
347169a0819Smrg  as_fn_append ()
348169a0819Smrg  {
349169a0819Smrg    eval $1=\$$1\$2
350169a0819Smrg  }
351169a0819Smrgfi # as_fn_append
352169a0819Smrg
353169a0819Smrg# as_fn_arith ARG...
354169a0819Smrg# ------------------
355169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357169a0819Smrg# must be portable across $(()) and expr.
358169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359169a0819Smrg  eval 'as_fn_arith ()
360169a0819Smrg  {
361169a0819Smrg    as_val=$(( $* ))
362169a0819Smrg  }'
363169a0819Smrgelse
364169a0819Smrg  as_fn_arith ()
365169a0819Smrg  {
366169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
367169a0819Smrg  }
368169a0819Smrgfi # as_fn_arith
369169a0819Smrg
370169a0819Smrg
371169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372169a0819Smrg# ----------------------------------------
373169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375169a0819Smrg# script with STATUS, using 1 if that was 0.
376169a0819Smrgas_fn_error ()
377169a0819Smrg{
378169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379169a0819Smrg  if test "$4"; then
380169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382169a0819Smrg  fi
383169a0819Smrg  $as_echo "$as_me: error: $2" >&2
384169a0819Smrg  as_fn_exit $as_status
385169a0819Smrg} # as_fn_error
386169a0819Smrg
38764ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38864ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38964ce7165Smrg  as_expr=expr
39064ce7165Smrgelse
39164ce7165Smrg  as_expr=false
39264ce7165Smrgfi
39364ce7165Smrg
39464ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39564ce7165Smrg  as_basename=basename
39664ce7165Smrgelse
39764ce7165Smrg  as_basename=false
39864ce7165Smrgfi
39964ce7165Smrg
400169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401169a0819Smrg  as_dirname=dirname
402169a0819Smrgelse
403169a0819Smrg  as_dirname=false
404169a0819Smrgfi
40564ce7165Smrg
40664ce7165Smrgas_me=`$as_basename -- "$0" ||
40764ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40864ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
40964ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410fb23d3a8Smrg$as_echo X/"$0" |
41164ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
41264ce7165Smrg	    s//\1/
41364ce7165Smrg	    q
41464ce7165Smrg	  }
41564ce7165Smrg	  /^X\/\(\/\/\)$/{
41664ce7165Smrg	    s//\1/
41764ce7165Smrg	    q
41864ce7165Smrg	  }
41964ce7165Smrg	  /^X\/\(\/\).*/{
42064ce7165Smrg	    s//\1/
42164ce7165Smrg	    q
42264ce7165Smrg	  }
42364ce7165Smrg	  s/.*/./; q'`
42464ce7165Smrg
425169a0819Smrg# Avoid depending upon Character Ranges.
426169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429169a0819Smrgas_cr_digits='0123456789'
430169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43164ce7165Smrg
43264ce7165Smrg
433169a0819Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434169a0819Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435169a0819Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436169a0819Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437169a0819Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438169a0819Smrg  sed -n '
439169a0819Smrg    p
440169a0819Smrg    /[$]LINENO/=
441169a0819Smrg  ' <$as_myself |
442169a0819Smrg    sed '
443169a0819Smrg      s/[$]LINENO.*/&-/
444169a0819Smrg      t lineno
445169a0819Smrg      b
446169a0819Smrg      :lineno
447169a0819Smrg      N
448169a0819Smrg      :loop
449169a0819Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450169a0819Smrg      t loop
451169a0819Smrg      s/-\n.*//
452169a0819Smrg    ' >$as_me.lineno &&
453169a0819Smrg  chmod +x "$as_me.lineno" ||
454169a0819Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45564ce7165Smrg
456169a0819Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457169a0819Smrg  # (the dirname of $[0] is not the place where we might find the
458169a0819Smrg  # original and so on.  Autoconf is especially sensitive to this).
459169a0819Smrg  . "./$as_me.lineno"
460169a0819Smrg  # Exit status is that of the last command.
461169a0819Smrg  exit
46264ce7165Smrg}
46364ce7165Smrg
464169a0819SmrgECHO_C= ECHO_N= ECHO_T=
465169a0819Smrgcase `echo -n x` in #(((((
466169a0819Smrg-n*)
467169a0819Smrg  case `echo 'xy\c'` in
468169a0819Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469169a0819Smrg  xy)  ECHO_C='\c';;
470169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471169a0819Smrg       ECHO_T='	';;
472169a0819Smrg  esac;;
473169a0819Smrg*)
474169a0819Smrg  ECHO_N='-n';;
475169a0819Smrgesac
47664ce7165Smrg
477169a0819Smrgrm -f conf$$ conf$$.exe conf$$.file
478169a0819Smrgif test -d conf$$.dir; then
479169a0819Smrg  rm -f conf$$.dir/conf$$.file
480169a0819Smrgelse
481169a0819Smrg  rm -f conf$$.dir
482169a0819Smrg  mkdir conf$$.dir 2>/dev/null
48364ce7165Smrgfi
484169a0819Smrgif (echo >conf$$.file) 2>/dev/null; then
485169a0819Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486169a0819Smrg    as_ln_s='ln -s'
487169a0819Smrg    # ... but there are two gotchas:
488169a0819Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489169a0819Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490169a0819Smrg    # In both cases, we have to default to `cp -p'.
491169a0819Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492169a0819Smrg      as_ln_s='cp -p'
493169a0819Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494169a0819Smrg    as_ln_s=ln
495169a0819Smrg  else
496169a0819Smrg    as_ln_s='cp -p'
497169a0819Smrg  fi
49864ce7165Smrgelse
499169a0819Smrg  as_ln_s='cp -p'
50064ce7165Smrgfi
501169a0819Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502169a0819Smrgrmdir conf$$.dir 2>/dev/null
50364ce7165Smrg
504169a0819Smrgif mkdir -p . 2>/dev/null; then
505169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506169a0819Smrgelse
507169a0819Smrg  test -d ./-p && rmdir ./-p
508169a0819Smrg  as_mkdir_p=false
50964ce7165Smrgfi
51064ce7165Smrg
511169a0819Smrgif test -x / >/dev/null 2>&1; then
512169a0819Smrg  as_test_x='test -x'
51364ce7165Smrgelse
514169a0819Smrg  if ls -dL / >/dev/null 2>&1; then
515169a0819Smrg    as_ls_L_option=L
516169a0819Smrg  else
517169a0819Smrg    as_ls_L_option=
518169a0819Smrg  fi
519169a0819Smrg  as_test_x='
520169a0819Smrg    eval sh -c '\''
521169a0819Smrg      if test -d "$1"; then
522169a0819Smrg	test -d "$1/.";
523169a0819Smrg      else
524169a0819Smrg	case $1 in #(
525169a0819Smrg	-*)set "./$1";;
526169a0819Smrg	esac;
527169a0819Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528169a0819Smrg	???[sx]*):;;*)false;;esac;fi
529169a0819Smrg    '\'' sh
530169a0819Smrg  '
53164ce7165Smrgfi
532169a0819Smrgas_executable_p=$as_test_x
53364ce7165Smrg
534169a0819Smrg# Sed expression to map a string onto a valid CPP name.
535169a0819Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53664ce7165Smrg
537169a0819Smrg# Sed expression to map a string onto a valid variable name.
538169a0819Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53964ce7165Smrg
54064ce7165Smrg
541169a0819Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542169a0819Smrgexec 6>&1
54364ce7165Smrg
54464ce7165Smrg# Name of the host.
545169a0819Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54664ce7165Smrg# so uname gets run too.
54764ce7165Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54864ce7165Smrg
54964ce7165Smrg#
55064ce7165Smrg# Initializations.
55164ce7165Smrg#
55264ce7165Smrgac_default_prefix=/usr/local
55364ce7165Smrgac_clean_files=
55464ce7165Smrgac_config_libobj_dir=.
55564ce7165SmrgLIBOBJS=
55664ce7165Smrgcross_compiling=no
55764ce7165Smrgsubdirs=
55864ce7165SmrgMFLAGS=
55964ce7165SmrgMAKEFLAGS=
56064ce7165Smrg
56164ce7165Smrg# Identity of this package.
56264ce7165SmrgPACKAGE_NAME='xhost'
56364ce7165SmrgPACKAGE_TARNAME='xhost'
564169a0819SmrgPACKAGE_VERSION='1.0.4'
565169a0819SmrgPACKAGE_STRING='xhost 1.0.4'
56664ce7165SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567169a0819SmrgPACKAGE_URL=''
56864ce7165Smrg
569fb23d3a8Smrg# Factoring default headers for most tests.
570fb23d3a8Smrgac_includes_default="\
571fb23d3a8Smrg#include <stdio.h>
572fb23d3a8Smrg#ifdef HAVE_SYS_TYPES_H
573fb23d3a8Smrg# include <sys/types.h>
574fb23d3a8Smrg#endif
575fb23d3a8Smrg#ifdef HAVE_SYS_STAT_H
576fb23d3a8Smrg# include <sys/stat.h>
577fb23d3a8Smrg#endif
578fb23d3a8Smrg#ifdef STDC_HEADERS
579fb23d3a8Smrg# include <stdlib.h>
580fb23d3a8Smrg# include <stddef.h>
581fb23d3a8Smrg#else
582fb23d3a8Smrg# ifdef HAVE_STDLIB_H
583fb23d3a8Smrg#  include <stdlib.h>
584fb23d3a8Smrg# endif
585fb23d3a8Smrg#endif
586fb23d3a8Smrg#ifdef HAVE_STRING_H
587fb23d3a8Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588fb23d3a8Smrg#  include <memory.h>
589fb23d3a8Smrg# endif
590fb23d3a8Smrg# include <string.h>
591fb23d3a8Smrg#endif
592fb23d3a8Smrg#ifdef HAVE_STRINGS_H
593fb23d3a8Smrg# include <strings.h>
594fb23d3a8Smrg#endif
595fb23d3a8Smrg#ifdef HAVE_INTTYPES_H
596fb23d3a8Smrg# include <inttypes.h>
597fb23d3a8Smrg#endif
598fb23d3a8Smrg#ifdef HAVE_STDINT_H
599fb23d3a8Smrg# include <stdint.h>
600fb23d3a8Smrg#endif
601fb23d3a8Smrg#ifdef HAVE_UNISTD_H
602fb23d3a8Smrg# include <unistd.h>
603fb23d3a8Smrg#endif"
604fb23d3a8Smrg
605fb23d3a8Smrgac_subst_vars='am__EXEEXT_FALSE
606fb23d3a8Smrgam__EXEEXT_TRUE
607fb23d3a8SmrgLTLIBOBJS
608fb23d3a8SmrgLIBOBJS
60964ce7165SmrgXHOST_LIBS
610fb23d3a8SmrgXHOST_CFLAGS
611169a0819SmrgAM_BACKSLASH
612169a0819SmrgAM_DEFAULT_VERBOSITY
613169a0819SmrgMAN_SUBSTS
614169a0819SmrgXORG_MAN_PAGE
61564ce7165SmrgADMIN_MAN_DIR
616fb23d3a8SmrgDRIVER_MAN_DIR
617fb23d3a8SmrgMISC_MAN_DIR
618fb23d3a8SmrgFILE_MAN_DIR
619fb23d3a8SmrgLIB_MAN_DIR
620fb23d3a8SmrgAPP_MAN_DIR
621fb23d3a8SmrgADMIN_MAN_SUFFIX
622fb23d3a8SmrgDRIVER_MAN_SUFFIX
623fb23d3a8SmrgMISC_MAN_SUFFIX
624fb23d3a8SmrgFILE_MAN_SUFFIX
625fb23d3a8SmrgLIB_MAN_SUFFIX
626fb23d3a8SmrgAPP_MAN_SUFFIX
627169a0819SmrgSED
628fb23d3a8Smrghost_os
629fb23d3a8Smrghost_vendor
630fb23d3a8Smrghost_cpu
631fb23d3a8Smrghost
632fb23d3a8Smrgbuild_os
633fb23d3a8Smrgbuild_vendor
634fb23d3a8Smrgbuild_cpu
635fb23d3a8Smrgbuild
636169a0819SmrgINSTALL_CMD
637169a0819SmrgPKG_CONFIG
638fb23d3a8SmrgCHANGELOG_CMD
639fb23d3a8SmrgCWARNFLAGS
640fb23d3a8SmrgEGREP
641fb23d3a8SmrgGREP
642fb23d3a8SmrgCPP
643fb23d3a8Smrgam__fastdepCC_FALSE
644fb23d3a8Smrgam__fastdepCC_TRUE
645fb23d3a8SmrgCCDEPMODE
646fb23d3a8SmrgAMDEPBACKSLASH
647fb23d3a8SmrgAMDEP_FALSE
648fb23d3a8SmrgAMDEP_TRUE
649fb23d3a8Smrgam__quote
650fb23d3a8Smrgam__include
651fb23d3a8SmrgDEPDIR
652fb23d3a8SmrgOBJEXT
653fb23d3a8SmrgEXEEXT
654fb23d3a8Smrgac_ct_CC
655fb23d3a8SmrgCPPFLAGS
656fb23d3a8SmrgLDFLAGS
657fb23d3a8SmrgCFLAGS
658fb23d3a8SmrgCC
659fb23d3a8SmrgMAINT
660fb23d3a8SmrgMAINTAINER_MODE_FALSE
661fb23d3a8SmrgMAINTAINER_MODE_TRUE
662fb23d3a8Smrgam__untar
663fb23d3a8Smrgam__tar
664fb23d3a8SmrgAMTAR
665fb23d3a8Smrgam__leading_dot
666fb23d3a8SmrgSET_MAKE
667fb23d3a8SmrgAWK
668fb23d3a8Smrgmkdir_p
669fb23d3a8SmrgMKDIR_P
670fb23d3a8SmrgINSTALL_STRIP_PROGRAM
671fb23d3a8SmrgSTRIP
672fb23d3a8Smrginstall_sh
673fb23d3a8SmrgMAKEINFO
674fb23d3a8SmrgAUTOHEADER
675fb23d3a8SmrgAUTOMAKE
676fb23d3a8SmrgAUTOCONF
677fb23d3a8SmrgACLOCAL
678fb23d3a8SmrgVERSION
679fb23d3a8SmrgPACKAGE
680fb23d3a8SmrgCYGPATH_W
681fb23d3a8Smrgam__isrc
682fb23d3a8SmrgINSTALL_DATA
683fb23d3a8SmrgINSTALL_SCRIPT
684fb23d3a8SmrgINSTALL_PROGRAM
685fb23d3a8Smrgtarget_alias
686fb23d3a8Smrghost_alias
687fb23d3a8Smrgbuild_alias
688fb23d3a8SmrgLIBS
689fb23d3a8SmrgECHO_T
690fb23d3a8SmrgECHO_N
691fb23d3a8SmrgECHO_C
692fb23d3a8SmrgDEFS
693fb23d3a8Smrgmandir
694fb23d3a8Smrglocaledir
695fb23d3a8Smrglibdir
696fb23d3a8Smrgpsdir
697fb23d3a8Smrgpdfdir
698fb23d3a8Smrgdvidir
699fb23d3a8Smrghtmldir
700fb23d3a8Smrginfodir
701fb23d3a8Smrgdocdir
702fb23d3a8Smrgoldincludedir
703fb23d3a8Smrgincludedir
704fb23d3a8Smrglocalstatedir
705fb23d3a8Smrgsharedstatedir
706fb23d3a8Smrgsysconfdir
707fb23d3a8Smrgdatadir
708fb23d3a8Smrgdatarootdir
709fb23d3a8Smrglibexecdir
710fb23d3a8Smrgsbindir
711fb23d3a8Smrgbindir
712fb23d3a8Smrgprogram_transform_name
713fb23d3a8Smrgprefix
714fb23d3a8Smrgexec_prefix
715169a0819SmrgPACKAGE_URL
716fb23d3a8SmrgPACKAGE_BUGREPORT
717fb23d3a8SmrgPACKAGE_STRING
718fb23d3a8SmrgPACKAGE_VERSION
719fb23d3a8SmrgPACKAGE_TARNAME
720fb23d3a8SmrgPACKAGE_NAME
721fb23d3a8SmrgPATH_SEPARATOR
722fb23d3a8SmrgSHELL'
72364ce7165Smrgac_subst_files=''
724fb23d3a8Smrgac_user_opts='
725fb23d3a8Smrgenable_option_checking
726fb23d3a8Smrgenable_maintainer_mode
727fb23d3a8Smrgenable_dependency_tracking
728fb23d3a8Smrgenable_strict_compilation
729169a0819Smrgenable_silent_rules
730fb23d3a8Smrgenable_unix_transport
731fb23d3a8Smrgenable_tcp_transport
732fb23d3a8Smrgenable_ipv6
733fb23d3a8Smrgenable_local_transport
734fb23d3a8Smrgenable_secure_rpc
735fb23d3a8Smrg'
73664ce7165Smrg      ac_precious_vars='build_alias
73764ce7165Smrghost_alias
73864ce7165Smrgtarget_alias
73964ce7165SmrgCC
74064ce7165SmrgCFLAGS
74164ce7165SmrgLDFLAGS
74264ce7165SmrgLIBS
74364ce7165SmrgCPPFLAGS
744fb23d3a8SmrgCPP
74564ce7165SmrgPKG_CONFIG
74664ce7165SmrgXHOST_CFLAGS
74764ce7165SmrgXHOST_LIBS'
74864ce7165Smrg
74964ce7165Smrg
75064ce7165Smrg# Initialize some variables set by options.
75164ce7165Smrgac_init_help=
75264ce7165Smrgac_init_version=false
753fb23d3a8Smrgac_unrecognized_opts=
754fb23d3a8Smrgac_unrecognized_sep=
75564ce7165Smrg# The variables have the same names as the options, with
75664ce7165Smrg# dashes changed to underlines.
75764ce7165Smrgcache_file=/dev/null
75864ce7165Smrgexec_prefix=NONE
75964ce7165Smrgno_create=
76064ce7165Smrgno_recursion=
76164ce7165Smrgprefix=NONE
76264ce7165Smrgprogram_prefix=NONE
76364ce7165Smrgprogram_suffix=NONE
76464ce7165Smrgprogram_transform_name=s,x,x,
76564ce7165Smrgsilent=
76664ce7165Smrgsite=
76764ce7165Smrgsrcdir=
76864ce7165Smrgverbose=
76964ce7165Smrgx_includes=NONE
77064ce7165Smrgx_libraries=NONE
77164ce7165Smrg
77264ce7165Smrg# Installation directory options.
77364ce7165Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
77464ce7165Smrg# and all the variables that are supposed to be based on exec_prefix
77564ce7165Smrg# by default will actually change.
77664ce7165Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
77764ce7165Smrg# (The list follows the same order as the GNU Coding Standards.)
77864ce7165Smrgbindir='${exec_prefix}/bin'
77964ce7165Smrgsbindir='${exec_prefix}/sbin'
78064ce7165Smrglibexecdir='${exec_prefix}/libexec'
78164ce7165Smrgdatarootdir='${prefix}/share'
78264ce7165Smrgdatadir='${datarootdir}'
78364ce7165Smrgsysconfdir='${prefix}/etc'
78464ce7165Smrgsharedstatedir='${prefix}/com'
78564ce7165Smrglocalstatedir='${prefix}/var'
78664ce7165Smrgincludedir='${prefix}/include'
78764ce7165Smrgoldincludedir='/usr/include'
78864ce7165Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
78964ce7165Smrginfodir='${datarootdir}/info'
79064ce7165Smrghtmldir='${docdir}'
79164ce7165Smrgdvidir='${docdir}'
79264ce7165Smrgpdfdir='${docdir}'
79364ce7165Smrgpsdir='${docdir}'
79464ce7165Smrglibdir='${exec_prefix}/lib'
79564ce7165Smrglocaledir='${datarootdir}/locale'
79664ce7165Smrgmandir='${datarootdir}/man'
79764ce7165Smrg
79864ce7165Smrgac_prev=
79964ce7165Smrgac_dashdash=
80064ce7165Smrgfor ac_option
80164ce7165Smrgdo
80264ce7165Smrg  # If the previous option needs an argument, assign it.
80364ce7165Smrg  if test -n "$ac_prev"; then
80464ce7165Smrg    eval $ac_prev=\$ac_option
80564ce7165Smrg    ac_prev=
80664ce7165Smrg    continue
80764ce7165Smrg  fi
80864ce7165Smrg
80964ce7165Smrg  case $ac_option in
810169a0819Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811169a0819Smrg  *=)   ac_optarg= ;;
812169a0819Smrg  *)    ac_optarg=yes ;;
81364ce7165Smrg  esac
81464ce7165Smrg
81564ce7165Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
81664ce7165Smrg
81764ce7165Smrg  case $ac_dashdash$ac_option in
81864ce7165Smrg  --)
81964ce7165Smrg    ac_dashdash=yes ;;
82064ce7165Smrg
82164ce7165Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
82264ce7165Smrg    ac_prev=bindir ;;
82364ce7165Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82464ce7165Smrg    bindir=$ac_optarg ;;
82564ce7165Smrg
82664ce7165Smrg  -build | --build | --buil | --bui | --bu)
82764ce7165Smrg    ac_prev=build_alias ;;
82864ce7165Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
82964ce7165Smrg    build_alias=$ac_optarg ;;
83064ce7165Smrg
83164ce7165Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
83264ce7165Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
83364ce7165Smrg    ac_prev=cache_file ;;
83464ce7165Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
83564ce7165Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83664ce7165Smrg    cache_file=$ac_optarg ;;
83764ce7165Smrg
83864ce7165Smrg  --config-cache | -C)
83964ce7165Smrg    cache_file=config.cache ;;
84064ce7165Smrg
84164ce7165Smrg  -datadir | --datadir | --datadi | --datad)
84264ce7165Smrg    ac_prev=datadir ;;
84364ce7165Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
84464ce7165Smrg    datadir=$ac_optarg ;;
84564ce7165Smrg
84664ce7165Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
84764ce7165Smrg  | --dataroo | --dataro | --datar)
84864ce7165Smrg    ac_prev=datarootdir ;;
84964ce7165Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
85064ce7165Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
85164ce7165Smrg    datarootdir=$ac_optarg ;;
85264ce7165Smrg
85364ce7165Smrg  -disable-* | --disable-*)
854fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
85564ce7165Smrg    # Reject names that are not valid shell variable names.
856fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
858fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
859fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860fb23d3a8Smrg    case $ac_user_opts in
861fb23d3a8Smrg      *"
862fb23d3a8Smrg"enable_$ac_useropt"
863fb23d3a8Smrg"*) ;;
864fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
866fb23d3a8Smrg    esac
867fb23d3a8Smrg    eval enable_$ac_useropt=no ;;
86864ce7165Smrg
86964ce7165Smrg  -docdir | --docdir | --docdi | --doc | --do)
87064ce7165Smrg    ac_prev=docdir ;;
87164ce7165Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
87264ce7165Smrg    docdir=$ac_optarg ;;
87364ce7165Smrg
87464ce7165Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
87564ce7165Smrg    ac_prev=dvidir ;;
87664ce7165Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
87764ce7165Smrg    dvidir=$ac_optarg ;;
87864ce7165Smrg
87964ce7165Smrg  -enable-* | --enable-*)
880fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
88164ce7165Smrg    # Reject names that are not valid shell variable names.
882fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883169a0819Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
884fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
885fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886fb23d3a8Smrg    case $ac_user_opts in
887fb23d3a8Smrg      *"
888fb23d3a8Smrg"enable_$ac_useropt"
889fb23d3a8Smrg"*) ;;
890fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
892fb23d3a8Smrg    esac
893fb23d3a8Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
89464ce7165Smrg
89564ce7165Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
89664ce7165Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
89764ce7165Smrg  | --exec | --exe | --ex)
89864ce7165Smrg    ac_prev=exec_prefix ;;
89964ce7165Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
90064ce7165Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
90164ce7165Smrg  | --exec=* | --exe=* | --ex=*)
90264ce7165Smrg    exec_prefix=$ac_optarg ;;
90364ce7165Smrg
90464ce7165Smrg  -gas | --gas | --ga | --g)
90564ce7165Smrg    # Obsolete; use --with-gas.
90664ce7165Smrg    with_gas=yes ;;
90764ce7165Smrg
90864ce7165Smrg  -help | --help | --hel | --he | -h)
90964ce7165Smrg    ac_init_help=long ;;
91064ce7165Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
91164ce7165Smrg    ac_init_help=recursive ;;
91264ce7165Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
91364ce7165Smrg    ac_init_help=short ;;
91464ce7165Smrg
91564ce7165Smrg  -host | --host | --hos | --ho)
91664ce7165Smrg    ac_prev=host_alias ;;
91764ce7165Smrg  -host=* | --host=* | --hos=* | --ho=*)
91864ce7165Smrg    host_alias=$ac_optarg ;;
91964ce7165Smrg
92064ce7165Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
92164ce7165Smrg    ac_prev=htmldir ;;
92264ce7165Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
92364ce7165Smrg  | --ht=*)
92464ce7165Smrg    htmldir=$ac_optarg ;;
92564ce7165Smrg
92664ce7165Smrg  -includedir | --includedir | --includedi | --included | --include \
92764ce7165Smrg  | --includ | --inclu | --incl | --inc)
92864ce7165Smrg    ac_prev=includedir ;;
92964ce7165Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
93064ce7165Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
93164ce7165Smrg    includedir=$ac_optarg ;;
93264ce7165Smrg
93364ce7165Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
93464ce7165Smrg    ac_prev=infodir ;;
93564ce7165Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
93664ce7165Smrg    infodir=$ac_optarg ;;
93764ce7165Smrg
93864ce7165Smrg  -libdir | --libdir | --libdi | --libd)
93964ce7165Smrg    ac_prev=libdir ;;
94064ce7165Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
94164ce7165Smrg    libdir=$ac_optarg ;;
94264ce7165Smrg
94364ce7165Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
94464ce7165Smrg  | --libexe | --libex | --libe)
94564ce7165Smrg    ac_prev=libexecdir ;;
94664ce7165Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
94764ce7165Smrg  | --libexe=* | --libex=* | --libe=*)
94864ce7165Smrg    libexecdir=$ac_optarg ;;
94964ce7165Smrg
95064ce7165Smrg  -localedir | --localedir | --localedi | --localed | --locale)
95164ce7165Smrg    ac_prev=localedir ;;
95264ce7165Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
95364ce7165Smrg    localedir=$ac_optarg ;;
95464ce7165Smrg
95564ce7165Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
95664ce7165Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
95764ce7165Smrg    ac_prev=localstatedir ;;
95864ce7165Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
95964ce7165Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
96064ce7165Smrg    localstatedir=$ac_optarg ;;
96164ce7165Smrg
96264ce7165Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
96364ce7165Smrg    ac_prev=mandir ;;
96464ce7165Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
96564ce7165Smrg    mandir=$ac_optarg ;;
96664ce7165Smrg
96764ce7165Smrg  -nfp | --nfp | --nf)
96864ce7165Smrg    # Obsolete; use --without-fp.
96964ce7165Smrg    with_fp=no ;;
97064ce7165Smrg
97164ce7165Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
97264ce7165Smrg  | --no-cr | --no-c | -n)
97364ce7165Smrg    no_create=yes ;;
97464ce7165Smrg
97564ce7165Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
97664ce7165Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
97764ce7165Smrg    no_recursion=yes ;;
97864ce7165Smrg
97964ce7165Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
98064ce7165Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
98164ce7165Smrg  | --oldin | --oldi | --old | --ol | --o)
98264ce7165Smrg    ac_prev=oldincludedir ;;
98364ce7165Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
98464ce7165Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
98564ce7165Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
98664ce7165Smrg    oldincludedir=$ac_optarg ;;
98764ce7165Smrg
98864ce7165Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
98964ce7165Smrg    ac_prev=prefix ;;
99064ce7165Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
99164ce7165Smrg    prefix=$ac_optarg ;;
99264ce7165Smrg
99364ce7165Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
99464ce7165Smrg  | --program-pre | --program-pr | --program-p)
99564ce7165Smrg    ac_prev=program_prefix ;;
99664ce7165Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
99764ce7165Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
99864ce7165Smrg    program_prefix=$ac_optarg ;;
99964ce7165Smrg
100064ce7165Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
100164ce7165Smrg  | --program-suf | --program-su | --program-s)
100264ce7165Smrg    ac_prev=program_suffix ;;
100364ce7165Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
100464ce7165Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
100564ce7165Smrg    program_suffix=$ac_optarg ;;
100664ce7165Smrg
100764ce7165Smrg  -program-transform-name | --program-transform-name \
100864ce7165Smrg  | --program-transform-nam | --program-transform-na \
100964ce7165Smrg  | --program-transform-n | --program-transform- \
101064ce7165Smrg  | --program-transform | --program-transfor \
101164ce7165Smrg  | --program-transfo | --program-transf \
101264ce7165Smrg  | --program-trans | --program-tran \
101364ce7165Smrg  | --progr-tra | --program-tr | --program-t)
101464ce7165Smrg    ac_prev=program_transform_name ;;
101564ce7165Smrg  -program-transform-name=* | --program-transform-name=* \
101664ce7165Smrg  | --program-transform-nam=* | --program-transform-na=* \
101764ce7165Smrg  | --program-transform-n=* | --program-transform-=* \
101864ce7165Smrg  | --program-transform=* | --program-transfor=* \
101964ce7165Smrg  | --program-transfo=* | --program-transf=* \
102064ce7165Smrg  | --program-trans=* | --program-tran=* \
102164ce7165Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
102264ce7165Smrg    program_transform_name=$ac_optarg ;;
102364ce7165Smrg
102464ce7165Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
102564ce7165Smrg    ac_prev=pdfdir ;;
102664ce7165Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
102764ce7165Smrg    pdfdir=$ac_optarg ;;
102864ce7165Smrg
102964ce7165Smrg  -psdir | --psdir | --psdi | --psd | --ps)
103064ce7165Smrg    ac_prev=psdir ;;
103164ce7165Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
103264ce7165Smrg    psdir=$ac_optarg ;;
103364ce7165Smrg
103464ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
103564ce7165Smrg  | -silent | --silent | --silen | --sile | --sil)
103664ce7165Smrg    silent=yes ;;
103764ce7165Smrg
103864ce7165Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
103964ce7165Smrg    ac_prev=sbindir ;;
104064ce7165Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
104164ce7165Smrg  | --sbi=* | --sb=*)
104264ce7165Smrg    sbindir=$ac_optarg ;;
104364ce7165Smrg
104464ce7165Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
104564ce7165Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
104664ce7165Smrg  | --sharedst | --shareds | --shared | --share | --shar \
104764ce7165Smrg  | --sha | --sh)
104864ce7165Smrg    ac_prev=sharedstatedir ;;
104964ce7165Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
105064ce7165Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
105164ce7165Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
105264ce7165Smrg  | --sha=* | --sh=*)
105364ce7165Smrg    sharedstatedir=$ac_optarg ;;
105464ce7165Smrg
105564ce7165Smrg  -site | --site | --sit)
105664ce7165Smrg    ac_prev=site ;;
105764ce7165Smrg  -site=* | --site=* | --sit=*)
105864ce7165Smrg    site=$ac_optarg ;;
105964ce7165Smrg
106064ce7165Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
106164ce7165Smrg    ac_prev=srcdir ;;
106264ce7165Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
106364ce7165Smrg    srcdir=$ac_optarg ;;
106464ce7165Smrg
106564ce7165Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
106664ce7165Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
106764ce7165Smrg    ac_prev=sysconfdir ;;
106864ce7165Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
106964ce7165Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
107064ce7165Smrg    sysconfdir=$ac_optarg ;;
107164ce7165Smrg
107264ce7165Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
107364ce7165Smrg    ac_prev=target_alias ;;
107464ce7165Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
107564ce7165Smrg    target_alias=$ac_optarg ;;
107664ce7165Smrg
107764ce7165Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
107864ce7165Smrg    verbose=yes ;;
107964ce7165Smrg
108064ce7165Smrg  -version | --version | --versio | --versi | --vers | -V)
108164ce7165Smrg    ac_init_version=: ;;
108264ce7165Smrg
108364ce7165Smrg  -with-* | --with-*)
1084fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
108564ce7165Smrg    # Reject names that are not valid shell variable names.
1086fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1088fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1089fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090fb23d3a8Smrg    case $ac_user_opts in
1091fb23d3a8Smrg      *"
1092fb23d3a8Smrg"with_$ac_useropt"
1093fb23d3a8Smrg"*) ;;
1094fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1096fb23d3a8Smrg    esac
1097fb23d3a8Smrg    eval with_$ac_useropt=\$ac_optarg ;;
109864ce7165Smrg
109964ce7165Smrg  -without-* | --without-*)
1100fb23d3a8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
110164ce7165Smrg    # Reject names that are not valid shell variable names.
1102fb23d3a8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103169a0819Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1104fb23d3a8Smrg    ac_useropt_orig=$ac_useropt
1105fb23d3a8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106fb23d3a8Smrg    case $ac_user_opts in
1107fb23d3a8Smrg      *"
1108fb23d3a8Smrg"with_$ac_useropt"
1109fb23d3a8Smrg"*) ;;
1110fb23d3a8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111fb23d3a8Smrg	 ac_unrecognized_sep=', ';;
1112fb23d3a8Smrg    esac
1113fb23d3a8Smrg    eval with_$ac_useropt=no ;;
111464ce7165Smrg
111564ce7165Smrg  --x)
111664ce7165Smrg    # Obsolete; use --with-x.
111764ce7165Smrg    with_x=yes ;;
111864ce7165Smrg
111964ce7165Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
112064ce7165Smrg  | --x-incl | --x-inc | --x-in | --x-i)
112164ce7165Smrg    ac_prev=x_includes ;;
112264ce7165Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
112364ce7165Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
112464ce7165Smrg    x_includes=$ac_optarg ;;
112564ce7165Smrg
112664ce7165Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
112764ce7165Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
112864ce7165Smrg    ac_prev=x_libraries ;;
112964ce7165Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
113064ce7165Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
113164ce7165Smrg    x_libraries=$ac_optarg ;;
113264ce7165Smrg
1133169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134169a0819SmrgTry \`$0 --help' for more information"
113564ce7165Smrg    ;;
113664ce7165Smrg
113764ce7165Smrg  *=*)
113864ce7165Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
113964ce7165Smrg    # Reject names that are not valid shell variable names.
1140169a0819Smrg    case $ac_envvar in #(
1141169a0819Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1142169a0819Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143169a0819Smrg    esac
114464ce7165Smrg    eval $ac_envvar=\$ac_optarg
114564ce7165Smrg    export $ac_envvar ;;
114664ce7165Smrg
114764ce7165Smrg  *)
114864ce7165Smrg    # FIXME: should be removed in autoconf 3.0.
1149fb23d3a8Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
115064ce7165Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151fb23d3a8Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152169a0819Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
115364ce7165Smrg    ;;
115464ce7165Smrg
115564ce7165Smrg  esac
115664ce7165Smrgdone
115764ce7165Smrg
115864ce7165Smrgif test -n "$ac_prev"; then
115964ce7165Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160169a0819Smrg  as_fn_error $? "missing argument to $ac_option"
116164ce7165Smrgfi
116264ce7165Smrg
1163fb23d3a8Smrgif test -n "$ac_unrecognized_opts"; then
1164fb23d3a8Smrg  case $enable_option_checking in
1165fb23d3a8Smrg    no) ;;
1166169a0819Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167fb23d3a8Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168fb23d3a8Smrg  esac
1169fb23d3a8Smrgfi
1170fb23d3a8Smrg
1171fb23d3a8Smrg# Check all directory arguments for consistency.
117264ce7165Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
117364ce7165Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
117464ce7165Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
117564ce7165Smrg		libdir localedir mandir
117664ce7165Smrgdo
117764ce7165Smrg  eval ac_val=\$$ac_var
1178fb23d3a8Smrg  # Remove trailing slashes.
1179fb23d3a8Smrg  case $ac_val in
1180fb23d3a8Smrg    */ )
1181fb23d3a8Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182fb23d3a8Smrg      eval $ac_var=\$ac_val;;
1183fb23d3a8Smrg  esac
1184fb23d3a8Smrg  # Be sure to have absolute directory names.
118564ce7165Smrg  case $ac_val in
118664ce7165Smrg    [\\/$]* | ?:[\\/]* )  continue;;
118764ce7165Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
118864ce7165Smrg  esac
1189169a0819Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
119064ce7165Smrgdone
119164ce7165Smrg
119264ce7165Smrg# There might be people who depend on the old broken behavior: `$host'
119364ce7165Smrg# used to hold the argument of --host etc.
119464ce7165Smrg# FIXME: To remove some day.
119564ce7165Smrgbuild=$build_alias
119664ce7165Smrghost=$host_alias
119764ce7165Smrgtarget=$target_alias
119864ce7165Smrg
119964ce7165Smrg# FIXME: To remove some day.
120064ce7165Smrgif test "x$host_alias" != x; then
120164ce7165Smrg  if test "x$build_alias" = x; then
120264ce7165Smrg    cross_compiling=maybe
1203169a0819Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204169a0819Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
120564ce7165Smrg  elif test "x$build_alias" != "x$host_alias"; then
120664ce7165Smrg    cross_compiling=yes
120764ce7165Smrg  fi
120864ce7165Smrgfi
120964ce7165Smrg
121064ce7165Smrgac_tool_prefix=
121164ce7165Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
121264ce7165Smrg
121364ce7165Smrgtest "$silent" = yes && exec 6>/dev/null
121464ce7165Smrg
121564ce7165Smrg
121664ce7165Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
121764ce7165Smrgac_ls_di=`ls -di .` &&
121864ce7165Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219169a0819Smrg  as_fn_error $? "working directory cannot be determined"
122064ce7165Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221169a0819Smrg  as_fn_error $? "pwd does not report name of working directory"
122264ce7165Smrg
122364ce7165Smrg
122464ce7165Smrg# Find the source files, if location was not specified.
122564ce7165Smrgif test -z "$srcdir"; then
122664ce7165Smrg  ac_srcdir_defaulted=yes
122764ce7165Smrg  # Try the directory containing this script, then the parent directory.
1228fb23d3a8Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1229fb23d3a8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1231fb23d3a8Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1232fb23d3a8Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233fb23d3a8Smrg$as_echo X"$as_myself" |
123464ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
123564ce7165Smrg	    s//\1/
123664ce7165Smrg	    q
123764ce7165Smrg	  }
123864ce7165Smrg	  /^X\(\/\/\)[^/].*/{
123964ce7165Smrg	    s//\1/
124064ce7165Smrg	    q
124164ce7165Smrg	  }
124264ce7165Smrg	  /^X\(\/\/\)$/{
124364ce7165Smrg	    s//\1/
124464ce7165Smrg	    q
124564ce7165Smrg	  }
124664ce7165Smrg	  /^X\(\/\).*/{
124764ce7165Smrg	    s//\1/
124864ce7165Smrg	    q
124964ce7165Smrg	  }
125064ce7165Smrg	  s/.*/./; q'`
125164ce7165Smrg  srcdir=$ac_confdir
125264ce7165Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
125364ce7165Smrg    srcdir=..
125464ce7165Smrg  fi
125564ce7165Smrgelse
125664ce7165Smrg  ac_srcdir_defaulted=no
125764ce7165Smrgfi
125864ce7165Smrgif test ! -r "$srcdir/$ac_unique_file"; then
125964ce7165Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260169a0819Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
126164ce7165Smrgfi
126264ce7165Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
126364ce7165Smrgac_abs_confdir=`(
1264169a0819Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
126564ce7165Smrg	pwd)`
126664ce7165Smrg# When building in place, set srcdir=.
126764ce7165Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
126864ce7165Smrg  srcdir=.
126964ce7165Smrgfi
127064ce7165Smrg# Remove unnecessary trailing slashes from srcdir.
127164ce7165Smrg# Double slashes in file names in object file debugging info
127264ce7165Smrg# mess up M-x gdb in Emacs.
127364ce7165Smrgcase $srcdir in
127464ce7165Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
127564ce7165Smrgesac
127664ce7165Smrgfor ac_var in $ac_precious_vars; do
127764ce7165Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
127864ce7165Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
127964ce7165Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
128064ce7165Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
128164ce7165Smrgdone
128264ce7165Smrg
128364ce7165Smrg#
128464ce7165Smrg# Report the --help message.
128564ce7165Smrg#
128664ce7165Smrgif test "$ac_init_help" = "long"; then
128764ce7165Smrg  # Omit some internal or obsolete options to make the list less imposing.
128864ce7165Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
128964ce7165Smrg  cat <<_ACEOF
1290169a0819Smrg\`configure' configures xhost 1.0.4 to adapt to many kinds of systems.
129164ce7165Smrg
129264ce7165SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
129364ce7165Smrg
129464ce7165SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
129564ce7165SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
129664ce7165Smrg
129764ce7165SmrgDefaults for the options are specified in brackets.
129864ce7165Smrg
129964ce7165SmrgConfiguration:
130064ce7165Smrg  -h, --help              display this help and exit
130164ce7165Smrg      --help=short        display options specific to this package
130264ce7165Smrg      --help=recursive    display the short help of all the included packages
130364ce7165Smrg  -V, --version           display version information and exit
1304169a0819Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
130564ce7165Smrg      --cache-file=FILE   cache test results in FILE [disabled]
130664ce7165Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
130764ce7165Smrg  -n, --no-create         do not create output files
130864ce7165Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
130964ce7165Smrg
131064ce7165SmrgInstallation directories:
131164ce7165Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1312fb23d3a8Smrg                          [$ac_default_prefix]
131364ce7165Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1314fb23d3a8Smrg                          [PREFIX]
131564ce7165Smrg
131664ce7165SmrgBy default, \`make install' will install all the files in
131764ce7165Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
131864ce7165Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
131964ce7165Smrgfor instance \`--prefix=\$HOME'.
132064ce7165Smrg
132164ce7165SmrgFor better control, use the options below.
132264ce7165Smrg
132364ce7165SmrgFine tuning of the installation directories:
1324fb23d3a8Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1325fb23d3a8Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1326fb23d3a8Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1327fb23d3a8Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1328fb23d3a8Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1329fb23d3a8Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1330fb23d3a8Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1331fb23d3a8Smrg  --includedir=DIR        C header files [PREFIX/include]
1332fb23d3a8Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1333fb23d3a8Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1334fb23d3a8Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1335fb23d3a8Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1336fb23d3a8Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1337fb23d3a8Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1338fb23d3a8Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xhost]
1339fb23d3a8Smrg  --htmldir=DIR           html documentation [DOCDIR]
1340fb23d3a8Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1341fb23d3a8Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1342fb23d3a8Smrg  --psdir=DIR             ps documentation [DOCDIR]
134364ce7165Smrg_ACEOF
134464ce7165Smrg
134564ce7165Smrg  cat <<\_ACEOF
134664ce7165Smrg
134764ce7165SmrgProgram names:
134864ce7165Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
134964ce7165Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
135064ce7165Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
135164ce7165Smrg
135264ce7165SmrgSystem types:
135364ce7165Smrg  --build=BUILD     configure for building on BUILD [guessed]
135464ce7165Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
135564ce7165Smrg_ACEOF
135664ce7165Smrgfi
135764ce7165Smrg
135864ce7165Smrgif test -n "$ac_init_help"; then
135964ce7165Smrg  case $ac_init_help in
1360169a0819Smrg     short | recursive ) echo "Configuration of xhost 1.0.4:";;
136164ce7165Smrg   esac
136264ce7165Smrg  cat <<\_ACEOF
136364ce7165Smrg
136464ce7165SmrgOptional Features:
1365fb23d3a8Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
136664ce7165Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
136764ce7165Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
136864ce7165Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
136964ce7165Smrg			  (and sometimes confusing) to the casual installer
137064ce7165Smrg  --disable-dependency-tracking  speeds up one-time build
137164ce7165Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1372fb23d3a8Smrg  --enable-strict-compilation
1373fb23d3a8Smrg                          Enable all warnings from compiler and make them
1374fb23d3a8Smrg                          errors (default: disabled)
1375169a0819Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1376169a0819Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
137764ce7165Smrg  --enable-unix-transport Enable UNIX domain socket transport
137864ce7165Smrg  --enable-tcp-transport  Enable TCP socket transport
1379fb23d3a8Smrg  --enable-ipv6           Enable IPv6 support
138064ce7165Smrg  --enable-local-transport
138164ce7165Smrg                          Enable os-specific local transport
138264ce7165Smrg  --enable-secure-rpc     Enable Secure RPC
138364ce7165Smrg
138464ce7165SmrgSome influential environment variables:
138564ce7165Smrg  CC          C compiler command
138664ce7165Smrg  CFLAGS      C compiler flags
138764ce7165Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
138864ce7165Smrg              nonstandard directory <lib dir>
138964ce7165Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1390169a0819Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
139164ce7165Smrg              you have headers in a nonstandard directory <include dir>
1392fb23d3a8Smrg  CPP         C preprocessor
139364ce7165Smrg  PKG_CONFIG  path to pkg-config utility
139464ce7165Smrg  XHOST_CFLAGS
139564ce7165Smrg              C compiler flags for XHOST, overriding pkg-config
139664ce7165Smrg  XHOST_LIBS  linker flags for XHOST, overriding pkg-config
139764ce7165Smrg
139864ce7165SmrgUse these variables to override the choices made by `configure' or to help
139964ce7165Smrgit to find libraries and programs with nonstandard names/locations.
140064ce7165Smrg
140164ce7165SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
140264ce7165Smrg_ACEOF
140364ce7165Smrgac_status=$?
140464ce7165Smrgfi
140564ce7165Smrg
140664ce7165Smrgif test "$ac_init_help" = "recursive"; then
140764ce7165Smrg  # If there are subdirs, report their specific --help.
140864ce7165Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409fb23d3a8Smrg    test -d "$ac_dir" ||
1410fb23d3a8Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411fb23d3a8Smrg      continue
141264ce7165Smrg    ac_builddir=.
141364ce7165Smrg
141464ce7165Smrgcase "$ac_dir" in
141564ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
141664ce7165Smrg*)
1417fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
141864ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
1419fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
142064ce7165Smrg  case $ac_top_builddir_sub in
142164ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
142264ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
142364ce7165Smrg  esac ;;
142464ce7165Smrgesac
142564ce7165Smrgac_abs_top_builddir=$ac_pwd
142664ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
142764ce7165Smrg# for backward compatibility:
142864ce7165Smrgac_top_builddir=$ac_top_build_prefix
142964ce7165Smrg
143064ce7165Smrgcase $srcdir in
143164ce7165Smrg  .)  # We are building in place.
143264ce7165Smrg    ac_srcdir=.
143364ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
143464ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
143564ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
143664ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
143764ce7165Smrg    ac_top_srcdir=$srcdir
143864ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
143964ce7165Smrg  *) # Relative name.
144064ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
144164ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
144264ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
144364ce7165Smrgesac
144464ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
144564ce7165Smrg
144664ce7165Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
144764ce7165Smrg    # Check for guested configure.
144864ce7165Smrg    if test -f "$ac_srcdir/configure.gnu"; then
144964ce7165Smrg      echo &&
145064ce7165Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
145164ce7165Smrg    elif test -f "$ac_srcdir/configure"; then
145264ce7165Smrg      echo &&
145364ce7165Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
145464ce7165Smrg    else
1455fb23d3a8Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
145664ce7165Smrg    fi || ac_status=$?
145764ce7165Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
145864ce7165Smrg  done
145964ce7165Smrgfi
146064ce7165Smrg
146164ce7165Smrgtest -n "$ac_init_help" && exit $ac_status
146264ce7165Smrgif $ac_init_version; then
146364ce7165Smrg  cat <<\_ACEOF
1464169a0819Smrgxhost configure 1.0.4
1465169a0819Smrggenerated by GNU Autoconf 2.68
146664ce7165Smrg
1467169a0819SmrgCopyright (C) 2010 Free Software Foundation, Inc.
146864ce7165SmrgThis configure script is free software; the Free Software Foundation
146964ce7165Smrggives unlimited permission to copy, distribute and modify it.
147064ce7165Smrg_ACEOF
147164ce7165Smrg  exit
147264ce7165Smrgfi
147364ce7165Smrg
1474169a0819Smrg## ------------------------ ##
1475169a0819Smrg## Autoconf initialization. ##
1476169a0819Smrg## ------------------------ ##
147764ce7165Smrg
1478169a0819Smrg# ac_fn_c_try_compile LINENO
1479169a0819Smrg# --------------------------
1480169a0819Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1481169a0819Smrgac_fn_c_try_compile ()
148264ce7165Smrg{
1483169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484169a0819Smrg  rm -f conftest.$ac_objext
1485169a0819Smrg  if { { ac_try="$ac_compile"
1486169a0819Smrgcase "(($ac_try" in
1487169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488169a0819Smrg  *) ac_try_echo=$ac_try;;
1489169a0819Smrgesac
1490169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1492169a0819Smrg  (eval "$ac_compile") 2>conftest.err
1493169a0819Smrg  ac_status=$?
1494169a0819Smrg  if test -s conftest.err; then
1495169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1496169a0819Smrg    cat conftest.er1 >&5
1497169a0819Smrg    mv -f conftest.er1 conftest.err
1498169a0819Smrg  fi
1499169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500169a0819Smrg  test $ac_status = 0; } && {
1501169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1502169a0819Smrg	 test ! -s conftest.err
1503169a0819Smrg       } && test -s conftest.$ac_objext; then :
1504169a0819Smrg  ac_retval=0
1505169a0819Smrgelse
1506169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1507169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
150864ce7165Smrg
1509169a0819Smrg	ac_retval=1
1510169a0819Smrgfi
1511169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512169a0819Smrg  as_fn_set_status $ac_retval
151364ce7165Smrg
1514169a0819Smrg} # ac_fn_c_try_compile
151564ce7165Smrg
1516169a0819Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1517169a0819Smrg# ---------------------------------------------
1518169a0819Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1519169a0819Smrg# accordingly.
1520169a0819Smrgac_fn_c_check_decl ()
1521169a0819Smrg{
1522169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523169a0819Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1524169a0819Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1525169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1526169a0819Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1527169a0819Smrgif eval \${$3+:} false; then :
1528169a0819Smrg  $as_echo_n "(cached) " >&6
1529169a0819Smrgelse
1530169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531169a0819Smrg/* end confdefs.h.  */
1532169a0819Smrg$4
1533169a0819Smrgint
1534169a0819Smrgmain ()
1535169a0819Smrg{
1536169a0819Smrg#ifndef $as_decl_name
1537169a0819Smrg#ifdef __cplusplus
1538169a0819Smrg  (void) $as_decl_use;
1539169a0819Smrg#else
1540169a0819Smrg  (void) $as_decl_name;
1541169a0819Smrg#endif
1542169a0819Smrg#endif
1543169a0819Smrg
1544169a0819Smrg  ;
1545169a0819Smrg  return 0;
1546169a0819Smrg}
1547169a0819Smrg_ACEOF
1548169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1549169a0819Smrg  eval "$3=yes"
1550169a0819Smrgelse
1551169a0819Smrg  eval "$3=no"
1552169a0819Smrgfi
1553169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1554169a0819Smrgfi
1555169a0819Smrgeval ac_res=\$$3
1556169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557169a0819Smrg$as_echo "$ac_res" >&6; }
1558169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559169a0819Smrg
1560169a0819Smrg} # ac_fn_c_check_decl
1561169a0819Smrg
1562169a0819Smrg# ac_fn_c_try_cpp LINENO
1563169a0819Smrg# ----------------------
1564169a0819Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565169a0819Smrgac_fn_c_try_cpp ()
1566169a0819Smrg{
1567169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568169a0819Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1569169a0819Smrgcase "(($ac_try" in
1570169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571169a0819Smrg  *) ac_try_echo=$ac_try;;
1572169a0819Smrgesac
1573169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1575169a0819Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576169a0819Smrg  ac_status=$?
1577169a0819Smrg  if test -s conftest.err; then
1578169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1579169a0819Smrg    cat conftest.er1 >&5
1580169a0819Smrg    mv -f conftest.er1 conftest.err
1581169a0819Smrg  fi
1582169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583169a0819Smrg  test $ac_status = 0; } > conftest.i && {
1584169a0819Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585169a0819Smrg	 test ! -s conftest.err
1586169a0819Smrg       }; then :
1587169a0819Smrg  ac_retval=0
1588169a0819Smrgelse
1589169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1590169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1591169a0819Smrg
1592169a0819Smrg    ac_retval=1
1593169a0819Smrgfi
1594169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595169a0819Smrg  as_fn_set_status $ac_retval
1596169a0819Smrg
1597169a0819Smrg} # ac_fn_c_try_cpp
1598169a0819Smrg
1599169a0819Smrg# ac_fn_c_try_run LINENO
1600169a0819Smrg# ----------------------
1601169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602169a0819Smrg# that executables *can* be run.
1603169a0819Smrgac_fn_c_try_run ()
1604169a0819Smrg{
1605169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606169a0819Smrg  if { { ac_try="$ac_link"
1607169a0819Smrgcase "(($ac_try" in
1608169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609169a0819Smrg  *) ac_try_echo=$ac_try;;
1610169a0819Smrgesac
1611169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1613169a0819Smrg  (eval "$ac_link") 2>&5
1614169a0819Smrg  ac_status=$?
1615169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616169a0819Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617169a0819Smrg  { { case "(($ac_try" in
1618169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619169a0819Smrg  *) ac_try_echo=$ac_try;;
1620169a0819Smrgesac
1621169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1623169a0819Smrg  (eval "$ac_try") 2>&5
1624169a0819Smrg  ac_status=$?
1625169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626169a0819Smrg  test $ac_status = 0; }; }; then :
1627169a0819Smrg  ac_retval=0
1628169a0819Smrgelse
1629169a0819Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1630169a0819Smrg       $as_echo "$as_me: failed program was:" >&5
1631169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1632169a0819Smrg
1633169a0819Smrg       ac_retval=$ac_status
1634169a0819Smrgfi
1635169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637169a0819Smrg  as_fn_set_status $ac_retval
1638169a0819Smrg
1639169a0819Smrg} # ac_fn_c_try_run
1640169a0819Smrg
1641169a0819Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642169a0819Smrg# -------------------------------------------------------
1643169a0819Smrg# Tests whether HEADER exists and can be compiled using the include files in
1644169a0819Smrg# INCLUDES, setting the cache variable VAR accordingly.
1645169a0819Smrgac_fn_c_check_header_compile ()
1646169a0819Smrg{
1647169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1650169a0819Smrgif eval \${$3+:} false; then :
1651169a0819Smrg  $as_echo_n "(cached) " >&6
1652169a0819Smrgelse
1653169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654169a0819Smrg/* end confdefs.h.  */
1655169a0819Smrg$4
1656169a0819Smrg#include <$2>
1657169a0819Smrg_ACEOF
1658169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1659169a0819Smrg  eval "$3=yes"
1660169a0819Smrgelse
1661169a0819Smrg  eval "$3=no"
1662169a0819Smrgfi
1663169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664169a0819Smrgfi
1665169a0819Smrgeval ac_res=\$$3
1666169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667169a0819Smrg$as_echo "$ac_res" >&6; }
1668169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669169a0819Smrg
1670169a0819Smrg} # ac_fn_c_check_header_compile
1671169a0819Smrg
1672169a0819Smrg# ac_fn_c_try_link LINENO
1673169a0819Smrg# -----------------------
1674169a0819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1675169a0819Smrgac_fn_c_try_link ()
1676169a0819Smrg{
1677169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678169a0819Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1679169a0819Smrg  if { { ac_try="$ac_link"
1680169a0819Smrgcase "(($ac_try" in
1681169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682169a0819Smrg  *) ac_try_echo=$ac_try;;
1683169a0819Smrgesac
1684169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685169a0819Smrg$as_echo "$ac_try_echo"; } >&5
1686169a0819Smrg  (eval "$ac_link") 2>conftest.err
1687169a0819Smrg  ac_status=$?
1688169a0819Smrg  if test -s conftest.err; then
1689169a0819Smrg    grep -v '^ *+' conftest.err >conftest.er1
1690169a0819Smrg    cat conftest.er1 >&5
1691169a0819Smrg    mv -f conftest.er1 conftest.err
1692169a0819Smrg  fi
1693169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694169a0819Smrg  test $ac_status = 0; } && {
1695169a0819Smrg	 test -z "$ac_c_werror_flag" ||
1696169a0819Smrg	 test ! -s conftest.err
1697169a0819Smrg       } && test -s conftest$ac_exeext && {
1698169a0819Smrg	 test "$cross_compiling" = yes ||
1699169a0819Smrg	 $as_test_x conftest$ac_exeext
1700169a0819Smrg       }; then :
1701169a0819Smrg  ac_retval=0
1702169a0819Smrgelse
1703169a0819Smrg  $as_echo "$as_me: failed program was:" >&5
1704169a0819Smrgsed 's/^/| /' conftest.$ac_ext >&5
1705169a0819Smrg
1706169a0819Smrg	ac_retval=1
1707169a0819Smrgfi
1708169a0819Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709169a0819Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710169a0819Smrg  # interfere with the next link command; also delete a directory that is
1711169a0819Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1712169a0819Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714169a0819Smrg  as_fn_set_status $ac_retval
1715169a0819Smrg
1716169a0819Smrg} # ac_fn_c_try_link
1717169a0819Smrg
1718169a0819Smrg# ac_fn_c_check_func LINENO FUNC VAR
1719169a0819Smrg# ----------------------------------
1720169a0819Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1721169a0819Smrgac_fn_c_check_func ()
1722169a0819Smrg{
1723169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1726169a0819Smrgif eval \${$3+:} false; then :
1727169a0819Smrg  $as_echo_n "(cached) " >&6
1728169a0819Smrgelse
1729169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730169a0819Smrg/* end confdefs.h.  */
1731169a0819Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732169a0819Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733169a0819Smrg#define $2 innocuous_$2
1734169a0819Smrg
1735169a0819Smrg/* System header to define __stub macros and hopefully few prototypes,
1736169a0819Smrg    which can conflict with char $2 (); below.
1737169a0819Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738169a0819Smrg    <limits.h> exists even on freestanding compilers.  */
1739169a0819Smrg
1740169a0819Smrg#ifdef __STDC__
1741169a0819Smrg# include <limits.h>
1742169a0819Smrg#else
1743169a0819Smrg# include <assert.h>
1744169a0819Smrg#endif
1745169a0819Smrg
1746169a0819Smrg#undef $2
1747169a0819Smrg
1748169a0819Smrg/* Override any GCC internal prototype to avoid an error.
1749169a0819Smrg   Use char because int might match the return type of a GCC
1750169a0819Smrg   builtin and then its argument prototype would still apply.  */
1751169a0819Smrg#ifdef __cplusplus
1752169a0819Smrgextern "C"
1753169a0819Smrg#endif
1754169a0819Smrgchar $2 ();
1755169a0819Smrg/* The GNU C library defines this for functions which it implements
1756169a0819Smrg    to always fail with ENOSYS.  Some functions are actually named
1757169a0819Smrg    something starting with __ and the normal name is an alias.  */
1758169a0819Smrg#if defined __stub_$2 || defined __stub___$2
1759169a0819Smrgchoke me
1760169a0819Smrg#endif
1761169a0819Smrg
1762169a0819Smrgint
1763169a0819Smrgmain ()
1764169a0819Smrg{
1765169a0819Smrgreturn $2 ();
1766169a0819Smrg  ;
1767169a0819Smrg  return 0;
1768169a0819Smrg}
1769169a0819Smrg_ACEOF
1770169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
1771169a0819Smrg  eval "$3=yes"
1772169a0819Smrgelse
1773169a0819Smrg  eval "$3=no"
1774169a0819Smrgfi
1775169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
1776169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
1777169a0819Smrgfi
1778169a0819Smrgeval ac_res=\$$3
1779169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780169a0819Smrg$as_echo "$ac_res" >&6; }
1781169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782169a0819Smrg
1783169a0819Smrg} # ac_fn_c_check_func
1784169a0819Smrg
1785169a0819Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1786169a0819Smrg# ----------------------------------------------------
1787169a0819Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
1788169a0819Smrg# INCLUDES, setting cache variable VAR accordingly.
1789169a0819Smrgac_fn_c_check_member ()
1790169a0819Smrg{
1791169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1793169a0819Smrg$as_echo_n "checking for $2.$3... " >&6; }
1794169a0819Smrgif eval \${$4+:} false; then :
1795169a0819Smrg  $as_echo_n "(cached) " >&6
1796169a0819Smrgelse
1797169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798169a0819Smrg/* end confdefs.h.  */
1799169a0819Smrg$5
1800169a0819Smrgint
1801169a0819Smrgmain ()
1802169a0819Smrg{
1803169a0819Smrgstatic $2 ac_aggr;
1804169a0819Smrgif (ac_aggr.$3)
1805169a0819Smrgreturn 0;
1806169a0819Smrg  ;
1807169a0819Smrg  return 0;
1808169a0819Smrg}
1809169a0819Smrg_ACEOF
1810169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1811169a0819Smrg  eval "$4=yes"
1812169a0819Smrgelse
1813169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814169a0819Smrg/* end confdefs.h.  */
1815169a0819Smrg$5
1816169a0819Smrgint
1817169a0819Smrgmain ()
1818169a0819Smrg{
1819169a0819Smrgstatic $2 ac_aggr;
1820169a0819Smrgif (sizeof ac_aggr.$3)
1821169a0819Smrgreturn 0;
1822169a0819Smrg  ;
1823169a0819Smrg  return 0;
1824169a0819Smrg}
1825169a0819Smrg_ACEOF
1826169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1827169a0819Smrg  eval "$4=yes"
1828169a0819Smrgelse
1829169a0819Smrg  eval "$4=no"
1830169a0819Smrgfi
1831169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832169a0819Smrgfi
1833169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834169a0819Smrgfi
1835169a0819Smrgeval ac_res=\$$4
1836169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837169a0819Smrg$as_echo "$ac_res" >&6; }
1838169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839169a0819Smrg
1840169a0819Smrg} # ac_fn_c_check_member
1841169a0819Smrg
1842169a0819Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1843169a0819Smrg# -------------------------------------------
1844169a0819Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
1845169a0819Smrg# variable VAR accordingly.
1846169a0819Smrgac_fn_c_check_type ()
1847169a0819Smrg{
1848169a0819Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850169a0819Smrg$as_echo_n "checking for $2... " >&6; }
1851169a0819Smrgif eval \${$3+:} false; then :
1852169a0819Smrg  $as_echo_n "(cached) " >&6
1853169a0819Smrgelse
1854169a0819Smrg  eval "$3=no"
1855169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856169a0819Smrg/* end confdefs.h.  */
1857169a0819Smrg$4
1858169a0819Smrgint
1859169a0819Smrgmain ()
1860169a0819Smrg{
1861169a0819Smrgif (sizeof ($2))
1862169a0819Smrg	 return 0;
1863169a0819Smrg  ;
1864169a0819Smrg  return 0;
1865169a0819Smrg}
1866169a0819Smrg_ACEOF
1867169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1868169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869169a0819Smrg/* end confdefs.h.  */
1870169a0819Smrg$4
1871169a0819Smrgint
1872169a0819Smrgmain ()
1873169a0819Smrg{
1874169a0819Smrgif (sizeof (($2)))
1875169a0819Smrg	    return 0;
1876169a0819Smrg  ;
1877169a0819Smrg  return 0;
1878169a0819Smrg}
1879169a0819Smrg_ACEOF
1880169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
1881169a0819Smrg
1882169a0819Smrgelse
1883169a0819Smrg  eval "$3=yes"
1884169a0819Smrgfi
1885169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886169a0819Smrgfi
1887169a0819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888169a0819Smrgfi
1889169a0819Smrgeval ac_res=\$$3
1890169a0819Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891169a0819Smrg$as_echo "$ac_res" >&6; }
1892169a0819Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893169a0819Smrg
1894169a0819Smrg} # ac_fn_c_check_type
1895169a0819Smrgcat >config.log <<_ACEOF
1896169a0819SmrgThis file contains any messages produced by compilers while
1897169a0819Smrgrunning configure, to aid debugging if configure makes a mistake.
1898169a0819Smrg
1899169a0819SmrgIt was created by xhost $as_me 1.0.4, which was
1900169a0819Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1901169a0819Smrg
1902169a0819Smrg  $ $0 $@
1903169a0819Smrg
1904169a0819Smrg_ACEOF
1905169a0819Smrgexec 5>>config.log
1906169a0819Smrg{
1907169a0819Smrgcat <<_ASUNAME
1908169a0819Smrg## --------- ##
1909169a0819Smrg## Platform. ##
1910169a0819Smrg## --------- ##
1911169a0819Smrg
1912169a0819Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913169a0819Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1914169a0819Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1915169a0819Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1916169a0819Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1917169a0819Smrg
1918169a0819Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919169a0819Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1920169a0819Smrg
1921169a0819Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1922169a0819Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1923169a0819Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924169a0819Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1925169a0819Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1926169a0819Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1927169a0819Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1928169a0819Smrg
1929169a0819Smrg_ASUNAME
1930169a0819Smrg
1931169a0819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193264ce7165Smrgfor as_dir in $PATH
193364ce7165Smrgdo
193464ce7165Smrg  IFS=$as_save_IFS
193564ce7165Smrg  test -z "$as_dir" && as_dir=.
1936169a0819Smrg    $as_echo "PATH: $as_dir"
1937169a0819Smrg  done
193864ce7165SmrgIFS=$as_save_IFS
193964ce7165Smrg
194064ce7165Smrg} >&5
194164ce7165Smrg
194264ce7165Smrgcat >&5 <<_ACEOF
194364ce7165Smrg
194464ce7165Smrg
194564ce7165Smrg## ----------- ##
194664ce7165Smrg## Core tests. ##
194764ce7165Smrg## ----------- ##
194864ce7165Smrg
194964ce7165Smrg_ACEOF
195064ce7165Smrg
195164ce7165Smrg
195264ce7165Smrg# Keep a trace of the command line.
195364ce7165Smrg# Strip out --no-create and --no-recursion so they do not pile up.
195464ce7165Smrg# Strip out --silent because we don't want to record it for future runs.
195564ce7165Smrg# Also quote any args containing shell meta-characters.
195664ce7165Smrg# Make two passes to allow for proper duplicate-argument suppression.
195764ce7165Smrgac_configure_args=
195864ce7165Smrgac_configure_args0=
195964ce7165Smrgac_configure_args1=
196064ce7165Smrgac_must_keep_next=false
196164ce7165Smrgfor ac_pass in 1 2
196264ce7165Smrgdo
196364ce7165Smrg  for ac_arg
196464ce7165Smrg  do
196564ce7165Smrg    case $ac_arg in
196664ce7165Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
196764ce7165Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
196864ce7165Smrg    | -silent | --silent | --silen | --sile | --sil)
196964ce7165Smrg      continue ;;
197064ce7165Smrg    *\'*)
1971fb23d3a8Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
197264ce7165Smrg    esac
197364ce7165Smrg    case $ac_pass in
1974169a0819Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
197564ce7165Smrg    2)
1976169a0819Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
197764ce7165Smrg      if test $ac_must_keep_next = true; then
197864ce7165Smrg	ac_must_keep_next=false # Got value, back to normal.
197964ce7165Smrg      else
198064ce7165Smrg	case $ac_arg in
198164ce7165Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
198264ce7165Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
198364ce7165Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
198464ce7165Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
198564ce7165Smrg	    case "$ac_configure_args0 " in
198664ce7165Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
198764ce7165Smrg	    esac
198864ce7165Smrg	    ;;
198964ce7165Smrg	  -* ) ac_must_keep_next=true ;;
199064ce7165Smrg	esac
199164ce7165Smrg      fi
1992169a0819Smrg      as_fn_append ac_configure_args " '$ac_arg'"
199364ce7165Smrg      ;;
199464ce7165Smrg    esac
199564ce7165Smrg  done
199664ce7165Smrgdone
1997169a0819Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1998169a0819Smrg{ ac_configure_args1=; unset ac_configure_args1;}
199964ce7165Smrg
200064ce7165Smrg# When interrupted or exit'd, cleanup temporary files, and complete
200164ce7165Smrg# config.log.  We remove comments because anyway the quotes in there
200264ce7165Smrg# would cause problems or look ugly.
200364ce7165Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
200464ce7165Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
200564ce7165Smrgtrap 'exit_status=$?
200664ce7165Smrg  # Save into config.log some information that might help in debugging.
200764ce7165Smrg  {
200864ce7165Smrg    echo
200964ce7165Smrg
2010169a0819Smrg    $as_echo "## ---------------- ##
201164ce7165Smrg## Cache variables. ##
2012169a0819Smrg## ---------------- ##"
201364ce7165Smrg    echo
201464ce7165Smrg    # The following way of writing the cache mishandles newlines in values,
201564ce7165Smrg(
201664ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
201764ce7165Smrg    eval ac_val=\$$ac_var
201864ce7165Smrg    case $ac_val in #(
201964ce7165Smrg    *${as_nl}*)
202064ce7165Smrg      case $ac_var in #(
2021169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
202364ce7165Smrg      esac
202464ce7165Smrg      case $ac_var in #(
202564ce7165Smrg      _ | IFS | as_nl) ;; #(
2026fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
202864ce7165Smrg      esac ;;
202964ce7165Smrg    esac
203064ce7165Smrg  done
203164ce7165Smrg  (set) 2>&1 |
203264ce7165Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
203364ce7165Smrg    *${as_nl}ac_space=\ *)
203464ce7165Smrg      sed -n \
203564ce7165Smrg	"s/'\''/'\''\\\\'\'''\''/g;
203664ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
203764ce7165Smrg      ;; #(
203864ce7165Smrg    *)
203964ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
204064ce7165Smrg      ;;
204164ce7165Smrg    esac |
204264ce7165Smrg    sort
204364ce7165Smrg)
204464ce7165Smrg    echo
204564ce7165Smrg
2046169a0819Smrg    $as_echo "## ----------------- ##
204764ce7165Smrg## Output variables. ##
2048169a0819Smrg## ----------------- ##"
204964ce7165Smrg    echo
205064ce7165Smrg    for ac_var in $ac_subst_vars
205164ce7165Smrg    do
205264ce7165Smrg      eval ac_val=\$$ac_var
205364ce7165Smrg      case $ac_val in
2054fb23d3a8Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
205564ce7165Smrg      esac
2056fb23d3a8Smrg      $as_echo "$ac_var='\''$ac_val'\''"
205764ce7165Smrg    done | sort
205864ce7165Smrg    echo
205964ce7165Smrg
206064ce7165Smrg    if test -n "$ac_subst_files"; then
2061169a0819Smrg      $as_echo "## ------------------- ##
206264ce7165Smrg## File substitutions. ##
2063169a0819Smrg## ------------------- ##"
206464ce7165Smrg      echo
206564ce7165Smrg      for ac_var in $ac_subst_files
206664ce7165Smrg      do
206764ce7165Smrg	eval ac_val=\$$ac_var
206864ce7165Smrg	case $ac_val in
2069fb23d3a8Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
207064ce7165Smrg	esac
2071fb23d3a8Smrg	$as_echo "$ac_var='\''$ac_val'\''"
207264ce7165Smrg      done | sort
207364ce7165Smrg      echo
207464ce7165Smrg    fi
207564ce7165Smrg
207664ce7165Smrg    if test -s confdefs.h; then
2077169a0819Smrg      $as_echo "## ----------- ##
207864ce7165Smrg## confdefs.h. ##
2079169a0819Smrg## ----------- ##"
208064ce7165Smrg      echo
208164ce7165Smrg      cat confdefs.h
208264ce7165Smrg      echo
208364ce7165Smrg    fi
208464ce7165Smrg    test "$ac_signal" != 0 &&
2085fb23d3a8Smrg      $as_echo "$as_me: caught signal $ac_signal"
2086fb23d3a8Smrg    $as_echo "$as_me: exit $exit_status"
208764ce7165Smrg  } >&5
208864ce7165Smrg  rm -f core *.core core.conftest.* &&
208964ce7165Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
209064ce7165Smrg    exit $exit_status
209164ce7165Smrg' 0
209264ce7165Smrgfor ac_signal in 1 2 13 15; do
2093169a0819Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
209464ce7165Smrgdone
209564ce7165Smrgac_signal=0
209664ce7165Smrg
209764ce7165Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
209864ce7165Smrgrm -f -r conftest* confdefs.h
209964ce7165Smrg
2100169a0819Smrg$as_echo "/* confdefs.h */" > confdefs.h
2101169a0819Smrg
210264ce7165Smrg# Predefined preprocessor variables.
210364ce7165Smrg
210464ce7165Smrgcat >>confdefs.h <<_ACEOF
210564ce7165Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
210664ce7165Smrg_ACEOF
210764ce7165Smrg
210864ce7165Smrgcat >>confdefs.h <<_ACEOF
210964ce7165Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
211064ce7165Smrg_ACEOF
211164ce7165Smrg
211264ce7165Smrgcat >>confdefs.h <<_ACEOF
211364ce7165Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
211464ce7165Smrg_ACEOF
211564ce7165Smrg
211664ce7165Smrgcat >>confdefs.h <<_ACEOF
211764ce7165Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
211864ce7165Smrg_ACEOF
211964ce7165Smrg
212064ce7165Smrgcat >>confdefs.h <<_ACEOF
212164ce7165Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
212264ce7165Smrg_ACEOF
212364ce7165Smrg
2124169a0819Smrgcat >>confdefs.h <<_ACEOF
2125169a0819Smrg#define PACKAGE_URL "$PACKAGE_URL"
2126169a0819Smrg_ACEOF
2127169a0819Smrg
212864ce7165Smrg
212964ce7165Smrg# Let the site file select an alternate cache file if it wants to.
2130fb23d3a8Smrg# Prefer an explicitly selected file to automatically selected ones.
2131fb23d3a8Smrgac_site_file1=NONE
2132fb23d3a8Smrgac_site_file2=NONE
213364ce7165Smrgif test -n "$CONFIG_SITE"; then
2134169a0819Smrg  # We do not want a PATH search for config.site.
2135169a0819Smrg  case $CONFIG_SITE in #((
2136169a0819Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2137169a0819Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2138169a0819Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2139169a0819Smrg  esac
214064ce7165Smrgelif test "x$prefix" != xNONE; then
2141fb23d3a8Smrg  ac_site_file1=$prefix/share/config.site
2142fb23d3a8Smrg  ac_site_file2=$prefix/etc/config.site
214364ce7165Smrgelse
2144fb23d3a8Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2145fb23d3a8Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
214664ce7165Smrgfi
2147fb23d3a8Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
214864ce7165Smrgdo
2149fb23d3a8Smrg  test "x$ac_site_file" = xNONE && continue
2150169a0819Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152fb23d3a8Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
215364ce7165Smrg    sed 's/^/| /' "$ac_site_file" >&5
2154169a0819Smrg    . "$ac_site_file" \
2155169a0819Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157169a0819Smrgas_fn_error $? "failed to load site script $ac_site_file
2158169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
215964ce7165Smrg  fi
216064ce7165Smrgdone
216164ce7165Smrg
216264ce7165Smrgif test -r "$cache_file"; then
2163169a0819Smrg  # Some versions of bash will fail to source /dev/null (special files
2164169a0819Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2165169a0819Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167fb23d3a8Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
216864ce7165Smrg    case $cache_file in
216964ce7165Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
217064ce7165Smrg      *)                      . "./$cache_file";;
217164ce7165Smrg    esac
217264ce7165Smrg  fi
217364ce7165Smrgelse
2174169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175fb23d3a8Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
217664ce7165Smrg  >$cache_file
217764ce7165Smrgfi
217864ce7165Smrg
217964ce7165Smrg# Check that the precious variables saved in the cache have kept the same
218064ce7165Smrg# value.
218164ce7165Smrgac_cache_corrupted=false
218264ce7165Smrgfor ac_var in $ac_precious_vars; do
218364ce7165Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
218464ce7165Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
218564ce7165Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
218664ce7165Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
218764ce7165Smrg  case $ac_old_set,$ac_new_set in
218864ce7165Smrg    set,)
2189169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
219164ce7165Smrg      ac_cache_corrupted=: ;;
219264ce7165Smrg    ,set)
2193169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
219564ce7165Smrg      ac_cache_corrupted=: ;;
219664ce7165Smrg    ,);;
219764ce7165Smrg    *)
219864ce7165Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2199fb23d3a8Smrg	# differences in whitespace do not lead to failure.
2200fb23d3a8Smrg	ac_old_val_w=`echo x $ac_old_val`
2201fb23d3a8Smrg	ac_new_val_w=`echo x $ac_new_val`
2202fb23d3a8Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204fb23d3a8Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205fb23d3a8Smrg	  ac_cache_corrupted=:
2206fb23d3a8Smrg	else
2207169a0819Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208fb23d3a8Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209fb23d3a8Smrg	  eval $ac_var=\$ac_old_val
2210fb23d3a8Smrg	fi
2211169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2212fb23d3a8Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2213169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2214fb23d3a8Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
221564ce7165Smrg      fi;;
221664ce7165Smrg  esac
221764ce7165Smrg  # Pass precious variables to config.status.
221864ce7165Smrg  if test "$ac_new_set" = set; then
221964ce7165Smrg    case $ac_new_val in
2220fb23d3a8Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
222164ce7165Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
222264ce7165Smrg    esac
222364ce7165Smrg    case " $ac_configure_args " in
222464ce7165Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2225169a0819Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
222664ce7165Smrg    esac
222764ce7165Smrg  fi
222864ce7165Smrgdone
222964ce7165Smrgif $ac_cache_corrupted; then
2230169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233fb23d3a8Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234169a0819Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
223564ce7165Smrgfi
2236169a0819Smrg## -------------------- ##
2237169a0819Smrg## Main body of script. ##
2238169a0819Smrg## -------------------- ##
223964ce7165Smrg
2240169a0819Smrgac_ext=c
2241169a0819Smrgac_cpp='$CPP $CPPFLAGS'
2242169a0819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243169a0819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244169a0819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
224564ce7165Smrg
224664ce7165Smrg
2247169a0819Smrgam__api_version='1.11'
224864ce7165Smrg
224964ce7165Smrgac_aux_dir=
225064ce7165Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
225164ce7165Smrg  if test -f "$ac_dir/install-sh"; then
225264ce7165Smrg    ac_aux_dir=$ac_dir
225364ce7165Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
225464ce7165Smrg    break
225564ce7165Smrg  elif test -f "$ac_dir/install.sh"; then
225664ce7165Smrg    ac_aux_dir=$ac_dir
225764ce7165Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
225864ce7165Smrg    break
225964ce7165Smrg  elif test -f "$ac_dir/shtool"; then
226064ce7165Smrg    ac_aux_dir=$ac_dir
226164ce7165Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
226264ce7165Smrg    break
226364ce7165Smrg  fi
226464ce7165Smrgdone
226564ce7165Smrgif test -z "$ac_aux_dir"; then
2266169a0819Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
226764ce7165Smrgfi
226864ce7165Smrg
226964ce7165Smrg# These three variables are undocumented and unsupported,
227064ce7165Smrg# and are intended to be withdrawn in a future Autoconf release.
227164ce7165Smrg# They can cause serious problems if a builder's source tree is in a directory
227264ce7165Smrg# whose full name contains unusual characters.
227364ce7165Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
227464ce7165Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
227564ce7165Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
227664ce7165Smrg
227764ce7165Smrg
227864ce7165Smrg# Find a good install program.  We prefer a C program (faster),
227964ce7165Smrg# so one script is as good as another.  But avoid the broken or
228064ce7165Smrg# incompatible versions:
228164ce7165Smrg# SysV /etc/install, /usr/sbin/install
228264ce7165Smrg# SunOS /usr/etc/install
228364ce7165Smrg# IRIX /sbin/install
228464ce7165Smrg# AIX /bin/install
228564ce7165Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
228664ce7165Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
228764ce7165Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
228864ce7165Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
228964ce7165Smrg# OS/2's system install, which has a completely different semantic
229064ce7165Smrg# ./install, which can be erroneously created by make from ./install.sh.
2291fb23d3a8Smrg# Reject install programs that cannot install multiple files.
2292169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2293fb23d3a8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
229464ce7165Smrgif test -z "$INSTALL"; then
2295169a0819Smrgif ${ac_cv_path_install+:} false; then :
2296fb23d3a8Smrg  $as_echo_n "(cached) " >&6
229764ce7165Smrgelse
229864ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
229964ce7165Smrgfor as_dir in $PATH
230064ce7165Smrgdo
230164ce7165Smrg  IFS=$as_save_IFS
230264ce7165Smrg  test -z "$as_dir" && as_dir=.
2303169a0819Smrg    # Account for people who put trailing slashes in PATH elements.
2304169a0819Smrgcase $as_dir/ in #((
2305169a0819Smrg  ./ | .// | /[cC]/* | \
230664ce7165Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2307169a0819Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
230864ce7165Smrg  /usr/ucb/* ) ;;
230964ce7165Smrg  *)
231064ce7165Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
231164ce7165Smrg    # Don't use installbsd from OSF since it installs stuff as root
231264ce7165Smrg    # by default.
231364ce7165Smrg    for ac_prog in ginstall scoinst install; do
231464ce7165Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
231564ce7165Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
231664ce7165Smrg	  if test $ac_prog = install &&
231764ce7165Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
231864ce7165Smrg	    # AIX install.  It has an incompatible calling convention.
231964ce7165Smrg	    :
232064ce7165Smrg	  elif test $ac_prog = install &&
232164ce7165Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
232264ce7165Smrg	    # program-specific install script used by HP pwplus--don't use.
232364ce7165Smrg	    :
232464ce7165Smrg	  else
2325fb23d3a8Smrg	    rm -rf conftest.one conftest.two conftest.dir
2326fb23d3a8Smrg	    echo one > conftest.one
2327fb23d3a8Smrg	    echo two > conftest.two
2328fb23d3a8Smrg	    mkdir conftest.dir
2329fb23d3a8Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2330fb23d3a8Smrg	      test -s conftest.one && test -s conftest.two &&
2331fb23d3a8Smrg	      test -s conftest.dir/conftest.one &&
2332fb23d3a8Smrg	      test -s conftest.dir/conftest.two
2333fb23d3a8Smrg	    then
2334fb23d3a8Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2335fb23d3a8Smrg	      break 3
2336fb23d3a8Smrg	    fi
233764ce7165Smrg	  fi
233864ce7165Smrg	fi
233964ce7165Smrg      done
234064ce7165Smrg    done
234164ce7165Smrg    ;;
234264ce7165Smrgesac
2343fb23d3a8Smrg
2344169a0819Smrg  done
234564ce7165SmrgIFS=$as_save_IFS
234664ce7165Smrg
2347fb23d3a8Smrgrm -rf conftest.one conftest.two conftest.dir
234864ce7165Smrg
234964ce7165Smrgfi
235064ce7165Smrg  if test "${ac_cv_path_install+set}" = set; then
235164ce7165Smrg    INSTALL=$ac_cv_path_install
235264ce7165Smrg  else
235364ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
235464ce7165Smrg    # value for INSTALL within a source directory, because that will
235564ce7165Smrg    # break other packages using the cache if that directory is
235664ce7165Smrg    # removed, or if the value is a relative name.
235764ce7165Smrg    INSTALL=$ac_install_sh
235864ce7165Smrg  fi
235964ce7165Smrgfi
2360169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2361fb23d3a8Smrg$as_echo "$INSTALL" >&6; }
236264ce7165Smrg
236364ce7165Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
236464ce7165Smrg# It thinks the first close brace ends the variable substitution.
236564ce7165Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
236664ce7165Smrg
236764ce7165Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
236864ce7165Smrg
236964ce7165Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
237064ce7165Smrg
2371169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2372fb23d3a8Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
237364ce7165Smrg# Just in case
237464ce7165Smrgsleep 1
237564ce7165Smrgecho timestamp > conftest.file
2376fb23d3a8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2377fb23d3a8Smrg# name.  Accept space and tab only in the latter.
2378fb23d3a8Smrgam_lf='
2379fb23d3a8Smrg'
2380fb23d3a8Smrgcase `pwd` in
2381fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2382169a0819Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2383fb23d3a8Smrgesac
2384fb23d3a8Smrgcase $srcdir in
2385fb23d3a8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2386169a0819Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2387fb23d3a8Smrgesac
2388fb23d3a8Smrg
238964ce7165Smrg# Do `set' in a subshell so we don't clobber the current shell's
239064ce7165Smrg# arguments.  Must try -L first in case configure is actually a
239164ce7165Smrg# symlink; some systems play weird games with the mod time of symlinks
239264ce7165Smrg# (eg FreeBSD returns the mod time of the symlink's containing
239364ce7165Smrg# directory).
239464ce7165Smrgif (
2395fb23d3a8Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
239664ce7165Smrg   if test "$*" = "X"; then
239764ce7165Smrg      # -L didn't work.
2398fb23d3a8Smrg      set X `ls -t "$srcdir/configure" conftest.file`
239964ce7165Smrg   fi
240064ce7165Smrg   rm -f conftest.file
240164ce7165Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
240264ce7165Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
240364ce7165Smrg
240464ce7165Smrg      # If neither matched, then we have a broken ls.  This can happen
240564ce7165Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
240664ce7165Smrg      # broken ls alias from the environment.  This has actually
240764ce7165Smrg      # happened.  Such a system could not be considered "sane".
2408169a0819Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2409169a0819Smrgalias in your environment" "$LINENO" 5
241064ce7165Smrg   fi
241164ce7165Smrg
241264ce7165Smrg   test "$2" = conftest.file
241364ce7165Smrg   )
241464ce7165Smrgthen
241564ce7165Smrg   # Ok.
241664ce7165Smrg   :
241764ce7165Smrgelse
2418169a0819Smrg   as_fn_error $? "newly created file is older than distributed files!
2419169a0819SmrgCheck your system clock" "$LINENO" 5
242064ce7165Smrgfi
2421169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2422fb23d3a8Smrg$as_echo "yes" >&6; }
242364ce7165Smrgtest "$program_prefix" != NONE &&
242464ce7165Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
242564ce7165Smrg# Use a double $ so make ignores it.
242664ce7165Smrgtest "$program_suffix" != NONE &&
242764ce7165Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428fb23d3a8Smrg# Double any \ or $.
242964ce7165Smrg# By default was `s,x,x', remove it if useless.
2430fb23d3a8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431fb23d3a8Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
243264ce7165Smrg
243364ce7165Smrg# expand $ac_aux_dir to an absolute path
243464ce7165Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
243564ce7165Smrg
2436fb23d3a8Smrgif test x"${MISSING+set}" != xset; then
2437fb23d3a8Smrg  case $am_aux_dir in
2438fb23d3a8Smrg  *\ * | *\	*)
2439fb23d3a8Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440fb23d3a8Smrg  *)
2441fb23d3a8Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442fb23d3a8Smrg  esac
2443fb23d3a8Smrgfi
244464ce7165Smrg# Use eval to expand $SHELL
244564ce7165Smrgif eval "$MISSING --run true"; then
244664ce7165Smrg  am_missing_run="$MISSING --run "
244764ce7165Smrgelse
244864ce7165Smrg  am_missing_run=
2449169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2450fb23d3a8Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
245164ce7165Smrgfi
245264ce7165Smrg
2453fb23d3a8Smrgif test x"${install_sh}" != xset; then
2454fb23d3a8Smrg  case $am_aux_dir in
2455fb23d3a8Smrg  *\ * | *\	*)
2456fb23d3a8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457fb23d3a8Smrg  *)
2458fb23d3a8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2459fb23d3a8Smrg  esac
2460fb23d3a8Smrgfi
2461fb23d3a8Smrg
2462fb23d3a8Smrg# Installed binaries are usually stripped using `strip' when the user
2463fb23d3a8Smrg# run `make install-strip'.  However `strip' might not be the right
2464fb23d3a8Smrg# tool to use in cross-compilation environments, therefore Automake
2465fb23d3a8Smrg# will honor the `STRIP' environment variable to overrule this program.
2466fb23d3a8Smrgif test "$cross_compiling" != no; then
2467fb23d3a8Smrg  if test -n "$ac_tool_prefix"; then
2468fb23d3a8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469fb23d3a8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2470169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2472169a0819Smrgif ${ac_cv_prog_STRIP+:} false; then :
2473fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2474fb23d3a8Smrgelse
2475fb23d3a8Smrg  if test -n "$STRIP"; then
2476fb23d3a8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477fb23d3a8Smrgelse
2478fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479fb23d3a8Smrgfor as_dir in $PATH
2480fb23d3a8Smrgdo
2481fb23d3a8Smrg  IFS=$as_save_IFS
2482fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2483169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2484fb23d3a8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485fb23d3a8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487fb23d3a8Smrg    break 2
2488fb23d3a8Smrg  fi
2489fb23d3a8Smrgdone
2490169a0819Smrg  done
2491fb23d3a8SmrgIFS=$as_save_IFS
2492fb23d3a8Smrg
2493fb23d3a8Smrgfi
2494fb23d3a8Smrgfi
2495fb23d3a8SmrgSTRIP=$ac_cv_prog_STRIP
2496fb23d3a8Smrgif test -n "$STRIP"; then
2497169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498fb23d3a8Smrg$as_echo "$STRIP" >&6; }
2499fb23d3a8Smrgelse
2500169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501fb23d3a8Smrg$as_echo "no" >&6; }
2502fb23d3a8Smrgfi
2503fb23d3a8Smrg
2504fb23d3a8Smrg
2505fb23d3a8Smrgfi
2506fb23d3a8Smrgif test -z "$ac_cv_prog_STRIP"; then
2507fb23d3a8Smrg  ac_ct_STRIP=$STRIP
2508fb23d3a8Smrg  # Extract the first word of "strip", so it can be a program name with args.
2509fb23d3a8Smrgset dummy strip; ac_word=$2
2510169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2512169a0819Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2514fb23d3a8Smrgelse
2515fb23d3a8Smrg  if test -n "$ac_ct_STRIP"; then
2516fb23d3a8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517fb23d3a8Smrgelse
2518fb23d3a8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519fb23d3a8Smrgfor as_dir in $PATH
2520fb23d3a8Smrgdo
2521fb23d3a8Smrg  IFS=$as_save_IFS
2522fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
2523169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2524fb23d3a8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525fb23d3a8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2526169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527fb23d3a8Smrg    break 2
2528fb23d3a8Smrg  fi
2529fb23d3a8Smrgdone
2530169a0819Smrg  done
2531fb23d3a8SmrgIFS=$as_save_IFS
2532fb23d3a8Smrg
2533fb23d3a8Smrgfi
2534fb23d3a8Smrgfi
2535fb23d3a8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536fb23d3a8Smrgif test -n "$ac_ct_STRIP"; then
2537169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538fb23d3a8Smrg$as_echo "$ac_ct_STRIP" >&6; }
2539fb23d3a8Smrgelse
2540169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541fb23d3a8Smrg$as_echo "no" >&6; }
2542fb23d3a8Smrgfi
2543fb23d3a8Smrg
2544fb23d3a8Smrg  if test "x$ac_ct_STRIP" = x; then
2545fb23d3a8Smrg    STRIP=":"
2546fb23d3a8Smrg  else
2547fb23d3a8Smrg    case $cross_compiling:$ac_tool_warned in
2548fb23d3a8Smrgyes:)
2549169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551fb23d3a8Smrgac_tool_warned=yes ;;
2552fb23d3a8Smrgesac
2553fb23d3a8Smrg    STRIP=$ac_ct_STRIP
2554fb23d3a8Smrg  fi
2555fb23d3a8Smrgelse
2556fb23d3a8Smrg  STRIP="$ac_cv_prog_STRIP"
2557fb23d3a8Smrgfi
2558fb23d3a8Smrg
2559fb23d3a8Smrgfi
2560fb23d3a8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561fb23d3a8Smrg
2562169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563fb23d3a8Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564fb23d3a8Smrgif test -z "$MKDIR_P"; then
2565169a0819Smrg  if ${ac_cv_path_mkdir+:} false; then :
2566fb23d3a8Smrg  $as_echo_n "(cached) " >&6
2567fb23d3a8Smrgelse
256864ce7165Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
256964ce7165Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
257064ce7165Smrgdo
257164ce7165Smrg  IFS=$as_save_IFS
257264ce7165Smrg  test -z "$as_dir" && as_dir=.
2573169a0819Smrg    for ac_prog in mkdir gmkdir; do
257464ce7165Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
257564ce7165Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
257664ce7165Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
257764ce7165Smrg	     'mkdir (GNU coreutils) '* | \
257864ce7165Smrg	     'mkdir (coreutils) '* | \
257964ce7165Smrg	     'mkdir (fileutils) '4.1*)
258064ce7165Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
258164ce7165Smrg	       break 3;;
258264ce7165Smrg	   esac
258364ce7165Smrg	 done
258464ce7165Smrg       done
2585169a0819Smrg  done
258664ce7165SmrgIFS=$as_save_IFS
258764ce7165Smrg
258864ce7165Smrgfi
258964ce7165Smrg
2590169a0819Smrg  test -d ./--version && rmdir ./--version
259164ce7165Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
259264ce7165Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
259364ce7165Smrg  else
259464ce7165Smrg    # As a last resort, use the slow shell script.  Don't cache a
259564ce7165Smrg    # value for MKDIR_P within a source directory, because that will
259664ce7165Smrg    # break other packages using the cache if that directory is
259764ce7165Smrg    # removed, or if the value is a relative name.
259864ce7165Smrg    MKDIR_P="$ac_install_sh -d"
259964ce7165Smrg  fi
260064ce7165Smrgfi
2601169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602fb23d3a8Smrg$as_echo "$MKDIR_P" >&6; }
260364ce7165Smrg
260464ce7165Smrgmkdir_p="$MKDIR_P"
260564ce7165Smrgcase $mkdir_p in
260664ce7165Smrg  [\\/$]* | ?:[\\/]*) ;;
260764ce7165Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
260864ce7165Smrgesac
260964ce7165Smrg
261064ce7165Smrgfor ac_prog in gawk mawk nawk awk
261164ce7165Smrgdo
261264ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
261364ce7165Smrgset dummy $ac_prog; ac_word=$2
2614169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2616169a0819Smrgif ${ac_cv_prog_AWK+:} false; then :
2617fb23d3a8Smrg  $as_echo_n "(cached) " >&6
261864ce7165Smrgelse
261964ce7165Smrg  if test -n "$AWK"; then
262064ce7165Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
262164ce7165Smrgelse
262264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
262364ce7165Smrgfor as_dir in $PATH
262464ce7165Smrgdo
262564ce7165Smrg  IFS=$as_save_IFS
262664ce7165Smrg  test -z "$as_dir" && as_dir=.
2627169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
262864ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
262964ce7165Smrg    ac_cv_prog_AWK="$ac_prog"
2630169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
263164ce7165Smrg    break 2
263264ce7165Smrg  fi
263364ce7165Smrgdone
2634169a0819Smrg  done
263564ce7165SmrgIFS=$as_save_IFS
263664ce7165Smrg
263764ce7165Smrgfi
263864ce7165Smrgfi
263964ce7165SmrgAWK=$ac_cv_prog_AWK
264064ce7165Smrgif test -n "$AWK"; then
2641169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642fb23d3a8Smrg$as_echo "$AWK" >&6; }
264364ce7165Smrgelse
2644169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645fb23d3a8Smrg$as_echo "no" >&6; }
264664ce7165Smrgfi
264764ce7165Smrg
264864ce7165Smrg
264964ce7165Smrg  test -n "$AWK" && break
265064ce7165Smrgdone
265164ce7165Smrg
2652169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653fb23d3a8Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654fb23d3a8Smrgset x ${MAKE-make}
2655fb23d3a8Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656169a0819Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657fb23d3a8Smrg  $as_echo_n "(cached) " >&6
265864ce7165Smrgelse
265964ce7165Smrg  cat >conftest.make <<\_ACEOF
266064ce7165SmrgSHELL = /bin/sh
266164ce7165Smrgall:
266264ce7165Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
266364ce7165Smrg_ACEOF
2664169a0819Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
266564ce7165Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
266664ce7165Smrg  *@@@%%%=?*=@@@%%%*)
266764ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
266864ce7165Smrg  *)
266964ce7165Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
267064ce7165Smrgesac
267164ce7165Smrgrm -f conftest.make
267264ce7165Smrgfi
267364ce7165Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675fb23d3a8Smrg$as_echo "yes" >&6; }
267664ce7165Smrg  SET_MAKE=
267764ce7165Smrgelse
2678169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679fb23d3a8Smrg$as_echo "no" >&6; }
268064ce7165Smrg  SET_MAKE="MAKE=${MAKE-make}"
268164ce7165Smrgfi
268264ce7165Smrg
268364ce7165Smrgrm -rf .tst 2>/dev/null
268464ce7165Smrgmkdir .tst 2>/dev/null
268564ce7165Smrgif test -d .tst; then
268664ce7165Smrg  am__leading_dot=.
268764ce7165Smrgelse
268864ce7165Smrg  am__leading_dot=_
268964ce7165Smrgfi
269064ce7165Smrgrmdir .tst 2>/dev/null
269164ce7165Smrg
269264ce7165Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
269364ce7165Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
269464ce7165Smrg  # is not polluted with repeated "-I."
269564ce7165Smrg  am__isrc=' -I$(srcdir)'
269664ce7165Smrg  # test to see if srcdir already configured
269764ce7165Smrg  if test -f $srcdir/config.status; then
2698169a0819Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
269964ce7165Smrg  fi
270064ce7165Smrgfi
270164ce7165Smrg
270264ce7165Smrg# test whether we have cygpath
270364ce7165Smrgif test -z "$CYGPATH_W"; then
270464ce7165Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
270564ce7165Smrg    CYGPATH_W='cygpath -w'
270664ce7165Smrg  else
270764ce7165Smrg    CYGPATH_W=echo
270864ce7165Smrg  fi
270964ce7165Smrgfi
271064ce7165Smrg
271164ce7165Smrg
271264ce7165Smrg# Define the identity of the package.
271364ce7165Smrg PACKAGE='xhost'
2714169a0819Smrg VERSION='1.0.4'
271564ce7165Smrg
271664ce7165Smrg
271764ce7165Smrgcat >>confdefs.h <<_ACEOF
271864ce7165Smrg#define PACKAGE "$PACKAGE"
271964ce7165Smrg_ACEOF
272064ce7165Smrg
272164ce7165Smrg
272264ce7165Smrgcat >>confdefs.h <<_ACEOF
272364ce7165Smrg#define VERSION "$VERSION"
272464ce7165Smrg_ACEOF
272564ce7165Smrg
272664ce7165Smrg# Some tools Automake needs.
272764ce7165Smrg
272864ce7165SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
272964ce7165Smrg
273064ce7165Smrg
273164ce7165SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
273264ce7165Smrg
273364ce7165Smrg
273464ce7165SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
273564ce7165Smrg
273664ce7165Smrg
273764ce7165SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
273864ce7165Smrg
273964ce7165Smrg
274064ce7165SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
274164ce7165Smrg
274264ce7165Smrg# We need awk for the "check" target.  The system "awk" is bad on
274364ce7165Smrg# some platforms.
274464ce7165Smrg# Always define AMTAR for backward compatibility.
274564ce7165Smrg
274664ce7165SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
274764ce7165Smrg
274864ce7165Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
274964ce7165Smrg
275064ce7165Smrg
275164ce7165Smrg
275264ce7165Smrg
275364ce7165Smrg
2754fb23d3a8Smrg
2755169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2756fb23d3a8Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
275764ce7165Smrg    # Check whether --enable-maintainer-mode was given.
2758169a0819Smrgif test "${enable_maintainer_mode+set}" = set; then :
275964ce7165Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
276064ce7165Smrgelse
276164ce7165Smrg  USE_MAINTAINER_MODE=no
276264ce7165Smrgfi
276364ce7165Smrg
2764169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2765fb23d3a8Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
276664ce7165Smrg   if test $USE_MAINTAINER_MODE = yes; then
276764ce7165Smrg  MAINTAINER_MODE_TRUE=
276864ce7165Smrg  MAINTAINER_MODE_FALSE='#'
276964ce7165Smrgelse
277064ce7165Smrg  MAINTAINER_MODE_TRUE='#'
277164ce7165Smrg  MAINTAINER_MODE_FALSE=
277264ce7165Smrgfi
277364ce7165Smrg
277464ce7165Smrg  MAINT=$MAINTAINER_MODE_TRUE
277564ce7165Smrg
277664ce7165Smrg
277764ce7165Smrg
2778169a0819Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2779fb23d3a8Smrg
2780fb23d3a8Smrg
2781fb23d3a8Smrg
2782fb23d3a8Smrg
2783fb23d3a8Smrg
2784fb23d3a8Smrg
2785fb23d3a8Smrg
2786fb23d3a8Smrg
2787fb23d3a8Smrg
2788fb23d3a8Smrg
2789fb23d3a8Smrg
2790fb23d3a8Smrg
279164ce7165Smrgac_config_headers="$ac_config_headers config.h"
279264ce7165Smrg
279364ce7165Smrg
2794169a0819SmrgDEPDIR="${am__leading_dot}deps"
2795169a0819Smrg
2796169a0819Smrgac_config_commands="$ac_config_commands depfiles"
2797169a0819Smrg
2798169a0819Smrg
2799169a0819Smrgam_make=${MAKE-make}
2800169a0819Smrgcat > confinc << 'END'
2801169a0819Smrgam__doit:
2802169a0819Smrg	@echo this is the am__doit target
2803169a0819Smrg.PHONY: am__doit
2804169a0819SmrgEND
2805169a0819Smrg# If we don't find an include directive, just comment out the code.
2806169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2807169a0819Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2808169a0819Smrgam__include="#"
2809169a0819Smrgam__quote=
2810169a0819Smrg_am_result=none
2811169a0819Smrg# First try GNU make style include.
2812169a0819Smrgecho "include confinc" > confmf
2813169a0819Smrg# Ignore all kinds of additional output from `make'.
2814169a0819Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2815169a0819Smrg*the\ am__doit\ target*)
2816169a0819Smrg  am__include=include
2817169a0819Smrg  am__quote=
2818169a0819Smrg  _am_result=GNU
2819169a0819Smrg  ;;
2820169a0819Smrgesac
2821169a0819Smrg# Now try BSD make style include.
2822169a0819Smrgif test "$am__include" = "#"; then
2823169a0819Smrg   echo '.include "confinc"' > confmf
2824169a0819Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2825169a0819Smrg   *the\ am__doit\ target*)
2826169a0819Smrg     am__include=.include
2827169a0819Smrg     am__quote="\""
2828169a0819Smrg     _am_result=BSD
2829169a0819Smrg     ;;
2830169a0819Smrg   esac
2831169a0819Smrgfi
2832169a0819Smrg
2833169a0819Smrg
2834169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2835169a0819Smrg$as_echo "$_am_result" >&6; }
2836169a0819Smrgrm -f confinc confmf
2837169a0819Smrg
2838169a0819Smrg# Check whether --enable-dependency-tracking was given.
2839169a0819Smrgif test "${enable_dependency_tracking+set}" = set; then :
2840169a0819Smrg  enableval=$enable_dependency_tracking;
2841169a0819Smrgfi
2842169a0819Smrg
2843169a0819Smrgif test "x$enable_dependency_tracking" != xno; then
2844169a0819Smrg  am_depcomp="$ac_aux_dir/depcomp"
2845169a0819Smrg  AMDEPBACKSLASH='\'
2846169a0819Smrgfi
2847169a0819Smrg if test "x$enable_dependency_tracking" != xno; then
2848169a0819Smrg  AMDEP_TRUE=
2849169a0819Smrg  AMDEP_FALSE='#'
2850169a0819Smrgelse
2851169a0819Smrg  AMDEP_TRUE='#'
2852169a0819Smrg  AMDEP_FALSE=
2853169a0819Smrgfi
2854169a0819Smrg
2855169a0819Smrg
285664ce7165Smrgac_ext=c
285764ce7165Smrgac_cpp='$CPP $CPPFLAGS'
285864ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
285964ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
286064ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
286164ce7165Smrgif test -n "$ac_tool_prefix"; then
286264ce7165Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
286364ce7165Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2864169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2866169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
2867fb23d3a8Smrg  $as_echo_n "(cached) " >&6
286864ce7165Smrgelse
286964ce7165Smrg  if test -n "$CC"; then
287064ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
287164ce7165Smrgelse
287264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287364ce7165Smrgfor as_dir in $PATH
287464ce7165Smrgdo
287564ce7165Smrg  IFS=$as_save_IFS
287664ce7165Smrg  test -z "$as_dir" && as_dir=.
2877169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
287864ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
287964ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2880169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
288164ce7165Smrg    break 2
288264ce7165Smrg  fi
288364ce7165Smrgdone
2884169a0819Smrg  done
288564ce7165SmrgIFS=$as_save_IFS
288664ce7165Smrg
288764ce7165Smrgfi
288864ce7165Smrgfi
288964ce7165SmrgCC=$ac_cv_prog_CC
289064ce7165Smrgif test -n "$CC"; then
2891169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892fb23d3a8Smrg$as_echo "$CC" >&6; }
289364ce7165Smrgelse
2894169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895fb23d3a8Smrg$as_echo "no" >&6; }
289664ce7165Smrgfi
289764ce7165Smrg
289864ce7165Smrg
289964ce7165Smrgfi
290064ce7165Smrgif test -z "$ac_cv_prog_CC"; then
290164ce7165Smrg  ac_ct_CC=$CC
290264ce7165Smrg  # Extract the first word of "gcc", so it can be a program name with args.
290364ce7165Smrgset dummy gcc; ac_word=$2
2904169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2906169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2907fb23d3a8Smrg  $as_echo_n "(cached) " >&6
290864ce7165Smrgelse
290964ce7165Smrg  if test -n "$ac_ct_CC"; then
291064ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
291164ce7165Smrgelse
291264ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
291364ce7165Smrgfor as_dir in $PATH
291464ce7165Smrgdo
291564ce7165Smrg  IFS=$as_save_IFS
291664ce7165Smrg  test -z "$as_dir" && as_dir=.
2917169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
291864ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
291964ce7165Smrg    ac_cv_prog_ac_ct_CC="gcc"
2920169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
292164ce7165Smrg    break 2
292264ce7165Smrg  fi
292364ce7165Smrgdone
2924169a0819Smrg  done
292564ce7165SmrgIFS=$as_save_IFS
292664ce7165Smrg
292764ce7165Smrgfi
292864ce7165Smrgfi
292964ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
293064ce7165Smrgif test -n "$ac_ct_CC"; then
2931169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2932fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
293364ce7165Smrgelse
2934169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935fb23d3a8Smrg$as_echo "no" >&6; }
293664ce7165Smrgfi
293764ce7165Smrg
293864ce7165Smrg  if test "x$ac_ct_CC" = x; then
293964ce7165Smrg    CC=""
294064ce7165Smrg  else
294164ce7165Smrg    case $cross_compiling:$ac_tool_warned in
294264ce7165Smrgyes:)
2943169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
294564ce7165Smrgac_tool_warned=yes ;;
294664ce7165Smrgesac
294764ce7165Smrg    CC=$ac_ct_CC
294864ce7165Smrg  fi
294964ce7165Smrgelse
295064ce7165Smrg  CC="$ac_cv_prog_CC"
295164ce7165Smrgfi
295264ce7165Smrg
295364ce7165Smrgif test -z "$CC"; then
295464ce7165Smrg          if test -n "$ac_tool_prefix"; then
295564ce7165Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
295664ce7165Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2957169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2959169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
2960fb23d3a8Smrg  $as_echo_n "(cached) " >&6
296164ce7165Smrgelse
296264ce7165Smrg  if test -n "$CC"; then
296364ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
296464ce7165Smrgelse
296564ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
296664ce7165Smrgfor as_dir in $PATH
296764ce7165Smrgdo
296864ce7165Smrg  IFS=$as_save_IFS
296964ce7165Smrg  test -z "$as_dir" && as_dir=.
2970169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
297164ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
297264ce7165Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2973169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
297464ce7165Smrg    break 2
297564ce7165Smrg  fi
297664ce7165Smrgdone
2977169a0819Smrg  done
297864ce7165SmrgIFS=$as_save_IFS
297964ce7165Smrg
298064ce7165Smrgfi
298164ce7165Smrgfi
298264ce7165SmrgCC=$ac_cv_prog_CC
298364ce7165Smrgif test -n "$CC"; then
2984169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985fb23d3a8Smrg$as_echo "$CC" >&6; }
298664ce7165Smrgelse
2987169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988fb23d3a8Smrg$as_echo "no" >&6; }
298964ce7165Smrgfi
299064ce7165Smrg
299164ce7165Smrg
299264ce7165Smrg  fi
299364ce7165Smrgfi
299464ce7165Smrgif test -z "$CC"; then
299564ce7165Smrg  # Extract the first word of "cc", so it can be a program name with args.
299664ce7165Smrgset dummy cc; ac_word=$2
2997169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2999169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3000fb23d3a8Smrg  $as_echo_n "(cached) " >&6
300164ce7165Smrgelse
300264ce7165Smrg  if test -n "$CC"; then
300364ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
300464ce7165Smrgelse
300564ce7165Smrg  ac_prog_rejected=no
300664ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
300764ce7165Smrgfor as_dir in $PATH
300864ce7165Smrgdo
300964ce7165Smrg  IFS=$as_save_IFS
301064ce7165Smrg  test -z "$as_dir" && as_dir=.
3011169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
301264ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
301364ce7165Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
301464ce7165Smrg       ac_prog_rejected=yes
301564ce7165Smrg       continue
301664ce7165Smrg     fi
301764ce7165Smrg    ac_cv_prog_CC="cc"
3018169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
301964ce7165Smrg    break 2
302064ce7165Smrg  fi
302164ce7165Smrgdone
3022169a0819Smrg  done
302364ce7165SmrgIFS=$as_save_IFS
302464ce7165Smrg
302564ce7165Smrgif test $ac_prog_rejected = yes; then
302664ce7165Smrg  # We found a bogon in the path, so make sure we never use it.
302764ce7165Smrg  set dummy $ac_cv_prog_CC
302864ce7165Smrg  shift
302964ce7165Smrg  if test $# != 0; then
303064ce7165Smrg    # We chose a different compiler from the bogus one.
303164ce7165Smrg    # However, it has the same basename, so the bogon will be chosen
303264ce7165Smrg    # first if we set CC to just the basename; use the full file name.
303364ce7165Smrg    shift
303464ce7165Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
303564ce7165Smrg  fi
303664ce7165Smrgfi
303764ce7165Smrgfi
303864ce7165Smrgfi
303964ce7165SmrgCC=$ac_cv_prog_CC
304064ce7165Smrgif test -n "$CC"; then
3041169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042fb23d3a8Smrg$as_echo "$CC" >&6; }
304364ce7165Smrgelse
3044169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045fb23d3a8Smrg$as_echo "no" >&6; }
304664ce7165Smrgfi
304764ce7165Smrg
304864ce7165Smrg
304964ce7165Smrgfi
305064ce7165Smrgif test -z "$CC"; then
305164ce7165Smrg  if test -n "$ac_tool_prefix"; then
305264ce7165Smrg  for ac_prog in cl.exe
305364ce7165Smrg  do
305464ce7165Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
305564ce7165Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3058169a0819Smrgif ${ac_cv_prog_CC+:} false; then :
3059fb23d3a8Smrg  $as_echo_n "(cached) " >&6
306064ce7165Smrgelse
306164ce7165Smrg  if test -n "$CC"; then
306264ce7165Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
306364ce7165Smrgelse
306464ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
306564ce7165Smrgfor as_dir in $PATH
306664ce7165Smrgdo
306764ce7165Smrg  IFS=$as_save_IFS
306864ce7165Smrg  test -z "$as_dir" && as_dir=.
3069169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
307064ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
307164ce7165Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3072169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
307364ce7165Smrg    break 2
307464ce7165Smrg  fi
307564ce7165Smrgdone
3076169a0819Smrg  done
307764ce7165SmrgIFS=$as_save_IFS
307864ce7165Smrg
307964ce7165Smrgfi
308064ce7165Smrgfi
308164ce7165SmrgCC=$ac_cv_prog_CC
308264ce7165Smrgif test -n "$CC"; then
3083169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084fb23d3a8Smrg$as_echo "$CC" >&6; }
308564ce7165Smrgelse
3086169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087fb23d3a8Smrg$as_echo "no" >&6; }
308864ce7165Smrgfi
308964ce7165Smrg
309064ce7165Smrg
309164ce7165Smrg    test -n "$CC" && break
309264ce7165Smrg  done
309364ce7165Smrgfi
309464ce7165Smrgif test -z "$CC"; then
309564ce7165Smrg  ac_ct_CC=$CC
309664ce7165Smrg  for ac_prog in cl.exe
309764ce7165Smrgdo
309864ce7165Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
309964ce7165Smrgset dummy $ac_prog; ac_word=$2
3100169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101fb23d3a8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3102169a0819Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3103fb23d3a8Smrg  $as_echo_n "(cached) " >&6
310464ce7165Smrgelse
310564ce7165Smrg  if test -n "$ac_ct_CC"; then
310664ce7165Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
310764ce7165Smrgelse
310864ce7165Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
310964ce7165Smrgfor as_dir in $PATH
311064ce7165Smrgdo
311164ce7165Smrg  IFS=$as_save_IFS
311264ce7165Smrg  test -z "$as_dir" && as_dir=.
3113169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
311464ce7165Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
311564ce7165Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3116169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
311764ce7165Smrg    break 2
311864ce7165Smrg  fi
311964ce7165Smrgdone
3120169a0819Smrg  done
312164ce7165SmrgIFS=$as_save_IFS
312264ce7165Smrg
312364ce7165Smrgfi
312464ce7165Smrgfi
312564ce7165Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
312664ce7165Smrgif test -n "$ac_ct_CC"; then
3127169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3128fb23d3a8Smrg$as_echo "$ac_ct_CC" >&6; }
312964ce7165Smrgelse
3130169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131fb23d3a8Smrg$as_echo "no" >&6; }
313264ce7165Smrgfi
313364ce7165Smrg
313464ce7165Smrg
313564ce7165Smrg  test -n "$ac_ct_CC" && break
313664ce7165Smrgdone
313764ce7165Smrg
313864ce7165Smrg  if test "x$ac_ct_CC" = x; then
313964ce7165Smrg    CC=""
314064ce7165Smrg  else
314164ce7165Smrg    case $cross_compiling:$ac_tool_warned in
314264ce7165Smrgyes:)
3143169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144fb23d3a8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
314564ce7165Smrgac_tool_warned=yes ;;
314664ce7165Smrgesac
314764ce7165Smrg    CC=$ac_ct_CC
314864ce7165Smrg  fi
314964ce7165Smrgfi
315064ce7165Smrg
315164ce7165Smrgfi
315264ce7165Smrg
315364ce7165Smrg
3154169a0819Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156169a0819Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3157169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
315864ce7165Smrg
315964ce7165Smrg# Provide some information about the compiler.
3160169a0819Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3161fb23d3a8Smrgset X $ac_compile
3162fb23d3a8Smrgac_compiler=$2
3163169a0819Smrgfor ac_option in --version -v -V -qversion; do
3164169a0819Smrg  { { ac_try="$ac_compiler $ac_option >&5"
316564ce7165Smrgcase "(($ac_try" in
316664ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
316764ce7165Smrg  *) ac_try_echo=$ac_try;;
316864ce7165Smrgesac
3169169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3171169a0819Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
317264ce7165Smrg  ac_status=$?
3173169a0819Smrg  if test -s conftest.err; then
3174169a0819Smrg    sed '10a\
3175169a0819Smrg... rest of stderr output deleted ...
3176169a0819Smrg         10q' conftest.err >conftest.er1
3177169a0819Smrg    cat conftest.er1 >&5
3178169a0819Smrg  fi
3179169a0819Smrg  rm -f conftest.er1 conftest.err
3180169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181169a0819Smrg  test $ac_status = 0; }
3182169a0819Smrgdone
318364ce7165Smrg
3184169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
318564ce7165Smrg/* end confdefs.h.  */
318664ce7165Smrg
318764ce7165Smrgint
318864ce7165Smrgmain ()
318964ce7165Smrg{
319064ce7165Smrg
319164ce7165Smrg  ;
319264ce7165Smrg  return 0;
319364ce7165Smrg}
319464ce7165Smrg_ACEOF
319564ce7165Smrgac_clean_files_save=$ac_clean_files
3196fb23d3a8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
319764ce7165Smrg# Try to create an executable without -o first, disregard a.out.
319864ce7165Smrg# It will help us diagnose broken compilers, and finding out an intuition
319964ce7165Smrg# of exeext.
3200169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3201169a0819Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3202fb23d3a8Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3203fb23d3a8Smrg
3204fb23d3a8Smrg# The possible output files:
3205fb23d3a8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3206fb23d3a8Smrg
320764ce7165Smrgac_rmfiles=
320864ce7165Smrgfor ac_file in $ac_files
320964ce7165Smrgdo
321064ce7165Smrg  case $ac_file in
3211fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
321264ce7165Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
321364ce7165Smrg  esac
321464ce7165Smrgdone
321564ce7165Smrgrm -f $ac_rmfiles
321664ce7165Smrg
3217169a0819Smrgif { { ac_try="$ac_link_default"
321864ce7165Smrgcase "(($ac_try" in
321964ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
322064ce7165Smrg  *) ac_try_echo=$ac_try;;
322164ce7165Smrgesac
3222169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223169a0819Smrg$as_echo "$ac_try_echo"; } >&5
322464ce7165Smrg  (eval "$ac_link_default") 2>&5
322564ce7165Smrg  ac_status=$?
3226169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227169a0819Smrg  test $ac_status = 0; }; then :
322864ce7165Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
322964ce7165Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
323064ce7165Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
323164ce7165Smrg# so that the user can short-circuit this test for compilers unknown to
323264ce7165Smrg# Autoconf.
323364ce7165Smrgfor ac_file in $ac_files ''
323464ce7165Smrgdo
323564ce7165Smrg  test -f "$ac_file" || continue
323664ce7165Smrg  case $ac_file in
3237fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
323864ce7165Smrg	;;
323964ce7165Smrg    [ab].out )
324064ce7165Smrg	# We found the default executable, but exeext='' is most
324164ce7165Smrg	# certainly right.
324264ce7165Smrg	break;;
324364ce7165Smrg    *.* )
3244169a0819Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
324564ce7165Smrg	then :; else
324664ce7165Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
324764ce7165Smrg	fi
324864ce7165Smrg	# We set ac_cv_exeext here because the later test for it is not
324964ce7165Smrg	# safe: cross compilers may not add the suffix if given an `-o'
325064ce7165Smrg	# argument, so we may need to know it at that point already.
325164ce7165Smrg	# Even if this section looks crufty: it has the advantage of
325264ce7165Smrg	# actually working.
325364ce7165Smrg	break;;
325464ce7165Smrg    * )
325564ce7165Smrg	break;;
325664ce7165Smrg  esac
325764ce7165Smrgdone
325864ce7165Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
325964ce7165Smrg
326064ce7165Smrgelse
326164ce7165Smrg  ac_file=''
326264ce7165Smrgfi
3263169a0819Smrgif test -z "$ac_file"; then :
3264169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265169a0819Smrg$as_echo "no" >&6; }
3266169a0819Smrg$as_echo "$as_me: failed program was:" >&5
326764ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
326864ce7165Smrg
3269169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271169a0819Smrgas_fn_error 77 "C compiler cannot create executables
3272169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3273169a0819Smrgelse
3274169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275169a0819Smrg$as_echo "yes" >&6; }
327664ce7165Smrgfi
3277169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3278169a0819Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3279169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3280169a0819Smrg$as_echo "$ac_file" >&6; }
328164ce7165Smrgac_exeext=$ac_cv_exeext
328264ce7165Smrg
3283fb23d3a8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
328464ce7165Smrgac_clean_files=$ac_clean_files_save
3285169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3286fb23d3a8Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3287169a0819Smrgif { { ac_try="$ac_link"
328864ce7165Smrgcase "(($ac_try" in
328964ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
329064ce7165Smrg  *) ac_try_echo=$ac_try;;
329164ce7165Smrgesac
3292169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293169a0819Smrg$as_echo "$ac_try_echo"; } >&5
329464ce7165Smrg  (eval "$ac_link") 2>&5
329564ce7165Smrg  ac_status=$?
3296169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297169a0819Smrg  test $ac_status = 0; }; then :
329864ce7165Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
329964ce7165Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
330064ce7165Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
330164ce7165Smrg# `rm'.
330264ce7165Smrgfor ac_file in conftest.exe conftest conftest.*; do
330364ce7165Smrg  test -f "$ac_file" || continue
330464ce7165Smrg  case $ac_file in
3305fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
330664ce7165Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
330764ce7165Smrg	  break;;
330864ce7165Smrg    * ) break;;
330964ce7165Smrg  esac
331064ce7165Smrgdone
331164ce7165Smrgelse
3312169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314169a0819Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3315169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
331664ce7165Smrgfi
3317169a0819Smrgrm -f conftest conftest$ac_cv_exeext
3318169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3319fb23d3a8Smrg$as_echo "$ac_cv_exeext" >&6; }
332064ce7165Smrg
332164ce7165Smrgrm -f conftest.$ac_ext
332264ce7165SmrgEXEEXT=$ac_cv_exeext
332364ce7165Smrgac_exeext=$EXEEXT
3324169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325169a0819Smrg/* end confdefs.h.  */
3326169a0819Smrg#include <stdio.h>
3327169a0819Smrgint
3328169a0819Smrgmain ()
3329169a0819Smrg{
3330169a0819SmrgFILE *f = fopen ("conftest.out", "w");
3331169a0819Smrg return ferror (f) || fclose (f) != 0;
3332169a0819Smrg
3333169a0819Smrg  ;
3334169a0819Smrg  return 0;
3335169a0819Smrg}
3336169a0819Smrg_ACEOF
3337169a0819Smrgac_clean_files="$ac_clean_files conftest.out"
3338169a0819Smrg# Check that the compiler produces executables we can run.  If not, either
3339169a0819Smrg# the compiler is broken, or we cross compile.
3340169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3341169a0819Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3342169a0819Smrgif test "$cross_compiling" != yes; then
3343169a0819Smrg  { { ac_try="$ac_link"
3344169a0819Smrgcase "(($ac_try" in
3345169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346169a0819Smrg  *) ac_try_echo=$ac_try;;
3347169a0819Smrgesac
3348169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3350169a0819Smrg  (eval "$ac_link") 2>&5
3351169a0819Smrg  ac_status=$?
3352169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353169a0819Smrg  test $ac_status = 0; }
3354169a0819Smrg  if { ac_try='./conftest$ac_cv_exeext'
3355169a0819Smrg  { { case "(($ac_try" in
3356169a0819Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357169a0819Smrg  *) ac_try_echo=$ac_try;;
3358169a0819Smrgesac
3359169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360169a0819Smrg$as_echo "$ac_try_echo"; } >&5
3361169a0819Smrg  (eval "$ac_try") 2>&5
3362169a0819Smrg  ac_status=$?
3363169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364169a0819Smrg  test $ac_status = 0; }; }; then
3365169a0819Smrg    cross_compiling=no
3366169a0819Smrg  else
3367169a0819Smrg    if test "$cross_compiling" = maybe; then
3368169a0819Smrg	cross_compiling=yes
3369169a0819Smrg    else
3370169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371169a0819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372169a0819Smrgas_fn_error $? "cannot run C compiled programs.
3373169a0819SmrgIf you meant to cross compile, use \`--host'.
3374169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
3375169a0819Smrg    fi
3376169a0819Smrg  fi
3377169a0819Smrgfi
3378169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3379169a0819Smrg$as_echo "$cross_compiling" >&6; }
3380169a0819Smrg
3381169a0819Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3382169a0819Smrgac_clean_files=$ac_clean_files_save
3383169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3384fb23d3a8Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3385169a0819Smrgif ${ac_cv_objext+:} false; then :
3386fb23d3a8Smrg  $as_echo_n "(cached) " >&6
338764ce7165Smrgelse
3388169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
338964ce7165Smrg/* end confdefs.h.  */
339064ce7165Smrg
339164ce7165Smrgint
339264ce7165Smrgmain ()
339364ce7165Smrg{
339464ce7165Smrg
339564ce7165Smrg  ;
339664ce7165Smrg  return 0;
339764ce7165Smrg}
339864ce7165Smrg_ACEOF
339964ce7165Smrgrm -f conftest.o conftest.obj
3400169a0819Smrgif { { ac_try="$ac_compile"
340164ce7165Smrgcase "(($ac_try" in
340264ce7165Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
340364ce7165Smrg  *) ac_try_echo=$ac_try;;
340464ce7165Smrgesac
3405169a0819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406169a0819Smrg$as_echo "$ac_try_echo"; } >&5
340764ce7165Smrg  (eval "$ac_compile") 2>&5
340864ce7165Smrg  ac_status=$?
3409169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410169a0819Smrg  test $ac_status = 0; }; then :
341164ce7165Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
341264ce7165Smrg  test -f "$ac_file" || continue;
341364ce7165Smrg  case $ac_file in
3414fb23d3a8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
341564ce7165Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
341664ce7165Smrg       break;;
341764ce7165Smrg  esac
341864ce7165Smrgdone
341964ce7165Smrgelse
3420fb23d3a8Smrg  $as_echo "$as_me: failed program was:" >&5
342164ce7165Smrgsed 's/^/| /' conftest.$ac_ext >&5
342264ce7165Smrg
3423169a0819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425169a0819Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3426169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
342764ce7165Smrgfi
342864ce7165Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
342964ce7165Smrgfi
3430169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3431fb23d3a8Smrg$as_echo "$ac_cv_objext" >&6; }
343264ce7165SmrgOBJEXT=$ac_cv_objext
343364ce7165Smrgac_objext=$OBJEXT
3434169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3435fb23d3a8Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3436169a0819Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3437fb23d3a8Smrg  $as_echo_n "(cached) " >&6
343864ce7165Smrgelse
3439169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
344064ce7165Smrg/* end confdefs.h.  */
344164ce7165Smrg
344264ce7165Smrgint
344364ce7165Smrgmain ()
344464ce7165Smrg{
344564ce7165Smrg#ifndef __GNUC__
344664ce7165Smrg       choke me
344764ce7165Smrg#endif
344864ce7165Smrg
344964ce7165Smrg  ;
345064ce7165Smrg  return 0;
345164ce7165Smrg}
345264ce7165Smrg_ACEOF
3453169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
345464ce7165Smrg  ac_compiler_gnu=yes
345564ce7165Smrgelse
3456169a0819Smrg  ac_compiler_gnu=no
345764ce7165Smrgfi
345864ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
345964ce7165Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
346064ce7165Smrg
346164ce7165Smrgfi
3462169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3463fb23d3a8Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3464fb23d3a8Smrgif test $ac_compiler_gnu = yes; then
3465fb23d3a8Smrg  GCC=yes
3466fb23d3a8Smrgelse
3467fb23d3a8Smrg  GCC=
3468fb23d3a8Smrgfi
346964ce7165Smrgac_test_CFLAGS=${CFLAGS+set}
347064ce7165Smrgac_save_CFLAGS=$CFLAGS
3471169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3472fb23d3a8Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3473169a0819Smrgif ${ac_cv_prog_cc_g+:} false; then :
3474fb23d3a8Smrg  $as_echo_n "(cached) " >&6
347564ce7165Smrgelse
347664ce7165Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
347764ce7165Smrg   ac_c_werror_flag=yes
347864ce7165Smrg   ac_cv_prog_cc_g=no
347964ce7165Smrg   CFLAGS="-g"
3480169a0819Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
348164ce7165Smrg/* end confdefs.h.  */
348264ce7165Smrg
348364ce7165Smrgint
348464ce7165Smrgmain ()
348564ce7165Smrg{
348664ce7165Smrg
348764ce7165Smrg  ;
348864ce7165Smrg  return 0;
348964ce7165Smrg}
349064ce7165Smrg_ACEOF
3491169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
349264ce7165Smrg  ac_cv_prog_cc_g=yes
349364ce7165Smrgelse
3494169a0819Smrg  CFLAGS=""
3495169a0819Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
349664ce7165Smrg/* end confdefs.h.  */
349764ce7165Smrg
349864ce7165Smrgint
349964ce7165Smrgmain ()
350064ce7165Smrg{
350164ce7165Smrg
350264ce7165Smrg  ;
350364ce7165Smrg  return 0;
350464ce7165Smrg}
350564ce7165Smrg_ACEOF
3506169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
350764ce7165Smrg
3508169a0819Smrgelse
3509169a0819Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
351064ce7165Smrg	 CFLAGS="-g"
3511169a0819Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
351264ce7165Smrg/* end confdefs.h.  */
351364ce7165Smrg
351464ce7165Smrgint
351564ce7165Smrgmain ()
351664ce7165Smrg{
351764ce7165Smrg
351864ce7165Smrg  ;
351964ce7165Smrg  return 0;
352064ce7165Smrg}
352164ce7165Smrg_ACEOF
3522169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
352364ce7165Smrg  ac_cv_prog_cc_g=yes
352464ce7165Smrgfi
352564ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
352664ce7165Smrgfi
352764ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
352864ce7165Smrgfi
352964ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
353064ce7165Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
353164ce7165Smrgfi
3532169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3533fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
353464ce7165Smrgif test "$ac_test_CFLAGS" = set; then
353564ce7165Smrg  CFLAGS=$ac_save_CFLAGS
353664ce7165Smrgelif test $ac_cv_prog_cc_g = yes; then
353764ce7165Smrg  if test "$GCC" = yes; then
353864ce7165Smrg    CFLAGS="-g -O2"
353964ce7165Smrg  else
354064ce7165Smrg    CFLAGS="-g"
354164ce7165Smrg  fi
354264ce7165Smrgelse
354364ce7165Smrg  if test "$GCC" = yes; then
354464ce7165Smrg    CFLAGS="-O2"
354564ce7165Smrg  else
354664ce7165Smrg    CFLAGS=
354764ce7165Smrg  fi
354864ce7165Smrgfi
3549169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3550fb23d3a8Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3551169a0819Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3552fb23d3a8Smrg  $as_echo_n "(cached) " >&6
355364ce7165Smrgelse
355464ce7165Smrg  ac_cv_prog_cc_c89=no
355564ce7165Smrgac_save_CC=$CC
3556169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
355764ce7165Smrg/* end confdefs.h.  */
355864ce7165Smrg#include <stdarg.h>
355964ce7165Smrg#include <stdio.h>
356064ce7165Smrg#include <sys/types.h>
356164ce7165Smrg#include <sys/stat.h>
356264ce7165Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
356364ce7165Smrgstruct buf { int x; };
356464ce7165SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
356564ce7165Smrgstatic char *e (p, i)
356664ce7165Smrg     char **p;
356764ce7165Smrg     int i;
356864ce7165Smrg{
356964ce7165Smrg  return p[i];
357064ce7165Smrg}
357164ce7165Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
357264ce7165Smrg{
357364ce7165Smrg  char *s;
357464ce7165Smrg  va_list v;
357564ce7165Smrg  va_start (v,p);
357664ce7165Smrg  s = g (p, va_arg (v,int));
357764ce7165Smrg  va_end (v);
357864ce7165Smrg  return s;
357964ce7165Smrg}
358064ce7165Smrg
358164ce7165Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
358264ce7165Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
358364ce7165Smrg   These don't provoke an error unfortunately, instead are silently treated
358464ce7165Smrg   as 'x'.  The following induces an error, until -std is added to get
358564ce7165Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
358664ce7165Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
358764ce7165Smrg   that's true only with -std.  */
358864ce7165Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
358964ce7165Smrg
359064ce7165Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
359164ce7165Smrg   inside strings and character constants.  */
359264ce7165Smrg#define FOO(x) 'x'
359364ce7165Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
359464ce7165Smrg
359564ce7165Smrgint test (int i, double x);
359664ce7165Smrgstruct s1 {int (*f) (int a);};
359764ce7165Smrgstruct s2 {int (*f) (double a);};
359864ce7165Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
359964ce7165Smrgint argc;
360064ce7165Smrgchar **argv;
360164ce7165Smrgint
360264ce7165Smrgmain ()
360364ce7165Smrg{
360464ce7165Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
360564ce7165Smrg  ;
360664ce7165Smrg  return 0;
360764ce7165Smrg}
360864ce7165Smrg_ACEOF
360964ce7165Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
361064ce7165Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
361164ce7165Smrgdo
361264ce7165Smrg  CC="$ac_save_CC $ac_arg"
3613169a0819Smrg  if ac_fn_c_try_compile "$LINENO"; then :
361464ce7165Smrg  ac_cv_prog_cc_c89=$ac_arg
361564ce7165Smrgfi
361664ce7165Smrgrm -f core conftest.err conftest.$ac_objext
361764ce7165Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
361864ce7165Smrgdone
361964ce7165Smrgrm -f conftest.$ac_ext
362064ce7165SmrgCC=$ac_save_CC
362164ce7165Smrg
362264ce7165Smrgfi
362364ce7165Smrg# AC_CACHE_VAL
362464ce7165Smrgcase "x$ac_cv_prog_cc_c89" in
362564ce7165Smrg  x)
3626169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627fb23d3a8Smrg$as_echo "none needed" >&6; } ;;
362864ce7165Smrg  xno)
3629169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3630fb23d3a8Smrg$as_echo "unsupported" >&6; } ;;
363164ce7165Smrg  *)
363264ce7165Smrg    CC="$CC $ac_cv_prog_cc_c89"
3633169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3634fb23d3a8Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
363564ce7165Smrgesac
3636169a0819Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
363764ce7165Smrg
3638169a0819Smrgfi
363964ce7165Smrg
364064ce7165Smrgac_ext=c
364164ce7165Smrgac_cpp='$CPP $CPPFLAGS'
364264ce7165Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
364364ce7165Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
364464ce7165Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
364564ce7165Smrg
364664ce7165Smrgdepcc="$CC"   am_compiler_list=
364764ce7165Smrg
3648169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3649fb23d3a8Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3650169a0819Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3651fb23d3a8Smrg  $as_echo_n "(cached) " >&6
365264ce7165Smrgelse
365364ce7165Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
365464ce7165Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
365564ce7165Smrg  # making bogus files that we don't know about and never remove.  For
365664ce7165Smrg  # instance it was reported that on HP-UX the gcc test will end up
365764ce7165Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
365864ce7165Smrg  # in D'.
365964ce7165Smrg  mkdir conftest.dir
366064ce7165Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
366164ce7165Smrg  # using a relative directory.
366264ce7165Smrg  cp "$am_depcomp" conftest.dir
366364ce7165Smrg  cd conftest.dir
366464ce7165Smrg  # We will build objects and dependencies in a subdirectory because
366564ce7165Smrg  # it helps to detect inapplicable dependency modes.  For instance
366664ce7165Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
366764ce7165Smrg  # side effect of compilation, but ICC will put the dependencies in
366864ce7165Smrg  # the current directory while Tru64 will put them in the object
366964ce7165Smrg  # directory.
367064ce7165Smrg  mkdir sub
367164ce7165Smrg
367264ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
367364ce7165Smrg  if test "$am_compiler_list" = ""; then
367464ce7165Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
367564ce7165Smrg  fi
3676fb23d3a8Smrg  am__universal=false
3677fb23d3a8Smrg  case " $depcc " in #(
3678fb23d3a8Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3679fb23d3a8Smrg     esac
3680fb23d3a8Smrg
368164ce7165Smrg  for depmode in $am_compiler_list; do
368264ce7165Smrg    # Setup a source with many dependencies, because some compilers
368364ce7165Smrg    # like to wrap large dependency lists on column 80 (with \), and
368464ce7165Smrg    # we should not choose a depcomp mode which is confused by this.
368564ce7165Smrg    #
368664ce7165Smrg    # We need to recreate these files for each test, as the compiler may
368764ce7165Smrg    # overwrite some of them when testing with obscure command lines.
368864ce7165Smrg    # This happens at least with the AIX C compiler.
368964ce7165Smrg    : > sub/conftest.c
369064ce7165Smrg    for i in 1 2 3 4 5 6; do
369164ce7165Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
369264ce7165Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
369364ce7165Smrg      # Solaris 8's {/usr,}/bin/sh.
369464ce7165Smrg      touch sub/conftst$i.h
369564ce7165Smrg    done
369664ce7165Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
369764ce7165Smrg
3698fb23d3a8Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3699fb23d3a8Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3700fb23d3a8Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3701fb23d3a8Smrg    # versions had trouble with output in subdirs
3702fb23d3a8Smrg    am__obj=sub/conftest.${OBJEXT-o}
3703fb23d3a8Smrg    am__minus_obj="-o $am__obj"
370464ce7165Smrg    case $depmode in
3705fb23d3a8Smrg    gcc)
3706fb23d3a8Smrg      # This depmode causes a compiler race in universal mode.
3707fb23d3a8Smrg      test "$am__universal" = false || continue
3708fb23d3a8Smrg      ;;
370964ce7165Smrg    nosideeffect)
371064ce7165Smrg      # after this tag, mechanisms are not by side-effect, so they'll
371164ce7165Smrg      # only be used when explicitly requested
371264ce7165Smrg      if test "x$enable_dependency_tracking" = xyes; then
371364ce7165Smrg	continue
371464ce7165Smrg      else
371564ce7165Smrg	break
371664ce7165Smrg      fi
371764ce7165Smrg      ;;
3718fb23d3a8Smrg    msvisualcpp | msvcmsys)
3719fb23d3a8Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3720fb23d3a8Smrg      # not run yet.  These depmodes are late enough in the game, and
3721fb23d3a8Smrg      # so weak that their functioning should not be impacted.
3722fb23d3a8Smrg      am__obj=conftest.${OBJEXT-o}
3723fb23d3a8Smrg      am__minus_obj=
3724fb23d3a8Smrg      ;;
372564ce7165Smrg    none) break ;;
372664ce7165Smrg    esac
372764ce7165Smrg    if depmode=$depmode \
3728fb23d3a8Smrg       source=sub/conftest.c object=$am__obj \
372964ce7165Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3730fb23d3a8Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
373164ce7165Smrg         >/dev/null 2>conftest.err &&
373264ce7165Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
373364ce7165Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3734fb23d3a8Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
373564ce7165Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
373664ce7165Smrg      # icc doesn't choke on unknown options, it will just issue warnings
373764ce7165Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
373864ce7165Smrg      # that says an option was ignored or not supported.
373964ce7165Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
374064ce7165Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
374164ce7165Smrg      # The diagnosis changed in icc 8.0:
374264ce7165Smrg      #   icc: Command line remark: option '-MP' not supported
374364ce7165Smrg      if (grep 'ignoring option' conftest.err ||
374464ce7165Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
374564ce7165Smrg        am_cv_CC_dependencies_compiler_type=$depmode
374664ce7165Smrg        break
374764ce7165Smrg      fi
374864ce7165Smrg    fi
374964ce7165Smrg  done
375064ce7165Smrg
375164ce7165Smrg  cd ..
375264ce7165Smrg  rm -rf conftest.dir
375364ce7165Smrgelse
375464ce7165Smrg  am_cv_CC_dependencies_compiler_type=none
375564ce7165Smrgfi
375664ce7165Smrg
375764ce7165Smrgfi
3758169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3759fb23d3a8Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
376064ce7165SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
376164ce7165Smrg
376264ce7165Smrg if
376364ce7165Smrg  test "x$enable_dependency_tracking" != xno \
376464ce7165Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
376564ce7165Smrg  am__fastdepCC_TRUE=
376664ce7165Smrg  am__fastdepCC_FALSE='#'
376764ce7165Smrgelse
376864ce7165Smrg  am__fastdepCC_TRUE='#'
376964ce7165Smrg  am__fastdepCC_FALSE=
377064ce7165Smrgfi
377164ce7165Smrg
377264ce7165Smrg
377364ce7165Smrg
3774169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
3775fb23d3a8Smrg$as_echo_n "checking return type of signal handlers... " >&6; }
3776169a0819Smrgif ${ac_cv_type_signal+:} false; then :
3777fb23d3a8Smrg  $as_echo_n "(cached) " >&6
377864ce7165Smrgelse
3779169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
378064ce7165Smrg/* end confdefs.h.  */
378164ce7165Smrg#include <sys/types.h>
378264ce7165Smrg#include <signal.h>
378364ce7165Smrg
378464ce7165Smrgint
378564ce7165Smrgmain ()
378664ce7165Smrg{
378764ce7165Smrgreturn *(signal (0, 0)) (0) == 1;
378864ce7165Smrg  ;
378964ce7165Smrg  return 0;
379064ce7165Smrg}
379164ce7165Smrg_ACEOF
3792169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
379364ce7165Smrg  ac_cv_type_signal=int
379464ce7165Smrgelse
3795169a0819Smrg  ac_cv_type_signal=void
379664ce7165Smrgfi
379764ce7165Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
379864ce7165Smrgfi
3799169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
3800fb23d3a8Smrg$as_echo "$ac_cv_type_signal" >&6; }
380164ce7165Smrg
380264ce7165Smrgcat >>confdefs.h <<_ACEOF
380364ce7165Smrg#define RETSIGTYPE $ac_cv_type_signal
380464ce7165Smrg_ACEOF
380564ce7165Smrg
380664ce7165Smrg
380764ce7165Smrg
3808169a0819Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3809169a0819Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3810169a0819Smrgif ${ac_cv_prog_cc_c99+:} false; then :
3811fb23d3a8Smrg  $as_echo_n "(cached) " >&6
3812fb23d3a8Smrgelse
3813169a0819Smrg  ac_cv_prog_cc_c99=no
3814169a0819Smrgac_save_CC=$CC
3815169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816fb23d3a8Smrg/* end confdefs.h.  */
3817169a0819Smrg#include <stdarg.h>
3818169a0819Smrg#include <stdbool.h>
3819169a0819Smrg#include <stdlib.h>
3820169a0819Smrg#include <wchar.h>
3821169a0819Smrg#include <stdio.h>
3822169a0819Smrg
3823169a0819Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3824169a0819Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3825169a0819Smrg#define showlist(...) puts (#__VA_ARGS__)
3826169a0819Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3827169a0819Smrgstatic void
3828169a0819Smrgtest_varargs_macros (void)
3829169a0819Smrg{
3830169a0819Smrg  int x = 1234;
3831169a0819Smrg  int y = 5678;
3832169a0819Smrg  debug ("Flag");
3833169a0819Smrg  debug ("X = %d\n", x);
3834169a0819Smrg  showlist (The first, second, and third items.);
3835169a0819Smrg  report (x>y, "x is %d but y is %d", x, y);
3836169a0819Smrg}
3837169a0819Smrg
3838169a0819Smrg// Check long long types.
3839169a0819Smrg#define BIG64 18446744073709551615ull
3840169a0819Smrg#define BIG32 4294967295ul
3841169a0819Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3842169a0819Smrg#if !BIG_OK
3843169a0819Smrg  your preprocessor is broken;
3844169a0819Smrg#endif
3845169a0819Smrg#if BIG_OK
3846fb23d3a8Smrg#else
3847169a0819Smrg  your preprocessor is broken;
3848fb23d3a8Smrg#endif
3849169a0819Smrgstatic long long int bignum = -9223372036854775807LL;
3850169a0819Smrgstatic unsigned long long int ubignum = BIG64;
385164ce7165Smrg
3852169a0819Smrgstruct incomplete_array
3853169a0819Smrg{
3854169a0819Smrg  int datasize;
3855169a0819Smrg  double data[];
3856169a0819Smrg};
3857169a0819Smrg
3858169a0819Smrgstruct named_init {
3859169a0819Smrg  int number;
3860169a0819Smrg  const wchar_t *name;
3861169a0819Smrg  double average;
3862169a0819Smrg};
3863169a0819Smrg
3864169a0819Smrgtypedef const char *ccp;
3865169a0819Smrg
3866169a0819Smrgstatic inline int
3867169a0819Smrgtest_restrict (ccp restrict text)
3868169a0819Smrg{
3869169a0819Smrg  // See if C++-style comments work.
3870169a0819Smrg  // Iterate through items via the restricted pointer.
3871169a0819Smrg  // Also check for declarations in for loops.
3872169a0819Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3873169a0819Smrg    continue;
3874169a0819Smrg  return 0;
3875169a0819Smrg}
3876169a0819Smrg
3877169a0819Smrg// Check varargs and va_copy.
3878169a0819Smrgstatic void
3879169a0819Smrgtest_varargs (const char *format, ...)
3880169a0819Smrg{
3881169a0819Smrg  va_list args;
3882169a0819Smrg  va_start (args, format);
3883169a0819Smrg  va_list args_copy;
3884169a0819Smrg  va_copy (args_copy, args);
3885169a0819Smrg
3886169a0819Smrg  const char *str;
3887169a0819Smrg  int number;
3888169a0819Smrg  float fnumber;
3889169a0819Smrg
3890169a0819Smrg  while (*format)
3891169a0819Smrg    {
3892169a0819Smrg      switch (*format++)
3893169a0819Smrg	{
3894169a0819Smrg	case 's': // string
3895169a0819Smrg	  str = va_arg (args_copy, const char *);
3896169a0819Smrg	  break;
3897169a0819Smrg	case 'd': // int
3898169a0819Smrg	  number = va_arg (args_copy, int);
3899169a0819Smrg	  break;
3900169a0819Smrg	case 'f': // float
3901169a0819Smrg	  fnumber = va_arg (args_copy, double);
3902169a0819Smrg	  break;
3903169a0819Smrg	default:
3904169a0819Smrg	  break;
3905169a0819Smrg	}
3906169a0819Smrg    }
3907169a0819Smrg  va_end (args_copy);
3908169a0819Smrg  va_end (args);
3909169a0819Smrg}
3910169a0819Smrg
3911169a0819Smrgint
3912169a0819Smrgmain ()
3913169a0819Smrg{
3914169a0819Smrg
3915169a0819Smrg  // Check bool.
3916169a0819Smrg  _Bool success = false;
3917169a0819Smrg
3918169a0819Smrg  // Check restrict.
3919169a0819Smrg  if (test_restrict ("String literal") == 0)
3920169a0819Smrg    success = true;
3921169a0819Smrg  char *restrict newvar = "Another string";
3922169a0819Smrg
3923169a0819Smrg  // Check varargs.
3924169a0819Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3925169a0819Smrg  test_varargs_macros ();
3926169a0819Smrg
3927169a0819Smrg  // Check flexible array members.
3928169a0819Smrg  struct incomplete_array *ia =
3929169a0819Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3930169a0819Smrg  ia->datasize = 10;
3931169a0819Smrg  for (int i = 0; i < ia->datasize; ++i)
3932169a0819Smrg    ia->data[i] = i * 1.234;
3933169a0819Smrg
3934169a0819Smrg  // Check named initializers.
3935169a0819Smrg  struct named_init ni = {
3936169a0819Smrg    .number = 34,
3937169a0819Smrg    .name = L"Test wide string",
3938169a0819Smrg    .average = 543.34343,
3939169a0819Smrg  };
3940169a0819Smrg
3941169a0819Smrg  ni.number = 58;
3942169a0819Smrg
3943169a0819Smrg  int dynamic_array[ni.number];
3944169a0819Smrg  dynamic_array[ni.number - 1] = 543;
3945169a0819Smrg
3946169a0819Smrg  // work around unused variable warnings
3947169a0819Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3948169a0819Smrg	  || dynamic_array[ni.number - 1] != 543);
3949169a0819Smrg
3950169a0819Smrg  ;
3951169a0819Smrg  return 0;
3952169a0819Smrg}
3953169a0819Smrg_ACEOF
3954169a0819Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3955169a0819Smrgdo
3956169a0819Smrg  CC="$ac_save_CC $ac_arg"
3957169a0819Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3958169a0819Smrg  ac_cv_prog_cc_c99=$ac_arg
3959169a0819Smrgfi
3960169a0819Smrgrm -f core conftest.err conftest.$ac_objext
3961169a0819Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3962169a0819Smrgdone
3963169a0819Smrgrm -f conftest.$ac_ext
3964169a0819SmrgCC=$ac_save_CC
3965169a0819Smrg
3966169a0819Smrgfi
3967169a0819Smrg# AC_CACHE_VAL
3968169a0819Smrgcase "x$ac_cv_prog_cc_c99" in
3969169a0819Smrg  x)
3970169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3971169a0819Smrg$as_echo "none needed" >&6; } ;;
3972169a0819Smrg  xno)
3973169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3974169a0819Smrg$as_echo "unsupported" >&6; } ;;
3975169a0819Smrg  *)
3976169a0819Smrg    CC="$CC $ac_cv_prog_cc_c99"
3977169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3978169a0819Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3979169a0819Smrgesac
3980169a0819Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3981169a0819Smrg
3982169a0819Smrgfi
3983169a0819Smrg
3984169a0819Smrg
3985169a0819Smrgac_ext=c
3986169a0819Smrgac_cpp='$CPP $CPPFLAGS'
3987169a0819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988169a0819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989169a0819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3990169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3991169a0819Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3992169a0819Smrg# On Suns, sometimes $CPP names a directory.
3993169a0819Smrgif test -n "$CPP" && test -d "$CPP"; then
3994169a0819Smrg  CPP=
3995169a0819Smrgfi
3996169a0819Smrgif test -z "$CPP"; then
3997169a0819Smrg  if ${ac_cv_prog_CPP+:} false; then :
3998169a0819Smrg  $as_echo_n "(cached) " >&6
3999169a0819Smrgelse
4000169a0819Smrg      # Double quotes because CPP needs to be expanded
4001169a0819Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4002169a0819Smrg    do
4003169a0819Smrg      ac_preproc_ok=false
4004169a0819Smrgfor ac_c_preproc_warn_flag in '' yes
4005169a0819Smrgdo
4006169a0819Smrg  # Use a header file that comes with gcc, so configuring glibc
4007169a0819Smrg  # with a fresh cross-compiler works.
4008169a0819Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4009169a0819Smrg  # <limits.h> exists even on freestanding compilers.
4010169a0819Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4011169a0819Smrg  # not just through cpp. "Syntax error" is here to catch this case.
4012169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013169a0819Smrg/* end confdefs.h.  */
4014169a0819Smrg#ifdef __STDC__
4015169a0819Smrg# include <limits.h>
4016169a0819Smrg#else
4017169a0819Smrg# include <assert.h>
4018169a0819Smrg#endif
4019169a0819Smrg		     Syntax error
4020169a0819Smrg_ACEOF
4021169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
402264ce7165Smrg
4023169a0819Smrgelse
4024169a0819Smrg  # Broken: fails on valid input.
4025169a0819Smrgcontinue
4026169a0819Smrgfi
4027169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4028fb23d3a8Smrg
4029fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4030fb23d3a8Smrg  # can be detected and how.
4031169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032fb23d3a8Smrg/* end confdefs.h.  */
4033fb23d3a8Smrg#include <ac_nonexistent.h>
4034fb23d3a8Smrg_ACEOF
4035169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4036fb23d3a8Smrg  # Broken: success on invalid input.
4037fb23d3a8Smrgcontinue
4038fb23d3a8Smrgelse
4039fb23d3a8Smrg  # Passes both tests.
4040fb23d3a8Smrgac_preproc_ok=:
4041fb23d3a8Smrgbreak
4042fb23d3a8Smrgfi
4043169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4044fb23d3a8Smrg
4045fb23d3a8Smrgdone
4046fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4047169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4048169a0819Smrgif $ac_preproc_ok; then :
4049fb23d3a8Smrg  break
4050fb23d3a8Smrgfi
4051fb23d3a8Smrg
4052fb23d3a8Smrg    done
4053fb23d3a8Smrg    ac_cv_prog_CPP=$CPP
4054fb23d3a8Smrg
4055fb23d3a8Smrgfi
4056fb23d3a8Smrg  CPP=$ac_cv_prog_CPP
4057fb23d3a8Smrgelse
4058fb23d3a8Smrg  ac_cv_prog_CPP=$CPP
4059fb23d3a8Smrgfi
4060169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4061fb23d3a8Smrg$as_echo "$CPP" >&6; }
4062fb23d3a8Smrgac_preproc_ok=false
4063fb23d3a8Smrgfor ac_c_preproc_warn_flag in '' yes
4064fb23d3a8Smrgdo
4065fb23d3a8Smrg  # Use a header file that comes with gcc, so configuring glibc
4066fb23d3a8Smrg  # with a fresh cross-compiler works.
4067fb23d3a8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068fb23d3a8Smrg  # <limits.h> exists even on freestanding compilers.
4069fb23d3a8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4070fb23d3a8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
4071169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072fb23d3a8Smrg/* end confdefs.h.  */
4073fb23d3a8Smrg#ifdef __STDC__
4074fb23d3a8Smrg# include <limits.h>
4075fb23d3a8Smrg#else
4076fb23d3a8Smrg# include <assert.h>
4077fb23d3a8Smrg#endif
4078fb23d3a8Smrg		     Syntax error
4079fb23d3a8Smrg_ACEOF
4080169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4081fb23d3a8Smrg
4082169a0819Smrgelse
4083fb23d3a8Smrg  # Broken: fails on valid input.
4084fb23d3a8Smrgcontinue
4085fb23d3a8Smrgfi
4086169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4087fb23d3a8Smrg
4088fb23d3a8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
4089fb23d3a8Smrg  # can be detected and how.
4090169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091fb23d3a8Smrg/* end confdefs.h.  */
4092fb23d3a8Smrg#include <ac_nonexistent.h>
4093fb23d3a8Smrg_ACEOF
4094169a0819Smrgif ac_fn_c_try_cpp "$LINENO"; then :
4095fb23d3a8Smrg  # Broken: success on invalid input.
4096fb23d3a8Smrgcontinue
4097fb23d3a8Smrgelse
4098fb23d3a8Smrg  # Passes both tests.
4099fb23d3a8Smrgac_preproc_ok=:
4100fb23d3a8Smrgbreak
4101fb23d3a8Smrgfi
4102169a0819Smrgrm -f conftest.err conftest.i conftest.$ac_ext
4103fb23d3a8Smrg
4104fb23d3a8Smrgdone
4105fb23d3a8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106169a0819Smrgrm -f conftest.i conftest.err conftest.$ac_ext
4107169a0819Smrgif $ac_preproc_ok; then :
4108169a0819Smrg
4109fb23d3a8Smrgelse
4110169a0819Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112169a0819Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4113169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
4114fb23d3a8Smrgfi
4115fb23d3a8Smrg
4116fb23d3a8Smrgac_ext=c
4117fb23d3a8Smrgac_cpp='$CPP $CPPFLAGS'
4118fb23d3a8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119fb23d3a8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120fb23d3a8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4121fb23d3a8Smrg
4122fb23d3a8Smrg
4123169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124fb23d3a8Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125169a0819Smrgif ${ac_cv_path_GREP+:} false; then :
4126fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4127fb23d3a8Smrgelse
4128fb23d3a8Smrg  if test -z "$GREP"; then
4129fb23d3a8Smrg  ac_path_GREP_found=false
4130fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4131fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133fb23d3a8Smrgdo
4134fb23d3a8Smrg  IFS=$as_save_IFS
4135fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4136169a0819Smrg    for ac_prog in grep ggrep; do
4137fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4138fb23d3a8Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139fb23d3a8Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4140fb23d3a8Smrg# Check for GNU ac_path_GREP and select it if it is found.
4141fb23d3a8Smrg  # Check for GNU $ac_path_GREP
4142fb23d3a8Smrgcase `"$ac_path_GREP" --version 2>&1` in
4143fb23d3a8Smrg*GNU*)
4144fb23d3a8Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145fb23d3a8Smrg*)
4146fb23d3a8Smrg  ac_count=0
4147fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4148fb23d3a8Smrg  while :
4149fb23d3a8Smrg  do
4150fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4151fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4152fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4153fb23d3a8Smrg    $as_echo 'GREP' >> "conftest.nl"
4154fb23d3a8Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4157fb23d3a8Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4159fb23d3a8Smrg      ac_cv_path_GREP="$ac_path_GREP"
4160fb23d3a8Smrg      ac_path_GREP_max=$ac_count
4161fb23d3a8Smrg    fi
4162fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4163fb23d3a8Smrg    test $ac_count -gt 10 && break
4164fb23d3a8Smrg  done
4165fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166fb23d3a8Smrgesac
4167fb23d3a8Smrg
4168fb23d3a8Smrg      $ac_path_GREP_found && break 3
4169fb23d3a8Smrg    done
4170fb23d3a8Smrg  done
4171169a0819Smrg  done
4172fb23d3a8SmrgIFS=$as_save_IFS
4173fb23d3a8Smrg  if test -z "$ac_cv_path_GREP"; then
4174169a0819Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175fb23d3a8Smrg  fi
4176fb23d3a8Smrgelse
4177fb23d3a8Smrg  ac_cv_path_GREP=$GREP
4178fb23d3a8Smrgfi
4179fb23d3a8Smrg
4180fb23d3a8Smrgfi
4181169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182fb23d3a8Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4183fb23d3a8Smrg GREP="$ac_cv_path_GREP"
4184fb23d3a8Smrg
4185fb23d3a8Smrg
4186169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187fb23d3a8Smrg$as_echo_n "checking for egrep... " >&6; }
4188169a0819Smrgif ${ac_cv_path_EGREP+:} false; then :
4189fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4190fb23d3a8Smrgelse
4191fb23d3a8Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192fb23d3a8Smrg   then ac_cv_path_EGREP="$GREP -E"
4193fb23d3a8Smrg   else
4194fb23d3a8Smrg     if test -z "$EGREP"; then
4195fb23d3a8Smrg  ac_path_EGREP_found=false
4196fb23d3a8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4197fb23d3a8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198fb23d3a8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199fb23d3a8Smrgdo
4200fb23d3a8Smrg  IFS=$as_save_IFS
4201fb23d3a8Smrg  test -z "$as_dir" && as_dir=.
4202169a0819Smrg    for ac_prog in egrep; do
4203fb23d3a8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4204fb23d3a8Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205fb23d3a8Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4206fb23d3a8Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4207fb23d3a8Smrg  # Check for GNU $ac_path_EGREP
4208fb23d3a8Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4209fb23d3a8Smrg*GNU*)
4210fb23d3a8Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211fb23d3a8Smrg*)
4212fb23d3a8Smrg  ac_count=0
4213fb23d3a8Smrg  $as_echo_n 0123456789 >"conftest.in"
4214fb23d3a8Smrg  while :
4215fb23d3a8Smrg  do
4216fb23d3a8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4217fb23d3a8Smrg    mv "conftest.tmp" "conftest.in"
4218fb23d3a8Smrg    cp "conftest.in" "conftest.nl"
4219fb23d3a8Smrg    $as_echo 'EGREP' >> "conftest.nl"
4220fb23d3a8Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221fb23d3a8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4223fb23d3a8Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224fb23d3a8Smrg      # Best one so far, save it but keep looking for a better one
4225fb23d3a8Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4226fb23d3a8Smrg      ac_path_EGREP_max=$ac_count
4227fb23d3a8Smrg    fi
4228fb23d3a8Smrg    # 10*(2^10) chars as input seems more than enough
4229fb23d3a8Smrg    test $ac_count -gt 10 && break
4230fb23d3a8Smrg  done
4231fb23d3a8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232fb23d3a8Smrgesac
4233fb23d3a8Smrg
4234fb23d3a8Smrg      $ac_path_EGREP_found && break 3
4235fb23d3a8Smrg    done
4236fb23d3a8Smrg  done
4237169a0819Smrg  done
4238fb23d3a8SmrgIFS=$as_save_IFS
4239fb23d3a8Smrg  if test -z "$ac_cv_path_EGREP"; then
4240169a0819Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241fb23d3a8Smrg  fi
4242fb23d3a8Smrgelse
4243fb23d3a8Smrg  ac_cv_path_EGREP=$EGREP
4244fb23d3a8Smrgfi
4245fb23d3a8Smrg
4246fb23d3a8Smrg   fi
4247fb23d3a8Smrgfi
4248169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249fb23d3a8Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4250fb23d3a8Smrg EGREP="$ac_cv_path_EGREP"
4251fb23d3a8Smrg
4252fb23d3a8Smrg
4253169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4254fb23d3a8Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4255169a0819Smrgif ${ac_cv_header_stdc+:} false; then :
4256fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4257fb23d3a8Smrgelse
4258169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259fb23d3a8Smrg/* end confdefs.h.  */
4260fb23d3a8Smrg#include <stdlib.h>
4261fb23d3a8Smrg#include <stdarg.h>
4262fb23d3a8Smrg#include <string.h>
4263fb23d3a8Smrg#include <float.h>
4264fb23d3a8Smrg
4265fb23d3a8Smrgint
4266fb23d3a8Smrgmain ()
4267fb23d3a8Smrg{
4268fb23d3a8Smrg
4269fb23d3a8Smrg  ;
4270fb23d3a8Smrg  return 0;
4271fb23d3a8Smrg}
4272fb23d3a8Smrg_ACEOF
4273169a0819Smrgif ac_fn_c_try_compile "$LINENO"; then :
4274fb23d3a8Smrg  ac_cv_header_stdc=yes
4275fb23d3a8Smrgelse
4276169a0819Smrg  ac_cv_header_stdc=no
4277fb23d3a8Smrgfi
4278fb23d3a8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279fb23d3a8Smrg
4280fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4281fb23d3a8Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283fb23d3a8Smrg/* end confdefs.h.  */
4284fb23d3a8Smrg#include <string.h>
4285fb23d3a8Smrg
4286fb23d3a8Smrg_ACEOF
4287fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288169a0819Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4289169a0819Smrg
4290fb23d3a8Smrgelse
4291fb23d3a8Smrg  ac_cv_header_stdc=no
4292fb23d3a8Smrgfi
4293fb23d3a8Smrgrm -f conftest*
4294fb23d3a8Smrg
4295fb23d3a8Smrgfi
4296fb23d3a8Smrg
4297fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4298fb23d3a8Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4299169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300fb23d3a8Smrg/* end confdefs.h.  */
4301fb23d3a8Smrg#include <stdlib.h>
4302fb23d3a8Smrg
4303fb23d3a8Smrg_ACEOF
4304fb23d3a8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305169a0819Smrg  $EGREP "free" >/dev/null 2>&1; then :
4306169a0819Smrg
4307fb23d3a8Smrgelse
4308fb23d3a8Smrg  ac_cv_header_stdc=no
4309fb23d3a8Smrgfi
4310fb23d3a8Smrgrm -f conftest*
4311fb23d3a8Smrg
4312fb23d3a8Smrgfi
4313fb23d3a8Smrg
4314fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4315fb23d3a8Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4316169a0819Smrg  if test "$cross_compiling" = yes; then :
4317fb23d3a8Smrg  :
4318fb23d3a8Smrgelse
4319169a0819Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320fb23d3a8Smrg/* end confdefs.h.  */
4321fb23d3a8Smrg#include <ctype.h>
4322fb23d3a8Smrg#include <stdlib.h>
4323fb23d3a8Smrg#if ((' ' & 0x0FF) == 0x020)
4324fb23d3a8Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4325fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4326fb23d3a8Smrg#else
4327fb23d3a8Smrg# define ISLOWER(c) \
4328fb23d3a8Smrg		   (('a' <= (c) && (c) <= 'i') \
4329fb23d3a8Smrg		     || ('j' <= (c) && (c) <= 'r') \
4330fb23d3a8Smrg		     || ('s' <= (c) && (c) <= 'z'))
4331fb23d3a8Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4332fb23d3a8Smrg#endif
4333fb23d3a8Smrg
4334fb23d3a8Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4335fb23d3a8Smrgint
4336fb23d3a8Smrgmain ()
4337fb23d3a8Smrg{
4338fb23d3a8Smrg  int i;
4339fb23d3a8Smrg  for (i = 0; i < 256; i++)
4340fb23d3a8Smrg    if (XOR (islower (i), ISLOWER (i))
4341fb23d3a8Smrg	|| toupper (i) != TOUPPER (i))
4342fb23d3a8Smrg      return 2;
4343fb23d3a8Smrg  return 0;
4344fb23d3a8Smrg}
4345fb23d3a8Smrg_ACEOF
4346169a0819Smrgif ac_fn_c_try_run "$LINENO"; then :
4347fb23d3a8Smrg
4348169a0819Smrgelse
4349169a0819Smrg  ac_cv_header_stdc=no
4350fb23d3a8Smrgfi
4351169a0819Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4352169a0819Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4353fb23d3a8Smrgfi
4354fb23d3a8Smrg
4355fb23d3a8Smrgfi
4356fb23d3a8Smrgfi
4357169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4358fb23d3a8Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4359fb23d3a8Smrgif test $ac_cv_header_stdc = yes; then
4360fb23d3a8Smrg
4361169a0819Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4362fb23d3a8Smrg
4363fb23d3a8Smrgfi
4364fb23d3a8Smrg
4365fb23d3a8Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366169a0819Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367169a0819Smrg		  inttypes.h stdint.h unistd.h
4368169a0819Smrgdo :
4369169a0819Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370169a0819Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4371169a0819Smrg"
4372169a0819Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4373169a0819Smrg  cat >>confdefs.h <<_ACEOF
4374169a0819Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375169a0819Smrg_ACEOF
4376fb23d3a8Smrg
4377169a0819Smrgfi
4378fb23d3a8Smrg
4379169a0819Smrgdone
4380fb23d3a8Smrg
4381fb23d3a8Smrg
4382fb23d3a8Smrg
4383fb23d3a8Smrg
4384169a0819Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4385169a0819Smrg	if test -n "$ac_tool_prefix"; then
4386169a0819Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4387169a0819Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4388169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4390169a0819Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4391fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4392fb23d3a8Smrgelse
4393169a0819Smrg  case $PKG_CONFIG in
4394169a0819Smrg  [\\/]* | ?:[\\/]*)
4395169a0819Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4396169a0819Smrg  ;;
4397169a0819Smrg  *)
4398169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399169a0819Smrgfor as_dir in $PATH
4400169a0819Smrgdo
4401169a0819Smrg  IFS=$as_save_IFS
4402169a0819Smrg  test -z "$as_dir" && as_dir=.
4403169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4404169a0819Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405169a0819Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4406169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407169a0819Smrg    break 2
4408169a0819Smrg  fi
4409169a0819Smrgdone
4410169a0819Smrg  done
4411169a0819SmrgIFS=$as_save_IFS
4412fb23d3a8Smrg
4413169a0819Smrg  ;;
4414fb23d3a8Smrgesac
4415169a0819Smrgfi
4416169a0819SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4417169a0819Smrgif test -n "$PKG_CONFIG"; then
4418169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4419169a0819Smrg$as_echo "$PKG_CONFIG" >&6; }
4420fb23d3a8Smrgelse
4421169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422169a0819Smrg$as_echo "no" >&6; }
4423fb23d3a8Smrgfi
4424fb23d3a8Smrg
4425fb23d3a8Smrg
4426fb23d3a8Smrgfi
4427169a0819Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4428169a0819Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4429169a0819Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4430169a0819Smrgset dummy pkg-config; ac_word=$2
4431169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432169a0819Smrg$as_echo_n "checking for $ac_word... " >&6; }
4433169a0819Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4434fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4435fb23d3a8Smrgelse
4436169a0819Smrg  case $ac_pt_PKG_CONFIG in
4437169a0819Smrg  [\\/]* | ?:[\\/]*)
4438169a0819Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4439169a0819Smrg  ;;
4440169a0819Smrg  *)
4441169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442169a0819Smrgfor as_dir in $PATH
4443fb23d3a8Smrgdo
4444169a0819Smrg  IFS=$as_save_IFS
4445169a0819Smrg  test -z "$as_dir" && as_dir=.
4446169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4447169a0819Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448169a0819Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4449169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450169a0819Smrg    break 2
4451169a0819Smrg  fi
4452169a0819Smrgdone
4453169a0819Smrg  done
4454169a0819SmrgIFS=$as_save_IFS
4455169a0819Smrg
4456169a0819Smrg  ;;
4457fb23d3a8Smrgesac
4458169a0819Smrgfi
4459169a0819Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4460169a0819Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4461169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4462169a0819Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4463fb23d3a8Smrgelse
4464169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465169a0819Smrg$as_echo "no" >&6; }
4466fb23d3a8Smrgfi
4467fb23d3a8Smrg
4468169a0819Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4469169a0819Smrg    PKG_CONFIG=""
4470169a0819Smrg  else
4471169a0819Smrg    case $cross_compiling:$ac_tool_warned in
4472169a0819Smrgyes:)
4473169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474169a0819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475169a0819Smrgac_tool_warned=yes ;;
4476fb23d3a8Smrgesac
4477169a0819Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4478169a0819Smrg  fi
4479169a0819Smrgelse
4480169a0819Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4481169a0819Smrgfi
4482fb23d3a8Smrg
4483169a0819Smrgfi
4484169a0819Smrgif test -n "$PKG_CONFIG"; then
4485169a0819Smrg	_pkg_min_version=0.9.0
4486169a0819Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4487169a0819Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4488169a0819Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4489169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490169a0819Smrg$as_echo "yes" >&6; }
4491169a0819Smrg	else
4492169a0819Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493169a0819Smrg$as_echo "no" >&6; }
4494169a0819Smrg		PKG_CONFIG=""
4495169a0819Smrg	fi
4496fb23d3a8Smrg
4497169a0819Smrgfi
4498fb23d3a8Smrg# Make sure we can run config.sub.
4499fb23d3a8Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4500169a0819Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4501fb23d3a8Smrg
4502169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4503fb23d3a8Smrg$as_echo_n "checking build system type... " >&6; }
4504169a0819Smrgif ${ac_cv_build+:} false; then :
4505fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4506fb23d3a8Smrgelse
4507fb23d3a8Smrg  ac_build_alias=$build_alias
4508fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4509fb23d3a8Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4510fb23d3a8Smrgtest "x$ac_build_alias" = x &&
4511169a0819Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4512fb23d3a8Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4513169a0819Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4514fb23d3a8Smrg
4515fb23d3a8Smrgfi
4516169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4517fb23d3a8Smrg$as_echo "$ac_cv_build" >&6; }
4518fb23d3a8Smrgcase $ac_cv_build in
4519fb23d3a8Smrg*-*-*) ;;
4520169a0819Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4521fb23d3a8Smrgesac
4522fb23d3a8Smrgbuild=$ac_cv_build
4523fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4524fb23d3a8Smrgset x $ac_cv_build
4525fb23d3a8Smrgshift
4526fb23d3a8Smrgbuild_cpu=$1
4527fb23d3a8Smrgbuild_vendor=$2
4528fb23d3a8Smrgshift; shift
4529fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4530fb23d3a8Smrg# except with old shells:
4531fb23d3a8Smrgbuild_os=$*
4532fb23d3a8SmrgIFS=$ac_save_IFS
4533fb23d3a8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4534fb23d3a8Smrg
4535fb23d3a8Smrg
4536169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4537fb23d3a8Smrg$as_echo_n "checking host system type... " >&6; }
4538169a0819Smrgif ${ac_cv_host+:} false; then :
4539fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4540fb23d3a8Smrgelse
4541fb23d3a8Smrg  if test "x$host_alias" = x; then
4542fb23d3a8Smrg  ac_cv_host=$ac_cv_build
4543fb23d3a8Smrgelse
4544fb23d3a8Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4545169a0819Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4546fb23d3a8Smrgfi
4547fb23d3a8Smrg
4548fb23d3a8Smrgfi
4549169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4550fb23d3a8Smrg$as_echo "$ac_cv_host" >&6; }
4551fb23d3a8Smrgcase $ac_cv_host in
4552fb23d3a8Smrg*-*-*) ;;
4553169a0819Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4554fb23d3a8Smrgesac
4555fb23d3a8Smrghost=$ac_cv_host
4556fb23d3a8Smrgac_save_IFS=$IFS; IFS='-'
4557fb23d3a8Smrgset x $ac_cv_host
4558fb23d3a8Smrgshift
4559fb23d3a8Smrghost_cpu=$1
4560fb23d3a8Smrghost_vendor=$2
4561fb23d3a8Smrgshift; shift
4562fb23d3a8Smrg# Remember, the first character of IFS is used to create $*,
4563fb23d3a8Smrg# except with old shells:
4564fb23d3a8Smrghost_os=$*
4565fb23d3a8SmrgIFS=$ac_save_IFS
4566fb23d3a8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4567fb23d3a8Smrg
4568fb23d3a8Smrg
4569169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4570169a0819Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4571169a0819Smrgif ${ac_cv_path_SED+:} false; then :
4572fb23d3a8Smrg  $as_echo_n "(cached) " >&6
4573fb23d3a8Smrgelse
4574169a0819Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4575169a0819Smrg     for ac_i in 1 2 3 4 5 6 7; do
4576169a0819Smrg       ac_script="$ac_script$as_nl$ac_script"
4577169a0819Smrg     done
4578169a0819Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4579169a0819Smrg     { ac_script=; unset ac_script;}
4580169a0819Smrg     if test -z "$SED"; then
4581169a0819Smrg  ac_path_SED_found=false
4582169a0819Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4583169a0819Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584169a0819Smrgfor as_dir in $PATH
4585169a0819Smrgdo
4586169a0819Smrg  IFS=$as_save_IFS
4587169a0819Smrg  test -z "$as_dir" && as_dir=.
4588169a0819Smrg    for ac_prog in sed gsed; do
4589169a0819Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4590169a0819Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4591169a0819Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4592169a0819Smrg# Check for GNU ac_path_SED and select it if it is found.
4593169a0819Smrg  # Check for GNU $ac_path_SED
4594169a0819Smrgcase `"$ac_path_SED" --version 2>&1` in
4595169a0819Smrg*GNU*)
4596169a0819Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4597169a0819Smrg*)
4598169a0819Smrg  ac_count=0
4599169a0819Smrg  $as_echo_n 0123456789 >"conftest.in"
4600169a0819Smrg  while :
4601169a0819Smrg  do
4602169a0819Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4603169a0819Smrg    mv "conftest.tmp" "conftest.in"
4604169a0819Smrg    cp "conftest.in" "conftest.nl"
4605169a0819Smrg    $as_echo '' >> "conftest.nl"
4606169a0819Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607169a0819Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608169a0819Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4609169a0819Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4610169a0819Smrg      # Best one so far, save it but keep looking for a better one
4611169a0819Smrg      ac_cv_path_SED="$ac_path_SED"
4612169a0819Smrg      ac_path_SED_max=$ac_count
4613169a0819Smrg    fi
4614169a0819Smrg    # 10*(2^10) chars as input seems more than enough
4615169a0819Smrg    test $ac_count -gt 10 && break
4616169a0819Smrg  done
4617169a0819Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618fb23d3a8Smrgesac
4619169a0819Smrg
4620169a0819Smrg      $ac_path_SED_found && break 3
4621169a0819Smrg    done
4622169a0819Smrg  done
4623169a0819Smrg  done
4624169a0819SmrgIFS=$as_save_IFS
4625169a0819Smrg  if test -z "$ac_cv_path_SED"; then
4626169a0819Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4627169a0819Smrg  fi
4628fb23d3a8Smrgelse
4629169a0819Smrg  ac_cv_path_SED=$SED
4630fb23d3a8Smrgfi
4631fb23d3a8Smrg
4632fb23d3a8Smrgfi
4633169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4634169a0819Smrg$as_echo "$ac_cv_path_SED" >&6; }
4635169a0819Smrg SED="$ac_cv_path_SED"
4636169a0819Smrg  rm -f conftest.sed
4637169a0819Smrg
4638169a0819Smrg
4639169a0819Smrg
4640169a0819Smrg
4641169a0819Smrg
4642169a0819Smrgif  test "x$GCC" = xyes ; then
4643169a0819Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4644169a0819Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4645169a0819Smrg-Wbad-function-cast -Wformat=2"
4646169a0819Smrg    case `$CC -dumpversion` in
4647169a0819Smrg    3.4.* | 4.*)
4648169a0819Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4649169a0819Smrg	;;
4650169a0819Smrg    esac
4651169a0819Smrgelse
4652169a0819Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4653169a0819Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4654fb23d3a8Smrg  SUNCC="yes"
4655fb23d3a8Smrgelse
4656fb23d3a8Smrg  SUNCC="no"
4657fb23d3a8Smrgfi
4658fb23d3a8Smrg
4659fb23d3a8Smrg    if test "x$SUNCC" = "xyes"; then
4660fb23d3a8Smrg	CWARNFLAGS="-v"
4661fb23d3a8Smrg    fi
4662fb23d3a8Smrgfi
4663fb23d3a8Smrg
4664fb23d3a8Smrg
4665fb23d3a8Smrg
4666169a0819Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4667fb23d3a8Smrg
4668fb23d3a8Smrg
4669fb23d3a8Smrg
4670fb23d3a8Smrg# Check whether --enable-strict-compilation was given.
4671169a0819Smrgif test "${enable_strict_compilation+set}" = set; then :
4672fb23d3a8Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4673fb23d3a8Smrgelse
4674fb23d3a8Smrg  STRICT_COMPILE=no
4675fb23d3a8Smrgfi
4676fb23d3a8Smrg
4677fb23d3a8Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4678169a0819Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4679169a0819Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4680fb23d3a8Smrg  SUNCC="yes"
4681fb23d3a8Smrgelse
4682fb23d3a8Smrg  SUNCC="no"
4683fb23d3a8Smrgfi
4684fb23d3a8Smrg
4685169a0819Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4686169a0819Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4687fb23d3a8Smrg  INTELCC="yes"
4688fb23d3a8Smrgelse
4689fb23d3a8Smrg  INTELCC="no"
4690fb23d3a8Smrgfi
4691fb23d3a8Smrg
4692fb23d3a8Smrg	if test "x$GCC" = xyes ; then
4693fb23d3a8Smrg		STRICT_CFLAGS="-pedantic -Werror"
4694fb23d3a8Smrg	elif test "x$SUNCC" = "xyes"; then
4695fb23d3a8Smrg		STRICT_CFLAGS="-errwarn"
4696fb23d3a8Smrg    elif test "x$INTELCC" = "xyes"; then
4697fb23d3a8Smrg		STRICT_CFLAGS="-Werror"
4698fb23d3a8Smrg	fi
4699fb23d3a8Smrgfi
4700fb23d3a8SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4701fb23d3a8Smrg
4702fb23d3a8Smrg
4703fb23d3a8Smrg
4704fb23d3a8Smrg
4705fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
4706fb23d3a8Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4707fb23d3a8Smrg_ACEOF
4708fb23d3a8Smrg
4709fb23d3a8Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4710fb23d3a8Smrg	if test "x$PVM" = "x"; then
4711fb23d3a8Smrg		PVM="0"
4712fb23d3a8Smrg	fi
4713fb23d3a8Smrg
4714fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
4715fb23d3a8Smrg#define PACKAGE_VERSION_MINOR $PVM
4716fb23d3a8Smrg_ACEOF
4717fb23d3a8Smrg
4718fb23d3a8Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4719fb23d3a8Smrg	if test "x$PVP" = "x"; then
4720fb23d3a8Smrg		PVP="0"
4721fb23d3a8Smrg	fi
4722fb23d3a8Smrg
4723fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
4724fb23d3a8Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4725fb23d3a8Smrg_ACEOF
4726fb23d3a8Smrg
4727fb23d3a8Smrg
4728fb23d3a8Smrg
4729169a0819SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4730169a0819Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4731169a0819Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4732fb23d3a8Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4733fb23d3a8Smrg
4734169a0819Smrg
4735169a0819Smrg
4736169a0819Smrg
4737169a0819Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4738169a0819SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4739169a0819Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4740169a0819Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4741169a0819Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4742169a0819Smrg
4743fb23d3a8Smrg
4744fb23d3a8Smrg
4745fb23d3a8Smrg
4746fb23d3a8Smrg
4747fb23d3a8Smrg
4748fb23d3a8Smrgif test x$APP_MAN_SUFFIX = x    ; then
4749fb23d3a8Smrg    APP_MAN_SUFFIX=1
4750fb23d3a8Smrgfi
4751fb23d3a8Smrgif test x$APP_MAN_DIR = x    ; then
4752fb23d3a8Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4753fb23d3a8Smrgfi
4754fb23d3a8Smrg
4755fb23d3a8Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4756fb23d3a8Smrg    LIB_MAN_SUFFIX=3
4757fb23d3a8Smrgfi
4758fb23d3a8Smrgif test x$LIB_MAN_DIR = x    ; then
4759fb23d3a8Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4760fb23d3a8Smrgfi
4761fb23d3a8Smrg
4762fb23d3a8Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4763fb23d3a8Smrg    case $host_os in
4764fb23d3a8Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4765fb23d3a8Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4766fb23d3a8Smrg    esac
4767fb23d3a8Smrgfi
4768fb23d3a8Smrgif test x$FILE_MAN_DIR = x    ; then
4769fb23d3a8Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4770fb23d3a8Smrgfi
4771fb23d3a8Smrg
4772fb23d3a8Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4773fb23d3a8Smrg    case $host_os in
4774fb23d3a8Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4775fb23d3a8Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4776fb23d3a8Smrg    esac
4777fb23d3a8Smrgfi
4778fb23d3a8Smrgif test x$MISC_MAN_DIR = x    ; then
4779fb23d3a8Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4780fb23d3a8Smrgfi
4781fb23d3a8Smrg
4782fb23d3a8Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4783fb23d3a8Smrg    case $host_os in
4784fb23d3a8Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4785fb23d3a8Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4786fb23d3a8Smrg    esac
4787fb23d3a8Smrgfi
4788fb23d3a8Smrgif test x$DRIVER_MAN_DIR = x    ; then
4789fb23d3a8Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4790fb23d3a8Smrgfi
4791fb23d3a8Smrg
4792fb23d3a8Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4793fb23d3a8Smrg    case $host_os in
4794fb23d3a8Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4795fb23d3a8Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4796fb23d3a8Smrg    esac
4797fb23d3a8Smrgfi
4798fb23d3a8Smrgif test x$ADMIN_MAN_DIR = x    ; then
4799fb23d3a8Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4800fb23d3a8Smrgfi
4801fb23d3a8Smrg
4802fb23d3a8Smrg
4803fb23d3a8Smrg
4804fb23d3a8Smrg
4805fb23d3a8Smrg
4806fb23d3a8Smrg
4807fb23d3a8Smrg
4808fb23d3a8Smrg
4809fb23d3a8Smrg
4810fb23d3a8Smrg
4811fb23d3a8Smrg
4812fb23d3a8Smrg
4813fb23d3a8Smrg
4814fb23d3a8Smrg
4815fb23d3a8Smrg
4816169a0819SmrgXORG_MAN_PAGE="X Version 11"
4817fb23d3a8Smrg
4818169a0819SmrgMAN_SUBSTS="\
4819169a0819Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4820169a0819Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4821169a0819Smrg	-e 's|__xservername__|Xorg|g' \
4822169a0819Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4823169a0819Smrg	-e 's|__projectroot__|\$(prefix)|g' \
4824169a0819Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4825169a0819Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4826169a0819Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4827169a0819Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4828169a0819Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4829169a0819Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4830169a0819Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4831fb23d3a8Smrg
483264ce7165Smrg
483364ce7165Smrg
4834169a0819Smrg# Check whether --enable-silent-rules was given.
4835169a0819Smrgif test "${enable_silent_rules+set}" = set; then :
4836169a0819Smrg  enableval=$enable_silent_rules;
483764ce7165Smrgfi
483864ce7165Smrg
4839169a0819Smrgcase $enable_silent_rules in
4840169a0819Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4841169a0819Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4842169a0819Smrg*)   AM_DEFAULT_VERBOSITY=0;;
484364ce7165Smrgesac
4844169a0819SmrgAM_BACKSLASH='\'
484564ce7165Smrg
484664ce7165Smrg
484764ce7165Smrg
4848169a0819Smrg# Checks for pkg-config packages
484964ce7165Smrg
485064ce7165Smrgpkg_failed=no
4851169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHOST" >&5
4852fb23d3a8Smrg$as_echo_n "checking for XHOST... " >&6; }
4853fb23d3a8Smrg
4854fb23d3a8Smrgif test -n "$XHOST_CFLAGS"; then
4855fb23d3a8Smrg    pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS"
4856fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
4857fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
4858169a0819Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\""; } >&5
485964ce7165Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5
486064ce7165Smrg  ac_status=$?
4861169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862169a0819Smrg  test $ac_status = 0; }; then
486364ce7165Smrg  pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xau" 2>/dev/null`
486464ce7165Smrgelse
486564ce7165Smrg  pkg_failed=yes
486664ce7165Smrgfi
4867fb23d3a8Smrg else
4868fb23d3a8Smrg    pkg_failed=untried
486964ce7165Smrgfi
4870fb23d3a8Smrgif test -n "$XHOST_LIBS"; then
4871fb23d3a8Smrg    pkg_cv_XHOST_LIBS="$XHOST_LIBS"
4872fb23d3a8Smrg elif test -n "$PKG_CONFIG"; then
4873fb23d3a8Smrg    if test -n "$PKG_CONFIG" && \
4874169a0819Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\""; } >&5
487564ce7165Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5
487664ce7165Smrg  ac_status=$?
4877169a0819Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878169a0819Smrg  test $ac_status = 0; }; then
487964ce7165Smrg  pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "x11 xmuu xau" 2>/dev/null`
488064ce7165Smrgelse
488164ce7165Smrg  pkg_failed=yes
488264ce7165Smrgfi
4883fb23d3a8Smrg else
4884fb23d3a8Smrg    pkg_failed=untried
488564ce7165Smrgfi
488664ce7165Smrg
4887fb23d3a8Smrg
4888fb23d3a8Smrg
488964ce7165Smrgif test $pkg_failed = yes; then
4890fb23d3a8Smrg
4891fb23d3a8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4892fb23d3a8Smrg        _pkg_short_errors_supported=yes
4893fb23d3a8Smrgelse
4894fb23d3a8Smrg        _pkg_short_errors_supported=no
4895fb23d3a8Smrgfi
4896fb23d3a8Smrg        if test $_pkg_short_errors_supported = yes; then
4897fb23d3a8Smrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu xau" 2>&1`
4898fb23d3a8Smrg        else
4899fb23d3a8Smrg	        XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu xau" 2>&1`
4900fb23d3a8Smrg        fi
490164ce7165Smrg	# Put the nasty error message in config.log where it belongs
4902fb23d3a8Smrg	echo "$XHOST_PKG_ERRORS" >&5
4903fb23d3a8Smrg
4904169a0819Smrg	as_fn_error $? "Package requirements (x11 xmuu xau) were not met:
4905fb23d3a8Smrg
4906fb23d3a8Smrg$XHOST_PKG_ERRORS
4907fb23d3a8Smrg
490864ce7165SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
490964ce7165Smrginstalled software in a non-standard prefix.
491064ce7165Smrg
4911fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
4912fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
4913fb23d3a8SmrgSee the pkg-config man page for more details.
4914169a0819Smrg" "$LINENO" 5
491564ce7165Smrgelif test $pkg_failed = untried; then
4916169a0819Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4917fb23d3a8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4918169a0819Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
491964ce7165Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
492064ce7165Smrgpath to pkg-config.
492164ce7165Smrg
4922fb23d3a8SmrgAlternatively, you may set the environment variables XHOST_CFLAGS
4923fb23d3a8Smrgand XHOST_LIBS to avoid the need to call pkg-config.
4924fb23d3a8SmrgSee the pkg-config man page for more details.
492564ce7165Smrg
4926fb23d3a8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4927169a0819SmrgSee \`config.log' for more details" "$LINENO" 5; }
492864ce7165Smrgelse
492964ce7165Smrg	XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS
493064ce7165Smrg	XHOST_LIBS=$pkg_cv_XHOST_LIBS
4931169a0819Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932fb23d3a8Smrg$as_echo "yes" >&6; }
493364ce7165Smrg	:
493464ce7165Smrgfi
493564ce7165Smrg
493664ce7165Smrg# Transport selection macro from xtrans.m4
493764ce7165Smrg
493864ce7165Smrg
493964ce7165Smrg
4940fb23d3a8Smrg case $host_os in
4941fb23d3a8Smrg	mingw*)	unixdef="no"   ;;
4942fb23d3a8Smrg	*)	unixdef="yes"  ;;
4943fb23d3a8Smrg esac
494464ce7165Smrg # Check whether --enable-unix-transport was given.
4945169a0819Smrgif test "${enable_unix_transport+set}" = set; then :
494664ce7165Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
494764ce7165Smrgelse
4948fb23d3a8Smrg  UNIXCONN=$unixdef
494964ce7165Smrgfi
495064ce7165Smrg
4951169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
4952fb23d3a8Smrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
495364ce7165Smrg if test "$UNIXCONN" = "yes"; then
495464ce7165Smrg
4955169a0819Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
495664ce7165Smrg
495764ce7165Smrg fi
4958169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
4959fb23d3a8Smrg$as_echo "$UNIXCONN" >&6; }
4960fb23d3a8Smrg # Check whether --enable-tcp-transport was given.
4961169a0819Smrgif test "${enable_tcp_transport+set}" = set; then :
4962fb23d3a8Smrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
4963fb23d3a8Smrgelse
4964fb23d3a8Smrg  TCPCONN=yes
4965fb23d3a8Smrgfi
4966fb23d3a8Smrg
4967169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
4968fb23d3a8Smrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
4969169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
4970fb23d3a8Smrg$as_echo "$TCPCONN" >&6; }
497164ce7165Smrg if test "$TCPCONN" = "yes"; then
497264ce7165Smrg
4973169a0819Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
497464ce7165Smrg
497564ce7165Smrg
497664ce7165Smrg # SVR4 hides these in libraries other than libc
4977169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4978fb23d3a8Smrg$as_echo_n "checking for library containing socket... " >&6; }
4979169a0819Smrgif ${ac_cv_search_socket+:} false; then :
4980fb23d3a8Smrg  $as_echo_n "(cached) " >&6
498164ce7165Smrgelse
498264ce7165Smrg  ac_func_search_save_LIBS=$LIBS
4983169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
498464ce7165Smrg/* end confdefs.h.  */
498564ce7165Smrg
498664ce7165Smrg/* Override any GCC internal prototype to avoid an error.
498764ce7165Smrg   Use char because int might match the return type of a GCC
498864ce7165Smrg   builtin and then its argument prototype would still apply.  */
498964ce7165Smrg#ifdef __cplusplus
499064ce7165Smrgextern "C"
499164ce7165Smrg#endif
499264ce7165Smrgchar socket ();
499364ce7165Smrgint
499464ce7165Smrgmain ()
499564ce7165Smrg{
499664ce7165Smrgreturn socket ();
499764ce7165Smrg  ;
499864ce7165Smrg  return 0;
499964ce7165Smrg}
500064ce7165Smrg_ACEOF
500164ce7165Smrgfor ac_lib in '' socket; do
500264ce7165Smrg  if test -z "$ac_lib"; then
500364ce7165Smrg    ac_res="none required"
500464ce7165Smrg  else
500564ce7165Smrg    ac_res=-l$ac_lib
500664ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
500764ce7165Smrg  fi
5008169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
500964ce7165Smrg  ac_cv_search_socket=$ac_res
501064ce7165Smrgfi
5011169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
5012169a0819Smrg    conftest$ac_exeext
5013169a0819Smrg  if ${ac_cv_search_socket+:} false; then :
501464ce7165Smrg  break
501564ce7165Smrgfi
501664ce7165Smrgdone
5017169a0819Smrgif ${ac_cv_search_socket+:} false; then :
5018169a0819Smrg
501964ce7165Smrgelse
502064ce7165Smrg  ac_cv_search_socket=no
502164ce7165Smrgfi
502264ce7165Smrgrm conftest.$ac_ext
502364ce7165SmrgLIBS=$ac_func_search_save_LIBS
502464ce7165Smrgfi
5025169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5026fb23d3a8Smrg$as_echo "$ac_cv_search_socket" >&6; }
502764ce7165Smrgac_res=$ac_cv_search_socket
5028169a0819Smrgif test "$ac_res" != no; then :
502964ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
503064ce7165Smrg
503164ce7165Smrgfi
503264ce7165Smrg
5033169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5034fb23d3a8Smrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
5035169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
5036fb23d3a8Smrg  $as_echo_n "(cached) " >&6
503764ce7165Smrgelse
503864ce7165Smrg  ac_func_search_save_LIBS=$LIBS
5039169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
504064ce7165Smrg/* end confdefs.h.  */
504164ce7165Smrg
504264ce7165Smrg/* Override any GCC internal prototype to avoid an error.
504364ce7165Smrg   Use char because int might match the return type of a GCC
504464ce7165Smrg   builtin and then its argument prototype would still apply.  */
504564ce7165Smrg#ifdef __cplusplus
504664ce7165Smrgextern "C"
504764ce7165Smrg#endif
504864ce7165Smrgchar gethostbyname ();
504964ce7165Smrgint
505064ce7165Smrgmain ()
505164ce7165Smrg{
505264ce7165Smrgreturn gethostbyname ();
505364ce7165Smrg  ;
505464ce7165Smrg  return 0;
505564ce7165Smrg}
505664ce7165Smrg_ACEOF
505764ce7165Smrgfor ac_lib in '' nsl; do
505864ce7165Smrg  if test -z "$ac_lib"; then
505964ce7165Smrg    ac_res="none required"
506064ce7165Smrg  else
506164ce7165Smrg    ac_res=-l$ac_lib
506264ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
506364ce7165Smrg  fi
5064169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
506564ce7165Smrg  ac_cv_search_gethostbyname=$ac_res
506664ce7165Smrgfi
5067169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
5068169a0819Smrg    conftest$ac_exeext
5069169a0819Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
507064ce7165Smrg  break
507164ce7165Smrgfi
507264ce7165Smrgdone
5073169a0819Smrgif ${ac_cv_search_gethostbyname+:} false; then :
5074169a0819Smrg
507564ce7165Smrgelse
507664ce7165Smrg  ac_cv_search_gethostbyname=no
507764ce7165Smrgfi
507864ce7165Smrgrm conftest.$ac_ext
507964ce7165SmrgLIBS=$ac_func_search_save_LIBS
508064ce7165Smrgfi
5081169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5082fb23d3a8Smrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
508364ce7165Smrgac_res=$ac_cv_search_gethostbyname
5084169a0819Smrgif test "$ac_res" != no; then :
508564ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
508664ce7165Smrg
508764ce7165Smrgfi
508864ce7165Smrg
5089169a0819Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
5090169a0819Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
5091fb23d3a8Smrg$as_echo_n "checking for main in -lws2_32... " >&6; }
5092169a0819Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
5093fb23d3a8Smrg  $as_echo_n "(cached) " >&6
5094fb23d3a8Smrgelse
5095fb23d3a8Smrg  ac_check_lib_save_LIBS=$LIBS
5096fb23d3a8SmrgLIBS="-lws2_32  $LIBS"
5097169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098fb23d3a8Smrg/* end confdefs.h.  */
5099fb23d3a8Smrg
5100fb23d3a8Smrg
5101fb23d3a8Smrgint
5102fb23d3a8Smrgmain ()
5103fb23d3a8Smrg{
5104fb23d3a8Smrgreturn main ();
5105fb23d3a8Smrg  ;
5106fb23d3a8Smrg  return 0;
5107fb23d3a8Smrg}
5108fb23d3a8Smrg_ACEOF
5109169a0819Smrgif ac_fn_c_try_link "$LINENO"; then :
5110fb23d3a8Smrg  ac_cv_lib_ws2_32_main=yes
5111fb23d3a8Smrgelse
5112169a0819Smrg  ac_cv_lib_ws2_32_main=no
5113fb23d3a8Smrgfi
5114169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
5115169a0819Smrg    conftest$ac_exeext conftest.$ac_ext
5116fb23d3a8SmrgLIBS=$ac_check_lib_save_LIBS
5117fb23d3a8Smrgfi
5118169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
5119fb23d3a8Smrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
5120169a0819Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
5121fb23d3a8Smrg  cat >>confdefs.h <<_ACEOF
5122fb23d3a8Smrg#define HAVE_LIBWS2_32 1
5123fb23d3a8Smrg_ACEOF
5124fb23d3a8Smrg
5125fb23d3a8Smrg  LIBS="-lws2_32 $LIBS"
5126fb23d3a8Smrg
5127fb23d3a8Smrgfi
5128fb23d3a8Smrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
5129fb23d3a8Smrg
5130169a0819Smrg fi
5131fb23d3a8Smrg
513264ce7165Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
513364ce7165Smrg # Check whether --enable-ipv6 was given.
5134169a0819Smrgif test "${enable_ipv6+set}" = set; then :
513564ce7165Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
513664ce7165Smrgelse
5137169a0819Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5138169a0819Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
513964ce7165Smrg  IPV6CONN=yes
514064ce7165Smrgelse
514164ce7165Smrg  IPV6CONN=no
514264ce7165Smrgfi
514364ce7165Smrg
514464ce7165Smrgfi
514564ce7165Smrg
5146169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
5147fb23d3a8Smrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
514864ce7165Smrg if test "$IPV6CONN" = "yes"; then
514964ce7165Smrg
5150169a0819Smrg$as_echo "#define IPv6 1" >>confdefs.h
515164ce7165Smrg
515264ce7165Smrg fi
5153169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
5154fb23d3a8Smrg$as_echo "$IPV6CONN" >&6; }
515564ce7165Smrg
515664ce7165Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
5157169a0819Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
5158fb23d3a8Smrg#include <sys/types.h>
5159fb23d3a8Smrg#include <sys/socket.h>
5160fb23d3a8Smrg#include <netinet/in.h>
5161fb23d3a8Smrg
5162169a0819Smrg"
5163169a0819Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
5164fb23d3a8Smrg
5165169a0819Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
5166fb23d3a8Smrg
5167fb23d3a8Smrgfi
5168fb23d3a8Smrg
5169fb23d3a8Smrg
5170fb23d3a8Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
5171169a0819Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5172fb23d3a8Smrg$ac_includes_default
517364ce7165Smrg#include <sys/socket.h>
5174169a0819Smrg"
5175169a0819Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
517664ce7165Smrg
5177fb23d3a8Smrgcat >>confdefs.h <<_ACEOF
5178fb23d3a8Smrg#define HAVE_SOCKLEN_T 1
517964ce7165Smrg_ACEOF
518064ce7165Smrg
5181fb23d3a8Smrg
518264ce7165Smrgfi
518364ce7165Smrg
518464ce7165Smrg
5185fb23d3a8Smrg
518664ce7165Smrg fi
518764ce7165Smrg case $host_os in
518864ce7165Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
518964ce7165Smrg	*)			localdef="no"  ;;
519064ce7165Smrg esac
519164ce7165Smrg # Check whether --enable-local-transport was given.
5192169a0819Smrgif test "${enable_local_transport+set}" = set; then :
519364ce7165Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
519464ce7165Smrgelse
519564ce7165Smrg  LOCALCONN=$localdef
519664ce7165Smrgfi
519764ce7165Smrg
5198169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
5199fb23d3a8Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
5200169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
5201fb23d3a8Smrg$as_echo "$LOCALCONN" >&6; }
520264ce7165Smrg if test "$LOCALCONN" = "yes"; then
520364ce7165Smrg
5204169a0819Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
520564ce7165Smrg
520664ce7165Smrg fi
520764ce7165Smrg
520864ce7165Smrg
520964ce7165Smrg
521064ce7165Smrg# Secure RPC detection macro from xtrans.m4
521164ce7165Smrg
5212169a0819Smrg # Check whether --enable-secure-rpc was given.
5213169a0819Smrgif test "${enable_secure_rpc+set}" = set; then :
5214169a0819Smrg  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
5215169a0819Smrgelse
5216169a0819Smrg  SECURE_RPC="try"
521764ce7165Smrgfi
521864ce7165Smrg
5219169a0819Smrg
5220169a0819Smrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
5221169a0819Smrg	FOUND_SECURE_RPC="no"
5222169a0819Smrg	for ac_func in authdes_seccreate authdes_create
5223169a0819Smrgdo :
5224169a0819Smrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5225169a0819Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5226169a0819Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
522764ce7165Smrg  cat >>confdefs.h <<_ACEOF
5228fb23d3a8Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
522964ce7165Smrg_ACEOF
523064ce7165Smrg FOUND_SECURE_RPC="yes"
523164ce7165Smrgfi
523264ce7165Smrgdone
523364ce7165Smrg
523464ce7165Smrg	if test "x$FOUND_SECURE_RPC" = "xno" ; then
523564ce7165Smrg		if test "x$SECURE_RPC" = "xyes" ; then
5236169a0819Smrg	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
523764ce7165Smrg		fi
523864ce7165Smrg		SECURE_RPC="no"
523964ce7165Smrg	else
5240169a0819Smrg				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
5241fb23d3a8Smrg$as_echo_n "checking for library containing getsecretkey... " >&6; }
5242169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
5243fb23d3a8Smrg  $as_echo_n "(cached) " >&6
524464ce7165Smrgelse
524564ce7165Smrg  ac_func_search_save_LIBS=$LIBS
5246169a0819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
524764ce7165Smrg/* end confdefs.h.  */
524864ce7165Smrg
524964ce7165Smrg/* Override any GCC internal prototype to avoid an error.
525064ce7165Smrg   Use char because int might match the return type of a GCC
525164ce7165Smrg   builtin and then its argument prototype would still apply.  */
525264ce7165Smrg#ifdef __cplusplus
525364ce7165Smrgextern "C"
525464ce7165Smrg#endif
525564ce7165Smrgchar getsecretkey ();
525664ce7165Smrgint
525764ce7165Smrgmain ()
525864ce7165Smrg{
525964ce7165Smrgreturn getsecretkey ();
526064ce7165Smrg  ;
526164ce7165Smrg  return 0;
526264ce7165Smrg}
526364ce7165Smrg_ACEOF
526464ce7165Smrgfor ac_lib in '' rpcsvc; do
526564ce7165Smrg  if test -z "$ac_lib"; then
526664ce7165Smrg    ac_res="none required"
526764ce7165Smrg  else
526864ce7165Smrg    ac_res=-l$ac_lib
526964ce7165Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
527064ce7165Smrg  fi
5271169a0819Smrg  if ac_fn_c_try_link "$LINENO"; then :
527264ce7165Smrg  ac_cv_search_getsecretkey=$ac_res
527364ce7165Smrgfi
5274169a0819Smrgrm -f core conftest.err conftest.$ac_objext \
5275169a0819Smrg    conftest$ac_exeext
5276169a0819Smrg  if ${ac_cv_search_getsecretkey+:} false; then :
527764ce7165Smrg  break
527864ce7165Smrgfi
527964ce7165Smrgdone
5280169a0819Smrgif ${ac_cv_search_getsecretkey+:} false; then :
5281169a0819Smrg
528264ce7165Smrgelse
528364ce7165Smrg  ac_cv_search_getsecretkey=no
528464ce7165Smrgfi
528564ce7165Smrgrm conftest.$ac_ext
528664ce7165SmrgLIBS=$ac_func_search_save_LIBS
528764ce7165Smrgfi
5288169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
5289fb23d3a8Smrg$as_echo "$ac_cv_search_getsecretkey" >&6; }
529064ce7165Smrgac_res=$ac_cv_search_getsecretkey
5291169a0819Smrgif test "$ac_res" != no; then :
529264ce7165Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
529364ce7165Smrg
529464ce7165Smrgfi
529564ce7165Smrg
529664ce7165Smrg		SECURE_RPC="yes"
529764ce7165Smrg	fi
529864ce7165Smrg fi
5299169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
5300fb23d3a8Smrg$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
530164ce7165Smrg if test "x$SECURE_RPC" = "xyes" ; then
530264ce7165Smrg
5303169a0819Smrg$as_echo "#define SECURE_RPC 1" >>confdefs.h
530464ce7165Smrg
530564ce7165Smrg fi
5306169a0819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
5307fb23d3a8Smrg$as_echo "$SECURE_RPC" >&6; }
530864ce7165Smrg
530964ce7165Smrg
531064ce7165Smrgac_config_files="$ac_config_files Makefile"
531164ce7165Smrg
531264ce7165Smrgcat >confcache <<\_ACEOF
531364ce7165Smrg# This file is a shell script that caches the results of configure
531464ce7165Smrg# tests run on this system so they can be shared between configure
531564ce7165Smrg# scripts and configure runs, see configure's option --config-cache.
531664ce7165Smrg# It is not useful on other systems.  If it contains results you don't
531764ce7165Smrg# want to keep, you may remove or edit it.
531864ce7165Smrg#
531964ce7165Smrg# config.status only pays attention to the cache file if you give it
532064ce7165Smrg# the --recheck option to rerun configure.
532164ce7165Smrg#
532264ce7165Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
532364ce7165Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
532464ce7165Smrg# following values.
532564ce7165Smrg
532664ce7165Smrg_ACEOF
532764ce7165Smrg
532864ce7165Smrg# The following way of writing the cache mishandles newlines in values,
532964ce7165Smrg# but we know of no workaround that is simple, portable, and efficient.
533064ce7165Smrg# So, we kill variables containing newlines.
533164ce7165Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
533264ce7165Smrg# and sets the high bit in the cache file unless we assign to the vars.
533364ce7165Smrg(
533464ce7165Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
533564ce7165Smrg    eval ac_val=\$$ac_var
533664ce7165Smrg    case $ac_val in #(
533764ce7165Smrg    *${as_nl}*)
533864ce7165Smrg      case $ac_var in #(
5339169a0819Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5340fb23d3a8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
534164ce7165Smrg      esac
534264ce7165Smrg      case $ac_var in #(
534364ce7165Smrg      _ | IFS | as_nl) ;; #(
5344fb23d3a8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5345169a0819Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
534664ce7165Smrg      esac ;;
534764ce7165Smrg    esac
534864ce7165Smrg  done
534964ce7165Smrg
535064ce7165Smrg  (set) 2>&1 |
535164ce7165Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
535264ce7165Smrg    *${as_nl}ac_space=\ *)
5353169a0819Smrg      # `set' does not quote correctly, so add quotes: double-quote
5354169a0819Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
535564ce7165Smrg      sed -n \
535664ce7165Smrg	"s/'/'\\\\''/g;
535764ce7165Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
535864ce7165Smrg      ;; #(
535964ce7165Smrg    *)
536064ce7165Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
536164ce7165Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
536264ce7165Smrg      ;;
536364ce7165Smrg    esac |
536464ce7165Smrg    sort
536564ce7165Smrg) |
536664ce7165Smrg  sed '
536764ce7165Smrg     /^ac_cv_env_/b end
536864ce7165Smrg     t clear
536964ce7165Smrg     :clear
537064ce7165Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
537164ce7165Smrg     t end
537264ce7165Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
537364ce7165Smrg     :end' >>confcache
537464ce7165Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
537564ce7165Smrg  if test -w "$cache_file"; then
5376169a0819Smrg    if test "x$cache_file" != "x/dev/null"; then
5377169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5378fb23d3a8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5379169a0819Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
5380169a0819Smrg	cat confcache >"$cache_file"
5381169a0819Smrg      else
5382169a0819Smrg        case $cache_file in #(
5383169a0819Smrg        */* | ?:*)
5384169a0819Smrg	  mv -f confcache "$cache_file"$$ &&
5385169a0819Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5386169a0819Smrg        *)
5387169a0819Smrg	  mv -f confcache "$cache_file" ;;
5388169a0819Smrg	esac
5389169a0819Smrg      fi
5390169a0819Smrg    fi
539164ce7165Smrg  else
5392169a0819Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5393fb23d3a8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
539464ce7165Smrg  fi
539564ce7165Smrgfi
539664ce7165Smrgrm -f confcache
539764ce7165Smrg
539864ce7165Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
539964ce7165Smrg# Let make expand exec_prefix.
540064ce7165Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
540164ce7165Smrg
540264ce7165SmrgDEFS=-DHAVE_CONFIG_H
540364ce7165Smrg
540464ce7165Smrgac_libobjs=
540564ce7165Smrgac_ltlibobjs=
5406169a0819SmrgU=
540764ce7165Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
540864ce7165Smrg  # 1. Remove the extension, and $U if already installed.
540964ce7165Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5410fb23d3a8Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
541164ce7165Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
541264ce7165Smrg  #    will be set to the directory where LIBOBJS objects are built.
5413169a0819Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5414169a0819Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
541564ce7165Smrgdone
541664ce7165SmrgLIBOBJS=$ac_libobjs
541764ce7165Smrg
541864ce7165SmrgLTLIBOBJS=$ac_ltlibobjs
541964ce7165Smrg
542064ce7165Smrg
5421fb23d3a8Smrg if test -n "$EXEEXT"; then
5422fb23d3a8Smrg  am__EXEEXT_TRUE=
5423fb23d3a8Smrg  am__EXEEXT_FALSE='#'
5424fb23d3a8Smrgelse
5425fb23d3a8Smrg  am__EXEEXT_TRUE='#'
5426fb23d3a8Smrg  am__EXEEXT_FALSE=
5427fb23d3a8Smrgfi
5428fb23d3a8Smrg
542964ce7165Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5430169a0819Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5431169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
543264ce7165Smrgfi
543364ce7165Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5434169a0819Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
5435169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
543664ce7165Smrgfi
543764ce7165Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5438169a0819Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5439169a0819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
544064ce7165Smrgfi
544164ce7165Smrg
5442169a0819Smrg: "${CONFIG_STATUS=./config.status}"
5443fb23d3a8Smrgac_write_fail=0
544464ce7165Smrgac_clean_files_save=$ac_clean_files
544564ce7165Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5446169a0819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5447fb23d3a8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5448169a0819Smrgas_write_fail=0
5449169a0819Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
545064ce7165Smrg#! $SHELL
545164ce7165Smrg# Generated by $as_me.
545264ce7165Smrg# Run this file to recreate the current configuration.
545364ce7165Smrg# Compiler output produced by configure, useful for debugging
545464ce7165Smrg# configure, is in config.log if it exists.
545564ce7165Smrg
545664ce7165Smrgdebug=false
545764ce7165Smrgac_cs_recheck=false
545864ce7165Smrgac_cs_silent=false
545964ce7165Smrg
5460169a0819SmrgSHELL=\${CONFIG_SHELL-$SHELL}
5461169a0819Smrgexport SHELL
5462169a0819Smrg_ASEOF
5463169a0819Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5464169a0819Smrg## -------------------- ##
5465169a0819Smrg## M4sh Initialization. ##
5466169a0819Smrg## -------------------- ##
546764ce7165Smrg
546864ce7165Smrg# Be more Bourne compatible
546964ce7165SmrgDUALCASE=1; export DUALCASE # for MKS sh
5470169a0819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
547164ce7165Smrg  emulate sh
547264ce7165Smrg  NULLCMD=:
5473fb23d3a8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
547464ce7165Smrg  # is contrary to our usage.  Disable this feature.
547564ce7165Smrg  alias -g '${1+"$@"}'='"$@"'
547664ce7165Smrg  setopt NO_GLOB_SUBST
547764ce7165Smrgelse
5478169a0819Smrg  case `(set -o) 2>/dev/null` in #(
5479169a0819Smrg  *posix*) :
5480169a0819Smrg    set -o posix ;; #(
5481169a0819Smrg  *) :
5482169a0819Smrg     ;;
548364ce7165Smrgesac
548464ce7165Smrgfi
548564ce7165Smrg
548664ce7165Smrg
5487fb23d3a8Smrgas_nl='
5488fb23d3a8Smrg'
5489fb23d3a8Smrgexport as_nl
5490fb23d3a8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5491fb23d3a8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5492fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5493fb23d3a8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5494169a0819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5495169a0819Smrg# but without wasting forks for bash or zsh.
5496169a0819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5497169a0819Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5498169a0819Smrg  as_echo='print -r --'
5499169a0819Smrg  as_echo_n='print -rn --'
5500169a0819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5501fb23d3a8Smrg  as_echo='printf %s\n'
5502fb23d3a8Smrg  as_echo_n='printf %s'
5503fb23d3a8Smrgelse
5504fb23d3a8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5505fb23d3a8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5506fb23d3a8Smrg    as_echo_n='/usr/ucb/echo -n'
550764ce7165Smrg  else
5508fb23d3a8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5509fb23d3a8Smrg    as_echo_n_body='eval
5510fb23d3a8Smrg      arg=$1;
5511169a0819Smrg      case $arg in #(
5512fb23d3a8Smrg      *"$as_nl"*)
5513fb23d3a8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5514fb23d3a8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5515fb23d3a8Smrg      esac;
5516fb23d3a8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5517fb23d3a8Smrg    '
5518fb23d3a8Smrg    export as_echo_n_body
5519fb23d3a8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
552064ce7165Smrg  fi
5521fb23d3a8Smrg  export as_echo_body
5522fb23d3a8Smrg  as_echo='sh -c $as_echo_body as_echo'
5523fb23d3a8Smrgfi
5524fb23d3a8Smrg
5525fb23d3a8Smrg# The user is always right.
5526fb23d3a8Smrgif test "${PATH_SEPARATOR+set}" != set; then
5527fb23d3a8Smrg  PATH_SEPARATOR=:
5528fb23d3a8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5529fb23d3a8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5530fb23d3a8Smrg      PATH_SEPARATOR=';'
5531fb23d3a8Smrg  }
553264ce7165Smrgfi
553364ce7165Smrg
553464ce7165Smrg
553564ce7165Smrg# IFS
553664ce7165Smrg# We need space, tab and new line, in precisely that order.  Quoting is
553764ce7165Smrg# there to prevent editors from complaining about space-tab.
553864ce7165Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
553964ce7165Smrg# splitting by setting IFS to empty value.)
554064ce7165SmrgIFS=" ""	$as_nl"
554164ce7165Smrg
554264ce7165Smrg# Find who we are.  Look in the path if we contain no directory separator.
5543169a0819Smrgas_myself=
5544169a0819Smrgcase $0 in #((
554564ce7165Smrg  *[\\/]* ) as_myself=$0 ;;
554664ce7165Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
554764ce7165Smrgfor as_dir in $PATH
554864ce7165Smrgdo
554964ce7165Smrg  IFS=$as_save_IFS
555064ce7165Smrg  test -z "$as_dir" && as_dir=.
5551169a0819Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5552169a0819Smrg  done
555364ce7165SmrgIFS=$as_save_IFS
555464ce7165Smrg
555564ce7165Smrg     ;;
555664ce7165Smrgesac
555764ce7165Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
555864ce7165Smrg# in which case we are not to be found in the path.
555964ce7165Smrgif test "x$as_myself" = x; then
556064ce7165Smrg  as_myself=$0
556164ce7165Smrgfi
556264ce7165Smrgif test ! -f "$as_myself"; then
5563fb23d3a8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5564169a0819Smrg  exit 1
556564ce7165Smrgfi
556664ce7165Smrg
5567169a0819Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5568169a0819Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5569169a0819Smrg# suppresses any "Segmentation fault" message there.  '((' could
5570169a0819Smrg# trigger a bug in pdksh 5.2.14.
5571169a0819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5572169a0819Smrgdo eval test x\${$as_var+set} = xset \
5573169a0819Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
557464ce7165Smrgdone
557564ce7165SmrgPS1='$ '
557664ce7165SmrgPS2='> '
557764ce7165SmrgPS4='+ '
557864ce7165Smrg
557964ce7165Smrg# NLS nuisances.
5580fb23d3a8SmrgLC_ALL=C
5581fb23d3a8Smrgexport LC_ALL
5582fb23d3a8SmrgLANGUAGE=C
5583fb23d3a8Smrgexport LANGUAGE
558464ce7165Smrg
5585169a0819Smrg# CDPATH.
5586169a0819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5587169a0819Smrg
5588169a0819Smrg
5589169a0819Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
5590169a0819Smrg# ----------------------------------------
5591169a0819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5592169a0819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5593169a0819Smrg# script with STATUS, using 1 if that was 0.
5594169a0819Smrgas_fn_error ()
5595169a0819Smrg{
5596169a0819Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
5597169a0819Smrg  if test "$4"; then
5598169a0819Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5599169a0819Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5600169a0819Smrg  fi
5601169a0819Smrg  $as_echo "$as_me: error: $2" >&2
5602169a0819Smrg  as_fn_exit $as_status
5603169a0819Smrg} # as_fn_error
5604169a0819Smrg
5605169a0819Smrg
5606169a0819Smrg# as_fn_set_status STATUS
5607169a0819Smrg# -----------------------
5608169a0819Smrg# Set $? to STATUS, without forking.
5609169a0819Smrgas_fn_set_status ()
5610169a0819Smrg{
5611169a0819Smrg  return $1
5612169a0819Smrg} # as_fn_set_status
5613169a0819Smrg
5614169a0819Smrg# as_fn_exit STATUS
5615169a0819Smrg# -----------------
5616169a0819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5617169a0819Smrgas_fn_exit ()
5618169a0819Smrg{
5619169a0819Smrg  set +e
5620169a0819Smrg  as_fn_set_status $1
5621169a0819Smrg  exit $1
5622169a0819Smrg} # as_fn_exit
5623169a0819Smrg
5624169a0819Smrg# as_fn_unset VAR
5625169a0819Smrg# ---------------
5626169a0819Smrg# Portably unset VAR.
5627169a0819Smrgas_fn_unset ()
5628169a0819Smrg{
5629169a0819Smrg  { eval $1=; unset $1;}
5630169a0819Smrg}
5631169a0819Smrgas_unset=as_fn_unset
5632169a0819Smrg# as_fn_append VAR VALUE
5633169a0819Smrg# ----------------------
5634169a0819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5635169a0819Smrg# advantage of any shell optimizations that allow amortized linear growth over
5636169a0819Smrg# repeated appends, instead of the typical quadratic growth present in naive
5637169a0819Smrg# implementations.
5638169a0819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5639169a0819Smrg  eval 'as_fn_append ()
5640169a0819Smrg  {
5641169a0819Smrg    eval $1+=\$2
5642169a0819Smrg  }'
5643169a0819Smrgelse
5644169a0819Smrg  as_fn_append ()
5645169a0819Smrg  {
5646169a0819Smrg    eval $1=\$$1\$2
5647169a0819Smrg  }
5648169a0819Smrgfi # as_fn_append
5649169a0819Smrg
5650169a0819Smrg# as_fn_arith ARG...
5651169a0819Smrg# ------------------
5652169a0819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5653169a0819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5654169a0819Smrg# must be portable across $(()) and expr.
5655169a0819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5656169a0819Smrg  eval 'as_fn_arith ()
5657169a0819Smrg  {
5658169a0819Smrg    as_val=$(( $* ))
5659169a0819Smrg  }'
5660169a0819Smrgelse
5661169a0819Smrg  as_fn_arith ()
5662169a0819Smrg  {
5663169a0819Smrg    as_val=`expr "$@" || test $? -eq 1`
5664169a0819Smrg  }
5665169a0819Smrgfi # as_fn_arith
5666169a0819Smrg
5667169a0819Smrg
566864ce7165Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
566964ce7165Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
567064ce7165Smrg  as_expr=expr
567164ce7165Smrgelse
567264ce7165Smrg  as_expr=false
567364ce7165Smrgfi
567464ce7165Smrg
567564ce7165Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
567664ce7165Smrg  as_basename=basename
567764ce7165Smrgelse
567864ce7165Smrg  as_basename=false
567964ce7165Smrgfi
568064ce7165Smrg
5681169a0819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5682169a0819Smrg  as_dirname=dirname
5683169a0819Smrgelse
5684169a0819Smrg  as_dirname=false
5685169a0819Smrgfi
568664ce7165Smrg
568764ce7165Smrgas_me=`$as_basename -- "$0" ||
568864ce7165Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
568964ce7165Smrg	 X"$0" : 'X\(//\)$' \| \
569064ce7165Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5691fb23d3a8Smrg$as_echo X/"$0" |
569264ce7165Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
569364ce7165Smrg	    s//\1/
569464ce7165Smrg	    q
569564ce7165Smrg	  }
569664ce7165Smrg	  /^X\/\(\/\/\)$/{
569764ce7165Smrg	    s//\1/
569864ce7165Smrg	    q
569964ce7165Smrg	  }
570064ce7165Smrg	  /^X\/\(\/\).*/{
570164ce7165Smrg	    s//\1/
570264ce7165Smrg	    q
570364ce7165Smrg	  }
570464ce7165Smrg	  s/.*/./; q'`
570564ce7165Smrg
5706169a0819Smrg# Avoid depending upon Character Ranges.
5707169a0819Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5708169a0819Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5709169a0819Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5710169a0819Smrgas_cr_digits='0123456789'
5711169a0819Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
571264ce7165Smrg
571364ce7165SmrgECHO_C= ECHO_N= ECHO_T=
5714169a0819Smrgcase `echo -n x` in #(((((
571564ce7165Smrg-n*)
5716169a0819Smrg  case `echo 'xy\c'` in
571764ce7165Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5718169a0819Smrg  xy)  ECHO_C='\c';;
5719169a0819Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5720169a0819Smrg       ECHO_T='	';;
572164ce7165Smrg  esac;;
572264ce7165Smrg*)
572364ce7165Smrg  ECHO_N='-n';;
572464ce7165Smrgesac
572564ce7165Smrg
572664ce7165Smrgrm -f conf$$ conf$$.exe conf$$.file
572764ce7165Smrgif test -d conf$$.dir; then
572864ce7165Smrg  rm -f conf$$.dir/conf$$.file
572964ce7165Smrgelse
573064ce7165Smrg  rm -f conf$$.dir
5731fb23d3a8Smrg  mkdir conf$$.dir 2>/dev/null
5732fb23d3a8Smrgfi
5733fb23d3a8Smrgif (echo >conf$$.file) 2>/dev/null; then
5734fb23d3a8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5735fb23d3a8Smrg    as_ln_s='ln -s'
5736fb23d3a8Smrg    # ... but there are two gotchas:
5737fb23d3a8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5738fb23d3a8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5739fb23d3a8Smrg    # In both cases, we have to default to `cp -p'.
5740fb23d3a8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5741fb23d3a8Smrg      as_ln_s='cp -p'
5742fb23d3a8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5743fb23d3a8Smrg    as_ln_s=ln
5744fb23d3a8Smrg  else
574564ce7165Smrg    as_ln_s='cp -p'
5746fb23d3a8Smrg  fi
574764ce7165Smrgelse
574864ce7165Smrg  as_ln_s='cp -p'
574964ce7165Smrgfi
575064ce7165Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
575164ce7165Smrgrmdir conf$$.dir 2>/dev/null
575264ce7165Smrg
5753169a0819Smrg
5754169a0819Smrg# as_fn_mkdir_p
5755169a0819Smrg# -------------
5756169a0819Smrg# Create "$as_dir" as a directory, including parents if necessary.
5757169a0819Smrgas_fn_mkdir_p ()
5758169a0819Smrg{
5759169a0819Smrg
5760169a0819Smrg  case $as_dir in #(
5761169a0819Smrg  -*) as_dir=./$as_dir;;
5762169a0819Smrg  esac
5763169a0819Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5764169a0819Smrg    as_dirs=
5765169a0819Smrg    while :; do
5766169a0819Smrg      case $as_dir in #(
5767169a0819Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5768169a0819Smrg      *) as_qdir=$as_dir;;
5769169a0819Smrg      esac
5770169a0819Smrg      as_dirs="'$as_qdir' $as_dirs"
5771169a0819Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5772169a0819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5773169a0819Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5774169a0819Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5775169a0819Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5776169a0819Smrg$as_echo X"$as_dir" |
5777169a0819Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5778169a0819Smrg	    s//\1/
5779169a0819Smrg	    q
5780169a0819Smrg	  }
5781169a0819Smrg	  /^X\(\/\/\)[^/].*/{
5782169a0819Smrg	    s//\1/
5783169a0819Smrg	    q
5784169a0819Smrg	  }
5785169a0819Smrg	  /^X\(\/\/\)$/{
5786169a0819Smrg	    s//\1/
5787169a0819Smrg	    q
5788169a0819Smrg	  }
5789169a0819Smrg	  /^X\(\/\).*/{
5790169a0819Smrg	    s//\1/
5791169a0819Smrg	    q
5792169a0819Smrg	  }
5793169a0819Smrg	  s/.*/./; q'`
5794169a0819Smrg      test -d "$as_dir" && break
5795169a0819Smrg    done
5796169a0819Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5797169a0819Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5798169a0819Smrg
5799169a0819Smrg
5800169a0819Smrg} # as_fn_mkdir_p
580164ce7165Smrgif mkdir -p . 2>/dev/null; then
5802169a0819Smrg  as_mkdir_p='mkdir -p "$as_dir"'
580364ce7165Smrgelse
580464ce7165Smrg  test -d ./-p && rmdir ./-p
580564ce7165Smrg  as_mkdir_p=false
580664ce7165Smrgfi
580764ce7165Smrg
580864ce7165Smrgif test -x / >/dev/null 2>&1; then
580964ce7165Smrg  as_test_x='test -x'
581064ce7165Smrgelse
581164ce7165Smrg  if ls -dL / >/dev/null 2>&1; then
581264ce7165Smrg    as_ls_L_option=L
581364ce7165Smrg  else
581464ce7165Smrg    as_ls_L_option=
581564ce7165Smrg  fi
581664ce7165Smrg  as_test_x='
581764ce7165Smrg    eval sh -c '\''
581864ce7165Smrg      if test -d "$1"; then
5819fb23d3a8Smrg	test -d "$1/.";
582064ce7165Smrg      else
5821169a0819Smrg	case $1 in #(
5822fb23d3a8Smrg	-*)set "./$1";;
582364ce7165Smrg	esac;
5824169a0819Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
582564ce7165Smrg	???[sx]*):;;*)false;;esac;fi
582664ce7165Smrg    '\'' sh
582764ce7165Smrg  '
582864ce7165Smrgfi
582964ce7165Smrgas_executable_p=$as_test_x
583064ce7165Smrg
583164ce7165Smrg# Sed expression to map a string onto a valid CPP name.
583264ce7165Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583364ce7165Smrg
583464ce7165Smrg# Sed expression to map a string onto a valid variable name.
583564ce7165Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
583664ce7165Smrg
583764ce7165Smrg
583864ce7165Smrgexec 6>&1
5839169a0819Smrg## ----------------------------------- ##
5840169a0819Smrg## Main body of $CONFIG_STATUS script. ##
5841169a0819Smrg## ----------------------------------- ##
5842169a0819Smrg_ASEOF
5843169a0819Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
584464ce7165Smrg
5845169a0819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5846169a0819Smrg# Save the log message, to keep $0 and so on meaningful, and to
584764ce7165Smrg# report actual input values of CONFIG_FILES etc. instead of their
584864ce7165Smrg# values after options handling.
584964ce7165Smrgac_log="
5850169a0819SmrgThis file was extended by xhost $as_me 1.0.4, which was
5851169a0819Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
585264ce7165Smrg
585364ce7165Smrg  CONFIG_FILES    = $CONFIG_FILES
585464ce7165Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
585564ce7165Smrg  CONFIG_LINKS    = $CONFIG_LINKS
585664ce7165Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
585764ce7165Smrg  $ $0 $@
585864ce7165Smrg
585964ce7165Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
586064ce7165Smrg"
586164ce7165Smrg
586264ce7165Smrg_ACEOF
586364ce7165Smrg
5864fb23d3a8Smrgcase $ac_config_files in *"
5865fb23d3a8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5866fb23d3a8Smrgesac
5867fb23d3a8Smrg
5868fb23d3a8Smrgcase $ac_config_headers in *"
5869fb23d3a8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5870fb23d3a8Smrgesac
5871fb23d3a8Smrg
5872fb23d3a8Smrg
5873fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
587464ce7165Smrg# Files that config.status was made for.
587564ce7165Smrgconfig_files="$ac_config_files"
587664ce7165Smrgconfig_headers="$ac_config_headers"
587764ce7165Smrgconfig_commands="$ac_config_commands"
587864ce7165Smrg
587964ce7165Smrg_ACEOF
588064ce7165Smrg
5881fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
588264ce7165Smrgac_cs_usage="\
5883169a0819Smrg\`$as_me' instantiates files and other configuration actions
5884169a0819Smrgfrom templates according to the current configuration.  Unless the files
5885169a0819Smrgand actions are specified as TAGs, all are instantiated by default.
588664ce7165Smrg
5887169a0819SmrgUsage: $0 [OPTION]... [TAG]...
588864ce7165Smrg
588964ce7165Smrg  -h, --help       print this help, then exit
589064ce7165Smrg  -V, --version    print version number and configuration settings, then exit
5891169a0819Smrg      --config     print configuration, then exit
5892fb23d3a8Smrg  -q, --quiet, --silent
5893fb23d3a8Smrg                   do not print progress messages
589464ce7165Smrg  -d, --debug      don't remove temporary files
589564ce7165Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5896fb23d3a8Smrg      --file=FILE[:TEMPLATE]
5897fb23d3a8Smrg                   instantiate the configuration file FILE
5898fb23d3a8Smrg      --header=FILE[:TEMPLATE]
5899fb23d3a8Smrg                   instantiate the configuration header FILE
590064ce7165Smrg
590164ce7165SmrgConfiguration files:
590264ce7165Smrg$config_files
590364ce7165Smrg
590464ce7165SmrgConfiguration headers:
590564ce7165Smrg$config_headers
590664ce7165Smrg
590764ce7165SmrgConfiguration commands:
590864ce7165Smrg$config_commands
590964ce7165Smrg
5910169a0819SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
591164ce7165Smrg
591264ce7165Smrg_ACEOF
5913fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5914169a0819Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
591564ce7165Smrgac_cs_version="\\
5916169a0819Smrgxhost config.status 1.0.4
5917169a0819Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5918169a0819Smrg  with options \\"\$ac_cs_config\\"
591964ce7165Smrg
5920169a0819SmrgCopyright (C) 2010 Free Software Foundation, Inc.
592164ce7165SmrgThis config.status script is free software; the Free Software Foundation
592264ce7165Smrggives unlimited permission to copy, distribute and modify it."
592364ce7165Smrg
592464ce7165Smrgac_pwd='$ac_pwd'
592564ce7165Smrgsrcdir='$srcdir'
592664ce7165SmrgINSTALL='$INSTALL'
592764ce7165SmrgMKDIR_P='$MKDIR_P'
5928fb23d3a8SmrgAWK='$AWK'
5929fb23d3a8Smrgtest -n "\$AWK" || AWK=awk
593064ce7165Smrg_ACEOF
593164ce7165Smrg
5932fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5933fb23d3a8Smrg# The default lists apply if the user does not specify any file.
593464ce7165Smrgac_need_defaults=:
593564ce7165Smrgwhile test $# != 0
593664ce7165Smrgdo
593764ce7165Smrg  case $1 in
5938169a0819Smrg  --*=?*)
593964ce7165Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
594064ce7165Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
594164ce7165Smrg    ac_shift=:
594264ce7165Smrg    ;;
5943169a0819Smrg  --*=)
5944169a0819Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5945169a0819Smrg    ac_optarg=
5946169a0819Smrg    ac_shift=:
5947169a0819Smrg    ;;
594864ce7165Smrg  *)
594964ce7165Smrg    ac_option=$1
595064ce7165Smrg    ac_optarg=$2
595164ce7165Smrg    ac_shift=shift
595264ce7165Smrg    ;;
595364ce7165Smrg  esac
595464ce7165Smrg
595564ce7165Smrg  case $ac_option in
595664ce7165Smrg  # Handling of the options.
595764ce7165Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
595864ce7165Smrg    ac_cs_recheck=: ;;
595964ce7165Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5960fb23d3a8Smrg    $as_echo "$ac_cs_version"; exit ;;
5961169a0819Smrg  --config | --confi | --conf | --con | --co | --c )
5962169a0819Smrg    $as_echo "$ac_cs_config"; exit ;;
596364ce7165Smrg  --debug | --debu | --deb | --de | --d | -d )
596464ce7165Smrg    debug=: ;;
596564ce7165Smrg  --file | --fil | --fi | --f )
596664ce7165Smrg    $ac_shift
5967fb23d3a8Smrg    case $ac_optarg in
5968fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5969169a0819Smrg    '') as_fn_error $? "missing file argument" ;;
5970fb23d3a8Smrg    esac
5971169a0819Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
597264ce7165Smrg    ac_need_defaults=false;;
597364ce7165Smrg  --header | --heade | --head | --hea )
597464ce7165Smrg    $ac_shift
5975fb23d3a8Smrg    case $ac_optarg in
5976fb23d3a8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5977fb23d3a8Smrg    esac
5978169a0819Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
597964ce7165Smrg    ac_need_defaults=false;;
598064ce7165Smrg  --he | --h)
598164ce7165Smrg    # Conflict between --help and --header
5982169a0819Smrg    as_fn_error $? "ambiguous option: \`$1'
5983169a0819SmrgTry \`$0 --help' for more information.";;
598464ce7165Smrg  --help | --hel | -h )
5985fb23d3a8Smrg    $as_echo "$ac_cs_usage"; exit ;;
598664ce7165Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
598764ce7165Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
598864ce7165Smrg    ac_cs_silent=: ;;
598964ce7165Smrg
599064ce7165Smrg  # This is an error.
5991169a0819Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5992169a0819SmrgTry \`$0 --help' for more information." ;;
599364ce7165Smrg
5994169a0819Smrg  *) as_fn_append ac_config_targets " $1"
599564ce7165Smrg     ac_need_defaults=false ;;
599664ce7165Smrg
599764ce7165Smrg  esac
599864ce7165Smrg  shift
599964ce7165Smrgdone
600064ce7165Smrg
600164ce7165Smrgac_configure_extra_args=
600264ce7165Smrg
600364ce7165Smrgif $ac_cs_silent; then
600464ce7165Smrg  exec 6>/dev/null
600564ce7165Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
600664ce7165Smrgfi
600764ce7165Smrg
600864ce7165Smrg_ACEOF
6009fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
601064ce7165Smrgif \$ac_cs_recheck; then
6011fb23d3a8Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6012fb23d3a8Smrg  shift
6013fb23d3a8Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6014fb23d3a8Smrg  CONFIG_SHELL='$SHELL'
601564ce7165Smrg  export CONFIG_SHELL
6016fb23d3a8Smrg  exec "\$@"
601764ce7165Smrgfi
601864ce7165Smrg
601964ce7165Smrg_ACEOF
6020fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
602164ce7165Smrgexec 5>>config.log
602264ce7165Smrg{
602364ce7165Smrg  echo
602464ce7165Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
602564ce7165Smrg## Running $as_me. ##
602664ce7165Smrg_ASBOX
6027fb23d3a8Smrg  $as_echo "$ac_log"
602864ce7165Smrg} >&5
602964ce7165Smrg
603064ce7165Smrg_ACEOF
6031fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
603264ce7165Smrg#
603364ce7165Smrg# INIT-COMMANDS
603464ce7165Smrg#
603564ce7165SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
603664ce7165Smrg
603764ce7165Smrg_ACEOF
603864ce7165Smrg
6039fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
604064ce7165Smrg
604164ce7165Smrg# Handling of arguments.
604264ce7165Smrgfor ac_config_target in $ac_config_targets
604364ce7165Smrgdo
604464ce7165Smrg  case $ac_config_target in
604564ce7165Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
604664ce7165Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
604764ce7165Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
604864ce7165Smrg
6049169a0819Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
605064ce7165Smrg  esac
605164ce7165Smrgdone
605264ce7165Smrg
605364ce7165Smrg
605464ce7165Smrg# If the user did not use the arguments to specify the items to instantiate,
605564ce7165Smrg# then the envvar interface is used.  Set only those that are not.
605664ce7165Smrg# We use the long form for the default assignment because of an extremely
605764ce7165Smrg# bizarre bug on SunOS 4.1.3.
605864ce7165Smrgif $ac_need_defaults; then
605964ce7165Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
606064ce7165Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
606164ce7165Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
606264ce7165Smrgfi
606364ce7165Smrg
606464ce7165Smrg# Have a temporary directory for convenience.  Make it in the build tree
606564ce7165Smrg# simply because there is no reason against having it here, and in addition,
606664ce7165Smrg# creating and moving files from /tmp can sometimes cause problems.
606764ce7165Smrg# Hook for its removal unless debugging.
606864ce7165Smrg# Note that there is a small window in which the directory will not be cleaned:
606964ce7165Smrg# after its creation but before its name has been assigned to `$tmp'.
607064ce7165Smrg$debug ||
607164ce7165Smrg{
6072169a0819Smrg  tmp= ac_tmp=
607364ce7165Smrg  trap 'exit_status=$?
6074169a0819Smrg  : "${ac_tmp:=$tmp}"
6075169a0819Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
607664ce7165Smrg' 0
6077169a0819Smrg  trap 'as_fn_exit 1' 1 2 13 15
607864ce7165Smrg}
607964ce7165Smrg# Create a (secure) tmp directory for tmp files.
608064ce7165Smrg
608164ce7165Smrg{
608264ce7165Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6083169a0819Smrg  test -d "$tmp"
608464ce7165Smrg}  ||
608564ce7165Smrg{
608664ce7165Smrg  tmp=./conf$$-$RANDOM
608764ce7165Smrg  (umask 077 && mkdir "$tmp")
6088169a0819Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6089169a0819Smrgac_tmp=$tmp
609064ce7165Smrg
6091fb23d3a8Smrg# Set up the scripts for CONFIG_FILES section.
6092fb23d3a8Smrg# No need to generate them if there are no CONFIG_FILES.
6093fb23d3a8Smrg# This happens for instance with `./config.status config.h'.
609464ce7165Smrgif test -n "$CONFIG_FILES"; then
609564ce7165Smrg
609664ce7165Smrg
6097169a0819Smrgac_cr=`echo X | tr X '\015'`
6098169a0819Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
6099169a0819Smrg# But we know of no other shell where ac_cr would be empty at this
6100169a0819Smrg# point, so we can use a bashism as a fallback.
6101169a0819Smrgif test "x$ac_cr" = x; then
6102169a0819Smrg  eval ac_cr=\$\'\\r\'
6103169a0819Smrgfi
6104fb23d3a8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6105fb23d3a8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6106fb23d3a8Smrg  ac_cs_awk_cr='\\r'
6107fb23d3a8Smrgelse
6108fb23d3a8Smrg  ac_cs_awk_cr=$ac_cr
610964ce7165Smrgfi
611064ce7165Smrg
6111169a0819Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
611264ce7165Smrg_ACEOF
611364ce7165Smrg
611464ce7165Smrg
6115fb23d3a8Smrg{
6116fb23d3a8Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
6117fb23d3a8Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6118fb23d3a8Smrg  echo "_ACEOF"
6119fb23d3a8Smrg} >conf$$subs.sh ||
6120169a0819Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6121169a0819Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
612264ce7165Smrgac_delim='%!_!# '
612364ce7165Smrgfor ac_last_try in false false false false false :; do
6124fb23d3a8Smrg  . ./conf$$subs.sh ||
6125169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
612664ce7165Smrg
6127fb23d3a8Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6128fb23d3a8Smrg  if test $ac_delim_n = $ac_delim_num; then
612964ce7165Smrg    break
613064ce7165Smrg  elif $ac_last_try; then
6131169a0819Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
613264ce7165Smrg  else
613364ce7165Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
613464ce7165Smrg  fi
613564ce7165Smrgdone
6136fb23d3a8Smrgrm -f conf$$subs.sh
613764ce7165Smrg
6138fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6139169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6140fb23d3a8Smrg_ACEOF
6141fb23d3a8Smrgsed -n '
6142fb23d3a8Smrgh
6143fb23d3a8Smrgs/^/S["/; s/!.*/"]=/
6144fb23d3a8Smrgp
6145fb23d3a8Smrgg
6146fb23d3a8Smrgs/^[^!]*!//
6147fb23d3a8Smrg:repl
6148fb23d3a8Smrgt repl
6149fb23d3a8Smrgs/'"$ac_delim"'$//
6150fb23d3a8Smrgt delim
6151fb23d3a8Smrg:nl
6152fb23d3a8Smrgh
6153169a0819Smrgs/\(.\{148\}\)..*/\1/
6154fb23d3a8Smrgt more1
6155fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6156fb23d3a8Smrgp
6157fb23d3a8Smrgn
6158fb23d3a8Smrgb repl
6159fb23d3a8Smrg:more1
6160fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6161fb23d3a8Smrgp
6162fb23d3a8Smrgg
6163fb23d3a8Smrgs/.\{148\}//
6164fb23d3a8Smrgt nl
6165fb23d3a8Smrg:delim
6166fb23d3a8Smrgh
6167169a0819Smrgs/\(.\{148\}\)..*/\1/
6168fb23d3a8Smrgt more2
6169fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6170fb23d3a8Smrgp
6171fb23d3a8Smrgb
6172fb23d3a8Smrg:more2
6173fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6174fb23d3a8Smrgp
6175fb23d3a8Smrgg
6176fb23d3a8Smrgs/.\{148\}//
6177fb23d3a8Smrgt delim
6178fb23d3a8Smrg' <conf$$subs.awk | sed '
6179fb23d3a8Smrg/^[^""]/{
6180fb23d3a8Smrg  N
6181fb23d3a8Smrg  s/\n//
6182fb23d3a8Smrg}
6183fb23d3a8Smrg' >>$CONFIG_STATUS || ac_write_fail=1
6184fb23d3a8Smrgrm -f conf$$subs.awk
6185fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6186fb23d3a8Smrg_ACAWK
6187169a0819Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6188fb23d3a8Smrg  for (key in S) S_is_set[key] = 1
6189fb23d3a8Smrg  FS = ""
6190fb23d3a8Smrg
6191fb23d3a8Smrg}
6192fb23d3a8Smrg{
6193fb23d3a8Smrg  line = $ 0
6194fb23d3a8Smrg  nfields = split(line, field, "@")
6195fb23d3a8Smrg  substed = 0
6196fb23d3a8Smrg  len = length(field[1])
6197fb23d3a8Smrg  for (i = 2; i < nfields; i++) {
6198fb23d3a8Smrg    key = field[i]
6199fb23d3a8Smrg    keylen = length(key)
6200fb23d3a8Smrg    if (S_is_set[key]) {
6201fb23d3a8Smrg      value = S[key]
6202fb23d3a8Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6203fb23d3a8Smrg      len += length(value) + length(field[++i])
6204fb23d3a8Smrg      substed = 1
6205fb23d3a8Smrg    } else
6206fb23d3a8Smrg      len += 1 + keylen
6207fb23d3a8Smrg  }
6208fb23d3a8Smrg
6209fb23d3a8Smrg  print line
6210fb23d3a8Smrg}
621164ce7165Smrg
6212fb23d3a8Smrg_ACAWK
621364ce7165Smrg_ACEOF
6214fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6215fb23d3a8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6216fb23d3a8Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6217fb23d3a8Smrgelse
6218fb23d3a8Smrg  cat
6219169a0819Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6220169a0819Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
622164ce7165Smrg_ACEOF
622264ce7165Smrg
6223169a0819Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6224169a0819Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
622564ce7165Smrg# trailing colons and then remove the whole line if VPATH becomes empty
622664ce7165Smrg# (actually we leave an empty line to preserve line numbers).
622764ce7165Smrgif test "x$srcdir" = x.; then
6228169a0819Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6229169a0819Smrgh
6230169a0819Smrgs///
6231169a0819Smrgs/^/:/
6232169a0819Smrgs/[	 ]*$/:/
6233169a0819Smrgs/:\$(srcdir):/:/g
6234169a0819Smrgs/:\${srcdir}:/:/g
6235169a0819Smrgs/:@srcdir@:/:/g
6236169a0819Smrgs/^:*//
623764ce7165Smrgs/:*$//
6238169a0819Smrgx
6239169a0819Smrgs/\(=[	 ]*\).*/\1/
6240169a0819SmrgG
6241169a0819Smrgs/\n//
624264ce7165Smrgs/^[^=]*=[	 ]*$//
624364ce7165Smrg}'
624464ce7165Smrgfi
624564ce7165Smrg
6246fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
624764ce7165Smrgfi # test -n "$CONFIG_FILES"
624864ce7165Smrg
6249fb23d3a8Smrg# Set up the scripts for CONFIG_HEADERS section.
6250fb23d3a8Smrg# No need to generate them if there are no CONFIG_HEADERS.
6251fb23d3a8Smrg# This happens for instance with `./config.status Makefile'.
6252fb23d3a8Smrgif test -n "$CONFIG_HEADERS"; then
6253169a0819Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6254fb23d3a8SmrgBEGIN {
6255fb23d3a8Smrg_ACEOF
6256fb23d3a8Smrg
6257fb23d3a8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6258fb23d3a8Smrg# here-document in config.status, that substitutes the proper values into
6259fb23d3a8Smrg# config.h.in to produce config.h.
6260fb23d3a8Smrg
6261fb23d3a8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6262fb23d3a8Smrg# handling of long lines.
6263fb23d3a8Smrgac_delim='%!_!# '
6264fb23d3a8Smrgfor ac_last_try in false false :; do
6265169a0819Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6266169a0819Smrg  if test -z "$ac_tt"; then
6267fb23d3a8Smrg    break
6268fb23d3a8Smrg  elif $ac_last_try; then
6269169a0819Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6270fb23d3a8Smrg  else
6271fb23d3a8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6272fb23d3a8Smrg  fi
6273fb23d3a8Smrgdone
6274fb23d3a8Smrg
6275fb23d3a8Smrg# For the awk script, D is an array of macro values keyed by name,
6276fb23d3a8Smrg# likewise P contains macro parameters if any.  Preserve backslash
6277fb23d3a8Smrg# newline sequences.
6278fb23d3a8Smrg
6279fb23d3a8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6280fb23d3a8Smrgsed -n '
6281fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
6282fb23d3a8Smrgt rset
6283fb23d3a8Smrg:rset
6284fb23d3a8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6285fb23d3a8Smrgt def
6286fb23d3a8Smrgd
6287fb23d3a8Smrg:def
6288fb23d3a8Smrgs/\\$//
6289fb23d3a8Smrgt bsnl
6290fb23d3a8Smrgs/["\\]/\\&/g
6291fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6292fb23d3a8SmrgD["\1"]=" \3"/p
6293fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6294fb23d3a8Smrgd
6295fb23d3a8Smrg:bsnl
6296fb23d3a8Smrgs/["\\]/\\&/g
6297fb23d3a8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6298fb23d3a8SmrgD["\1"]=" \3\\\\\\n"\\/p
6299fb23d3a8Smrgt cont
6300fb23d3a8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6301fb23d3a8Smrgt cont
6302fb23d3a8Smrgd
6303fb23d3a8Smrg:cont
6304fb23d3a8Smrgn
6305fb23d3a8Smrgs/.\{148\}/&'"$ac_delim"'/g
6306fb23d3a8Smrgt clear
6307fb23d3a8Smrg:clear
6308fb23d3a8Smrgs/\\$//
6309fb23d3a8Smrgt bsnlc
6310fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6311fb23d3a8Smrgd
6312fb23d3a8Smrg:bsnlc
6313fb23d3a8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6314fb23d3a8Smrgb cont
6315fb23d3a8Smrg' <confdefs.h | sed '
6316fb23d3a8Smrgs/'"$ac_delim"'/"\\\
6317fb23d3a8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6318fb23d3a8Smrg
6319fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6320fb23d3a8Smrg  for (key in D) D_is_set[key] = 1
6321fb23d3a8Smrg  FS = ""
6322fb23d3a8Smrg}
6323fb23d3a8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6324fb23d3a8Smrg  line = \$ 0
6325fb23d3a8Smrg  split(line, arg, " ")
6326fb23d3a8Smrg  if (arg[1] == "#") {
6327fb23d3a8Smrg    defundef = arg[2]
6328fb23d3a8Smrg    mac1 = arg[3]
6329fb23d3a8Smrg  } else {
6330fb23d3a8Smrg    defundef = substr(arg[1], 2)
6331fb23d3a8Smrg    mac1 = arg[2]
6332fb23d3a8Smrg  }
6333fb23d3a8Smrg  split(mac1, mac2, "(") #)
6334fb23d3a8Smrg  macro = mac2[1]
6335fb23d3a8Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6336fb23d3a8Smrg  if (D_is_set[macro]) {
6337fb23d3a8Smrg    # Preserve the white space surrounding the "#".
6338fb23d3a8Smrg    print prefix "define", macro P[macro] D[macro]
6339fb23d3a8Smrg    next
6340fb23d3a8Smrg  } else {
6341fb23d3a8Smrg    # Replace #undef with comments.  This is necessary, for example,
6342fb23d3a8Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6343fb23d3a8Smrg    # on some systems where configure will not decide to define it.
6344fb23d3a8Smrg    if (defundef == "undef") {
6345fb23d3a8Smrg      print "/*", prefix defundef, macro, "*/"
6346fb23d3a8Smrg      next
6347fb23d3a8Smrg    }
6348fb23d3a8Smrg  }
6349fb23d3a8Smrg}
6350fb23d3a8Smrg{ print }
6351fb23d3a8Smrg_ACAWK
6352fb23d3a8Smrg_ACEOF
6353fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354169a0819Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6355fb23d3a8Smrgfi # test -n "$CONFIG_HEADERS"
6356fb23d3a8Smrg
635764ce7165Smrg
6358fb23d3a8Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6359fb23d3a8Smrgshift
6360fb23d3a8Smrgfor ac_tag
636164ce7165Smrgdo
636264ce7165Smrg  case $ac_tag in
636364ce7165Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
636464ce7165Smrg  esac
636564ce7165Smrg  case $ac_mode$ac_tag in
636664ce7165Smrg  :[FHL]*:*);;
6367169a0819Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
636864ce7165Smrg  :[FH]-) ac_tag=-:-;;
636964ce7165Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
637064ce7165Smrg  esac
637164ce7165Smrg  ac_save_IFS=$IFS
637264ce7165Smrg  IFS=:
637364ce7165Smrg  set x $ac_tag
637464ce7165Smrg  IFS=$ac_save_IFS
637564ce7165Smrg  shift
637664ce7165Smrg  ac_file=$1
637764ce7165Smrg  shift
637864ce7165Smrg
637964ce7165Smrg  case $ac_mode in
638064ce7165Smrg  :L) ac_source=$1;;
638164ce7165Smrg  :[FH])
638264ce7165Smrg    ac_file_inputs=
638364ce7165Smrg    for ac_f
638464ce7165Smrg    do
638564ce7165Smrg      case $ac_f in
6386169a0819Smrg      -) ac_f="$ac_tmp/stdin";;
638764ce7165Smrg      *) # Look for the file first in the build tree, then in the source tree
638864ce7165Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
638964ce7165Smrg	 # because $ac_f cannot contain `:'.
639064ce7165Smrg	 test -f "$ac_f" ||
639164ce7165Smrg	   case $ac_f in
639264ce7165Smrg	   [\\/$]*) false;;
639364ce7165Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
639464ce7165Smrg	   esac ||
6395169a0819Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
639664ce7165Smrg      esac
6397fb23d3a8Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6398169a0819Smrg      as_fn_append ac_file_inputs " '$ac_f'"
639964ce7165Smrg    done
640064ce7165Smrg
640164ce7165Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
640264ce7165Smrg    # use $as_me), people would be surprised to read:
640364ce7165Smrg    #    /* config.h.  Generated by config.status.  */
6404fb23d3a8Smrg    configure_input='Generated from '`
6405fb23d3a8Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6406fb23d3a8Smrg	`' by configure.'
640764ce7165Smrg    if test x"$ac_file" != x-; then
640864ce7165Smrg      configure_input="$ac_file.  $configure_input"
6409169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6410fb23d3a8Smrg$as_echo "$as_me: creating $ac_file" >&6;}
641164ce7165Smrg    fi
6412fb23d3a8Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6413fb23d3a8Smrg    case $configure_input in #(
6414fb23d3a8Smrg    *\&* | *\|* | *\\* )
6415fb23d3a8Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6416fb23d3a8Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6417fb23d3a8Smrg    *) ac_sed_conf_input=$configure_input;;
6418fb23d3a8Smrg    esac
641964ce7165Smrg
642064ce7165Smrg    case $ac_tag in
6421169a0819Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6422169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
642364ce7165Smrg    esac
642464ce7165Smrg    ;;
642564ce7165Smrg  esac
642664ce7165Smrg
642764ce7165Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
642864ce7165Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
642964ce7165Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
643064ce7165Smrg	 X"$ac_file" : 'X\(//\)$' \| \
643164ce7165Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6432fb23d3a8Smrg$as_echo X"$ac_file" |
643364ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
643464ce7165Smrg	    s//\1/
643564ce7165Smrg	    q
643664ce7165Smrg	  }
643764ce7165Smrg	  /^X\(\/\/\)[^/].*/{
643864ce7165Smrg	    s//\1/
643964ce7165Smrg	    q
644064ce7165Smrg	  }
644164ce7165Smrg	  /^X\(\/\/\)$/{
644264ce7165Smrg	    s//\1/
644364ce7165Smrg	    q
644464ce7165Smrg	  }
644564ce7165Smrg	  /^X\(\/\).*/{
644664ce7165Smrg	    s//\1/
644764ce7165Smrg	    q
644864ce7165Smrg	  }
644964ce7165Smrg	  s/.*/./; q'`
6450169a0819Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
645164ce7165Smrg  ac_builddir=.
645264ce7165Smrg
645364ce7165Smrgcase "$ac_dir" in
645464ce7165Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
645564ce7165Smrg*)
6456fb23d3a8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
645764ce7165Smrg  # A ".." for each directory in $ac_dir_suffix.
6458fb23d3a8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
645964ce7165Smrg  case $ac_top_builddir_sub in
646064ce7165Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
646164ce7165Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
646264ce7165Smrg  esac ;;
646364ce7165Smrgesac
646464ce7165Smrgac_abs_top_builddir=$ac_pwd
646564ce7165Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
646664ce7165Smrg# for backward compatibility:
646764ce7165Smrgac_top_builddir=$ac_top_build_prefix
646864ce7165Smrg
646964ce7165Smrgcase $srcdir in
647064ce7165Smrg  .)  # We are building in place.
647164ce7165Smrg    ac_srcdir=.
647264ce7165Smrg    ac_top_srcdir=$ac_top_builddir_sub
647364ce7165Smrg    ac_abs_top_srcdir=$ac_pwd ;;
647464ce7165Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
647564ce7165Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
647664ce7165Smrg    ac_top_srcdir=$srcdir
647764ce7165Smrg    ac_abs_top_srcdir=$srcdir ;;
647864ce7165Smrg  *) # Relative name.
647964ce7165Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
648064ce7165Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
648164ce7165Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
648264ce7165Smrgesac
648364ce7165Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
648464ce7165Smrg
648564ce7165Smrg
648664ce7165Smrg  case $ac_mode in
648764ce7165Smrg  :F)
648864ce7165Smrg  #
648964ce7165Smrg  # CONFIG_FILE
649064ce7165Smrg  #
649164ce7165Smrg
649264ce7165Smrg  case $INSTALL in
649364ce7165Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
649464ce7165Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
649564ce7165Smrg  esac
649664ce7165Smrg  ac_MKDIR_P=$MKDIR_P
649764ce7165Smrg  case $MKDIR_P in
649864ce7165Smrg  [\\/$]* | ?:[\\/]* ) ;;
649964ce7165Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
650064ce7165Smrg  esac
650164ce7165Smrg_ACEOF
650264ce7165Smrg
6503fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
650464ce7165Smrg# If the template does not know about datarootdir, expand it.
650564ce7165Smrg# FIXME: This hack should be removed a few years after 2.60.
650664ce7165Smrgac_datarootdir_hack=; ac_datarootdir_seen=
6507fb23d3a8Smrgac_sed_dataroot='
6508fb23d3a8Smrg/datarootdir/ {
650964ce7165Smrg  p
651064ce7165Smrg  q
651164ce7165Smrg}
651264ce7165Smrg/@datadir@/p
651364ce7165Smrg/@docdir@/p
651464ce7165Smrg/@infodir@/p
651564ce7165Smrg/@localedir@/p
6516169a0819Smrg/@mandir@/p'
6517fb23d3a8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
651864ce7165Smrg*datarootdir*) ac_datarootdir_seen=yes;;
651964ce7165Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6520169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6521fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
652264ce7165Smrg_ACEOF
6523fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
652464ce7165Smrg  ac_datarootdir_hack='
652564ce7165Smrg  s&@datadir@&$datadir&g
652664ce7165Smrg  s&@docdir@&$docdir&g
652764ce7165Smrg  s&@infodir@&$infodir&g
652864ce7165Smrg  s&@localedir@&$localedir&g
652964ce7165Smrg  s&@mandir@&$mandir&g
6530169a0819Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
653164ce7165Smrgesac
653264ce7165Smrg_ACEOF
653364ce7165Smrg
653464ce7165Smrg# Neutralize VPATH when `$srcdir' = `.'.
653564ce7165Smrg# Shell code in configure.ac might set extrasub.
653664ce7165Smrg# FIXME: do we really want to maintain this feature?
6537fb23d3a8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6538fb23d3a8Smrgac_sed_extra="$ac_vpsub
653964ce7165Smrg$extrasub
654064ce7165Smrg_ACEOF
6541fb23d3a8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
654264ce7165Smrg:t
654364ce7165Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6544fb23d3a8Smrgs|@configure_input@|$ac_sed_conf_input|;t t
654564ce7165Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6546fb23d3a8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
654764ce7165Smrgs&@srcdir@&$ac_srcdir&;t t
654864ce7165Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
654964ce7165Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
655064ce7165Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
655164ce7165Smrgs&@builddir@&$ac_builddir&;t t
655264ce7165Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
655364ce7165Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
655464ce7165Smrgs&@INSTALL@&$ac_INSTALL&;t t
655564ce7165Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
655664ce7165Smrg$ac_datarootdir_hack
6557fb23d3a8Smrg"
6558169a0819Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6559169a0819Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
656064ce7165Smrg
656164ce7165Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6562169a0819Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6563169a0819Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6564169a0819Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6565169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6566169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
6567fb23d3a8Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6568169a0819Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
656964ce7165Smrg
6570169a0819Smrg  rm -f "$ac_tmp/stdin"
657164ce7165Smrg  case $ac_file in
6572169a0819Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6573169a0819Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6574fb23d3a8Smrg  esac \
6575169a0819Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
657664ce7165Smrg ;;
657764ce7165Smrg  :H)
657864ce7165Smrg  #
657964ce7165Smrg  # CONFIG_HEADER
658064ce7165Smrg  #
658164ce7165Smrg  if test x"$ac_file" != x-; then
6582fb23d3a8Smrg    {
6583fb23d3a8Smrg      $as_echo "/* $configure_input  */" \
6584169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6585169a0819Smrg    } >"$ac_tmp/config.h" \
6586169a0819Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6587169a0819Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6588169a0819Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6589fb23d3a8Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
659064ce7165Smrg    else
6591fb23d3a8Smrg      rm -f "$ac_file"
6592169a0819Smrg      mv "$ac_tmp/config.h" "$ac_file" \
6593169a0819Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
659464ce7165Smrg    fi
659564ce7165Smrg  else
6596fb23d3a8Smrg    $as_echo "/* $configure_input  */" \
6597169a0819Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6598169a0819Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
659964ce7165Smrg  fi
6600fb23d3a8Smrg# Compute "$ac_file"'s index in $config_headers.
6601fb23d3a8Smrg_am_arg="$ac_file"
660264ce7165Smrg_am_stamp_count=1
660364ce7165Smrgfor _am_header in $config_headers :; do
660464ce7165Smrg  case $_am_header in
6605fb23d3a8Smrg    $_am_arg | $_am_arg:* )
660664ce7165Smrg      break ;;
660764ce7165Smrg    * )
660864ce7165Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
660964ce7165Smrg  esac
661064ce7165Smrgdone
6611fb23d3a8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6612fb23d3a8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6613fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6614fb23d3a8Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6615fb23d3a8Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6616fb23d3a8Smrg$as_echo X"$_am_arg" |
661764ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
661864ce7165Smrg	    s//\1/
661964ce7165Smrg	    q
662064ce7165Smrg	  }
662164ce7165Smrg	  /^X\(\/\/\)[^/].*/{
662264ce7165Smrg	    s//\1/
662364ce7165Smrg	    q
662464ce7165Smrg	  }
662564ce7165Smrg	  /^X\(\/\/\)$/{
662664ce7165Smrg	    s//\1/
662764ce7165Smrg	    q
662864ce7165Smrg	  }
662964ce7165Smrg	  /^X\(\/\).*/{
663064ce7165Smrg	    s//\1/
663164ce7165Smrg	    q
663264ce7165Smrg	  }
663364ce7165Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
663464ce7165Smrg ;;
663564ce7165Smrg
6636169a0819Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6637fb23d3a8Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
663864ce7165Smrg ;;
663964ce7165Smrg  esac
664064ce7165Smrg
664164ce7165Smrg
664264ce7165Smrg  case $ac_file$ac_mode in
6643fb23d3a8Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6644fb23d3a8Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6645fb23d3a8Smrg  # are listed without --file.  Let's play safe and only enable the eval
6646fb23d3a8Smrg  # if we detect the quoting.
6647fb23d3a8Smrg  case $CONFIG_FILES in
6648fb23d3a8Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6649fb23d3a8Smrg  *)   set x $CONFIG_FILES ;;
6650fb23d3a8Smrg  esac
6651fb23d3a8Smrg  shift
6652fb23d3a8Smrg  for mf
6653fb23d3a8Smrg  do
6654fb23d3a8Smrg    # Strip MF so we end up with the name of the file.
6655fb23d3a8Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6656fb23d3a8Smrg    # Check whether this is an Automake generated Makefile or not.
6657fb23d3a8Smrg    # We used to match only the files named `Makefile.in', but
6658fb23d3a8Smrg    # some people rename them; so instead we look at the file content.
6659fb23d3a8Smrg    # Grep'ing the first line is not enough: some people post-process
6660fb23d3a8Smrg    # each Makefile.in and add a new line on top of each file to say so.
6661fb23d3a8Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6662fb23d3a8Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6663fb23d3a8Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6664fb23d3a8Smrg      dirpart=`$as_dirname -- "$mf" ||
666564ce7165Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
666664ce7165Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
666764ce7165Smrg	 X"$mf" : 'X\(//\)$' \| \
666864ce7165Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6669fb23d3a8Smrg$as_echo X"$mf" |
667064ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
667164ce7165Smrg	    s//\1/
667264ce7165Smrg	    q
667364ce7165Smrg	  }
667464ce7165Smrg	  /^X\(\/\/\)[^/].*/{
667564ce7165Smrg	    s//\1/
667664ce7165Smrg	    q
667764ce7165Smrg	  }
667864ce7165Smrg	  /^X\(\/\/\)$/{
667964ce7165Smrg	    s//\1/
668064ce7165Smrg	    q
668164ce7165Smrg	  }
668264ce7165Smrg	  /^X\(\/\).*/{
668364ce7165Smrg	    s//\1/
668464ce7165Smrg	    q
668564ce7165Smrg	  }
668664ce7165Smrg	  s/.*/./; q'`
6687fb23d3a8Smrg    else
6688fb23d3a8Smrg      continue
6689fb23d3a8Smrg    fi
6690fb23d3a8Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6691fb23d3a8Smrg    # from the Makefile without running `make'.
6692fb23d3a8Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6693fb23d3a8Smrg    test -z "$DEPDIR" && continue
6694fb23d3a8Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6695fb23d3a8Smrg    test -z "am__include" && continue
6696fb23d3a8Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6697fb23d3a8Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6698fb23d3a8Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6699fb23d3a8Smrg    # Find all dependency output files, they are included files with
6700fb23d3a8Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6701fb23d3a8Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6702fb23d3a8Smrg    # expansion.
6703fb23d3a8Smrg    for file in `sed -n "
6704fb23d3a8Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6705fb23d3a8Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6706fb23d3a8Smrg      # Make sure the directory exists.
6707fb23d3a8Smrg      test -f "$dirpart/$file" && continue
6708fb23d3a8Smrg      fdir=`$as_dirname -- "$file" ||
670964ce7165Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
671064ce7165Smrg	 X"$file" : 'X\(//\)[^/]' \| \
671164ce7165Smrg	 X"$file" : 'X\(//\)$' \| \
671264ce7165Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6713fb23d3a8Smrg$as_echo X"$file" |
671464ce7165Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
671564ce7165Smrg	    s//\1/
671664ce7165Smrg	    q
671764ce7165Smrg	  }
671864ce7165Smrg	  /^X\(\/\/\)[^/].*/{
671964ce7165Smrg	    s//\1/
672064ce7165Smrg	    q
672164ce7165Smrg	  }
672264ce7165Smrg	  /^X\(\/\/\)$/{
672364ce7165Smrg	    s//\1/
672464ce7165Smrg	    q
672564ce7165Smrg	  }
672664ce7165Smrg	  /^X\(\/\).*/{
672764ce7165Smrg	    s//\1/
672864ce7165Smrg	    q
672964ce7165Smrg	  }
673064ce7165Smrg	  s/.*/./; q'`
6731169a0819Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6732fb23d3a8Smrg      # echo "creating $dirpart/$file"
6733fb23d3a8Smrg      echo '# dummy' > "$dirpart/$file"
6734fb23d3a8Smrg    done
673564ce7165Smrg  done
6736fb23d3a8Smrg}
673764ce7165Smrg ;;
673864ce7165Smrg
673964ce7165Smrg  esac
674064ce7165Smrgdone # for ac_tag
674164ce7165Smrg
674264ce7165Smrg
6743169a0819Smrgas_fn_exit 0
674464ce7165Smrg_ACEOF
674564ce7165Smrgac_clean_files=$ac_clean_files_save
674664ce7165Smrg
6747fb23d3a8Smrgtest $ac_write_fail = 0 ||
6748169a0819Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6749fb23d3a8Smrg
675064ce7165Smrg
675164ce7165Smrg# configure is writing to config.log, and then calls config.status.
675264ce7165Smrg# config.status does its own redirection, appending to config.log.
675364ce7165Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
675464ce7165Smrg# by configure, so config.status won't be able to write to it; its
675564ce7165Smrg# output is simply discarded.  So we exec the FD to /dev/null,
675664ce7165Smrg# effectively closing config.log, so it can be properly (re)opened and
675764ce7165Smrg# appended to by config.status.  When coming back to configure, we
675864ce7165Smrg# need to make the FD available again.
675964ce7165Smrgif test "$no_create" != yes; then
676064ce7165Smrg  ac_cs_success=:
676164ce7165Smrg  ac_config_status_args=
676264ce7165Smrg  test "$silent" = yes &&
676364ce7165Smrg    ac_config_status_args="$ac_config_status_args --quiet"
676464ce7165Smrg  exec 5>/dev/null
676564ce7165Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
676664ce7165Smrg  exec 5>>config.log
676764ce7165Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
676864ce7165Smrg  # would make configure fail if this is the last instruction.
6769169a0819Smrg  $ac_cs_success || as_fn_exit 1
677064ce7165Smrgfi
6771fb23d3a8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6772169a0819Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6773fb23d3a8Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6774fb23d3a8Smrgfi
677564ce7165Smrg
6776