configure revision 576bae58
114c0a534Smrg#! /bin/sh
214c0a534Smrg# Guess values for system-dependent variables and create Makefiles.
3576bae58Smrg# Generated by GNU Autoconf 2.68 for smproxy 1.0.4.
414c0a534Smrg#
514c0a534Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
614c0a534Smrg#
7576bae58Smrg#
8bf2eeab3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9576bae58Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10576bae58Smrg# Foundation, Inc.
11576bae58Smrg#
12576bae58Smrg#
1314c0a534Smrg# This configure script is free software; the Free Software Foundation
1414c0a534Smrg# gives unlimited permission to copy, distribute and modify it.
15576bae58Smrg## -------------------- ##
16576bae58Smrg## M4sh Initialization. ##
17576bae58Smrg## -------------------- ##
1814c0a534Smrg
19bf2eeab3Smrg# Be more Bourne compatible
20bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh
21576bae58Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2214c0a534Smrg  emulate sh
2314c0a534Smrg  NULLCMD=:
24bf2eeab3Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2514c0a534Smrg  # is contrary to our usage.  Disable this feature.
2614c0a534Smrg  alias -g '${1+"$@"}'='"$@"'
27bf2eeab3Smrg  setopt NO_GLOB_SUBST
28bf2eeab3Smrgelse
29576bae58Smrg  case `(set -o) 2>/dev/null` in #(
30576bae58Smrg  *posix*) :
31576bae58Smrg    set -o posix ;; #(
32576bae58Smrg  *) :
33576bae58Smrg     ;;
34bf2eeab3Smrgesac
35bf2eeab3Smrgfi
36bf2eeab3Smrg
37bf2eeab3Smrg
38bf2eeab3Smrgas_nl='
39bf2eeab3Smrg'
40bf2eeab3Smrgexport as_nl
41bf2eeab3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42bf2eeab3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45576bae58Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46576bae58Smrg# but without wasting forks for bash or zsh.
47576bae58Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48576bae58Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49576bae58Smrg  as_echo='print -r --'
50576bae58Smrg  as_echo_n='print -rn --'
51576bae58Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52bf2eeab3Smrg  as_echo='printf %s\n'
53bf2eeab3Smrg  as_echo_n='printf %s'
54bf2eeab3Smrgelse
55bf2eeab3Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56bf2eeab3Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57bf2eeab3Smrg    as_echo_n='/usr/ucb/echo -n'
58bf2eeab3Smrg  else
59bf2eeab3Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60bf2eeab3Smrg    as_echo_n_body='eval
61bf2eeab3Smrg      arg=$1;
62576bae58Smrg      case $arg in #(
63bf2eeab3Smrg      *"$as_nl"*)
64bf2eeab3Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65bf2eeab3Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66bf2eeab3Smrg      esac;
67bf2eeab3Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68bf2eeab3Smrg    '
69bf2eeab3Smrg    export as_echo_n_body
70bf2eeab3Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71bf2eeab3Smrg  fi
72bf2eeab3Smrg  export as_echo_body
73bf2eeab3Smrg  as_echo='sh -c $as_echo_body as_echo'
74bf2eeab3Smrgfi
75bf2eeab3Smrg
76bf2eeab3Smrg# The user is always right.
77bf2eeab3Smrgif test "${PATH_SEPARATOR+set}" != set; then
78bf2eeab3Smrg  PATH_SEPARATOR=:
79bf2eeab3Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80bf2eeab3Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81bf2eeab3Smrg      PATH_SEPARATOR=';'
82bf2eeab3Smrg  }
8314c0a534Smrgfi
8414c0a534Smrg
8514c0a534Smrg
86bf2eeab3Smrg# IFS
87bf2eeab3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88bf2eeab3Smrg# there to prevent editors from complaining about space-tab.
89bf2eeab3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90bf2eeab3Smrg# splitting by setting IFS to empty value.)
91bf2eeab3SmrgIFS=" ""	$as_nl"
92bf2eeab3Smrg
93bf2eeab3Smrg# Find who we are.  Look in the path if we contain no directory separator.
94576bae58Smrgas_myself=
95576bae58Smrgcase $0 in #((
96bf2eeab3Smrg  *[\\/]* ) as_myself=$0 ;;
97bf2eeab3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98bf2eeab3Smrgfor as_dir in $PATH
99bf2eeab3Smrgdo
100bf2eeab3Smrg  IFS=$as_save_IFS
101bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
102576bae58Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103576bae58Smrg  done
104bf2eeab3SmrgIFS=$as_save_IFS
105bf2eeab3Smrg
106bf2eeab3Smrg     ;;
107bf2eeab3Smrgesac
108bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109bf2eeab3Smrg# in which case we are not to be found in the path.
110bf2eeab3Smrgif test "x$as_myself" = x; then
111bf2eeab3Smrg  as_myself=$0
112bf2eeab3Smrgfi
113bf2eeab3Smrgif test ! -f "$as_myself"; then
114bf2eeab3Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115576bae58Smrg  exit 1
116bf2eeab3Smrgfi
117bf2eeab3Smrg
118576bae58Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119576bae58Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120576bae58Smrg# suppresses any "Segmentation fault" message there.  '((' could
121576bae58Smrg# trigger a bug in pdksh 5.2.14.
122576bae58Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123576bae58Smrgdo eval test x\${$as_var+set} = xset \
124576bae58Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125bf2eeab3Smrgdone
12614c0a534SmrgPS1='$ '
12714c0a534SmrgPS2='> '
12814c0a534SmrgPS4='+ '
12914c0a534Smrg
13014c0a534Smrg# NLS nuisances.
131bf2eeab3SmrgLC_ALL=C
132bf2eeab3Smrgexport LC_ALL
133bf2eeab3SmrgLANGUAGE=C
134bf2eeab3Smrgexport LANGUAGE
13514c0a534Smrg
136576bae58Smrg# CDPATH.
137576bae58Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138576bae58Smrg
139576bae58Smrgif test "x$CONFIG_SHELL" = x; then
140576bae58Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141576bae58Smrg  emulate sh
142576bae58Smrg  NULLCMD=:
143576bae58Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144576bae58Smrg  # is contrary to our usage.  Disable this feature.
145576bae58Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146576bae58Smrg  setopt NO_GLOB_SUBST
147576bae58Smrgelse
148576bae58Smrg  case \`(set -o) 2>/dev/null\` in #(
149576bae58Smrg  *posix*) :
150576bae58Smrg    set -o posix ;; #(
151576bae58Smrg  *) :
152576bae58Smrg     ;;
153576bae58Smrgesac
154576bae58Smrgfi
155576bae58Smrg"
156576bae58Smrg  as_required="as_fn_return () { (exit \$1); }
157576bae58Smrgas_fn_success () { as_fn_return 0; }
158576bae58Smrgas_fn_failure () { as_fn_return 1; }
159576bae58Smrgas_fn_ret_success () { return 0; }
160576bae58Smrgas_fn_ret_failure () { return 1; }
161576bae58Smrg
162576bae58Smrgexitcode=0
163576bae58Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164576bae58Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165576bae58Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166576bae58Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167576bae58Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168576bae58Smrg
169576bae58Smrgelse
170576bae58Smrg  exitcode=1; echo positional parameters were not saved.
171576bae58Smrgfi
172576bae58Smrgtest x\$exitcode = x0 || exit 1"
173576bae58Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174576bae58Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175576bae58Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176576bae58Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177576bae58Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178576bae58Smrg  if (eval "$as_required") 2>/dev/null; then :
179576bae58Smrg  as_have_required=yes
180576bae58Smrgelse
181576bae58Smrg  as_have_required=no
182576bae58Smrgfi
183576bae58Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184576bae58Smrg
185576bae58Smrgelse
186576bae58Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187576bae58Smrgas_found=false
188576bae58Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189576bae58Smrgdo
190576bae58Smrg  IFS=$as_save_IFS
191576bae58Smrg  test -z "$as_dir" && as_dir=.
192576bae58Smrg  as_found=:
193576bae58Smrg  case $as_dir in #(
194576bae58Smrg	 /*)
195576bae58Smrg	   for as_base in sh bash ksh sh5; do
196576bae58Smrg	     # Try only shells that exist, to save several forks.
197576bae58Smrg	     as_shell=$as_dir/$as_base
198576bae58Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199576bae58Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200576bae58Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201576bae58Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202576bae58Smrg  break 2
203576bae58Smrgfi
204576bae58Smrgfi
205576bae58Smrg	   done;;
206576bae58Smrg       esac
207576bae58Smrg  as_found=false
208576bae58Smrgdone
209576bae58Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210576bae58Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211576bae58Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212576bae58Smrgfi; }
213576bae58SmrgIFS=$as_save_IFS
214576bae58Smrg
215576bae58Smrg
216576bae58Smrg      if test "x$CONFIG_SHELL" != x; then :
217576bae58Smrg  # We cannot yet assume a decent shell, so we have to provide a
218576bae58Smrg	# neutralization value for shells without unset; and this also
219576bae58Smrg	# works around shells that cannot unset nonexistent variables.
220576bae58Smrg	# Preserve -v and -x to the replacement shell.
221576bae58Smrg	BASH_ENV=/dev/null
222576bae58Smrg	ENV=/dev/null
223576bae58Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224576bae58Smrg	export CONFIG_SHELL
225576bae58Smrg	case $- in # ((((
226576bae58Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227576bae58Smrg	  *v* ) as_opts=-v ;;
228576bae58Smrg	  *x* ) as_opts=-x ;;
229576bae58Smrg	  * ) as_opts= ;;
230576bae58Smrg	esac
231576bae58Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232576bae58Smrgfi
233576bae58Smrg
234576bae58Smrg    if test x$as_have_required = xno; then :
235576bae58Smrg  $as_echo "$0: This script requires a shell more modern than all"
236576bae58Smrg  $as_echo "$0: the shells that I found on your system."
237576bae58Smrg  if test x${ZSH_VERSION+set} = xset ; then
238576bae58Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239576bae58Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240576bae58Smrg  else
241576bae58Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242576bae58Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243576bae58Smrg$0: about your system, including any error possibly output
244576bae58Smrg$0: before this message. Then install a modern shell, or
245576bae58Smrg$0: manually run the script under such a shell if you do
246576bae58Smrg$0: have one."
247576bae58Smrg  fi
248576bae58Smrg  exit 1
249576bae58Smrgfi
250576bae58Smrgfi
251576bae58Smrgfi
252576bae58SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253576bae58Smrgexport SHELL
254576bae58Smrg# Unset more variables known to interfere with behavior of common tools.
255576bae58SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256576bae58Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257576bae58Smrg
258576bae58Smrg## --------------------- ##
259576bae58Smrg## M4sh Shell Functions. ##
260576bae58Smrg## --------------------- ##
261576bae58Smrg# as_fn_unset VAR
262576bae58Smrg# ---------------
263576bae58Smrg# Portably unset VAR.
264576bae58Smrgas_fn_unset ()
265576bae58Smrg{
266576bae58Smrg  { eval $1=; unset $1;}
267576bae58Smrg}
268576bae58Smrgas_unset=as_fn_unset
269576bae58Smrg
270576bae58Smrg# as_fn_set_status STATUS
271576bae58Smrg# -----------------------
272576bae58Smrg# Set $? to STATUS, without forking.
273576bae58Smrgas_fn_set_status ()
274576bae58Smrg{
275576bae58Smrg  return $1
276576bae58Smrg} # as_fn_set_status
277576bae58Smrg
278576bae58Smrg# as_fn_exit STATUS
279576bae58Smrg# -----------------
280576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281576bae58Smrgas_fn_exit ()
282576bae58Smrg{
283576bae58Smrg  set +e
284576bae58Smrg  as_fn_set_status $1
285576bae58Smrg  exit $1
286576bae58Smrg} # as_fn_exit
287576bae58Smrg
288576bae58Smrg# as_fn_mkdir_p
289576bae58Smrg# -------------
290576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary.
291576bae58Smrgas_fn_mkdir_p ()
292576bae58Smrg{
293576bae58Smrg
294576bae58Smrg  case $as_dir in #(
295576bae58Smrg  -*) as_dir=./$as_dir;;
296576bae58Smrg  esac
297576bae58Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298576bae58Smrg    as_dirs=
299576bae58Smrg    while :; do
300576bae58Smrg      case $as_dir in #(
301576bae58Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302576bae58Smrg      *) as_qdir=$as_dir;;
303576bae58Smrg      esac
304576bae58Smrg      as_dirs="'$as_qdir' $as_dirs"
305576bae58Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307576bae58Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308576bae58Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309576bae58Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310576bae58Smrg$as_echo X"$as_dir" |
311576bae58Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312576bae58Smrg	    s//\1/
313576bae58Smrg	    q
314576bae58Smrg	  }
315576bae58Smrg	  /^X\(\/\/\)[^/].*/{
316576bae58Smrg	    s//\1/
317576bae58Smrg	    q
318576bae58Smrg	  }
319576bae58Smrg	  /^X\(\/\/\)$/{
320576bae58Smrg	    s//\1/
321576bae58Smrg	    q
322576bae58Smrg	  }
323576bae58Smrg	  /^X\(\/\).*/{
324576bae58Smrg	    s//\1/
325576bae58Smrg	    q
326576bae58Smrg	  }
327576bae58Smrg	  s/.*/./; q'`
328576bae58Smrg      test -d "$as_dir" && break
329576bae58Smrg    done
330576bae58Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331576bae58Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332576bae58Smrg
333576bae58Smrg
334576bae58Smrg} # as_fn_mkdir_p
335576bae58Smrg# as_fn_append VAR VALUE
336576bae58Smrg# ----------------------
337576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over
339576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive
340576bae58Smrg# implementations.
341576bae58Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342576bae58Smrg  eval 'as_fn_append ()
343576bae58Smrg  {
344576bae58Smrg    eval $1+=\$2
345576bae58Smrg  }'
346576bae58Smrgelse
347576bae58Smrg  as_fn_append ()
348576bae58Smrg  {
349576bae58Smrg    eval $1=\$$1\$2
350576bae58Smrg  }
351576bae58Smrgfi # as_fn_append
352576bae58Smrg
353576bae58Smrg# as_fn_arith ARG...
354576bae58Smrg# ------------------
355576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357576bae58Smrg# must be portable across $(()) and expr.
358576bae58Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359576bae58Smrg  eval 'as_fn_arith ()
360576bae58Smrg  {
361576bae58Smrg    as_val=$(( $* ))
362576bae58Smrg  }'
363576bae58Smrgelse
364576bae58Smrg  as_fn_arith ()
365576bae58Smrg  {
366576bae58Smrg    as_val=`expr "$@" || test $? -eq 1`
367576bae58Smrg  }
368576bae58Smrgfi # as_fn_arith
369576bae58Smrg
370576bae58Smrg
371576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372576bae58Smrg# ----------------------------------------
373576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375576bae58Smrg# script with STATUS, using 1 if that was 0.
376576bae58Smrgas_fn_error ()
377576bae58Smrg{
378576bae58Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379576bae58Smrg  if test "$4"; then
380576bae58Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382576bae58Smrg  fi
383576bae58Smrg  $as_echo "$as_me: error: $2" >&2
384576bae58Smrg  as_fn_exit $as_status
385576bae58Smrg} # as_fn_error
386576bae58Smrg
387bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388bf2eeab3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38914c0a534Smrg  as_expr=expr
39014c0a534Smrgelse
39114c0a534Smrg  as_expr=false
39214c0a534Smrgfi
39314c0a534Smrg
394bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39514c0a534Smrg  as_basename=basename
39614c0a534Smrgelse
39714c0a534Smrg  as_basename=false
39814c0a534Smrgfi
39914c0a534Smrg
400576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401576bae58Smrg  as_dirname=dirname
402576bae58Smrgelse
403576bae58Smrg  as_dirname=false
404576bae58Smrgfi
40514c0a534Smrg
406bf2eeab3Smrgas_me=`$as_basename -- "$0" ||
40714c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40814c0a534Smrg	 X"$0" : 'X\(//\)$' \| \
409bf2eeab3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410bf2eeab3Smrg$as_echo X/"$0" |
411bf2eeab3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412bf2eeab3Smrg	    s//\1/
413bf2eeab3Smrg	    q
414bf2eeab3Smrg	  }
415bf2eeab3Smrg	  /^X\/\(\/\/\)$/{
416bf2eeab3Smrg	    s//\1/
417bf2eeab3Smrg	    q
418bf2eeab3Smrg	  }
419bf2eeab3Smrg	  /^X\/\(\/\).*/{
420bf2eeab3Smrg	    s//\1/
421bf2eeab3Smrg	    q
422bf2eeab3Smrg	  }
423bf2eeab3Smrg	  s/.*/./; q'`
42414c0a534Smrg
425576bae58Smrg# Avoid depending upon Character Ranges.
426576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429576bae58Smrgas_cr_digits='0123456789'
430576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43114c0a534Smrg
43214c0a534Smrg
433576bae58Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434576bae58Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435576bae58Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436576bae58Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437576bae58Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438576bae58Smrg  sed -n '
439576bae58Smrg    p
440576bae58Smrg    /[$]LINENO/=
441576bae58Smrg  ' <$as_myself |
442576bae58Smrg    sed '
443576bae58Smrg      s/[$]LINENO.*/&-/
444576bae58Smrg      t lineno
445576bae58Smrg      b
446576bae58Smrg      :lineno
447576bae58Smrg      N
448576bae58Smrg      :loop
449576bae58Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450576bae58Smrg      t loop
451576bae58Smrg      s/-\n.*//
452576bae58Smrg    ' >$as_me.lineno &&
453576bae58Smrg  chmod +x "$as_me.lineno" ||
454576bae58Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45514c0a534Smrg
456576bae58Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457576bae58Smrg  # (the dirname of $[0] is not the place where we might find the
458576bae58Smrg  # original and so on.  Autoconf is especially sensitive to this).
459576bae58Smrg  . "./$as_me.lineno"
460576bae58Smrg  # Exit status is that of the last command.
461576bae58Smrg  exit
462bf2eeab3Smrg}
46314c0a534Smrg
464576bae58SmrgECHO_C= ECHO_N= ECHO_T=
465576bae58Smrgcase `echo -n x` in #(((((
466576bae58Smrg-n*)
467576bae58Smrg  case `echo 'xy\c'` in
468576bae58Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469576bae58Smrg  xy)  ECHO_C='\c';;
470576bae58Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471576bae58Smrg       ECHO_T='	';;
472576bae58Smrg  esac;;
473576bae58Smrg*)
474576bae58Smrg  ECHO_N='-n';;
475576bae58Smrgesac
47614c0a534Smrg
477576bae58Smrgrm -f conf$$ conf$$.exe conf$$.file
478576bae58Smrgif test -d conf$$.dir; then
479576bae58Smrg  rm -f conf$$.dir/conf$$.file
480576bae58Smrgelse
481576bae58Smrg  rm -f conf$$.dir
482576bae58Smrg  mkdir conf$$.dir 2>/dev/null
483bf2eeab3Smrgfi
484576bae58Smrgif (echo >conf$$.file) 2>/dev/null; then
485576bae58Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486576bae58Smrg    as_ln_s='ln -s'
487576bae58Smrg    # ... but there are two gotchas:
488576bae58Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489576bae58Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490576bae58Smrg    # In both cases, we have to default to `cp -p'.
491576bae58Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492576bae58Smrg      as_ln_s='cp -p'
493576bae58Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494576bae58Smrg    as_ln_s=ln
495576bae58Smrg  else
496576bae58Smrg    as_ln_s='cp -p'
497576bae58Smrg  fi
498bf2eeab3Smrgelse
499576bae58Smrg  as_ln_s='cp -p'
500bf2eeab3Smrgfi
501576bae58Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502576bae58Smrgrmdir conf$$.dir 2>/dev/null
503bf2eeab3Smrg
504576bae58Smrgif mkdir -p . 2>/dev/null; then
505576bae58Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506576bae58Smrgelse
507576bae58Smrg  test -d ./-p && rmdir ./-p
508576bae58Smrg  as_mkdir_p=false
509bf2eeab3Smrgfi
510bf2eeab3Smrg
511576bae58Smrgif test -x / >/dev/null 2>&1; then
512576bae58Smrg  as_test_x='test -x'
513bf2eeab3Smrgelse
514576bae58Smrg  if ls -dL / >/dev/null 2>&1; then
515576bae58Smrg    as_ls_L_option=L
516576bae58Smrg  else
517576bae58Smrg    as_ls_L_option=
518576bae58Smrg  fi
519576bae58Smrg  as_test_x='
520576bae58Smrg    eval sh -c '\''
521576bae58Smrg      if test -d "$1"; then
522576bae58Smrg	test -d "$1/.";
523576bae58Smrg      else
524576bae58Smrg	case $1 in #(
525576bae58Smrg	-*)set "./$1";;
526576bae58Smrg	esac;
527576bae58Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528576bae58Smrg	???[sx]*):;;*)false;;esac;fi
529576bae58Smrg    '\'' sh
530576bae58Smrg  '
531bf2eeab3Smrgfi
532576bae58Smrgas_executable_p=$as_test_x
533bf2eeab3Smrg
534576bae58Smrg# Sed expression to map a string onto a valid CPP name.
535576bae58Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536bf2eeab3Smrg
537576bae58Smrg# Sed expression to map a string onto a valid variable name.
538576bae58Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539bf2eeab3Smrg
540bf2eeab3Smrg
541576bae58Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542576bae58Smrgexec 6>&1
54314c0a534Smrg
54414c0a534Smrg# Name of the host.
545576bae58Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54614c0a534Smrg# so uname gets run too.
54714c0a534Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54814c0a534Smrg
54914c0a534Smrg#
55014c0a534Smrg# Initializations.
55114c0a534Smrg#
55214c0a534Smrgac_default_prefix=/usr/local
553bf2eeab3Smrgac_clean_files=
55414c0a534Smrgac_config_libobj_dir=.
555bf2eeab3SmrgLIBOBJS=
55614c0a534Smrgcross_compiling=no
55714c0a534Smrgsubdirs=
55814c0a534SmrgMFLAGS=
55914c0a534SmrgMAKEFLAGS=
56014c0a534Smrg
56114c0a534Smrg# Identity of this package.
56214c0a534SmrgPACKAGE_NAME='smproxy'
56314c0a534SmrgPACKAGE_TARNAME='smproxy'
564576bae58SmrgPACKAGE_VERSION='1.0.4'
565576bae58SmrgPACKAGE_STRING='smproxy 1.0.4'
56614c0a534SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567576bae58SmrgPACKAGE_URL=''
56814c0a534Smrg
569bf2eeab3Smrg# Factoring default headers for most tests.
570bf2eeab3Smrgac_includes_default="\
571bf2eeab3Smrg#include <stdio.h>
572bf2eeab3Smrg#ifdef HAVE_SYS_TYPES_H
573bf2eeab3Smrg# include <sys/types.h>
574bf2eeab3Smrg#endif
575bf2eeab3Smrg#ifdef HAVE_SYS_STAT_H
576bf2eeab3Smrg# include <sys/stat.h>
577bf2eeab3Smrg#endif
578bf2eeab3Smrg#ifdef STDC_HEADERS
579bf2eeab3Smrg# include <stdlib.h>
580bf2eeab3Smrg# include <stddef.h>
581bf2eeab3Smrg#else
582bf2eeab3Smrg# ifdef HAVE_STDLIB_H
583bf2eeab3Smrg#  include <stdlib.h>
584bf2eeab3Smrg# endif
585bf2eeab3Smrg#endif
586bf2eeab3Smrg#ifdef HAVE_STRING_H
587bf2eeab3Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588bf2eeab3Smrg#  include <memory.h>
589bf2eeab3Smrg# endif
590bf2eeab3Smrg# include <string.h>
591bf2eeab3Smrg#endif
592bf2eeab3Smrg#ifdef HAVE_STRINGS_H
593bf2eeab3Smrg# include <strings.h>
594bf2eeab3Smrg#endif
595bf2eeab3Smrg#ifdef HAVE_INTTYPES_H
596bf2eeab3Smrg# include <inttypes.h>
597bf2eeab3Smrg#endif
598bf2eeab3Smrg#ifdef HAVE_STDINT_H
599bf2eeab3Smrg# include <stdint.h>
600bf2eeab3Smrg#endif
601bf2eeab3Smrg#ifdef HAVE_UNISTD_H
602bf2eeab3Smrg# include <unistd.h>
603bf2eeab3Smrg#endif"
604bf2eeab3Smrg
605bf2eeab3Smrgac_subst_vars='am__EXEEXT_FALSE
606bf2eeab3Smrgam__EXEEXT_TRUE
607bf2eeab3SmrgLTLIBOBJS
608bf2eeab3SmrgLIBOBJS
609bf2eeab3SmrgSMPROXY_LIBS
610bf2eeab3SmrgSMPROXY_CFLAGS
611576bae58SmrgAM_BACKSLASH
612576bae58SmrgAM_DEFAULT_VERBOSITY
613576bae58SmrgMAN_SUBSTS
614576bae58SmrgXORG_MAN_PAGE
615bf2eeab3SmrgADMIN_MAN_DIR
616bf2eeab3SmrgDRIVER_MAN_DIR
617bf2eeab3SmrgMISC_MAN_DIR
618bf2eeab3SmrgFILE_MAN_DIR
619bf2eeab3SmrgLIB_MAN_DIR
620bf2eeab3SmrgAPP_MAN_DIR
621bf2eeab3SmrgADMIN_MAN_SUFFIX
622bf2eeab3SmrgDRIVER_MAN_SUFFIX
623bf2eeab3SmrgMISC_MAN_SUFFIX
624bf2eeab3SmrgFILE_MAN_SUFFIX
625bf2eeab3SmrgLIB_MAN_SUFFIX
626bf2eeab3SmrgAPP_MAN_SUFFIX
627576bae58SmrgSED
628bf2eeab3Smrghost_os
629bf2eeab3Smrghost_vendor
630bf2eeab3Smrghost_cpu
631bf2eeab3Smrghost
632bf2eeab3Smrgbuild_os
633bf2eeab3Smrgbuild_vendor
634bf2eeab3Smrgbuild_cpu
635bf2eeab3Smrgbuild
636576bae58SmrgINSTALL_CMD
637576bae58SmrgPKG_CONFIG
638bf2eeab3SmrgCHANGELOG_CMD
639bf2eeab3SmrgCWARNFLAGS
640bf2eeab3SmrgEGREP
641bf2eeab3SmrgGREP
642bf2eeab3SmrgCPP
643bf2eeab3Smrgam__fastdepCC_FALSE
644bf2eeab3Smrgam__fastdepCC_TRUE
645bf2eeab3SmrgCCDEPMODE
646bf2eeab3SmrgAMDEPBACKSLASH
647bf2eeab3SmrgAMDEP_FALSE
648bf2eeab3SmrgAMDEP_TRUE
649bf2eeab3Smrgam__quote
650bf2eeab3Smrgam__include
651bf2eeab3SmrgDEPDIR
652bf2eeab3SmrgOBJEXT
653bf2eeab3SmrgEXEEXT
654bf2eeab3Smrgac_ct_CC
655bf2eeab3SmrgCPPFLAGS
656bf2eeab3SmrgLDFLAGS
657bf2eeab3SmrgCFLAGS
658bf2eeab3SmrgCC
659bf2eeab3SmrgMAINT
660bf2eeab3SmrgMAINTAINER_MODE_FALSE
661bf2eeab3SmrgMAINTAINER_MODE_TRUE
662bf2eeab3Smrgam__untar
663bf2eeab3Smrgam__tar
664bf2eeab3SmrgAMTAR
665bf2eeab3Smrgam__leading_dot
666bf2eeab3SmrgSET_MAKE
667bf2eeab3SmrgAWK
668bf2eeab3Smrgmkdir_p
669bf2eeab3SmrgMKDIR_P
670bf2eeab3SmrgINSTALL_STRIP_PROGRAM
671bf2eeab3SmrgSTRIP
672bf2eeab3Smrginstall_sh
673bf2eeab3SmrgMAKEINFO
674bf2eeab3SmrgAUTOHEADER
675bf2eeab3SmrgAUTOMAKE
676bf2eeab3SmrgAUTOCONF
677bf2eeab3SmrgACLOCAL
678bf2eeab3SmrgVERSION
679bf2eeab3SmrgPACKAGE
680bf2eeab3SmrgCYGPATH_W
681bf2eeab3Smrgam__isrc
682bf2eeab3SmrgINSTALL_DATA
683bf2eeab3SmrgINSTALL_SCRIPT
684bf2eeab3SmrgINSTALL_PROGRAM
685bf2eeab3Smrgtarget_alias
686bf2eeab3Smrghost_alias
687bf2eeab3Smrgbuild_alias
688bf2eeab3SmrgLIBS
689bf2eeab3SmrgECHO_T
690bf2eeab3SmrgECHO_N
691bf2eeab3SmrgECHO_C
692bf2eeab3SmrgDEFS
693bf2eeab3Smrgmandir
694bf2eeab3Smrglocaledir
695bf2eeab3Smrglibdir
696bf2eeab3Smrgpsdir
697bf2eeab3Smrgpdfdir
698bf2eeab3Smrgdvidir
699bf2eeab3Smrghtmldir
700bf2eeab3Smrginfodir
701bf2eeab3Smrgdocdir
702bf2eeab3Smrgoldincludedir
703bf2eeab3Smrgincludedir
704bf2eeab3Smrglocalstatedir
705bf2eeab3Smrgsharedstatedir
706bf2eeab3Smrgsysconfdir
707bf2eeab3Smrgdatadir
708bf2eeab3Smrgdatarootdir
709bf2eeab3Smrglibexecdir
710bf2eeab3Smrgsbindir
711bf2eeab3Smrgbindir
712bf2eeab3Smrgprogram_transform_name
713bf2eeab3Smrgprefix
714bf2eeab3Smrgexec_prefix
715576bae58SmrgPACKAGE_URL
716bf2eeab3SmrgPACKAGE_BUGREPORT
717bf2eeab3SmrgPACKAGE_STRING
718bf2eeab3SmrgPACKAGE_VERSION
719bf2eeab3SmrgPACKAGE_TARNAME
720bf2eeab3SmrgPACKAGE_NAME
721bf2eeab3SmrgPATH_SEPARATOR
722bf2eeab3SmrgSHELL'
72314c0a534Smrgac_subst_files=''
724bf2eeab3Smrgac_user_opts='
725bf2eeab3Smrgenable_option_checking
726bf2eeab3Smrgenable_maintainer_mode
727bf2eeab3Smrgenable_dependency_tracking
728bf2eeab3Smrgenable_strict_compilation
729576bae58Smrgenable_silent_rules
730bf2eeab3Smrg'
731bf2eeab3Smrg      ac_precious_vars='build_alias
732bf2eeab3Smrghost_alias
733bf2eeab3Smrgtarget_alias
734bf2eeab3SmrgCC
735bf2eeab3SmrgCFLAGS
736bf2eeab3SmrgLDFLAGS
737bf2eeab3SmrgLIBS
738bf2eeab3SmrgCPPFLAGS
739bf2eeab3SmrgCPP
740bf2eeab3SmrgPKG_CONFIG
741bf2eeab3SmrgSMPROXY_CFLAGS
742bf2eeab3SmrgSMPROXY_LIBS'
743bf2eeab3Smrg
74414c0a534Smrg
74514c0a534Smrg# Initialize some variables set by options.
74614c0a534Smrgac_init_help=
74714c0a534Smrgac_init_version=false
748bf2eeab3Smrgac_unrecognized_opts=
749bf2eeab3Smrgac_unrecognized_sep=
75014c0a534Smrg# The variables have the same names as the options, with
75114c0a534Smrg# dashes changed to underlines.
75214c0a534Smrgcache_file=/dev/null
75314c0a534Smrgexec_prefix=NONE
75414c0a534Smrgno_create=
75514c0a534Smrgno_recursion=
75614c0a534Smrgprefix=NONE
75714c0a534Smrgprogram_prefix=NONE
75814c0a534Smrgprogram_suffix=NONE
75914c0a534Smrgprogram_transform_name=s,x,x,
76014c0a534Smrgsilent=
76114c0a534Smrgsite=
76214c0a534Smrgsrcdir=
76314c0a534Smrgverbose=
76414c0a534Smrgx_includes=NONE
76514c0a534Smrgx_libraries=NONE
76614c0a534Smrg
76714c0a534Smrg# Installation directory options.
76814c0a534Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
76914c0a534Smrg# and all the variables that are supposed to be based on exec_prefix
77014c0a534Smrg# by default will actually change.
77114c0a534Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
772bf2eeab3Smrg# (The list follows the same order as the GNU Coding Standards.)
77314c0a534Smrgbindir='${exec_prefix}/bin'
77414c0a534Smrgsbindir='${exec_prefix}/sbin'
77514c0a534Smrglibexecdir='${exec_prefix}/libexec'
776bf2eeab3Smrgdatarootdir='${prefix}/share'
777bf2eeab3Smrgdatadir='${datarootdir}'
77814c0a534Smrgsysconfdir='${prefix}/etc'
77914c0a534Smrgsharedstatedir='${prefix}/com'
78014c0a534Smrglocalstatedir='${prefix}/var'
78114c0a534Smrgincludedir='${prefix}/include'
78214c0a534Smrgoldincludedir='/usr/include'
783bf2eeab3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784bf2eeab3Smrginfodir='${datarootdir}/info'
785bf2eeab3Smrghtmldir='${docdir}'
786bf2eeab3Smrgdvidir='${docdir}'
787bf2eeab3Smrgpdfdir='${docdir}'
788bf2eeab3Smrgpsdir='${docdir}'
789bf2eeab3Smrglibdir='${exec_prefix}/lib'
790bf2eeab3Smrglocaledir='${datarootdir}/locale'
791bf2eeab3Smrgmandir='${datarootdir}/man'
79214c0a534Smrg
79314c0a534Smrgac_prev=
794bf2eeab3Smrgac_dashdash=
79514c0a534Smrgfor ac_option
79614c0a534Smrgdo
79714c0a534Smrg  # If the previous option needs an argument, assign it.
79814c0a534Smrg  if test -n "$ac_prev"; then
799bf2eeab3Smrg    eval $ac_prev=\$ac_option
80014c0a534Smrg    ac_prev=
80114c0a534Smrg    continue
80214c0a534Smrg  fi
80314c0a534Smrg
804bf2eeab3Smrg  case $ac_option in
805576bae58Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806576bae58Smrg  *=)   ac_optarg= ;;
807576bae58Smrg  *)    ac_optarg=yes ;;
808bf2eeab3Smrg  esac
80914c0a534Smrg
81014c0a534Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
81114c0a534Smrg
812bf2eeab3Smrg  case $ac_dashdash$ac_option in
813bf2eeab3Smrg  --)
814bf2eeab3Smrg    ac_dashdash=yes ;;
81514c0a534Smrg
81614c0a534Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81714c0a534Smrg    ac_prev=bindir ;;
81814c0a534Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81914c0a534Smrg    bindir=$ac_optarg ;;
82014c0a534Smrg
82114c0a534Smrg  -build | --build | --buil | --bui | --bu)
82214c0a534Smrg    ac_prev=build_alias ;;
82314c0a534Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
82414c0a534Smrg    build_alias=$ac_optarg ;;
82514c0a534Smrg
82614c0a534Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
82714c0a534Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
82814c0a534Smrg    ac_prev=cache_file ;;
82914c0a534Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
83014c0a534Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83114c0a534Smrg    cache_file=$ac_optarg ;;
83214c0a534Smrg
83314c0a534Smrg  --config-cache | -C)
83414c0a534Smrg    cache_file=config.cache ;;
83514c0a534Smrg
836bf2eeab3Smrg  -datadir | --datadir | --datadi | --datad)
83714c0a534Smrg    ac_prev=datadir ;;
838bf2eeab3Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
83914c0a534Smrg    datadir=$ac_optarg ;;
84014c0a534Smrg
841bf2eeab3Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842bf2eeab3Smrg  | --dataroo | --dataro | --datar)
843bf2eeab3Smrg    ac_prev=datarootdir ;;
844bf2eeab3Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845bf2eeab3Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846bf2eeab3Smrg    datarootdir=$ac_optarg ;;
847bf2eeab3Smrg
84814c0a534Smrg  -disable-* | --disable-*)
849bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
85014c0a534Smrg    # Reject names that are not valid shell variable names.
851bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852576bae58Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
853bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
854bf2eeab3Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855bf2eeab3Smrg    case $ac_user_opts in
856bf2eeab3Smrg      *"
857bf2eeab3Smrg"enable_$ac_useropt"
858bf2eeab3Smrg"*) ;;
859bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
861bf2eeab3Smrg    esac
862bf2eeab3Smrg    eval enable_$ac_useropt=no ;;
863bf2eeab3Smrg
864bf2eeab3Smrg  -docdir | --docdir | --docdi | --doc | --do)
865bf2eeab3Smrg    ac_prev=docdir ;;
866bf2eeab3Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867bf2eeab3Smrg    docdir=$ac_optarg ;;
868bf2eeab3Smrg
869bf2eeab3Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870bf2eeab3Smrg    ac_prev=dvidir ;;
871bf2eeab3Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872bf2eeab3Smrg    dvidir=$ac_optarg ;;
87314c0a534Smrg
87414c0a534Smrg  -enable-* | --enable-*)
875bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
87614c0a534Smrg    # Reject names that are not valid shell variable names.
877bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878576bae58Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
879bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
880bf2eeab3Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881bf2eeab3Smrg    case $ac_user_opts in
882bf2eeab3Smrg      *"
883bf2eeab3Smrg"enable_$ac_useropt"
884bf2eeab3Smrg"*) ;;
885bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
88714c0a534Smrg    esac
888bf2eeab3Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
88914c0a534Smrg
89014c0a534Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
89114c0a534Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
89214c0a534Smrg  | --exec | --exe | --ex)
89314c0a534Smrg    ac_prev=exec_prefix ;;
89414c0a534Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
89514c0a534Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
89614c0a534Smrg  | --exec=* | --exe=* | --ex=*)
89714c0a534Smrg    exec_prefix=$ac_optarg ;;
89814c0a534Smrg
89914c0a534Smrg  -gas | --gas | --ga | --g)
90014c0a534Smrg    # Obsolete; use --with-gas.
90114c0a534Smrg    with_gas=yes ;;
90214c0a534Smrg
90314c0a534Smrg  -help | --help | --hel | --he | -h)
90414c0a534Smrg    ac_init_help=long ;;
90514c0a534Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
90614c0a534Smrg    ac_init_help=recursive ;;
90714c0a534Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
90814c0a534Smrg    ac_init_help=short ;;
90914c0a534Smrg
91014c0a534Smrg  -host | --host | --hos | --ho)
91114c0a534Smrg    ac_prev=host_alias ;;
91214c0a534Smrg  -host=* | --host=* | --hos=* | --ho=*)
91314c0a534Smrg    host_alias=$ac_optarg ;;
91414c0a534Smrg
915bf2eeab3Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916bf2eeab3Smrg    ac_prev=htmldir ;;
917bf2eeab3Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918bf2eeab3Smrg  | --ht=*)
919bf2eeab3Smrg    htmldir=$ac_optarg ;;
920bf2eeab3Smrg
92114c0a534Smrg  -includedir | --includedir | --includedi | --included | --include \
92214c0a534Smrg  | --includ | --inclu | --incl | --inc)
92314c0a534Smrg    ac_prev=includedir ;;
92414c0a534Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
92514c0a534Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
92614c0a534Smrg    includedir=$ac_optarg ;;
92714c0a534Smrg
92814c0a534Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
92914c0a534Smrg    ac_prev=infodir ;;
93014c0a534Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
93114c0a534Smrg    infodir=$ac_optarg ;;
93214c0a534Smrg
93314c0a534Smrg  -libdir | --libdir | --libdi | --libd)
93414c0a534Smrg    ac_prev=libdir ;;
93514c0a534Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
93614c0a534Smrg    libdir=$ac_optarg ;;
93714c0a534Smrg
93814c0a534Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
93914c0a534Smrg  | --libexe | --libex | --libe)
94014c0a534Smrg    ac_prev=libexecdir ;;
94114c0a534Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
94214c0a534Smrg  | --libexe=* | --libex=* | --libe=*)
94314c0a534Smrg    libexecdir=$ac_optarg ;;
94414c0a534Smrg
945bf2eeab3Smrg  -localedir | --localedir | --localedi | --localed | --locale)
946bf2eeab3Smrg    ac_prev=localedir ;;
947bf2eeab3Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948bf2eeab3Smrg    localedir=$ac_optarg ;;
949bf2eeab3Smrg
95014c0a534Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
951bf2eeab3Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
95214c0a534Smrg    ac_prev=localstatedir ;;
95314c0a534Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954bf2eeab3Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
95514c0a534Smrg    localstatedir=$ac_optarg ;;
95614c0a534Smrg
95714c0a534Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
95814c0a534Smrg    ac_prev=mandir ;;
95914c0a534Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
96014c0a534Smrg    mandir=$ac_optarg ;;
96114c0a534Smrg
96214c0a534Smrg  -nfp | --nfp | --nf)
96314c0a534Smrg    # Obsolete; use --without-fp.
96414c0a534Smrg    with_fp=no ;;
96514c0a534Smrg
96614c0a534Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
96714c0a534Smrg  | --no-cr | --no-c | -n)
96814c0a534Smrg    no_create=yes ;;
96914c0a534Smrg
97014c0a534Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
97114c0a534Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
97214c0a534Smrg    no_recursion=yes ;;
97314c0a534Smrg
97414c0a534Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
97514c0a534Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
97614c0a534Smrg  | --oldin | --oldi | --old | --ol | --o)
97714c0a534Smrg    ac_prev=oldincludedir ;;
97814c0a534Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
97914c0a534Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
98014c0a534Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
98114c0a534Smrg    oldincludedir=$ac_optarg ;;
98214c0a534Smrg
98314c0a534Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
98414c0a534Smrg    ac_prev=prefix ;;
98514c0a534Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
98614c0a534Smrg    prefix=$ac_optarg ;;
98714c0a534Smrg
98814c0a534Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
98914c0a534Smrg  | --program-pre | --program-pr | --program-p)
99014c0a534Smrg    ac_prev=program_prefix ;;
99114c0a534Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
99214c0a534Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
99314c0a534Smrg    program_prefix=$ac_optarg ;;
99414c0a534Smrg
99514c0a534Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
99614c0a534Smrg  | --program-suf | --program-su | --program-s)
99714c0a534Smrg    ac_prev=program_suffix ;;
99814c0a534Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
99914c0a534Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
100014c0a534Smrg    program_suffix=$ac_optarg ;;
100114c0a534Smrg
100214c0a534Smrg  -program-transform-name | --program-transform-name \
100314c0a534Smrg  | --program-transform-nam | --program-transform-na \
100414c0a534Smrg  | --program-transform-n | --program-transform- \
100514c0a534Smrg  | --program-transform | --program-transfor \
100614c0a534Smrg  | --program-transfo | --program-transf \
100714c0a534Smrg  | --program-trans | --program-tran \
100814c0a534Smrg  | --progr-tra | --program-tr | --program-t)
100914c0a534Smrg    ac_prev=program_transform_name ;;
101014c0a534Smrg  -program-transform-name=* | --program-transform-name=* \
101114c0a534Smrg  | --program-transform-nam=* | --program-transform-na=* \
101214c0a534Smrg  | --program-transform-n=* | --program-transform-=* \
101314c0a534Smrg  | --program-transform=* | --program-transfor=* \
101414c0a534Smrg  | --program-transfo=* | --program-transf=* \
101514c0a534Smrg  | --program-trans=* | --program-tran=* \
101614c0a534Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
101714c0a534Smrg    program_transform_name=$ac_optarg ;;
101814c0a534Smrg
1019bf2eeab3Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020bf2eeab3Smrg    ac_prev=pdfdir ;;
1021bf2eeab3Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022bf2eeab3Smrg    pdfdir=$ac_optarg ;;
1023bf2eeab3Smrg
1024bf2eeab3Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1025bf2eeab3Smrg    ac_prev=psdir ;;
1026bf2eeab3Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027bf2eeab3Smrg    psdir=$ac_optarg ;;
1028bf2eeab3Smrg
102914c0a534Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
103014c0a534Smrg  | -silent | --silent | --silen | --sile | --sil)
103114c0a534Smrg    silent=yes ;;
103214c0a534Smrg
103314c0a534Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
103414c0a534Smrg    ac_prev=sbindir ;;
103514c0a534Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
103614c0a534Smrg  | --sbi=* | --sb=*)
103714c0a534Smrg    sbindir=$ac_optarg ;;
103814c0a534Smrg
103914c0a534Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
104014c0a534Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
104114c0a534Smrg  | --sharedst | --shareds | --shared | --share | --shar \
104214c0a534Smrg  | --sha | --sh)
104314c0a534Smrg    ac_prev=sharedstatedir ;;
104414c0a534Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
104514c0a534Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
104614c0a534Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
104714c0a534Smrg  | --sha=* | --sh=*)
104814c0a534Smrg    sharedstatedir=$ac_optarg ;;
104914c0a534Smrg
105014c0a534Smrg  -site | --site | --sit)
105114c0a534Smrg    ac_prev=site ;;
105214c0a534Smrg  -site=* | --site=* | --sit=*)
105314c0a534Smrg    site=$ac_optarg ;;
105414c0a534Smrg
105514c0a534Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
105614c0a534Smrg    ac_prev=srcdir ;;
105714c0a534Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
105814c0a534Smrg    srcdir=$ac_optarg ;;
105914c0a534Smrg
106014c0a534Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
106114c0a534Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
106214c0a534Smrg    ac_prev=sysconfdir ;;
106314c0a534Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
106414c0a534Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
106514c0a534Smrg    sysconfdir=$ac_optarg ;;
106614c0a534Smrg
106714c0a534Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
106814c0a534Smrg    ac_prev=target_alias ;;
106914c0a534Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
107014c0a534Smrg    target_alias=$ac_optarg ;;
107114c0a534Smrg
107214c0a534Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
107314c0a534Smrg    verbose=yes ;;
107414c0a534Smrg
107514c0a534Smrg  -version | --version | --versio | --versi | --vers | -V)
107614c0a534Smrg    ac_init_version=: ;;
107714c0a534Smrg
107814c0a534Smrg  -with-* | --with-*)
1079bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
108014c0a534Smrg    # Reject names that are not valid shell variable names.
1081bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082576bae58Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1083bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
1084bf2eeab3Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085bf2eeab3Smrg    case $ac_user_opts in
1086bf2eeab3Smrg      *"
1087bf2eeab3Smrg"with_$ac_useropt"
1088bf2eeab3Smrg"*) ;;
1089bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
109114c0a534Smrg    esac
1092bf2eeab3Smrg    eval with_$ac_useropt=\$ac_optarg ;;
109314c0a534Smrg
109414c0a534Smrg  -without-* | --without-*)
1095bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
109614c0a534Smrg    # Reject names that are not valid shell variable names.
1097bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098576bae58Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1099bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
1100bf2eeab3Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101bf2eeab3Smrg    case $ac_user_opts in
1102bf2eeab3Smrg      *"
1103bf2eeab3Smrg"with_$ac_useropt"
1104bf2eeab3Smrg"*) ;;
1105bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
1107bf2eeab3Smrg    esac
1108bf2eeab3Smrg    eval with_$ac_useropt=no ;;
110914c0a534Smrg
111014c0a534Smrg  --x)
111114c0a534Smrg    # Obsolete; use --with-x.
111214c0a534Smrg    with_x=yes ;;
111314c0a534Smrg
111414c0a534Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
111514c0a534Smrg  | --x-incl | --x-inc | --x-in | --x-i)
111614c0a534Smrg    ac_prev=x_includes ;;
111714c0a534Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
111814c0a534Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
111914c0a534Smrg    x_includes=$ac_optarg ;;
112014c0a534Smrg
112114c0a534Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
112214c0a534Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
112314c0a534Smrg    ac_prev=x_libraries ;;
112414c0a534Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
112514c0a534Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
112614c0a534Smrg    x_libraries=$ac_optarg ;;
112714c0a534Smrg
1128576bae58Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129576bae58SmrgTry \`$0 --help' for more information"
113014c0a534Smrg    ;;
113114c0a534Smrg
113214c0a534Smrg  *=*)
113314c0a534Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
113414c0a534Smrg    # Reject names that are not valid shell variable names.
1135576bae58Smrg    case $ac_envvar in #(
1136576bae58Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137576bae58Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138576bae58Smrg    esac
1139bf2eeab3Smrg    eval $ac_envvar=\$ac_optarg
114014c0a534Smrg    export $ac_envvar ;;
114114c0a534Smrg
114214c0a534Smrg  *)
114314c0a534Smrg    # FIXME: should be removed in autoconf 3.0.
1144bf2eeab3Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
114514c0a534Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146bf2eeab3Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147576bae58Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
114814c0a534Smrg    ;;
114914c0a534Smrg
115014c0a534Smrg  esac
115114c0a534Smrgdone
115214c0a534Smrg
115314c0a534Smrgif test -n "$ac_prev"; then
115414c0a534Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155576bae58Smrg  as_fn_error $? "missing argument to $ac_option"
115614c0a534Smrgfi
115714c0a534Smrg
1158bf2eeab3Smrgif test -n "$ac_unrecognized_opts"; then
1159bf2eeab3Smrg  case $enable_option_checking in
1160bf2eeab3Smrg    no) ;;
1161576bae58Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162bf2eeab3Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116314c0a534Smrg  esac
1164bf2eeab3Smrgfi
116514c0a534Smrg
1166bf2eeab3Smrg# Check all directory arguments for consistency.
1167bf2eeab3Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168bf2eeab3Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1169bf2eeab3Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170bf2eeab3Smrg		libdir localedir mandir
117114c0a534Smrgdo
1172bf2eeab3Smrg  eval ac_val=\$$ac_var
1173bf2eeab3Smrg  # Remove trailing slashes.
117414c0a534Smrg  case $ac_val in
1175bf2eeab3Smrg    */ )
1176bf2eeab3Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177bf2eeab3Smrg      eval $ac_var=\$ac_val;;
1178bf2eeab3Smrg  esac
1179bf2eeab3Smrg  # Be sure to have absolute directory names.
1180bf2eeab3Smrg  case $ac_val in
1181bf2eeab3Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1182bf2eeab3Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
118314c0a534Smrg  esac
1184576bae58Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
118514c0a534Smrgdone
118614c0a534Smrg
118714c0a534Smrg# There might be people who depend on the old broken behavior: `$host'
118814c0a534Smrg# used to hold the argument of --host etc.
118914c0a534Smrg# FIXME: To remove some day.
119014c0a534Smrgbuild=$build_alias
119114c0a534Smrghost=$host_alias
119214c0a534Smrgtarget=$target_alias
119314c0a534Smrg
119414c0a534Smrg# FIXME: To remove some day.
119514c0a534Smrgif test "x$host_alias" != x; then
119614c0a534Smrg  if test "x$build_alias" = x; then
119714c0a534Smrg    cross_compiling=maybe
1198576bae58Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199576bae58Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
120014c0a534Smrg  elif test "x$build_alias" != "x$host_alias"; then
120114c0a534Smrg    cross_compiling=yes
120214c0a534Smrg  fi
120314c0a534Smrgfi
120414c0a534Smrg
120514c0a534Smrgac_tool_prefix=
120614c0a534Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
120714c0a534Smrg
120814c0a534Smrgtest "$silent" = yes && exec 6>/dev/null
120914c0a534Smrg
121014c0a534Smrg
1211bf2eeab3Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1212bf2eeab3Smrgac_ls_di=`ls -di .` &&
1213bf2eeab3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214576bae58Smrg  as_fn_error $? "working directory cannot be determined"
1215bf2eeab3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216576bae58Smrg  as_fn_error $? "pwd does not report name of working directory"
1217bf2eeab3Smrg
1218bf2eeab3Smrg
1219bf2eeab3Smrg# Find the source files, if location was not specified.
1220bf2eeab3Smrgif test -z "$srcdir"; then
122114c0a534Smrg  ac_srcdir_defaulted=yes
1222bf2eeab3Smrg  # Try the directory containing this script, then the parent directory.
1223bf2eeab3Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1224bf2eeab3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225bf2eeab3Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1226bf2eeab3Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1227bf2eeab3Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228bf2eeab3Smrg$as_echo X"$as_myself" |
1229bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230bf2eeab3Smrg	    s//\1/
1231bf2eeab3Smrg	    q
1232bf2eeab3Smrg	  }
1233bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
1234bf2eeab3Smrg	    s//\1/
1235bf2eeab3Smrg	    q
1236bf2eeab3Smrg	  }
1237bf2eeab3Smrg	  /^X\(\/\/\)$/{
1238bf2eeab3Smrg	    s//\1/
1239bf2eeab3Smrg	    q
1240bf2eeab3Smrg	  }
1241bf2eeab3Smrg	  /^X\(\/\).*/{
1242bf2eeab3Smrg	    s//\1/
1243bf2eeab3Smrg	    q
1244bf2eeab3Smrg	  }
1245bf2eeab3Smrg	  s/.*/./; q'`
124614c0a534Smrg  srcdir=$ac_confdir
1247bf2eeab3Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
124814c0a534Smrg    srcdir=..
124914c0a534Smrg  fi
125014c0a534Smrgelse
125114c0a534Smrg  ac_srcdir_defaulted=no
125214c0a534Smrgfi
1253bf2eeab3Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1254bf2eeab3Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255576bae58Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
125614c0a534Smrgfi
1257bf2eeab3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258bf2eeab3Smrgac_abs_confdir=`(
1259576bae58Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260bf2eeab3Smrg	pwd)`
1261bf2eeab3Smrg# When building in place, set srcdir=.
1262bf2eeab3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1263bf2eeab3Smrg  srcdir=.
1264bf2eeab3Smrgfi
1265bf2eeab3Smrg# Remove unnecessary trailing slashes from srcdir.
1266bf2eeab3Smrg# Double slashes in file names in object file debugging info
1267bf2eeab3Smrg# mess up M-x gdb in Emacs.
1268bf2eeab3Smrgcase $srcdir in
1269bf2eeab3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270bf2eeab3Smrgesac
1271bf2eeab3Smrgfor ac_var in $ac_precious_vars; do
1272bf2eeab3Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273bf2eeab3Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1274bf2eeab3Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275bf2eeab3Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276bf2eeab3Smrgdone
127714c0a534Smrg
127814c0a534Smrg#
127914c0a534Smrg# Report the --help message.
128014c0a534Smrg#
128114c0a534Smrgif test "$ac_init_help" = "long"; then
128214c0a534Smrg  # Omit some internal or obsolete options to make the list less imposing.
128314c0a534Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
128414c0a534Smrg  cat <<_ACEOF
1285576bae58Smrg\`configure' configures smproxy 1.0.4 to adapt to many kinds of systems.
128614c0a534Smrg
128714c0a534SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
128814c0a534Smrg
128914c0a534SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
129014c0a534SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
129114c0a534Smrg
129214c0a534SmrgDefaults for the options are specified in brackets.
129314c0a534Smrg
129414c0a534SmrgConfiguration:
129514c0a534Smrg  -h, --help              display this help and exit
129614c0a534Smrg      --help=short        display options specific to this package
129714c0a534Smrg      --help=recursive    display the short help of all the included packages
129814c0a534Smrg  -V, --version           display version information and exit
1299576bae58Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
130014c0a534Smrg      --cache-file=FILE   cache test results in FILE [disabled]
130114c0a534Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
130214c0a534Smrg  -n, --no-create         do not create output files
130314c0a534Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
130414c0a534Smrg
130514c0a534SmrgInstallation directories:
130614c0a534Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1307bf2eeab3Smrg                          [$ac_default_prefix]
130814c0a534Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309bf2eeab3Smrg                          [PREFIX]
131014c0a534Smrg
131114c0a534SmrgBy default, \`make install' will install all the files in
131214c0a534Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
131314c0a534Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
131414c0a534Smrgfor instance \`--prefix=\$HOME'.
131514c0a534Smrg
131614c0a534SmrgFor better control, use the options below.
131714c0a534Smrg
131814c0a534SmrgFine tuning of the installation directories:
1319bf2eeab3Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1320bf2eeab3Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321bf2eeab3Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322bf2eeab3Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323bf2eeab3Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324bf2eeab3Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325bf2eeab3Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1326bf2eeab3Smrg  --includedir=DIR        C header files [PREFIX/include]
1327bf2eeab3Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328bf2eeab3Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329bf2eeab3Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330bf2eeab3Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331bf2eeab3Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332bf2eeab3Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333bf2eeab3Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/smproxy]
1334bf2eeab3Smrg  --htmldir=DIR           html documentation [DOCDIR]
1335bf2eeab3Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1336bf2eeab3Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1337bf2eeab3Smrg  --psdir=DIR             ps documentation [DOCDIR]
133814c0a534Smrg_ACEOF
133914c0a534Smrg
134014c0a534Smrg  cat <<\_ACEOF
134114c0a534Smrg
134214c0a534SmrgProgram names:
134314c0a534Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
134414c0a534Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
134514c0a534Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
134614c0a534Smrg
134714c0a534SmrgSystem types:
134814c0a534Smrg  --build=BUILD     configure for building on BUILD [guessed]
134914c0a534Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
135014c0a534Smrg_ACEOF
135114c0a534Smrgfi
135214c0a534Smrg
135314c0a534Smrgif test -n "$ac_init_help"; then
135414c0a534Smrg  case $ac_init_help in
1355576bae58Smrg     short | recursive ) echo "Configuration of smproxy 1.0.4:";;
135614c0a534Smrg   esac
135714c0a534Smrg  cat <<\_ACEOF
135814c0a534Smrg
135914c0a534SmrgOptional Features:
1360bf2eeab3Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
136114c0a534Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
136214c0a534Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
136314c0a534Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
136414c0a534Smrg			  (and sometimes confusing) to the casual installer
136514c0a534Smrg  --disable-dependency-tracking  speeds up one-time build
136614c0a534Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1367bf2eeab3Smrg  --enable-strict-compilation
1368bf2eeab3Smrg                          Enable all warnings from compiler and make them
1369bf2eeab3Smrg                          errors (default: disabled)
1370576bae58Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1371576bae58Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
137214c0a534Smrg
137314c0a534SmrgSome influential environment variables:
137414c0a534Smrg  CC          C compiler command
137514c0a534Smrg  CFLAGS      C compiler flags
137614c0a534Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
137714c0a534Smrg              nonstandard directory <lib dir>
1378bf2eeab3Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1379576bae58Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380bf2eeab3Smrg              you have headers in a nonstandard directory <include dir>
1381bf2eeab3Smrg  CPP         C preprocessor
138214c0a534Smrg  PKG_CONFIG  path to pkg-config utility
138314c0a534Smrg  SMPROXY_CFLAGS
138414c0a534Smrg              C compiler flags for SMPROXY, overriding pkg-config
138514c0a534Smrg  SMPROXY_LIBS
138614c0a534Smrg              linker flags for SMPROXY, overriding pkg-config
138714c0a534Smrg
138814c0a534SmrgUse these variables to override the choices made by `configure' or to help
138914c0a534Smrgit to find libraries and programs with nonstandard names/locations.
139014c0a534Smrg
139114c0a534SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
139214c0a534Smrg_ACEOF
1393bf2eeab3Smrgac_status=$?
139414c0a534Smrgfi
139514c0a534Smrg
139614c0a534Smrgif test "$ac_init_help" = "recursive"; then
139714c0a534Smrg  # If there are subdirs, report their specific --help.
139814c0a534Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399bf2eeab3Smrg    test -d "$ac_dir" ||
1400bf2eeab3Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401bf2eeab3Smrg      continue
140214c0a534Smrg    ac_builddir=.
140314c0a534Smrg
1404bf2eeab3Smrgcase "$ac_dir" in
1405bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406bf2eeab3Smrg*)
1407bf2eeab3Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408bf2eeab3Smrg  # A ".." for each directory in $ac_dir_suffix.
1409bf2eeab3Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410bf2eeab3Smrg  case $ac_top_builddir_sub in
1411bf2eeab3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412bf2eeab3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413bf2eeab3Smrg  esac ;;
1414bf2eeab3Smrgesac
1415bf2eeab3Smrgac_abs_top_builddir=$ac_pwd
1416bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1417bf2eeab3Smrg# for backward compatibility:
1418bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix
141914c0a534Smrg
142014c0a534Smrgcase $srcdir in
1421bf2eeab3Smrg  .)  # We are building in place.
142214c0a534Smrg    ac_srcdir=.
1423bf2eeab3Smrg    ac_top_srcdir=$ac_top_builddir_sub
1424bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1425bf2eeab3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
142614c0a534Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1427bf2eeab3Smrg    ac_top_srcdir=$srcdir
1428bf2eeab3Smrg    ac_abs_top_srcdir=$srcdir ;;
1429bf2eeab3Smrg  *) # Relative name.
1430bf2eeab3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431bf2eeab3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1432bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
143314c0a534Smrgesac
1434bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435bf2eeab3Smrg
1436bf2eeab3Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1437bf2eeab3Smrg    # Check for guested configure.
1438bf2eeab3Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1439bf2eeab3Smrg      echo &&
1440bf2eeab3Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441bf2eeab3Smrg    elif test -f "$ac_srcdir/configure"; then
1442bf2eeab3Smrg      echo &&
1443bf2eeab3Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
144414c0a534Smrg    else
1445bf2eeab3Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446bf2eeab3Smrg    fi || ac_status=$?
1447bf2eeab3Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
144814c0a534Smrg  done
144914c0a534Smrgfi
145014c0a534Smrg
1451bf2eeab3Smrgtest -n "$ac_init_help" && exit $ac_status
145214c0a534Smrgif $ac_init_version; then
145314c0a534Smrg  cat <<\_ACEOF
1454576bae58Smrgsmproxy configure 1.0.4
1455576bae58Smrggenerated by GNU Autoconf 2.68
145614c0a534Smrg
1457576bae58SmrgCopyright (C) 2010 Free Software Foundation, Inc.
145814c0a534SmrgThis configure script is free software; the Free Software Foundation
145914c0a534Smrggives unlimited permission to copy, distribute and modify it.
146014c0a534Smrg_ACEOF
1461bf2eeab3Smrg  exit
146214c0a534Smrgfi
146314c0a534Smrg
1464576bae58Smrg## ------------------------ ##
1465576bae58Smrg## Autoconf initialization. ##
1466576bae58Smrg## ------------------------ ##
146714c0a534Smrg
1468576bae58Smrg# ac_fn_c_try_compile LINENO
1469576bae58Smrg# --------------------------
1470576bae58Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1471576bae58Smrgac_fn_c_try_compile ()
147214c0a534Smrg{
1473576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474576bae58Smrg  rm -f conftest.$ac_objext
1475576bae58Smrg  if { { ac_try="$ac_compile"
1476576bae58Smrgcase "(($ac_try" in
1477576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478576bae58Smrg  *) ac_try_echo=$ac_try;;
1479576bae58Smrgesac
1480576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481576bae58Smrg$as_echo "$ac_try_echo"; } >&5
1482576bae58Smrg  (eval "$ac_compile") 2>conftest.err
1483576bae58Smrg  ac_status=$?
1484576bae58Smrg  if test -s conftest.err; then
1485576bae58Smrg    grep -v '^ *+' conftest.err >conftest.er1
1486576bae58Smrg    cat conftest.er1 >&5
1487576bae58Smrg    mv -f conftest.er1 conftest.err
1488576bae58Smrg  fi
1489576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490576bae58Smrg  test $ac_status = 0; } && {
1491576bae58Smrg	 test -z "$ac_c_werror_flag" ||
1492576bae58Smrg	 test ! -s conftest.err
1493576bae58Smrg       } && test -s conftest.$ac_objext; then :
1494576bae58Smrg  ac_retval=0
1495576bae58Smrgelse
1496576bae58Smrg  $as_echo "$as_me: failed program was:" >&5
1497576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
149814c0a534Smrg
1499576bae58Smrg	ac_retval=1
1500576bae58Smrgfi
1501576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502576bae58Smrg  as_fn_set_status $ac_retval
150314c0a534Smrg
1504576bae58Smrg} # ac_fn_c_try_compile
150514c0a534Smrg
1506576bae58Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1507576bae58Smrg# ---------------------------------------------
1508576bae58Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1509576bae58Smrg# accordingly.
1510576bae58Smrgac_fn_c_check_decl ()
1511576bae58Smrg{
1512576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513576bae58Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1514576bae58Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1515576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1516576bae58Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1517576bae58Smrgif eval \${$3+:} false; then :
1518576bae58Smrg  $as_echo_n "(cached) " >&6
1519576bae58Smrgelse
1520576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521576bae58Smrg/* end confdefs.h.  */
1522576bae58Smrg$4
1523576bae58Smrgint
1524576bae58Smrgmain ()
1525576bae58Smrg{
1526576bae58Smrg#ifndef $as_decl_name
1527576bae58Smrg#ifdef __cplusplus
1528576bae58Smrg  (void) $as_decl_use;
1529576bae58Smrg#else
1530576bae58Smrg  (void) $as_decl_name;
1531576bae58Smrg#endif
1532576bae58Smrg#endif
1533576bae58Smrg
1534576bae58Smrg  ;
1535576bae58Smrg  return 0;
1536576bae58Smrg}
1537576bae58Smrg_ACEOF
1538576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
1539576bae58Smrg  eval "$3=yes"
1540576bae58Smrgelse
1541576bae58Smrg  eval "$3=no"
1542576bae58Smrgfi
1543576bae58Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544576bae58Smrgfi
1545576bae58Smrgeval ac_res=\$$3
1546576bae58Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547576bae58Smrg$as_echo "$ac_res" >&6; }
1548576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549576bae58Smrg
1550576bae58Smrg} # ac_fn_c_check_decl
1551576bae58Smrg
1552576bae58Smrg# ac_fn_c_try_cpp LINENO
1553576bae58Smrg# ----------------------
1554576bae58Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555576bae58Smrgac_fn_c_try_cpp ()
1556576bae58Smrg{
1557576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558576bae58Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1559576bae58Smrgcase "(($ac_try" in
1560576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561576bae58Smrg  *) ac_try_echo=$ac_try;;
1562576bae58Smrgesac
1563576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564576bae58Smrg$as_echo "$ac_try_echo"; } >&5
1565576bae58Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566576bae58Smrg  ac_status=$?
1567576bae58Smrg  if test -s conftest.err; then
1568576bae58Smrg    grep -v '^ *+' conftest.err >conftest.er1
1569576bae58Smrg    cat conftest.er1 >&5
1570576bae58Smrg    mv -f conftest.er1 conftest.err
1571576bae58Smrg  fi
1572576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573576bae58Smrg  test $ac_status = 0; } > conftest.i && {
1574576bae58Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575576bae58Smrg	 test ! -s conftest.err
1576576bae58Smrg       }; then :
1577576bae58Smrg  ac_retval=0
1578576bae58Smrgelse
1579576bae58Smrg  $as_echo "$as_me: failed program was:" >&5
1580576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
1581576bae58Smrg
1582576bae58Smrg    ac_retval=1
1583576bae58Smrgfi
1584576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585576bae58Smrg  as_fn_set_status $ac_retval
1586576bae58Smrg
1587576bae58Smrg} # ac_fn_c_try_cpp
1588576bae58Smrg
1589576bae58Smrg# ac_fn_c_try_run LINENO
1590576bae58Smrg# ----------------------
1591576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1592576bae58Smrg# that executables *can* be run.
1593576bae58Smrgac_fn_c_try_run ()
1594576bae58Smrg{
1595576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596576bae58Smrg  if { { ac_try="$ac_link"
1597576bae58Smrgcase "(($ac_try" in
1598576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599576bae58Smrg  *) ac_try_echo=$ac_try;;
1600576bae58Smrgesac
1601576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602576bae58Smrg$as_echo "$ac_try_echo"; } >&5
1603576bae58Smrg  (eval "$ac_link") 2>&5
1604576bae58Smrg  ac_status=$?
1605576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606576bae58Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1607576bae58Smrg  { { case "(($ac_try" in
1608576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609576bae58Smrg  *) ac_try_echo=$ac_try;;
1610576bae58Smrgesac
1611576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612576bae58Smrg$as_echo "$ac_try_echo"; } >&5
1613576bae58Smrg  (eval "$ac_try") 2>&5
1614576bae58Smrg  ac_status=$?
1615576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616576bae58Smrg  test $ac_status = 0; }; }; then :
1617576bae58Smrg  ac_retval=0
1618576bae58Smrgelse
1619576bae58Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1620576bae58Smrg       $as_echo "$as_me: failed program was:" >&5
1621576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
1622576bae58Smrg
1623576bae58Smrg       ac_retval=$ac_status
1624576bae58Smrgfi
1625576bae58Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627576bae58Smrg  as_fn_set_status $ac_retval
1628576bae58Smrg
1629576bae58Smrg} # ac_fn_c_try_run
1630576bae58Smrg
1631576bae58Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632576bae58Smrg# -------------------------------------------------------
1633576bae58Smrg# Tests whether HEADER exists and can be compiled using the include files in
1634576bae58Smrg# INCLUDES, setting the cache variable VAR accordingly.
1635576bae58Smrgac_fn_c_check_header_compile ()
1636576bae58Smrg{
1637576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639576bae58Smrg$as_echo_n "checking for $2... " >&6; }
1640576bae58Smrgif eval \${$3+:} false; then :
1641576bae58Smrg  $as_echo_n "(cached) " >&6
1642576bae58Smrgelse
1643576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644576bae58Smrg/* end confdefs.h.  */
1645576bae58Smrg$4
1646576bae58Smrg#include <$2>
1647576bae58Smrg_ACEOF
1648576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
1649576bae58Smrg  eval "$3=yes"
1650576bae58Smrgelse
1651576bae58Smrg  eval "$3=no"
1652576bae58Smrgfi
1653576bae58Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654576bae58Smrgfi
1655576bae58Smrgeval ac_res=\$$3
1656576bae58Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657576bae58Smrg$as_echo "$ac_res" >&6; }
1658576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659576bae58Smrg
1660576bae58Smrg} # ac_fn_c_check_header_compile
1661576bae58Smrg
1662576bae58Smrg# ac_fn_c_try_link LINENO
1663576bae58Smrg# -----------------------
1664576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1665576bae58Smrgac_fn_c_try_link ()
1666576bae58Smrg{
1667576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668576bae58Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1669576bae58Smrg  if { { ac_try="$ac_link"
1670576bae58Smrgcase "(($ac_try" in
1671576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672576bae58Smrg  *) ac_try_echo=$ac_try;;
1673576bae58Smrgesac
1674576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675576bae58Smrg$as_echo "$ac_try_echo"; } >&5
1676576bae58Smrg  (eval "$ac_link") 2>conftest.err
1677576bae58Smrg  ac_status=$?
1678576bae58Smrg  if test -s conftest.err; then
1679576bae58Smrg    grep -v '^ *+' conftest.err >conftest.er1
1680576bae58Smrg    cat conftest.er1 >&5
1681576bae58Smrg    mv -f conftest.er1 conftest.err
1682576bae58Smrg  fi
1683576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684576bae58Smrg  test $ac_status = 0; } && {
1685576bae58Smrg	 test -z "$ac_c_werror_flag" ||
1686576bae58Smrg	 test ! -s conftest.err
1687576bae58Smrg       } && test -s conftest$ac_exeext && {
1688576bae58Smrg	 test "$cross_compiling" = yes ||
1689576bae58Smrg	 $as_test_x conftest$ac_exeext
1690576bae58Smrg       }; then :
1691576bae58Smrg  ac_retval=0
1692576bae58Smrgelse
1693576bae58Smrg  $as_echo "$as_me: failed program was:" >&5
1694576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
1695576bae58Smrg
1696576bae58Smrg	ac_retval=1
1697576bae58Smrgfi
1698576bae58Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699576bae58Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700576bae58Smrg  # interfere with the next link command; also delete a directory that is
1701576bae58Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1702576bae58Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704576bae58Smrg  as_fn_set_status $ac_retval
1705576bae58Smrg
1706576bae58Smrg} # ac_fn_c_try_link
1707576bae58Smrg
1708576bae58Smrg# ac_fn_c_check_func LINENO FUNC VAR
1709576bae58Smrg# ----------------------------------
1710576bae58Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1711576bae58Smrgac_fn_c_check_func ()
1712576bae58Smrg{
1713576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715576bae58Smrg$as_echo_n "checking for $2... " >&6; }
1716576bae58Smrgif eval \${$3+:} false; then :
1717576bae58Smrg  $as_echo_n "(cached) " >&6
1718576bae58Smrgelse
1719576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720576bae58Smrg/* end confdefs.h.  */
1721576bae58Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722576bae58Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1723576bae58Smrg#define $2 innocuous_$2
1724576bae58Smrg
1725576bae58Smrg/* System header to define __stub macros and hopefully few prototypes,
1726576bae58Smrg    which can conflict with char $2 (); below.
1727576bae58Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728576bae58Smrg    <limits.h> exists even on freestanding compilers.  */
1729576bae58Smrg
1730576bae58Smrg#ifdef __STDC__
1731576bae58Smrg# include <limits.h>
1732576bae58Smrg#else
1733576bae58Smrg# include <assert.h>
1734576bae58Smrg#endif
1735576bae58Smrg
1736576bae58Smrg#undef $2
1737576bae58Smrg
1738576bae58Smrg/* Override any GCC internal prototype to avoid an error.
1739576bae58Smrg   Use char because int might match the return type of a GCC
1740576bae58Smrg   builtin and then its argument prototype would still apply.  */
1741576bae58Smrg#ifdef __cplusplus
1742576bae58Smrgextern "C"
1743576bae58Smrg#endif
1744576bae58Smrgchar $2 ();
1745576bae58Smrg/* The GNU C library defines this for functions which it implements
1746576bae58Smrg    to always fail with ENOSYS.  Some functions are actually named
1747576bae58Smrg    something starting with __ and the normal name is an alias.  */
1748576bae58Smrg#if defined __stub_$2 || defined __stub___$2
1749576bae58Smrgchoke me
1750576bae58Smrg#endif
1751576bae58Smrg
1752576bae58Smrgint
1753576bae58Smrgmain ()
1754576bae58Smrg{
1755576bae58Smrgreturn $2 ();
1756576bae58Smrg  ;
1757576bae58Smrg  return 0;
1758576bae58Smrg}
1759576bae58Smrg_ACEOF
1760576bae58Smrgif ac_fn_c_try_link "$LINENO"; then :
1761576bae58Smrg  eval "$3=yes"
1762576bae58Smrgelse
1763576bae58Smrg  eval "$3=no"
1764576bae58Smrgfi
1765576bae58Smrgrm -f core conftest.err conftest.$ac_objext \
1766576bae58Smrg    conftest$ac_exeext conftest.$ac_ext
1767576bae58Smrgfi
1768576bae58Smrgeval ac_res=\$$3
1769576bae58Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770576bae58Smrg$as_echo "$ac_res" >&6; }
1771576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772576bae58Smrg
1773576bae58Smrg} # ac_fn_c_check_func
1774576bae58Smrgcat >config.log <<_ACEOF
1775576bae58SmrgThis file contains any messages produced by compilers while
1776576bae58Smrgrunning configure, to aid debugging if configure makes a mistake.
1777576bae58Smrg
1778576bae58SmrgIt was created by smproxy $as_me 1.0.4, which was
1779576bae58Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1780576bae58Smrg
1781576bae58Smrg  $ $0 $@
1782576bae58Smrg
1783576bae58Smrg_ACEOF
1784576bae58Smrgexec 5>>config.log
1785576bae58Smrg{
1786576bae58Smrgcat <<_ASUNAME
1787576bae58Smrg## --------- ##
1788576bae58Smrg## Platform. ##
1789576bae58Smrg## --------- ##
1790576bae58Smrg
1791576bae58Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792576bae58Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1793576bae58Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1794576bae58Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1795576bae58Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1796576bae58Smrg
1797576bae58Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798576bae58Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1799576bae58Smrg
1800576bae58Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1801576bae58Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1802576bae58Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803576bae58Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1804576bae58Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1805576bae58Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1806576bae58Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1807576bae58Smrg
1808576bae58Smrg_ASUNAME
1809576bae58Smrg
1810576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181114c0a534Smrgfor as_dir in $PATH
181214c0a534Smrgdo
181314c0a534Smrg  IFS=$as_save_IFS
181414c0a534Smrg  test -z "$as_dir" && as_dir=.
1815576bae58Smrg    $as_echo "PATH: $as_dir"
1816576bae58Smrg  done
1817bf2eeab3SmrgIFS=$as_save_IFS
181814c0a534Smrg
181914c0a534Smrg} >&5
182014c0a534Smrg
182114c0a534Smrgcat >&5 <<_ACEOF
182214c0a534Smrg
182314c0a534Smrg
182414c0a534Smrg## ----------- ##
182514c0a534Smrg## Core tests. ##
182614c0a534Smrg## ----------- ##
182714c0a534Smrg
182814c0a534Smrg_ACEOF
182914c0a534Smrg
183014c0a534Smrg
183114c0a534Smrg# Keep a trace of the command line.
183214c0a534Smrg# Strip out --no-create and --no-recursion so they do not pile up.
183314c0a534Smrg# Strip out --silent because we don't want to record it for future runs.
183414c0a534Smrg# Also quote any args containing shell meta-characters.
183514c0a534Smrg# Make two passes to allow for proper duplicate-argument suppression.
183614c0a534Smrgac_configure_args=
183714c0a534Smrgac_configure_args0=
183814c0a534Smrgac_configure_args1=
183914c0a534Smrgac_must_keep_next=false
184014c0a534Smrgfor ac_pass in 1 2
184114c0a534Smrgdo
184214c0a534Smrg  for ac_arg
184314c0a534Smrg  do
184414c0a534Smrg    case $ac_arg in
184514c0a534Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
184614c0a534Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
184714c0a534Smrg    | -silent | --silent | --silen | --sile | --sil)
184814c0a534Smrg      continue ;;
1849bf2eeab3Smrg    *\'*)
1850bf2eeab3Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
185114c0a534Smrg    esac
185214c0a534Smrg    case $ac_pass in
1853576bae58Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
185414c0a534Smrg    2)
1855576bae58Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
185614c0a534Smrg      if test $ac_must_keep_next = true; then
185714c0a534Smrg	ac_must_keep_next=false # Got value, back to normal.
185814c0a534Smrg      else
185914c0a534Smrg	case $ac_arg in
186014c0a534Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
186114c0a534Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
186214c0a534Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
186314c0a534Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
186414c0a534Smrg	    case "$ac_configure_args0 " in
186514c0a534Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
186614c0a534Smrg	    esac
186714c0a534Smrg	    ;;
186814c0a534Smrg	  -* ) ac_must_keep_next=true ;;
186914c0a534Smrg	esac
187014c0a534Smrg      fi
1871576bae58Smrg      as_fn_append ac_configure_args " '$ac_arg'"
187214c0a534Smrg      ;;
187314c0a534Smrg    esac
187414c0a534Smrg  done
187514c0a534Smrgdone
1876576bae58Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1877576bae58Smrg{ ac_configure_args1=; unset ac_configure_args1;}
187814c0a534Smrg
187914c0a534Smrg# When interrupted or exit'd, cleanup temporary files, and complete
188014c0a534Smrg# config.log.  We remove comments because anyway the quotes in there
188114c0a534Smrg# would cause problems or look ugly.
1882bf2eeab3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1883bf2eeab3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
188414c0a534Smrgtrap 'exit_status=$?
188514c0a534Smrg  # Save into config.log some information that might help in debugging.
188614c0a534Smrg  {
188714c0a534Smrg    echo
188814c0a534Smrg
1889576bae58Smrg    $as_echo "## ---------------- ##
189014c0a534Smrg## Cache variables. ##
1891576bae58Smrg## ---------------- ##"
189214c0a534Smrg    echo
189314c0a534Smrg    # The following way of writing the cache mishandles newlines in values,
1894bf2eeab3Smrg(
1895bf2eeab3Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896bf2eeab3Smrg    eval ac_val=\$$ac_var
1897bf2eeab3Smrg    case $ac_val in #(
1898bf2eeab3Smrg    *${as_nl}*)
1899bf2eeab3Smrg      case $ac_var in #(
1900576bae58Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1901bf2eeab3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1902bf2eeab3Smrg      esac
1903bf2eeab3Smrg      case $ac_var in #(
1904bf2eeab3Smrg      _ | IFS | as_nl) ;; #(
1905bf2eeab3Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906576bae58Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1907bf2eeab3Smrg      esac ;;
1908bf2eeab3Smrg    esac
1909bf2eeab3Smrg  done
191014c0a534Smrg  (set) 2>&1 |
1911bf2eeab3Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912bf2eeab3Smrg    *${as_nl}ac_space=\ *)
191314c0a534Smrg      sed -n \
1914bf2eeab3Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1915bf2eeab3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1916bf2eeab3Smrg      ;; #(
191714c0a534Smrg    *)
1918bf2eeab3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
191914c0a534Smrg      ;;
1920bf2eeab3Smrg    esac |
1921bf2eeab3Smrg    sort
1922bf2eeab3Smrg)
192314c0a534Smrg    echo
192414c0a534Smrg
1925576bae58Smrg    $as_echo "## ----------------- ##
192614c0a534Smrg## Output variables. ##
1927576bae58Smrg## ----------------- ##"
192814c0a534Smrg    echo
192914c0a534Smrg    for ac_var in $ac_subst_vars
193014c0a534Smrg    do
1931bf2eeab3Smrg      eval ac_val=\$$ac_var
1932bf2eeab3Smrg      case $ac_val in
1933bf2eeab3Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934bf2eeab3Smrg      esac
1935bf2eeab3Smrg      $as_echo "$ac_var='\''$ac_val'\''"
193614c0a534Smrg    done | sort
193714c0a534Smrg    echo
193814c0a534Smrg
193914c0a534Smrg    if test -n "$ac_subst_files"; then
1940576bae58Smrg      $as_echo "## ------------------- ##
1941bf2eeab3Smrg## File substitutions. ##
1942576bae58Smrg## ------------------- ##"
194314c0a534Smrg      echo
194414c0a534Smrg      for ac_var in $ac_subst_files
194514c0a534Smrg      do
1946bf2eeab3Smrg	eval ac_val=\$$ac_var
1947bf2eeab3Smrg	case $ac_val in
1948bf2eeab3Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949bf2eeab3Smrg	esac
1950bf2eeab3Smrg	$as_echo "$ac_var='\''$ac_val'\''"
195114c0a534Smrg      done | sort
195214c0a534Smrg      echo
195314c0a534Smrg    fi
195414c0a534Smrg
195514c0a534Smrg    if test -s confdefs.h; then
1956576bae58Smrg      $as_echo "## ----------- ##
195714c0a534Smrg## confdefs.h. ##
1958576bae58Smrg## ----------- ##"
195914c0a534Smrg      echo
1960bf2eeab3Smrg      cat confdefs.h
196114c0a534Smrg      echo
196214c0a534Smrg    fi
196314c0a534Smrg    test "$ac_signal" != 0 &&
1964bf2eeab3Smrg      $as_echo "$as_me: caught signal $ac_signal"
1965bf2eeab3Smrg    $as_echo "$as_me: exit $exit_status"
196614c0a534Smrg  } >&5
1967bf2eeab3Smrg  rm -f core *.core core.conftest.* &&
1968bf2eeab3Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
196914c0a534Smrg    exit $exit_status
1970bf2eeab3Smrg' 0
197114c0a534Smrgfor ac_signal in 1 2 13 15; do
1972576bae58Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
197314c0a534Smrgdone
197414c0a534Smrgac_signal=0
197514c0a534Smrg
197614c0a534Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1977bf2eeab3Smrgrm -f -r conftest* confdefs.h
197814c0a534Smrg
1979576bae58Smrg$as_echo "/* confdefs.h */" > confdefs.h
1980576bae58Smrg
198114c0a534Smrg# Predefined preprocessor variables.
198214c0a534Smrg
198314c0a534Smrgcat >>confdefs.h <<_ACEOF
198414c0a534Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
198514c0a534Smrg_ACEOF
198614c0a534Smrg
198714c0a534Smrgcat >>confdefs.h <<_ACEOF
198814c0a534Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
198914c0a534Smrg_ACEOF
199014c0a534Smrg
199114c0a534Smrgcat >>confdefs.h <<_ACEOF
199214c0a534Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
199314c0a534Smrg_ACEOF
199414c0a534Smrg
199514c0a534Smrgcat >>confdefs.h <<_ACEOF
199614c0a534Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
199714c0a534Smrg_ACEOF
199814c0a534Smrg
199914c0a534Smrgcat >>confdefs.h <<_ACEOF
200014c0a534Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
200114c0a534Smrg_ACEOF
200214c0a534Smrg
2003576bae58Smrgcat >>confdefs.h <<_ACEOF
2004576bae58Smrg#define PACKAGE_URL "$PACKAGE_URL"
2005576bae58Smrg_ACEOF
2006576bae58Smrg
200714c0a534Smrg
200814c0a534Smrg# Let the site file select an alternate cache file if it wants to.
2009bf2eeab3Smrg# Prefer an explicitly selected file to automatically selected ones.
2010bf2eeab3Smrgac_site_file1=NONE
2011bf2eeab3Smrgac_site_file2=NONE
2012bf2eeab3Smrgif test -n "$CONFIG_SITE"; then
2013576bae58Smrg  # We do not want a PATH search for config.site.
2014576bae58Smrg  case $CONFIG_SITE in #((
2015576bae58Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2016576bae58Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2017576bae58Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2018576bae58Smrg  esac
2019bf2eeab3Smrgelif test "x$prefix" != xNONE; then
2020bf2eeab3Smrg  ac_site_file1=$prefix/share/config.site
2021bf2eeab3Smrg  ac_site_file2=$prefix/etc/config.site
2022bf2eeab3Smrgelse
2023bf2eeab3Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2024bf2eeab3Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
202514c0a534Smrgfi
2026bf2eeab3Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2027bf2eeab3Smrgdo
2028bf2eeab3Smrg  test "x$ac_site_file" = xNONE && continue
2029576bae58Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2030576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2031bf2eeab3Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
203214c0a534Smrg    sed 's/^/| /' "$ac_site_file" >&5
2033576bae58Smrg    . "$ac_site_file" \
2034576bae58Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2035576bae58Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036576bae58Smrgas_fn_error $? "failed to load site script $ac_site_file
2037576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
203814c0a534Smrg  fi
203914c0a534Smrgdone
204014c0a534Smrg
204114c0a534Smrgif test -r "$cache_file"; then
2042576bae58Smrg  # Some versions of bash will fail to source /dev/null (special files
2043576bae58Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2044576bae58Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2045576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2046bf2eeab3Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
204714c0a534Smrg    case $cache_file in
2048bf2eeab3Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049bf2eeab3Smrg      *)                      . "./$cache_file";;
205014c0a534Smrg    esac
205114c0a534Smrg  fi
205214c0a534Smrgelse
2053576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2054bf2eeab3Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
205514c0a534Smrg  >$cache_file
205614c0a534Smrgfi
205714c0a534Smrg
205814c0a534Smrg# Check that the precious variables saved in the cache have kept the same
205914c0a534Smrg# value.
206014c0a534Smrgac_cache_corrupted=false
2061bf2eeab3Smrgfor ac_var in $ac_precious_vars; do
206214c0a534Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
206314c0a534Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2064bf2eeab3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2065bf2eeab3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
206614c0a534Smrg  case $ac_old_set,$ac_new_set in
206714c0a534Smrg    set,)
2068576bae58Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2069bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
207014c0a534Smrg      ac_cache_corrupted=: ;;
207114c0a534Smrg    ,set)
2072576bae58Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2073bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
207414c0a534Smrg      ac_cache_corrupted=: ;;
207514c0a534Smrg    ,);;
207614c0a534Smrg    *)
207714c0a534Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2078bf2eeab3Smrg	# differences in whitespace do not lead to failure.
2079bf2eeab3Smrg	ac_old_val_w=`echo x $ac_old_val`
2080bf2eeab3Smrg	ac_new_val_w=`echo x $ac_new_val`
2081bf2eeab3Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2082576bae58Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2083bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2084bf2eeab3Smrg	  ac_cache_corrupted=:
2085bf2eeab3Smrg	else
2086576bae58Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2087bf2eeab3Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2088bf2eeab3Smrg	  eval $ac_var=\$ac_old_val
2089bf2eeab3Smrg	fi
2090576bae58Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2091bf2eeab3Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2092576bae58Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2093bf2eeab3Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
209414c0a534Smrg      fi;;
209514c0a534Smrg  esac
209614c0a534Smrg  # Pass precious variables to config.status.
209714c0a534Smrg  if test "$ac_new_set" = set; then
209814c0a534Smrg    case $ac_new_val in
2099bf2eeab3Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
210014c0a534Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
210114c0a534Smrg    esac
210214c0a534Smrg    case " $ac_configure_args " in
210314c0a534Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2104576bae58Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
210514c0a534Smrg    esac
210614c0a534Smrg  fi
210714c0a534Smrgdone
210814c0a534Smrgif $ac_cache_corrupted; then
2109576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2110bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2112bf2eeab3Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2113576bae58Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
211414c0a534Smrgfi
2115576bae58Smrg## -------------------- ##
2116576bae58Smrg## Main body of script. ##
2117576bae58Smrg## -------------------- ##
211814c0a534Smrg
2119bf2eeab3Smrgac_ext=c
2120bf2eeab3Smrgac_cpp='$CPP $CPPFLAGS'
2121bf2eeab3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122bf2eeab3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123bf2eeab3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
212414c0a534Smrg
212514c0a534Smrg
2126bf2eeab3Smrgam__api_version='1.11'
212714c0a534Smrg
212814c0a534Smrgac_aux_dir=
2129bf2eeab3Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2130bf2eeab3Smrg  if test -f "$ac_dir/install-sh"; then
213114c0a534Smrg    ac_aux_dir=$ac_dir
213214c0a534Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
213314c0a534Smrg    break
2134bf2eeab3Smrg  elif test -f "$ac_dir/install.sh"; then
213514c0a534Smrg    ac_aux_dir=$ac_dir
213614c0a534Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
213714c0a534Smrg    break
2138bf2eeab3Smrg  elif test -f "$ac_dir/shtool"; then
213914c0a534Smrg    ac_aux_dir=$ac_dir
214014c0a534Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
214114c0a534Smrg    break
214214c0a534Smrg  fi
214314c0a534Smrgdone
214414c0a534Smrgif test -z "$ac_aux_dir"; then
2145576bae58Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
214614c0a534Smrgfi
2147bf2eeab3Smrg
2148bf2eeab3Smrg# These three variables are undocumented and unsupported,
2149bf2eeab3Smrg# and are intended to be withdrawn in a future Autoconf release.
2150bf2eeab3Smrg# They can cause serious problems if a builder's source tree is in a directory
2151bf2eeab3Smrg# whose full name contains unusual characters.
2152bf2eeab3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2153bf2eeab3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2154bf2eeab3Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2155bf2eeab3Smrg
215614c0a534Smrg
215714c0a534Smrg# Find a good install program.  We prefer a C program (faster),
215814c0a534Smrg# so one script is as good as another.  But avoid the broken or
215914c0a534Smrg# incompatible versions:
216014c0a534Smrg# SysV /etc/install, /usr/sbin/install
216114c0a534Smrg# SunOS /usr/etc/install
216214c0a534Smrg# IRIX /sbin/install
216314c0a534Smrg# AIX /bin/install
216414c0a534Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
216514c0a534Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
216614c0a534Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
216714c0a534Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
216814c0a534Smrg# OS/2's system install, which has a completely different semantic
216914c0a534Smrg# ./install, which can be erroneously created by make from ./install.sh.
2170bf2eeab3Smrg# Reject install programs that cannot install multiple files.
2171576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2172bf2eeab3Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
217314c0a534Smrgif test -z "$INSTALL"; then
2174576bae58Smrgif ${ac_cv_path_install+:} false; then :
2175bf2eeab3Smrg  $as_echo_n "(cached) " >&6
217614c0a534Smrgelse
217714c0a534Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217814c0a534Smrgfor as_dir in $PATH
217914c0a534Smrgdo
218014c0a534Smrg  IFS=$as_save_IFS
218114c0a534Smrg  test -z "$as_dir" && as_dir=.
2182576bae58Smrg    # Account for people who put trailing slashes in PATH elements.
2183576bae58Smrgcase $as_dir/ in #((
2184576bae58Smrg  ./ | .// | /[cC]/* | \
218514c0a534Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186576bae58Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
218714c0a534Smrg  /usr/ucb/* ) ;;
218814c0a534Smrg  *)
218914c0a534Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
219014c0a534Smrg    # Don't use installbsd from OSF since it installs stuff as root
219114c0a534Smrg    # by default.
219214c0a534Smrg    for ac_prog in ginstall scoinst install; do
219314c0a534Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2194bf2eeab3Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
219514c0a534Smrg	  if test $ac_prog = install &&
219614c0a534Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
219714c0a534Smrg	    # AIX install.  It has an incompatible calling convention.
219814c0a534Smrg	    :
219914c0a534Smrg	  elif test $ac_prog = install &&
220014c0a534Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
220114c0a534Smrg	    # program-specific install script used by HP pwplus--don't use.
220214c0a534Smrg	    :
220314c0a534Smrg	  else
2204bf2eeab3Smrg	    rm -rf conftest.one conftest.two conftest.dir
2205bf2eeab3Smrg	    echo one > conftest.one
2206bf2eeab3Smrg	    echo two > conftest.two
2207bf2eeab3Smrg	    mkdir conftest.dir
2208bf2eeab3Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2209bf2eeab3Smrg	      test -s conftest.one && test -s conftest.two &&
2210bf2eeab3Smrg	      test -s conftest.dir/conftest.one &&
2211bf2eeab3Smrg	      test -s conftest.dir/conftest.two
2212bf2eeab3Smrg	    then
2213bf2eeab3Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2214bf2eeab3Smrg	      break 3
2215bf2eeab3Smrg	    fi
221614c0a534Smrg	  fi
221714c0a534Smrg	fi
221814c0a534Smrg      done
221914c0a534Smrg    done
222014c0a534Smrg    ;;
222114c0a534Smrgesac
2222bf2eeab3Smrg
2223576bae58Smrg  done
2224bf2eeab3SmrgIFS=$as_save_IFS
222514c0a534Smrg
2226bf2eeab3Smrgrm -rf conftest.one conftest.two conftest.dir
222714c0a534Smrg
222814c0a534Smrgfi
222914c0a534Smrg  if test "${ac_cv_path_install+set}" = set; then
223014c0a534Smrg    INSTALL=$ac_cv_path_install
223114c0a534Smrg  else
2232bf2eeab3Smrg    # As a last resort, use the slow shell script.  Don't cache a
2233bf2eeab3Smrg    # value for INSTALL within a source directory, because that will
223414c0a534Smrg    # break other packages using the cache if that directory is
2235bf2eeab3Smrg    # removed, or if the value is a relative name.
223614c0a534Smrg    INSTALL=$ac_install_sh
223714c0a534Smrg  fi
223814c0a534Smrgfi
2239576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2240bf2eeab3Smrg$as_echo "$INSTALL" >&6; }
224114c0a534Smrg
224214c0a534Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
224314c0a534Smrg# It thinks the first close brace ends the variable substitution.
224414c0a534Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
224514c0a534Smrg
224614c0a534Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
224714c0a534Smrg
224814c0a534Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
224914c0a534Smrg
2250576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2251bf2eeab3Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
225214c0a534Smrg# Just in case
225314c0a534Smrgsleep 1
225414c0a534Smrgecho timestamp > conftest.file
2255bf2eeab3Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2256bf2eeab3Smrg# name.  Accept space and tab only in the latter.
2257bf2eeab3Smrgam_lf='
2258bf2eeab3Smrg'
2259bf2eeab3Smrgcase `pwd` in
2260bf2eeab3Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2261576bae58Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2262bf2eeab3Smrgesac
2263bf2eeab3Smrgcase $srcdir in
2264bf2eeab3Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2265576bae58Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2266bf2eeab3Smrgesac
2267bf2eeab3Smrg
226814c0a534Smrg# Do `set' in a subshell so we don't clobber the current shell's
226914c0a534Smrg# arguments.  Must try -L first in case configure is actually a
227014c0a534Smrg# symlink; some systems play weird games with the mod time of symlinks
227114c0a534Smrg# (eg FreeBSD returns the mod time of the symlink's containing
227214c0a534Smrg# directory).
227314c0a534Smrgif (
2274bf2eeab3Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
227514c0a534Smrg   if test "$*" = "X"; then
227614c0a534Smrg      # -L didn't work.
2277bf2eeab3Smrg      set X `ls -t "$srcdir/configure" conftest.file`
227814c0a534Smrg   fi
227914c0a534Smrg   rm -f conftest.file
228014c0a534Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
228114c0a534Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
228214c0a534Smrg
228314c0a534Smrg      # If neither matched, then we have a broken ls.  This can happen
228414c0a534Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
228514c0a534Smrg      # broken ls alias from the environment.  This has actually
228614c0a534Smrg      # happened.  Such a system could not be considered "sane".
2287576bae58Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2288576bae58Smrgalias in your environment" "$LINENO" 5
228914c0a534Smrg   fi
229014c0a534Smrg
229114c0a534Smrg   test "$2" = conftest.file
229214c0a534Smrg   )
229314c0a534Smrgthen
229414c0a534Smrg   # Ok.
229514c0a534Smrg   :
229614c0a534Smrgelse
2297576bae58Smrg   as_fn_error $? "newly created file is older than distributed files!
2298576bae58SmrgCheck your system clock" "$LINENO" 5
229914c0a534Smrgfi
2300576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2301bf2eeab3Smrg$as_echo "yes" >&6; }
230214c0a534Smrgtest "$program_prefix" != NONE &&
2303bf2eeab3Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
230414c0a534Smrg# Use a double $ so make ignores it.
230514c0a534Smrgtest "$program_suffix" != NONE &&
2306bf2eeab3Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307bf2eeab3Smrg# Double any \ or $.
230814c0a534Smrg# By default was `s,x,x', remove it if useless.
2309bf2eeab3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2310bf2eeab3Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
231114c0a534Smrg
231214c0a534Smrg# expand $ac_aux_dir to an absolute path
231314c0a534Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
231414c0a534Smrg
2315bf2eeab3Smrgif test x"${MISSING+set}" != xset; then
2316bf2eeab3Smrg  case $am_aux_dir in
2317bf2eeab3Smrg  *\ * | *\	*)
2318bf2eeab3Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2319bf2eeab3Smrg  *)
2320bf2eeab3Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2321bf2eeab3Smrg  esac
2322bf2eeab3Smrgfi
232314c0a534Smrg# Use eval to expand $SHELL
232414c0a534Smrgif eval "$MISSING --run true"; then
232514c0a534Smrg  am_missing_run="$MISSING --run "
232614c0a534Smrgelse
232714c0a534Smrg  am_missing_run=
2328576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2329bf2eeab3Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2330bf2eeab3Smrgfi
2331bf2eeab3Smrg
2332bf2eeab3Smrgif test x"${install_sh}" != xset; then
2333bf2eeab3Smrg  case $am_aux_dir in
2334bf2eeab3Smrg  *\ * | *\	*)
2335bf2eeab3Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2336bf2eeab3Smrg  *)
2337bf2eeab3Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2338bf2eeab3Smrg  esac
2339bf2eeab3Smrgfi
2340bf2eeab3Smrg
2341bf2eeab3Smrg# Installed binaries are usually stripped using `strip' when the user
2342bf2eeab3Smrg# run `make install-strip'.  However `strip' might not be the right
2343bf2eeab3Smrg# tool to use in cross-compilation environments, therefore Automake
2344bf2eeab3Smrg# will honor the `STRIP' environment variable to overrule this program.
2345bf2eeab3Smrgif test "$cross_compiling" != no; then
2346bf2eeab3Smrg  if test -n "$ac_tool_prefix"; then
2347bf2eeab3Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348bf2eeab3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2349576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2351576bae58Smrgif ${ac_cv_prog_STRIP+:} false; then :
2352bf2eeab3Smrg  $as_echo_n "(cached) " >&6
2353bf2eeab3Smrgelse
2354bf2eeab3Smrg  if test -n "$STRIP"; then
2355bf2eeab3Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356bf2eeab3Smrgelse
2357bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358bf2eeab3Smrgfor as_dir in $PATH
2359bf2eeab3Smrgdo
2360bf2eeab3Smrg  IFS=$as_save_IFS
2361bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
2362576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2363bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364bf2eeab3Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366bf2eeab3Smrg    break 2
2367bf2eeab3Smrg  fi
2368bf2eeab3Smrgdone
2369576bae58Smrg  done
2370bf2eeab3SmrgIFS=$as_save_IFS
2371bf2eeab3Smrg
2372bf2eeab3Smrgfi
2373bf2eeab3Smrgfi
2374bf2eeab3SmrgSTRIP=$ac_cv_prog_STRIP
2375bf2eeab3Smrgif test -n "$STRIP"; then
2376576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2377bf2eeab3Smrg$as_echo "$STRIP" >&6; }
2378bf2eeab3Smrgelse
2379576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380bf2eeab3Smrg$as_echo "no" >&6; }
2381bf2eeab3Smrgfi
2382bf2eeab3Smrg
2383bf2eeab3Smrg
2384bf2eeab3Smrgfi
2385bf2eeab3Smrgif test -z "$ac_cv_prog_STRIP"; then
2386bf2eeab3Smrg  ac_ct_STRIP=$STRIP
2387bf2eeab3Smrg  # Extract the first word of "strip", so it can be a program name with args.
2388bf2eeab3Smrgset dummy strip; ac_word=$2
2389576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2391576bae58Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2392bf2eeab3Smrg  $as_echo_n "(cached) " >&6
2393bf2eeab3Smrgelse
2394bf2eeab3Smrg  if test -n "$ac_ct_STRIP"; then
2395bf2eeab3Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396bf2eeab3Smrgelse
2397bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398bf2eeab3Smrgfor as_dir in $PATH
2399bf2eeab3Smrgdo
2400bf2eeab3Smrg  IFS=$as_save_IFS
2401bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
2402576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2403bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404bf2eeab3Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2405576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406bf2eeab3Smrg    break 2
2407bf2eeab3Smrg  fi
2408bf2eeab3Smrgdone
2409576bae58Smrg  done
2410bf2eeab3SmrgIFS=$as_save_IFS
2411bf2eeab3Smrg
2412bf2eeab3Smrgfi
2413bf2eeab3Smrgfi
2414bf2eeab3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415bf2eeab3Smrgif test -n "$ac_ct_STRIP"; then
2416576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2417bf2eeab3Smrg$as_echo "$ac_ct_STRIP" >&6; }
2418bf2eeab3Smrgelse
2419576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420bf2eeab3Smrg$as_echo "no" >&6; }
2421bf2eeab3Smrgfi
2422bf2eeab3Smrg
2423bf2eeab3Smrg  if test "x$ac_ct_STRIP" = x; then
2424bf2eeab3Smrg    STRIP=":"
2425bf2eeab3Smrg  else
2426bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
2427bf2eeab3Smrgyes:)
2428576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2429bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2430bf2eeab3Smrgac_tool_warned=yes ;;
2431bf2eeab3Smrgesac
2432bf2eeab3Smrg    STRIP=$ac_ct_STRIP
2433bf2eeab3Smrg  fi
2434bf2eeab3Smrgelse
2435bf2eeab3Smrg  STRIP="$ac_cv_prog_STRIP"
2436bf2eeab3Smrgfi
2437bf2eeab3Smrg
2438bf2eeab3Smrgfi
2439bf2eeab3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440bf2eeab3Smrg
2441576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2442bf2eeab3Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2443bf2eeab3Smrgif test -z "$MKDIR_P"; then
2444576bae58Smrg  if ${ac_cv_path_mkdir+:} false; then :
2445bf2eeab3Smrg  $as_echo_n "(cached) " >&6
2446bf2eeab3Smrgelse
2447bf2eeab3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2449bf2eeab3Smrgdo
2450bf2eeab3Smrg  IFS=$as_save_IFS
2451bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
2452576bae58Smrg    for ac_prog in mkdir gmkdir; do
2453bf2eeab3Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2454bf2eeab3Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2455bf2eeab3Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2456bf2eeab3Smrg	     'mkdir (GNU coreutils) '* | \
2457bf2eeab3Smrg	     'mkdir (coreutils) '* | \
2458bf2eeab3Smrg	     'mkdir (fileutils) '4.1*)
2459bf2eeab3Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2460bf2eeab3Smrg	       break 3;;
2461bf2eeab3Smrg	   esac
2462bf2eeab3Smrg	 done
2463bf2eeab3Smrg       done
2464576bae58Smrg  done
2465bf2eeab3SmrgIFS=$as_save_IFS
2466bf2eeab3Smrg
2467bf2eeab3Smrgfi
2468bf2eeab3Smrg
2469576bae58Smrg  test -d ./--version && rmdir ./--version
2470bf2eeab3Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2471bf2eeab3Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
247214c0a534Smrg  else
2473bf2eeab3Smrg    # As a last resort, use the slow shell script.  Don't cache a
2474bf2eeab3Smrg    # value for MKDIR_P within a source directory, because that will
2475bf2eeab3Smrg    # break other packages using the cache if that directory is
2476bf2eeab3Smrg    # removed, or if the value is a relative name.
2477bf2eeab3Smrg    MKDIR_P="$ac_install_sh -d"
247814c0a534Smrg  fi
247914c0a534Smrgfi
2480576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2481bf2eeab3Smrg$as_echo "$MKDIR_P" >&6; }
2482bf2eeab3Smrg
2483bf2eeab3Smrgmkdir_p="$MKDIR_P"
2484bf2eeab3Smrgcase $mkdir_p in
2485bf2eeab3Smrg  [\\/$]* | ?:[\\/]*) ;;
2486bf2eeab3Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2487bf2eeab3Smrgesac
248814c0a534Smrg
248914c0a534Smrgfor ac_prog in gawk mawk nawk awk
249014c0a534Smrgdo
249114c0a534Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
249214c0a534Smrgset dummy $ac_prog; ac_word=$2
2493576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2495576bae58Smrgif ${ac_cv_prog_AWK+:} false; then :
2496bf2eeab3Smrg  $as_echo_n "(cached) " >&6
249714c0a534Smrgelse
249814c0a534Smrg  if test -n "$AWK"; then
249914c0a534Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
250014c0a534Smrgelse
250114c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250214c0a534Smrgfor as_dir in $PATH
250314c0a534Smrgdo
250414c0a534Smrg  IFS=$as_save_IFS
250514c0a534Smrg  test -z "$as_dir" && as_dir=.
2506576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2507bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
250814c0a534Smrg    ac_cv_prog_AWK="$ac_prog"
2509576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
251014c0a534Smrg    break 2
251114c0a534Smrg  fi
251214c0a534Smrgdone
2513576bae58Smrg  done
2514bf2eeab3SmrgIFS=$as_save_IFS
251514c0a534Smrg
251614c0a534Smrgfi
251714c0a534Smrgfi
251814c0a534SmrgAWK=$ac_cv_prog_AWK
251914c0a534Smrgif test -n "$AWK"; then
2520576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2521bf2eeab3Smrg$as_echo "$AWK" >&6; }
252214c0a534Smrgelse
2523576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524bf2eeab3Smrg$as_echo "no" >&6; }
252514c0a534Smrgfi
252614c0a534Smrg
2527bf2eeab3Smrg
252814c0a534Smrg  test -n "$AWK" && break
252914c0a534Smrgdone
253014c0a534Smrg
2531576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2532bf2eeab3Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2533bf2eeab3Smrgset x ${MAKE-make}
2534bf2eeab3Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2535576bae58Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2536bf2eeab3Smrg  $as_echo_n "(cached) " >&6
253714c0a534Smrgelse
253814c0a534Smrg  cat >conftest.make <<\_ACEOF
2539bf2eeab3SmrgSHELL = /bin/sh
254014c0a534Smrgall:
2541bf2eeab3Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
254214c0a534Smrg_ACEOF
2543576bae58Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2544bf2eeab3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2545bf2eeab3Smrg  *@@@%%%=?*=@@@%%%*)
2546bf2eeab3Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2547bf2eeab3Smrg  *)
2548bf2eeab3Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2549bf2eeab3Smrgesac
255014c0a534Smrgrm -f conftest.make
255114c0a534Smrgfi
2552bf2eeab3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2553576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554bf2eeab3Smrg$as_echo "yes" >&6; }
255514c0a534Smrg  SET_MAKE=
255614c0a534Smrgelse
2557576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558bf2eeab3Smrg$as_echo "no" >&6; }
255914c0a534Smrg  SET_MAKE="MAKE=${MAKE-make}"
256014c0a534Smrgfi
256114c0a534Smrg
256214c0a534Smrgrm -rf .tst 2>/dev/null
256314c0a534Smrgmkdir .tst 2>/dev/null
256414c0a534Smrgif test -d .tst; then
256514c0a534Smrg  am__leading_dot=.
256614c0a534Smrgelse
256714c0a534Smrg  am__leading_dot=_
256814c0a534Smrgfi
256914c0a534Smrgrmdir .tst 2>/dev/null
257014c0a534Smrg
2571bf2eeab3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2572bf2eeab3Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2573bf2eeab3Smrg  # is not polluted with repeated "-I."
2574bf2eeab3Smrg  am__isrc=' -I$(srcdir)'
2575bf2eeab3Smrg  # test to see if srcdir already configured
2576bf2eeab3Smrg  if test -f $srcdir/config.status; then
2577576bae58Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2578bf2eeab3Smrg  fi
257914c0a534Smrgfi
258014c0a534Smrg
258114c0a534Smrg# test whether we have cygpath
258214c0a534Smrgif test -z "$CYGPATH_W"; then
258314c0a534Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
258414c0a534Smrg    CYGPATH_W='cygpath -w'
258514c0a534Smrg  else
258614c0a534Smrg    CYGPATH_W=echo
258714c0a534Smrg  fi
258814c0a534Smrgfi
258914c0a534Smrg
259014c0a534Smrg
259114c0a534Smrg# Define the identity of the package.
259214c0a534Smrg PACKAGE='smproxy'
2593576bae58Smrg VERSION='1.0.4'
259414c0a534Smrg
259514c0a534Smrg
259614c0a534Smrgcat >>confdefs.h <<_ACEOF
259714c0a534Smrg#define PACKAGE "$PACKAGE"
259814c0a534Smrg_ACEOF
259914c0a534Smrg
260014c0a534Smrg
260114c0a534Smrgcat >>confdefs.h <<_ACEOF
260214c0a534Smrg#define VERSION "$VERSION"
260314c0a534Smrg_ACEOF
260414c0a534Smrg
260514c0a534Smrg# Some tools Automake needs.
260614c0a534Smrg
260714c0a534SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
260814c0a534Smrg
260914c0a534Smrg
261014c0a534SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
261114c0a534Smrg
261214c0a534Smrg
261314c0a534SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
261414c0a534Smrg
261514c0a534Smrg
261614c0a534SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
261714c0a534Smrg
261814c0a534Smrg
261914c0a534SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
262014c0a534Smrg
262114c0a534Smrg# We need awk for the "check" target.  The system "awk" is bad on
262214c0a534Smrg# some platforms.
262314c0a534Smrg# Always define AMTAR for backward compatibility.
262414c0a534Smrg
262514c0a534SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
262614c0a534Smrg
262714c0a534Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
262814c0a534Smrg
262914c0a534Smrg
263014c0a534Smrg
263114c0a534Smrg
263214c0a534Smrg
2633bf2eeab3Smrg
2634576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2635bf2eeab3Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2636bf2eeab3Smrg    # Check whether --enable-maintainer-mode was given.
2637576bae58Smrgif test "${enable_maintainer_mode+set}" = set; then :
2638bf2eeab3Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
263914c0a534Smrgelse
264014c0a534Smrg  USE_MAINTAINER_MODE=no
2641bf2eeab3Smrgfi
264214c0a534Smrg
2643576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2644bf2eeab3Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2645bf2eeab3Smrg   if test $USE_MAINTAINER_MODE = yes; then
264614c0a534Smrg  MAINTAINER_MODE_TRUE=
264714c0a534Smrg  MAINTAINER_MODE_FALSE='#'
264814c0a534Smrgelse
264914c0a534Smrg  MAINTAINER_MODE_TRUE='#'
265014c0a534Smrg  MAINTAINER_MODE_FALSE=
265114c0a534Smrgfi
265214c0a534Smrg
265314c0a534Smrg  MAINT=$MAINTAINER_MODE_TRUE
265414c0a534Smrg
265514c0a534Smrg
265614c0a534Smrg
2657576bae58Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
265814c0a534Smrg
265914c0a534Smrg
2660bf2eeab3Smrg
2661bf2eeab3Smrg
2662bf2eeab3Smrg
2663bf2eeab3Smrg
2664bf2eeab3Smrg
2665bf2eeab3Smrg
2666bf2eeab3Smrg
2667bf2eeab3Smrg
2668bf2eeab3Smrg
2669bf2eeab3Smrg
2670bf2eeab3Smrgac_config_headers="$ac_config_headers config.h"
2671bf2eeab3Smrg
2672bf2eeab3Smrg
2673576bae58SmrgDEPDIR="${am__leading_dot}deps"
267414c0a534Smrg
2675576bae58Smrgac_config_commands="$ac_config_commands depfiles"
2676576bae58Smrg
2677576bae58Smrg
2678576bae58Smrgam_make=${MAKE-make}
2679576bae58Smrgcat > confinc << 'END'
2680576bae58Smrgam__doit:
2681576bae58Smrg	@echo this is the am__doit target
2682576bae58Smrg.PHONY: am__doit
2683576bae58SmrgEND
2684576bae58Smrg# If we don't find an include directive, just comment out the code.
2685576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2686576bae58Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2687576bae58Smrgam__include="#"
2688576bae58Smrgam__quote=
2689576bae58Smrg_am_result=none
2690576bae58Smrg# First try GNU make style include.
2691576bae58Smrgecho "include confinc" > confmf
2692576bae58Smrg# Ignore all kinds of additional output from `make'.
2693576bae58Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2694576bae58Smrg*the\ am__doit\ target*)
2695576bae58Smrg  am__include=include
2696576bae58Smrg  am__quote=
2697576bae58Smrg  _am_result=GNU
2698576bae58Smrg  ;;
2699576bae58Smrgesac
2700576bae58Smrg# Now try BSD make style include.
2701576bae58Smrgif test "$am__include" = "#"; then
2702576bae58Smrg   echo '.include "confinc"' > confmf
2703576bae58Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2704576bae58Smrg   *the\ am__doit\ target*)
2705576bae58Smrg     am__include=.include
2706576bae58Smrg     am__quote="\""
2707576bae58Smrg     _am_result=BSD
2708576bae58Smrg     ;;
2709576bae58Smrg   esac
2710576bae58Smrgfi
2711576bae58Smrg
2712576bae58Smrg
2713576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2714576bae58Smrg$as_echo "$_am_result" >&6; }
2715576bae58Smrgrm -f confinc confmf
2716576bae58Smrg
2717576bae58Smrg# Check whether --enable-dependency-tracking was given.
2718576bae58Smrgif test "${enable_dependency_tracking+set}" = set; then :
2719576bae58Smrg  enableval=$enable_dependency_tracking;
2720576bae58Smrgfi
2721576bae58Smrg
2722576bae58Smrgif test "x$enable_dependency_tracking" != xno; then
2723576bae58Smrg  am_depcomp="$ac_aux_dir/depcomp"
2724576bae58Smrg  AMDEPBACKSLASH='\'
2725576bae58Smrgfi
2726576bae58Smrg if test "x$enable_dependency_tracking" != xno; then
2727576bae58Smrg  AMDEP_TRUE=
2728576bae58Smrg  AMDEP_FALSE='#'
2729576bae58Smrgelse
2730576bae58Smrg  AMDEP_TRUE='#'
2731576bae58Smrg  AMDEP_FALSE=
2732576bae58Smrgfi
2733576bae58Smrg
2734576bae58Smrg
2735576bae58Smrgac_ext=c
2736576bae58Smrgac_cpp='$CPP $CPPFLAGS'
2737576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2740576bae58Smrgif test -n "$ac_tool_prefix"; then
2741576bae58Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2742576bae58Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2743576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; }
2745576bae58Smrgif ${ac_cv_prog_CC+:} false; then :
2746576bae58Smrg  $as_echo_n "(cached) " >&6
2747576bae58Smrgelse
2748576bae58Smrg  if test -n "$CC"; then
2749576bae58Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2750576bae58Smrgelse
2751576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752576bae58Smrgfor as_dir in $PATH
2753576bae58Smrgdo
2754576bae58Smrg  IFS=$as_save_IFS
2755576bae58Smrg  test -z "$as_dir" && as_dir=.
2756576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2757576bae58Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758576bae58Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2759576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760576bae58Smrg    break 2
2761576bae58Smrg  fi
2762576bae58Smrgdone
2763576bae58Smrg  done
2764576bae58SmrgIFS=$as_save_IFS
2765576bae58Smrg
2766576bae58Smrgfi
2767576bae58Smrgfi
2768576bae58SmrgCC=$ac_cv_prog_CC
2769576bae58Smrgif test -n "$CC"; then
2770576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2771576bae58Smrg$as_echo "$CC" >&6; }
2772576bae58Smrgelse
2773576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774576bae58Smrg$as_echo "no" >&6; }
2775576bae58Smrgfi
277614c0a534Smrg
2777bf2eeab3Smrg
277814c0a534Smrgfi
277914c0a534Smrgif test -z "$ac_cv_prog_CC"; then
278014c0a534Smrg  ac_ct_CC=$CC
278114c0a534Smrg  # Extract the first word of "gcc", so it can be a program name with args.
278214c0a534Smrgset dummy gcc; ac_word=$2
2783576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2785576bae58Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2786bf2eeab3Smrg  $as_echo_n "(cached) " >&6
278714c0a534Smrgelse
278814c0a534Smrg  if test -n "$ac_ct_CC"; then
278914c0a534Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
279014c0a534Smrgelse
279114c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
279214c0a534Smrgfor as_dir in $PATH
279314c0a534Smrgdo
279414c0a534Smrg  IFS=$as_save_IFS
279514c0a534Smrg  test -z "$as_dir" && as_dir=.
2796576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2797bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
279814c0a534Smrg    ac_cv_prog_ac_ct_CC="gcc"
2799576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
280014c0a534Smrg    break 2
280114c0a534Smrg  fi
280214c0a534Smrgdone
2803576bae58Smrg  done
2804bf2eeab3SmrgIFS=$as_save_IFS
280514c0a534Smrg
280614c0a534Smrgfi
280714c0a534Smrgfi
280814c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
280914c0a534Smrgif test -n "$ac_ct_CC"; then
2810576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2811bf2eeab3Smrg$as_echo "$ac_ct_CC" >&6; }
281214c0a534Smrgelse
2813576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814bf2eeab3Smrg$as_echo "no" >&6; }
281514c0a534Smrgfi
281614c0a534Smrg
2817bf2eeab3Smrg  if test "x$ac_ct_CC" = x; then
2818bf2eeab3Smrg    CC=""
2819bf2eeab3Smrg  else
2820bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
2821bf2eeab3Smrgyes:)
2822576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2823bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824bf2eeab3Smrgac_tool_warned=yes ;;
2825bf2eeab3Smrgesac
2826bf2eeab3Smrg    CC=$ac_ct_CC
2827bf2eeab3Smrg  fi
282814c0a534Smrgelse
282914c0a534Smrg  CC="$ac_cv_prog_CC"
283014c0a534Smrgfi
283114c0a534Smrg
283214c0a534Smrgif test -z "$CC"; then
2833bf2eeab3Smrg          if test -n "$ac_tool_prefix"; then
2834bf2eeab3Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
283514c0a534Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2836576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2838576bae58Smrgif ${ac_cv_prog_CC+:} false; then :
2839bf2eeab3Smrg  $as_echo_n "(cached) " >&6
284014c0a534Smrgelse
284114c0a534Smrg  if test -n "$CC"; then
284214c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
284314c0a534Smrgelse
284414c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284514c0a534Smrgfor as_dir in $PATH
284614c0a534Smrgdo
284714c0a534Smrg  IFS=$as_save_IFS
284814c0a534Smrg  test -z "$as_dir" && as_dir=.
2849576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2850bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
285114c0a534Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2852576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
285314c0a534Smrg    break 2
285414c0a534Smrg  fi
285514c0a534Smrgdone
2856576bae58Smrg  done
2857bf2eeab3SmrgIFS=$as_save_IFS
285814c0a534Smrg
285914c0a534Smrgfi
286014c0a534Smrgfi
286114c0a534SmrgCC=$ac_cv_prog_CC
286214c0a534Smrgif test -n "$CC"; then
2863576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864bf2eeab3Smrg$as_echo "$CC" >&6; }
286514c0a534Smrgelse
2866576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867bf2eeab3Smrg$as_echo "no" >&6; }
286814c0a534Smrgfi
286914c0a534Smrg
287014c0a534Smrg
2871bf2eeab3Smrg  fi
287214c0a534Smrgfi
287314c0a534Smrgif test -z "$CC"; then
287414c0a534Smrg  # Extract the first word of "cc", so it can be a program name with args.
287514c0a534Smrgset dummy cc; ac_word=$2
2876576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2878576bae58Smrgif ${ac_cv_prog_CC+:} false; then :
2879bf2eeab3Smrg  $as_echo_n "(cached) " >&6
288014c0a534Smrgelse
288114c0a534Smrg  if test -n "$CC"; then
288214c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
288314c0a534Smrgelse
288414c0a534Smrg  ac_prog_rejected=no
288514c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
288614c0a534Smrgfor as_dir in $PATH
288714c0a534Smrgdo
288814c0a534Smrg  IFS=$as_save_IFS
288914c0a534Smrg  test -z "$as_dir" && as_dir=.
2890576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2891bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
289214c0a534Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
289314c0a534Smrg       ac_prog_rejected=yes
289414c0a534Smrg       continue
289514c0a534Smrg     fi
289614c0a534Smrg    ac_cv_prog_CC="cc"
2897576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
289814c0a534Smrg    break 2
289914c0a534Smrg  fi
290014c0a534Smrgdone
2901576bae58Smrg  done
2902bf2eeab3SmrgIFS=$as_save_IFS
290314c0a534Smrg
290414c0a534Smrgif test $ac_prog_rejected = yes; then
290514c0a534Smrg  # We found a bogon in the path, so make sure we never use it.
290614c0a534Smrg  set dummy $ac_cv_prog_CC
290714c0a534Smrg  shift
290814c0a534Smrg  if test $# != 0; then
290914c0a534Smrg    # We chose a different compiler from the bogus one.
291014c0a534Smrg    # However, it has the same basename, so the bogon will be chosen
291114c0a534Smrg    # first if we set CC to just the basename; use the full file name.
291214c0a534Smrg    shift
291314c0a534Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
291414c0a534Smrg  fi
291514c0a534Smrgfi
291614c0a534Smrgfi
291714c0a534Smrgfi
291814c0a534SmrgCC=$ac_cv_prog_CC
291914c0a534Smrgif test -n "$CC"; then
2920576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921bf2eeab3Smrg$as_echo "$CC" >&6; }
292214c0a534Smrgelse
2923576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924bf2eeab3Smrg$as_echo "no" >&6; }
292514c0a534Smrgfi
292614c0a534Smrg
2927bf2eeab3Smrg
292814c0a534Smrgfi
292914c0a534Smrgif test -z "$CC"; then
293014c0a534Smrg  if test -n "$ac_tool_prefix"; then
2931bf2eeab3Smrg  for ac_prog in cl.exe
293214c0a534Smrg  do
293314c0a534Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
293414c0a534Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2935576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2937576bae58Smrgif ${ac_cv_prog_CC+:} false; then :
2938bf2eeab3Smrg  $as_echo_n "(cached) " >&6
293914c0a534Smrgelse
294014c0a534Smrg  if test -n "$CC"; then
294114c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
294214c0a534Smrgelse
294314c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
294414c0a534Smrgfor as_dir in $PATH
294514c0a534Smrgdo
294614c0a534Smrg  IFS=$as_save_IFS
294714c0a534Smrg  test -z "$as_dir" && as_dir=.
2948576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2949bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
295014c0a534Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2951576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
295214c0a534Smrg    break 2
295314c0a534Smrg  fi
295414c0a534Smrgdone
2955576bae58Smrg  done
2956bf2eeab3SmrgIFS=$as_save_IFS
295714c0a534Smrg
295814c0a534Smrgfi
295914c0a534Smrgfi
296014c0a534SmrgCC=$ac_cv_prog_CC
296114c0a534Smrgif test -n "$CC"; then
2962576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963bf2eeab3Smrg$as_echo "$CC" >&6; }
296414c0a534Smrgelse
2965576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966bf2eeab3Smrg$as_echo "no" >&6; }
296714c0a534Smrgfi
296814c0a534Smrg
2969bf2eeab3Smrg
297014c0a534Smrg    test -n "$CC" && break
297114c0a534Smrg  done
297214c0a534Smrgfi
297314c0a534Smrgif test -z "$CC"; then
297414c0a534Smrg  ac_ct_CC=$CC
2975bf2eeab3Smrg  for ac_prog in cl.exe
297614c0a534Smrgdo
297714c0a534Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
297814c0a534Smrgset dummy $ac_prog; ac_word=$2
2979576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; }
2981576bae58Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2982bf2eeab3Smrg  $as_echo_n "(cached) " >&6
298314c0a534Smrgelse
298414c0a534Smrg  if test -n "$ac_ct_CC"; then
298514c0a534Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
298614c0a534Smrgelse
298714c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
298814c0a534Smrgfor as_dir in $PATH
298914c0a534Smrgdo
299014c0a534Smrg  IFS=$as_save_IFS
299114c0a534Smrg  test -z "$as_dir" && as_dir=.
2992576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2993bf2eeab3Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
299414c0a534Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2995576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
299614c0a534Smrg    break 2
299714c0a534Smrg  fi
299814c0a534Smrgdone
2999576bae58Smrg  done
3000bf2eeab3SmrgIFS=$as_save_IFS
300114c0a534Smrg
300214c0a534Smrgfi
300314c0a534Smrgfi
300414c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
300514c0a534Smrgif test -n "$ac_ct_CC"; then
3006576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007bf2eeab3Smrg$as_echo "$ac_ct_CC" >&6; }
300814c0a534Smrgelse
3009576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010bf2eeab3Smrg$as_echo "no" >&6; }
301114c0a534Smrgfi
301214c0a534Smrg
3013bf2eeab3Smrg
301414c0a534Smrg  test -n "$ac_ct_CC" && break
301514c0a534Smrgdone
301614c0a534Smrg
3017bf2eeab3Smrg  if test "x$ac_ct_CC" = x; then
3018bf2eeab3Smrg    CC=""
3019bf2eeab3Smrg  else
3020bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
3021bf2eeab3Smrgyes:)
3022576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024bf2eeab3Smrgac_tool_warned=yes ;;
3025bf2eeab3Smrgesac
3026bf2eeab3Smrg    CC=$ac_ct_CC
3027bf2eeab3Smrg  fi
302814c0a534Smrgfi
302914c0a534Smrg
303014c0a534Smrgfi
303114c0a534Smrg
303214c0a534Smrg
3033576bae58Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035576bae58Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3036576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
303714c0a534Smrg
303814c0a534Smrg# Provide some information about the compiler.
3039576bae58Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3040bf2eeab3Smrgset X $ac_compile
3041bf2eeab3Smrgac_compiler=$2
3042576bae58Smrgfor ac_option in --version -v -V -qversion; do
3043576bae58Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3044bf2eeab3Smrgcase "(($ac_try" in
3045bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3047bf2eeab3Smrgesac
3048576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3050576bae58Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
305114c0a534Smrg  ac_status=$?
3052576bae58Smrg  if test -s conftest.err; then
3053576bae58Smrg    sed '10a\
3054576bae58Smrg... rest of stderr output deleted ...
3055576bae58Smrg         10q' conftest.err >conftest.er1
3056576bae58Smrg    cat conftest.er1 >&5
3057576bae58Smrg  fi
3058576bae58Smrg  rm -f conftest.er1 conftest.err
3059576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060576bae58Smrg  test $ac_status = 0; }
3061576bae58Smrgdone
306214c0a534Smrg
3063576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
306414c0a534Smrg/* end confdefs.h.  */
306514c0a534Smrg
306614c0a534Smrgint
306714c0a534Smrgmain ()
306814c0a534Smrg{
306914c0a534Smrg
307014c0a534Smrg  ;
307114c0a534Smrg  return 0;
307214c0a534Smrg}
307314c0a534Smrg_ACEOF
307414c0a534Smrgac_clean_files_save=$ac_clean_files
3075bf2eeab3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
307614c0a534Smrg# Try to create an executable without -o first, disregard a.out.
307714c0a534Smrg# It will help us diagnose broken compilers, and finding out an intuition
307814c0a534Smrg# of exeext.
3079576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3080576bae58Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3081bf2eeab3Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082bf2eeab3Smrg
3083bf2eeab3Smrg# The possible output files:
3084bf2eeab3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3085bf2eeab3Smrg
3086bf2eeab3Smrgac_rmfiles=
3087bf2eeab3Smrgfor ac_file in $ac_files
3088bf2eeab3Smrgdo
3089bf2eeab3Smrg  case $ac_file in
3090bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3091bf2eeab3Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092bf2eeab3Smrg  esac
3093bf2eeab3Smrgdone
3094bf2eeab3Smrgrm -f $ac_rmfiles
3095bf2eeab3Smrg
3096576bae58Smrgif { { ac_try="$ac_link_default"
3097bf2eeab3Smrgcase "(($ac_try" in
3098bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3100bf2eeab3Smrgesac
3101576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3103bf2eeab3Smrg  (eval "$ac_link_default") 2>&5
310414c0a534Smrg  ac_status=$?
3105576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106576bae58Smrg  test $ac_status = 0; }; then :
3107bf2eeab3Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3108bf2eeab3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3109bf2eeab3Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3110bf2eeab3Smrg# so that the user can short-circuit this test for compilers unknown to
3111bf2eeab3Smrg# Autoconf.
3112bf2eeab3Smrgfor ac_file in $ac_files ''
311314c0a534Smrgdo
311414c0a534Smrg  test -f "$ac_file" || continue
311514c0a534Smrg  case $ac_file in
3116bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
311714c0a534Smrg	;;
311814c0a534Smrg    [ab].out )
311914c0a534Smrg	# We found the default executable, but exeext='' is most
312014c0a534Smrg	# certainly right.
312114c0a534Smrg	break;;
312214c0a534Smrg    *.* )
3123576bae58Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124bf2eeab3Smrg	then :; else
3125bf2eeab3Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126bf2eeab3Smrg	fi
3127bf2eeab3Smrg	# We set ac_cv_exeext here because the later test for it is not
3128bf2eeab3Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3129bf2eeab3Smrg	# argument, so we may need to know it at that point already.
3130bf2eeab3Smrg	# Even if this section looks crufty: it has the advantage of
3131bf2eeab3Smrg	# actually working.
313214c0a534Smrg	break;;
313314c0a534Smrg    * )
313414c0a534Smrg	break;;
313514c0a534Smrg  esac
313614c0a534Smrgdone
3137bf2eeab3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3138bf2eeab3Smrg
313914c0a534Smrgelse
3140bf2eeab3Smrg  ac_file=''
3141bf2eeab3Smrgfi
3142576bae58Smrgif test -z "$ac_file"; then :
3143576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144576bae58Smrg$as_echo "no" >&6; }
3145576bae58Smrg$as_echo "$as_me: failed program was:" >&5
314614c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5
314714c0a534Smrg
3148576bae58Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150576bae58Smrgas_fn_error 77 "C compiler cannot create executables
3151576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
3152576bae58Smrgelse
3153576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3154576bae58Smrg$as_echo "yes" >&6; }
315514c0a534Smrgfi
3156576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3157576bae58Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3158576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3159576bae58Smrg$as_echo "$ac_file" >&6; }
316014c0a534Smrgac_exeext=$ac_cv_exeext
316114c0a534Smrg
3162bf2eeab3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
316314c0a534Smrgac_clean_files=$ac_clean_files_save
3164576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3165bf2eeab3Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3166576bae58Smrgif { { ac_try="$ac_link"
3167bf2eeab3Smrgcase "(($ac_try" in
3168bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3170bf2eeab3Smrgesac
3171576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3173bf2eeab3Smrg  (eval "$ac_link") 2>&5
317414c0a534Smrg  ac_status=$?
3175576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176576bae58Smrg  test $ac_status = 0; }; then :
317714c0a534Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
317814c0a534Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
317914c0a534Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
318014c0a534Smrg# `rm'.
318114c0a534Smrgfor ac_file in conftest.exe conftest conftest.*; do
318214c0a534Smrg  test -f "$ac_file" || continue
318314c0a534Smrg  case $ac_file in
3184bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
318514c0a534Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
318614c0a534Smrg	  break;;
318714c0a534Smrg    * ) break;;
318814c0a534Smrg  esac
318914c0a534Smrgdone
319014c0a534Smrgelse
3191576bae58Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193576bae58Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3194576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
319514c0a534Smrgfi
3196576bae58Smrgrm -f conftest conftest$ac_cv_exeext
3197576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3198bf2eeab3Smrg$as_echo "$ac_cv_exeext" >&6; }
319914c0a534Smrg
320014c0a534Smrgrm -f conftest.$ac_ext
320114c0a534SmrgEXEEXT=$ac_cv_exeext
320214c0a534Smrgac_exeext=$EXEEXT
3203576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204576bae58Smrg/* end confdefs.h.  */
3205576bae58Smrg#include <stdio.h>
3206576bae58Smrgint
3207576bae58Smrgmain ()
3208576bae58Smrg{
3209576bae58SmrgFILE *f = fopen ("conftest.out", "w");
3210576bae58Smrg return ferror (f) || fclose (f) != 0;
3211576bae58Smrg
3212576bae58Smrg  ;
3213576bae58Smrg  return 0;
3214576bae58Smrg}
3215576bae58Smrg_ACEOF
3216576bae58Smrgac_clean_files="$ac_clean_files conftest.out"
3217576bae58Smrg# Check that the compiler produces executables we can run.  If not, either
3218576bae58Smrg# the compiler is broken, or we cross compile.
3219576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3220576bae58Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3221576bae58Smrgif test "$cross_compiling" != yes; then
3222576bae58Smrg  { { ac_try="$ac_link"
3223576bae58Smrgcase "(($ac_try" in
3224576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225576bae58Smrg  *) ac_try_echo=$ac_try;;
3226576bae58Smrgesac
3227576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3229576bae58Smrg  (eval "$ac_link") 2>&5
3230576bae58Smrg  ac_status=$?
3231576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232576bae58Smrg  test $ac_status = 0; }
3233576bae58Smrg  if { ac_try='./conftest$ac_cv_exeext'
3234576bae58Smrg  { { case "(($ac_try" in
3235576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236576bae58Smrg  *) ac_try_echo=$ac_try;;
3237576bae58Smrgesac
3238576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3240576bae58Smrg  (eval "$ac_try") 2>&5
3241576bae58Smrg  ac_status=$?
3242576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243576bae58Smrg  test $ac_status = 0; }; }; then
3244576bae58Smrg    cross_compiling=no
3245576bae58Smrg  else
3246576bae58Smrg    if test "$cross_compiling" = maybe; then
3247576bae58Smrg	cross_compiling=yes
3248576bae58Smrg    else
3249576bae58Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250576bae58Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251576bae58Smrgas_fn_error $? "cannot run C compiled programs.
3252576bae58SmrgIf you meant to cross compile, use \`--host'.
3253576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
3254576bae58Smrg    fi
3255576bae58Smrg  fi
3256576bae58Smrgfi
3257576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3258576bae58Smrg$as_echo "$cross_compiling" >&6; }
3259576bae58Smrg
3260576bae58Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3261576bae58Smrgac_clean_files=$ac_clean_files_save
3262576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3263bf2eeab3Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3264576bae58Smrgif ${ac_cv_objext+:} false; then :
3265bf2eeab3Smrg  $as_echo_n "(cached) " >&6
326614c0a534Smrgelse
3267576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
326814c0a534Smrg/* end confdefs.h.  */
326914c0a534Smrg
327014c0a534Smrgint
327114c0a534Smrgmain ()
327214c0a534Smrg{
327314c0a534Smrg
327414c0a534Smrg  ;
327514c0a534Smrg  return 0;
327614c0a534Smrg}
327714c0a534Smrg_ACEOF
327814c0a534Smrgrm -f conftest.o conftest.obj
3279576bae58Smrgif { { ac_try="$ac_compile"
3280bf2eeab3Smrgcase "(($ac_try" in
3281bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3283bf2eeab3Smrgesac
3284576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285576bae58Smrg$as_echo "$ac_try_echo"; } >&5
3286bf2eeab3Smrg  (eval "$ac_compile") 2>&5
328714c0a534Smrg  ac_status=$?
3288576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289576bae58Smrg  test $ac_status = 0; }; then :
3290bf2eeab3Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3291bf2eeab3Smrg  test -f "$ac_file" || continue;
329214c0a534Smrg  case $ac_file in
3293bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
329414c0a534Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
329514c0a534Smrg       break;;
329614c0a534Smrg  esac
329714c0a534Smrgdone
329814c0a534Smrgelse
3299bf2eeab3Smrg  $as_echo "$as_me: failed program was:" >&5
330014c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5
330114c0a534Smrg
3302576bae58Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304576bae58Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3305576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
330614c0a534Smrgfi
330714c0a534Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
330814c0a534Smrgfi
3309576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3310bf2eeab3Smrg$as_echo "$ac_cv_objext" >&6; }
331114c0a534SmrgOBJEXT=$ac_cv_objext
331214c0a534Smrgac_objext=$OBJEXT
3313576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3314bf2eeab3Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3315576bae58Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3316bf2eeab3Smrg  $as_echo_n "(cached) " >&6
331714c0a534Smrgelse
3318576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
331914c0a534Smrg/* end confdefs.h.  */
332014c0a534Smrg
332114c0a534Smrgint
332214c0a534Smrgmain ()
332314c0a534Smrg{
332414c0a534Smrg#ifndef __GNUC__
332514c0a534Smrg       choke me
332614c0a534Smrg#endif
332714c0a534Smrg
332814c0a534Smrg  ;
332914c0a534Smrg  return 0;
333014c0a534Smrg}
333114c0a534Smrg_ACEOF
3332576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
333314c0a534Smrg  ac_compiler_gnu=yes
333414c0a534Smrgelse
3335576bae58Smrg  ac_compiler_gnu=no
333614c0a534Smrgfi
3337bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
333814c0a534Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
333914c0a534Smrg
334014c0a534Smrgfi
3341576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3342bf2eeab3Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3343bf2eeab3Smrgif test $ac_compiler_gnu = yes; then
3344bf2eeab3Smrg  GCC=yes
3345bf2eeab3Smrgelse
3346bf2eeab3Smrg  GCC=
3347bf2eeab3Smrgfi
334814c0a534Smrgac_test_CFLAGS=${CFLAGS+set}
334914c0a534Smrgac_save_CFLAGS=$CFLAGS
3350576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3351bf2eeab3Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3352576bae58Smrgif ${ac_cv_prog_cc_g+:} false; then :
3353bf2eeab3Smrg  $as_echo_n "(cached) " >&6
335414c0a534Smrgelse
3355bf2eeab3Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3356bf2eeab3Smrg   ac_c_werror_flag=yes
3357bf2eeab3Smrg   ac_cv_prog_cc_g=no
3358bf2eeab3Smrg   CFLAGS="-g"
3359576bae58Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
336014c0a534Smrg/* end confdefs.h.  */
336114c0a534Smrg
336214c0a534Smrgint
336314c0a534Smrgmain ()
336414c0a534Smrg{
336514c0a534Smrg
336614c0a534Smrg  ;
336714c0a534Smrg  return 0;
336814c0a534Smrg}
336914c0a534Smrg_ACEOF
3370576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
3371bf2eeab3Smrg  ac_cv_prog_cc_g=yes
3372bf2eeab3Smrgelse
3373576bae58Smrg  CFLAGS=""
3374576bae58Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375bf2eeab3Smrg/* end confdefs.h.  */
3376bf2eeab3Smrg
3377bf2eeab3Smrgint
3378bf2eeab3Smrgmain ()
3379bf2eeab3Smrg{
3380bf2eeab3Smrg
3381bf2eeab3Smrg  ;
3382bf2eeab3Smrg  return 0;
3383bf2eeab3Smrg}
3384bf2eeab3Smrg_ACEOF
3385576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
3386bf2eeab3Smrg
3387576bae58Smrgelse
3388576bae58Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3389bf2eeab3Smrg	 CFLAGS="-g"
3390576bae58Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391bf2eeab3Smrg/* end confdefs.h.  */
3392bf2eeab3Smrg
3393bf2eeab3Smrgint
3394bf2eeab3Smrgmain ()
3395bf2eeab3Smrg{
3396bf2eeab3Smrg
3397bf2eeab3Smrg  ;
3398bf2eeab3Smrg  return 0;
3399bf2eeab3Smrg}
3400bf2eeab3Smrg_ACEOF
3401576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
340214c0a534Smrg  ac_cv_prog_cc_g=yes
3403bf2eeab3Smrgfi
3404bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405bf2eeab3Smrgfi
3406bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
340714c0a534Smrgfi
3408bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409bf2eeab3Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
341014c0a534Smrgfi
3411576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3412bf2eeab3Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
341314c0a534Smrgif test "$ac_test_CFLAGS" = set; then
341414c0a534Smrg  CFLAGS=$ac_save_CFLAGS
341514c0a534Smrgelif test $ac_cv_prog_cc_g = yes; then
341614c0a534Smrg  if test "$GCC" = yes; then
341714c0a534Smrg    CFLAGS="-g -O2"
341814c0a534Smrg  else
341914c0a534Smrg    CFLAGS="-g"
342014c0a534Smrg  fi
342114c0a534Smrgelse
342214c0a534Smrg  if test "$GCC" = yes; then
342314c0a534Smrg    CFLAGS="-O2"
342414c0a534Smrg  else
342514c0a534Smrg    CFLAGS=
342614c0a534Smrg  fi
342714c0a534Smrgfi
3428576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3429bf2eeab3Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3430576bae58Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3431bf2eeab3Smrg  $as_echo_n "(cached) " >&6
343214c0a534Smrgelse
3433bf2eeab3Smrg  ac_cv_prog_cc_c89=no
343414c0a534Smrgac_save_CC=$CC
3435576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
343614c0a534Smrg/* end confdefs.h.  */
343714c0a534Smrg#include <stdarg.h>
343814c0a534Smrg#include <stdio.h>
343914c0a534Smrg#include <sys/types.h>
344014c0a534Smrg#include <sys/stat.h>
344114c0a534Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
344214c0a534Smrgstruct buf { int x; };
344314c0a534SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
344414c0a534Smrgstatic char *e (p, i)
344514c0a534Smrg     char **p;
344614c0a534Smrg     int i;
344714c0a534Smrg{
344814c0a534Smrg  return p[i];
344914c0a534Smrg}
345014c0a534Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
345114c0a534Smrg{
345214c0a534Smrg  char *s;
345314c0a534Smrg  va_list v;
345414c0a534Smrg  va_start (v,p);
345514c0a534Smrg  s = g (p, va_arg (v,int));
345614c0a534Smrg  va_end (v);
345714c0a534Smrg  return s;
345814c0a534Smrg}
345914c0a534Smrg
346014c0a534Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
346114c0a534Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
346214c0a534Smrg   These don't provoke an error unfortunately, instead are silently treated
3463bf2eeab3Smrg   as 'x'.  The following induces an error, until -std is added to get
346414c0a534Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
346514c0a534Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3466bf2eeab3Smrg   that's true only with -std.  */
346714c0a534Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
346814c0a534Smrg
3469bf2eeab3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470bf2eeab3Smrg   inside strings and character constants.  */
3471bf2eeab3Smrg#define FOO(x) 'x'
3472bf2eeab3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3473bf2eeab3Smrg
347414c0a534Smrgint test (int i, double x);
347514c0a534Smrgstruct s1 {int (*f) (int a);};
347614c0a534Smrgstruct s2 {int (*f) (double a);};
347714c0a534Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
347814c0a534Smrgint argc;
347914c0a534Smrgchar **argv;
348014c0a534Smrgint
348114c0a534Smrgmain ()
348214c0a534Smrg{
348314c0a534Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
348414c0a534Smrg  ;
348514c0a534Smrg  return 0;
348614c0a534Smrg}
348714c0a534Smrg_ACEOF
3488bf2eeab3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489bf2eeab3Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
349014c0a534Smrgdo
349114c0a534Smrg  CC="$ac_save_CC $ac_arg"
3492576bae58Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3493bf2eeab3Smrg  ac_cv_prog_cc_c89=$ac_arg
349414c0a534Smrgfi
3495bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext
3496bf2eeab3Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
349714c0a534Smrgdone
3498bf2eeab3Smrgrm -f conftest.$ac_ext
349914c0a534SmrgCC=$ac_save_CC
350014c0a534Smrg
350114c0a534Smrgfi
3502bf2eeab3Smrg# AC_CACHE_VAL
3503bf2eeab3Smrgcase "x$ac_cv_prog_cc_c89" in
3504bf2eeab3Smrg  x)
3505576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506bf2eeab3Smrg$as_echo "none needed" >&6; } ;;
3507bf2eeab3Smrg  xno)
3508576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509bf2eeab3Smrg$as_echo "unsupported" >&6; } ;;
351014c0a534Smrg  *)
3511bf2eeab3Smrg    CC="$CC $ac_cv_prog_cc_c89"
3512576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3513bf2eeab3Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
351414c0a534Smrgesac
3515576bae58Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
351614c0a534Smrg
3517576bae58Smrgfi
351814c0a534Smrg
351914c0a534Smrgac_ext=c
352014c0a534Smrgac_cpp='$CPP $CPPFLAGS'
352114c0a534Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
352214c0a534Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
352314c0a534Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
352414c0a534Smrg
352514c0a534Smrgdepcc="$CC"   am_compiler_list=
352614c0a534Smrg
3527576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3528bf2eeab3Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3529576bae58Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3530bf2eeab3Smrg  $as_echo_n "(cached) " >&6
353114c0a534Smrgelse
353214c0a534Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
353314c0a534Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
353414c0a534Smrg  # making bogus files that we don't know about and never remove.  For
353514c0a534Smrg  # instance it was reported that on HP-UX the gcc test will end up
353614c0a534Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
353714c0a534Smrg  # in D'.
353814c0a534Smrg  mkdir conftest.dir
353914c0a534Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
354014c0a534Smrg  # using a relative directory.
354114c0a534Smrg  cp "$am_depcomp" conftest.dir
354214c0a534Smrg  cd conftest.dir
354314c0a534Smrg  # We will build objects and dependencies in a subdirectory because
354414c0a534Smrg  # it helps to detect inapplicable dependency modes.  For instance
354514c0a534Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
354614c0a534Smrg  # side effect of compilation, but ICC will put the dependencies in
354714c0a534Smrg  # the current directory while Tru64 will put them in the object
354814c0a534Smrg  # directory.
354914c0a534Smrg  mkdir sub
355014c0a534Smrg
355114c0a534Smrg  am_cv_CC_dependencies_compiler_type=none
355214c0a534Smrg  if test "$am_compiler_list" = ""; then
355314c0a534Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
355414c0a534Smrg  fi
3555bf2eeab3Smrg  am__universal=false
3556bf2eeab3Smrg  case " $depcc " in #(
3557bf2eeab3Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3558bf2eeab3Smrg     esac
3559bf2eeab3Smrg
356014c0a534Smrg  for depmode in $am_compiler_list; do
356114c0a534Smrg    # Setup a source with many dependencies, because some compilers
356214c0a534Smrg    # like to wrap large dependency lists on column 80 (with \), and
356314c0a534Smrg    # we should not choose a depcomp mode which is confused by this.
356414c0a534Smrg    #
356514c0a534Smrg    # We need to recreate these files for each test, as the compiler may
356614c0a534Smrg    # overwrite some of them when testing with obscure command lines.
356714c0a534Smrg    # This happens at least with the AIX C compiler.
356814c0a534Smrg    : > sub/conftest.c
356914c0a534Smrg    for i in 1 2 3 4 5 6; do
357014c0a534Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
357114c0a534Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
357214c0a534Smrg      # Solaris 8's {/usr,}/bin/sh.
357314c0a534Smrg      touch sub/conftst$i.h
357414c0a534Smrg    done
357514c0a534Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
357614c0a534Smrg
3577bf2eeab3Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578bf2eeab3Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3579bf2eeab3Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3580bf2eeab3Smrg    # versions had trouble with output in subdirs
3581bf2eeab3Smrg    am__obj=sub/conftest.${OBJEXT-o}
3582bf2eeab3Smrg    am__minus_obj="-o $am__obj"
358314c0a534Smrg    case $depmode in
3584bf2eeab3Smrg    gcc)
3585bf2eeab3Smrg      # This depmode causes a compiler race in universal mode.
3586bf2eeab3Smrg      test "$am__universal" = false || continue
3587bf2eeab3Smrg      ;;
358814c0a534Smrg    nosideeffect)
358914c0a534Smrg      # after this tag, mechanisms are not by side-effect, so they'll
359014c0a534Smrg      # only be used when explicitly requested
359114c0a534Smrg      if test "x$enable_dependency_tracking" = xyes; then
359214c0a534Smrg	continue
359314c0a534Smrg      else
359414c0a534Smrg	break
359514c0a534Smrg      fi
359614c0a534Smrg      ;;
3597bf2eeab3Smrg    msvisualcpp | msvcmsys)
3598bf2eeab3Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3599bf2eeab3Smrg      # not run yet.  These depmodes are late enough in the game, and
3600bf2eeab3Smrg      # so weak that their functioning should not be impacted.
3601bf2eeab3Smrg      am__obj=conftest.${OBJEXT-o}
3602bf2eeab3Smrg      am__minus_obj=
3603bf2eeab3Smrg      ;;
360414c0a534Smrg    none) break ;;
360514c0a534Smrg    esac
360614c0a534Smrg    if depmode=$depmode \
3607bf2eeab3Smrg       source=sub/conftest.c object=$am__obj \
360814c0a534Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609bf2eeab3Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
361014c0a534Smrg         >/dev/null 2>conftest.err &&
3611bf2eeab3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
361214c0a534Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613bf2eeab3Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
361414c0a534Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
361514c0a534Smrg      # icc doesn't choke on unknown options, it will just issue warnings
361614c0a534Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
361714c0a534Smrg      # that says an option was ignored or not supported.
361814c0a534Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
361914c0a534Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
362014c0a534Smrg      # The diagnosis changed in icc 8.0:
362114c0a534Smrg      #   icc: Command line remark: option '-MP' not supported
362214c0a534Smrg      if (grep 'ignoring option' conftest.err ||
362314c0a534Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
362414c0a534Smrg        am_cv_CC_dependencies_compiler_type=$depmode
362514c0a534Smrg        break
362614c0a534Smrg      fi
362714c0a534Smrg    fi
362814c0a534Smrg  done
362914c0a534Smrg
363014c0a534Smrg  cd ..
363114c0a534Smrg  rm -rf conftest.dir
363214c0a534Smrgelse
363314c0a534Smrg  am_cv_CC_dependencies_compiler_type=none
363414c0a534Smrgfi
363514c0a534Smrg
363614c0a534Smrgfi
3637576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3638bf2eeab3Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
363914c0a534SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
364014c0a534Smrg
3641bf2eeab3Smrg if
364214c0a534Smrg  test "x$enable_dependency_tracking" != xno \
364314c0a534Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
364414c0a534Smrg  am__fastdepCC_TRUE=
364514c0a534Smrg  am__fastdepCC_FALSE='#'
364614c0a534Smrgelse
364714c0a534Smrg  am__fastdepCC_TRUE='#'
364814c0a534Smrg  am__fastdepCC_FALSE=
364914c0a534Smrgfi
365014c0a534Smrg
365114c0a534Smrg
3652576bae58Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3653576bae58Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3654576bae58Smrgif ${ac_cv_prog_cc_c99+:} false; then :
3655bf2eeab3Smrg  $as_echo_n "(cached) " >&6
365614c0a534Smrgelse
3657576bae58Smrg  ac_cv_prog_cc_c99=no
3658576bae58Smrgac_save_CC=$CC
3659576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660576bae58Smrg/* end confdefs.h.  */
3661576bae58Smrg#include <stdarg.h>
3662576bae58Smrg#include <stdbool.h>
3663576bae58Smrg#include <stdlib.h>
3664576bae58Smrg#include <wchar.h>
3665576bae58Smrg#include <stdio.h>
3666bf2eeab3Smrg
3667576bae58Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3668576bae58Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3669576bae58Smrg#define showlist(...) puts (#__VA_ARGS__)
3670576bae58Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3671576bae58Smrgstatic void
3672576bae58Smrgtest_varargs_macros (void)
3673576bae58Smrg{
3674576bae58Smrg  int x = 1234;
3675576bae58Smrg  int y = 5678;
3676576bae58Smrg  debug ("Flag");
3677576bae58Smrg  debug ("X = %d\n", x);
3678576bae58Smrg  showlist (The first, second, and third items.);
3679576bae58Smrg  report (x>y, "x is %d but y is %d", x, y);
3680576bae58Smrg}
368114c0a534Smrg
3682576bae58Smrg// Check long long types.
3683576bae58Smrg#define BIG64 18446744073709551615ull
3684576bae58Smrg#define BIG32 4294967295ul
3685576bae58Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3686576bae58Smrg#if !BIG_OK
3687576bae58Smrg  your preprocessor is broken;
3688576bae58Smrg#endif
3689576bae58Smrg#if BIG_OK
3690576bae58Smrg#else
3691576bae58Smrg  your preprocessor is broken;
3692576bae58Smrg#endif
3693576bae58Smrgstatic long long int bignum = -9223372036854775807LL;
3694576bae58Smrgstatic unsigned long long int ubignum = BIG64;
369514c0a534Smrg
3696576bae58Smrgstruct incomplete_array
3697576bae58Smrg{
3698576bae58Smrg  int datasize;
3699576bae58Smrg  double data[];
3700576bae58Smrg};
370114c0a534Smrg
3702576bae58Smrgstruct named_init {
3703576bae58Smrg  int number;
3704576bae58Smrg  const wchar_t *name;
3705576bae58Smrg  double average;
3706576bae58Smrg};
370714c0a534Smrg
3708576bae58Smrgtypedef const char *ccp;
370914c0a534Smrg
3710576bae58Smrgstatic inline int
3711576bae58Smrgtest_restrict (ccp restrict text)
3712576bae58Smrg{
3713576bae58Smrg  // See if C++-style comments work.
3714576bae58Smrg  // Iterate through items via the restricted pointer.
3715576bae58Smrg  // Also check for declarations in for loops.
3716576bae58Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3717576bae58Smrg    continue;
3718576bae58Smrg  return 0;
3719576bae58Smrg}
372014c0a534Smrg
3721576bae58Smrg// Check varargs and va_copy.
3722576bae58Smrgstatic void
3723576bae58Smrgtest_varargs (const char *format, ...)
3724576bae58Smrg{
3725576bae58Smrg  va_list args;
3726576bae58Smrg  va_start (args, format);
3727576bae58Smrg  va_list args_copy;
3728576bae58Smrg  va_copy (args_copy, args);
372914c0a534Smrg
3730576bae58Smrg  const char *str;
3731576bae58Smrg  int number;
3732576bae58Smrg  float fnumber;
373314c0a534Smrg
3734576bae58Smrg  while (*format)
3735576bae58Smrg    {
3736576bae58Smrg      switch (*format++)
3737576bae58Smrg	{
3738576bae58Smrg	case 's': // string
3739576bae58Smrg	  str = va_arg (args_copy, const char *);
3740576bae58Smrg	  break;
3741576bae58Smrg	case 'd': // int
3742576bae58Smrg	  number = va_arg (args_copy, int);
3743576bae58Smrg	  break;
3744576bae58Smrg	case 'f': // float
3745576bae58Smrg	  fnumber = va_arg (args_copy, double);
3746576bae58Smrg	  break;
3747576bae58Smrg	default:
3748576bae58Smrg	  break;
3749576bae58Smrg	}
3750576bae58Smrg    }
3751576bae58Smrg  va_end (args_copy);
3752576bae58Smrg  va_end (args);
3753576bae58Smrg}
3754576bae58Smrg
3755576bae58Smrgint
3756576bae58Smrgmain ()
3757576bae58Smrg{
3758576bae58Smrg
3759576bae58Smrg  // Check bool.
3760576bae58Smrg  _Bool success = false;
3761576bae58Smrg
3762576bae58Smrg  // Check restrict.
3763576bae58Smrg  if (test_restrict ("String literal") == 0)
3764576bae58Smrg    success = true;
3765576bae58Smrg  char *restrict newvar = "Another string";
3766576bae58Smrg
3767576bae58Smrg  // Check varargs.
3768576bae58Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3769576bae58Smrg  test_varargs_macros ();
3770576bae58Smrg
3771576bae58Smrg  // Check flexible array members.
3772576bae58Smrg  struct incomplete_array *ia =
3773576bae58Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3774576bae58Smrg  ia->datasize = 10;
3775576bae58Smrg  for (int i = 0; i < ia->datasize; ++i)
3776576bae58Smrg    ia->data[i] = i * 1.234;
3777576bae58Smrg
3778576bae58Smrg  // Check named initializers.
3779576bae58Smrg  struct named_init ni = {
3780576bae58Smrg    .number = 34,
3781576bae58Smrg    .name = L"Test wide string",
3782576bae58Smrg    .average = 543.34343,
3783576bae58Smrg  };
3784576bae58Smrg
3785576bae58Smrg  ni.number = 58;
3786576bae58Smrg
3787576bae58Smrg  int dynamic_array[ni.number];
3788576bae58Smrg  dynamic_array[ni.number - 1] = 543;
3789576bae58Smrg
3790576bae58Smrg  // work around unused variable warnings
3791576bae58Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3792576bae58Smrg	  || dynamic_array[ni.number - 1] != 543);
3793576bae58Smrg
3794576bae58Smrg  ;
3795576bae58Smrg  return 0;
3796576bae58Smrg}
3797576bae58Smrg_ACEOF
3798576bae58Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3799576bae58Smrgdo
3800576bae58Smrg  CC="$ac_save_CC $ac_arg"
3801576bae58Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3802576bae58Smrg  ac_cv_prog_cc_c99=$ac_arg
3803576bae58Smrgfi
3804576bae58Smrgrm -f core conftest.err conftest.$ac_objext
3805576bae58Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3806576bae58Smrgdone
3807576bae58Smrgrm -f conftest.$ac_ext
3808576bae58SmrgCC=$ac_save_CC
3809576bae58Smrg
3810576bae58Smrgfi
3811576bae58Smrg# AC_CACHE_VAL
3812576bae58Smrgcase "x$ac_cv_prog_cc_c99" in
3813576bae58Smrg  x)
3814576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815576bae58Smrg$as_echo "none needed" >&6; } ;;
3816576bae58Smrg  xno)
3817576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818576bae58Smrg$as_echo "unsupported" >&6; } ;;
3819576bae58Smrg  *)
3820576bae58Smrg    CC="$CC $ac_cv_prog_cc_c99"
3821576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3822576bae58Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3823576bae58Smrgesac
3824576bae58Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3825576bae58Smrg
3826576bae58Smrgfi
3827576bae58Smrg
3828576bae58Smrg
3829576bae58Smrg
3830576bae58Smrgac_ext=c
3831576bae58Smrgac_cpp='$CPP $CPPFLAGS'
3832576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3835576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836576bae58Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3837576bae58Smrg# On Suns, sometimes $CPP names a directory.
3838576bae58Smrgif test -n "$CPP" && test -d "$CPP"; then
3839576bae58Smrg  CPP=
3840576bae58Smrgfi
3841576bae58Smrgif test -z "$CPP"; then
3842576bae58Smrg  if ${ac_cv_prog_CPP+:} false; then :
3843576bae58Smrg  $as_echo_n "(cached) " >&6
3844bf2eeab3Smrgelse
3845576bae58Smrg      # Double quotes because CPP needs to be expanded
3846576bae58Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847576bae58Smrg    do
3848576bae58Smrg      ac_preproc_ok=false
3849576bae58Smrgfor ac_c_preproc_warn_flag in '' yes
3850576bae58Smrgdo
3851576bae58Smrg  # Use a header file that comes with gcc, so configuring glibc
3852576bae58Smrg  # with a fresh cross-compiler works.
3853576bae58Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854576bae58Smrg  # <limits.h> exists even on freestanding compilers.
3855576bae58Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3856576bae58Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3857576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858576bae58Smrg/* end confdefs.h.  */
3859576bae58Smrg#ifdef __STDC__
3860576bae58Smrg# include <limits.h>
3861576bae58Smrg#else
3862576bae58Smrg# include <assert.h>
3863576bae58Smrg#endif
3864576bae58Smrg		     Syntax error
3865576bae58Smrg_ACEOF
3866576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3867bf2eeab3Smrg
3868576bae58Smrgelse
3869bf2eeab3Smrg  # Broken: fails on valid input.
3870bf2eeab3Smrgcontinue
3871bf2eeab3Smrgfi
3872576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3873bf2eeab3Smrg
3874bf2eeab3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3875bf2eeab3Smrg  # can be detected and how.
3876576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877bf2eeab3Smrg/* end confdefs.h.  */
3878bf2eeab3Smrg#include <ac_nonexistent.h>
3879bf2eeab3Smrg_ACEOF
3880576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3881bf2eeab3Smrg  # Broken: success on invalid input.
3882bf2eeab3Smrgcontinue
3883bf2eeab3Smrgelse
3884bf2eeab3Smrg  # Passes both tests.
3885bf2eeab3Smrgac_preproc_ok=:
3886bf2eeab3Smrgbreak
3887bf2eeab3Smrgfi
3888576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3889bf2eeab3Smrg
3890bf2eeab3Smrgdone
3891bf2eeab3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892576bae58Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3893576bae58Smrgif $ac_preproc_ok; then :
3894bf2eeab3Smrg  break
3895bf2eeab3Smrgfi
3896bf2eeab3Smrg
3897bf2eeab3Smrg    done
3898bf2eeab3Smrg    ac_cv_prog_CPP=$CPP
3899bf2eeab3Smrg
3900bf2eeab3Smrgfi
3901bf2eeab3Smrg  CPP=$ac_cv_prog_CPP
3902bf2eeab3Smrgelse
3903bf2eeab3Smrg  ac_cv_prog_CPP=$CPP
3904bf2eeab3Smrgfi
3905576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906bf2eeab3Smrg$as_echo "$CPP" >&6; }
3907bf2eeab3Smrgac_preproc_ok=false
3908bf2eeab3Smrgfor ac_c_preproc_warn_flag in '' yes
3909bf2eeab3Smrgdo
3910bf2eeab3Smrg  # Use a header file that comes with gcc, so configuring glibc
3911bf2eeab3Smrg  # with a fresh cross-compiler works.
3912bf2eeab3Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913bf2eeab3Smrg  # <limits.h> exists even on freestanding compilers.
3914bf2eeab3Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3915bf2eeab3Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3916576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917bf2eeab3Smrg/* end confdefs.h.  */
3918bf2eeab3Smrg#ifdef __STDC__
3919bf2eeab3Smrg# include <limits.h>
3920bf2eeab3Smrg#else
3921bf2eeab3Smrg# include <assert.h>
3922bf2eeab3Smrg#endif
3923bf2eeab3Smrg		     Syntax error
3924bf2eeab3Smrg_ACEOF
3925576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3926bf2eeab3Smrg
3927576bae58Smrgelse
3928bf2eeab3Smrg  # Broken: fails on valid input.
3929bf2eeab3Smrgcontinue
3930bf2eeab3Smrgfi
3931576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3932bf2eeab3Smrg
3933bf2eeab3Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3934bf2eeab3Smrg  # can be detected and how.
3935576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936bf2eeab3Smrg/* end confdefs.h.  */
3937bf2eeab3Smrg#include <ac_nonexistent.h>
3938bf2eeab3Smrg_ACEOF
3939576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3940bf2eeab3Smrg  # Broken: success on invalid input.
3941bf2eeab3Smrgcontinue
3942bf2eeab3Smrgelse
3943bf2eeab3Smrg  # Passes both tests.
3944bf2eeab3Smrgac_preproc_ok=:
3945bf2eeab3Smrgbreak
3946bf2eeab3Smrgfi
3947576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3948bf2eeab3Smrg
3949bf2eeab3Smrgdone
3950bf2eeab3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951576bae58Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3952576bae58Smrgif $ac_preproc_ok; then :
3953576bae58Smrg
3954bf2eeab3Smrgelse
3955576bae58Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957576bae58Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3958576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
3959bf2eeab3Smrgfi
3960bf2eeab3Smrg
3961bf2eeab3Smrgac_ext=c
3962bf2eeab3Smrgac_cpp='$CPP $CPPFLAGS'
3963bf2eeab3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964bf2eeab3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965bf2eeab3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3966bf2eeab3Smrg
3967bf2eeab3Smrg
3968576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3969bf2eeab3Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3970576bae58Smrgif ${ac_cv_path_GREP+:} false; then :
3971bf2eeab3Smrg  $as_echo_n "(cached) " >&6
3972bf2eeab3Smrgelse
3973bf2eeab3Smrg  if test -z "$GREP"; then
3974bf2eeab3Smrg  ac_path_GREP_found=false
3975bf2eeab3Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3976bf2eeab3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978bf2eeab3Smrgdo
3979bf2eeab3Smrg  IFS=$as_save_IFS
3980bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
3981576bae58Smrg    for ac_prog in grep ggrep; do
3982bf2eeab3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3983bf2eeab3Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3984bf2eeab3Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3985bf2eeab3Smrg# Check for GNU ac_path_GREP and select it if it is found.
3986bf2eeab3Smrg  # Check for GNU $ac_path_GREP
3987bf2eeab3Smrgcase `"$ac_path_GREP" --version 2>&1` in
3988bf2eeab3Smrg*GNU*)
3989bf2eeab3Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3990bf2eeab3Smrg*)
3991bf2eeab3Smrg  ac_count=0
3992bf2eeab3Smrg  $as_echo_n 0123456789 >"conftest.in"
3993bf2eeab3Smrg  while :
3994bf2eeab3Smrg  do
3995bf2eeab3Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3996bf2eeab3Smrg    mv "conftest.tmp" "conftest.in"
3997bf2eeab3Smrg    cp "conftest.in" "conftest.nl"
3998bf2eeab3Smrg    $as_echo 'GREP' >> "conftest.nl"
3999bf2eeab3Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000bf2eeab3Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001576bae58Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4002bf2eeab3Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4003bf2eeab3Smrg      # Best one so far, save it but keep looking for a better one
4004bf2eeab3Smrg      ac_cv_path_GREP="$ac_path_GREP"
4005bf2eeab3Smrg      ac_path_GREP_max=$ac_count
4006bf2eeab3Smrg    fi
4007bf2eeab3Smrg    # 10*(2^10) chars as input seems more than enough
4008bf2eeab3Smrg    test $ac_count -gt 10 && break
4009bf2eeab3Smrg  done
4010bf2eeab3Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011bf2eeab3Smrgesac
4012bf2eeab3Smrg
4013bf2eeab3Smrg      $ac_path_GREP_found && break 3
4014bf2eeab3Smrg    done
4015bf2eeab3Smrg  done
4016576bae58Smrg  done
4017bf2eeab3SmrgIFS=$as_save_IFS
4018bf2eeab3Smrg  if test -z "$ac_cv_path_GREP"; then
4019576bae58Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020bf2eeab3Smrg  fi
4021bf2eeab3Smrgelse
4022bf2eeab3Smrg  ac_cv_path_GREP=$GREP
4023bf2eeab3Smrgfi
4024bf2eeab3Smrg
4025bf2eeab3Smrgfi
4026576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4027bf2eeab3Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4028bf2eeab3Smrg GREP="$ac_cv_path_GREP"
4029bf2eeab3Smrg
4030bf2eeab3Smrg
4031576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4032bf2eeab3Smrg$as_echo_n "checking for egrep... " >&6; }
4033576bae58Smrgif ${ac_cv_path_EGREP+:} false; then :
4034bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4035bf2eeab3Smrgelse
4036bf2eeab3Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037bf2eeab3Smrg   then ac_cv_path_EGREP="$GREP -E"
4038bf2eeab3Smrg   else
4039bf2eeab3Smrg     if test -z "$EGREP"; then
4040bf2eeab3Smrg  ac_path_EGREP_found=false
4041bf2eeab3Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4042bf2eeab3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044bf2eeab3Smrgdo
4045bf2eeab3Smrg  IFS=$as_save_IFS
4046bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
4047576bae58Smrg    for ac_prog in egrep; do
4048bf2eeab3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4049bf2eeab3Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050bf2eeab3Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4051bf2eeab3Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4052bf2eeab3Smrg  # Check for GNU $ac_path_EGREP
4053bf2eeab3Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4054bf2eeab3Smrg*GNU*)
4055bf2eeab3Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056bf2eeab3Smrg*)
4057bf2eeab3Smrg  ac_count=0
4058bf2eeab3Smrg  $as_echo_n 0123456789 >"conftest.in"
4059bf2eeab3Smrg  while :
4060bf2eeab3Smrg  do
4061bf2eeab3Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062bf2eeab3Smrg    mv "conftest.tmp" "conftest.in"
4063bf2eeab3Smrg    cp "conftest.in" "conftest.nl"
4064bf2eeab3Smrg    $as_echo 'EGREP' >> "conftest.nl"
4065bf2eeab3Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066bf2eeab3Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067576bae58Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068bf2eeab3Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069bf2eeab3Smrg      # Best one so far, save it but keep looking for a better one
4070bf2eeab3Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4071bf2eeab3Smrg      ac_path_EGREP_max=$ac_count
4072bf2eeab3Smrg    fi
4073bf2eeab3Smrg    # 10*(2^10) chars as input seems more than enough
4074bf2eeab3Smrg    test $ac_count -gt 10 && break
4075bf2eeab3Smrg  done
4076bf2eeab3Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077bf2eeab3Smrgesac
4078bf2eeab3Smrg
4079bf2eeab3Smrg      $ac_path_EGREP_found && break 3
4080bf2eeab3Smrg    done
4081bf2eeab3Smrg  done
4082576bae58Smrg  done
4083bf2eeab3SmrgIFS=$as_save_IFS
4084bf2eeab3Smrg  if test -z "$ac_cv_path_EGREP"; then
4085576bae58Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4086bf2eeab3Smrg  fi
4087bf2eeab3Smrgelse
4088bf2eeab3Smrg  ac_cv_path_EGREP=$EGREP
4089bf2eeab3Smrgfi
4090bf2eeab3Smrg
4091bf2eeab3Smrg   fi
4092bf2eeab3Smrgfi
4093576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4094bf2eeab3Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4095bf2eeab3Smrg EGREP="$ac_cv_path_EGREP"
4096bf2eeab3Smrg
4097bf2eeab3Smrg
4098576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4099bf2eeab3Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4100576bae58Smrgif ${ac_cv_header_stdc+:} false; then :
4101bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4102bf2eeab3Smrgelse
4103576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104bf2eeab3Smrg/* end confdefs.h.  */
4105bf2eeab3Smrg#include <stdlib.h>
4106bf2eeab3Smrg#include <stdarg.h>
4107bf2eeab3Smrg#include <string.h>
4108bf2eeab3Smrg#include <float.h>
4109bf2eeab3Smrg
4110bf2eeab3Smrgint
4111bf2eeab3Smrgmain ()
4112bf2eeab3Smrg{
4113bf2eeab3Smrg
4114bf2eeab3Smrg  ;
4115bf2eeab3Smrg  return 0;
4116bf2eeab3Smrg}
4117bf2eeab3Smrg_ACEOF
4118576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then :
4119bf2eeab3Smrg  ac_cv_header_stdc=yes
4120bf2eeab3Smrgelse
4121576bae58Smrg  ac_cv_header_stdc=no
4122bf2eeab3Smrgfi
4123bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124bf2eeab3Smrg
4125bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then
4126bf2eeab3Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4127576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128bf2eeab3Smrg/* end confdefs.h.  */
4129bf2eeab3Smrg#include <string.h>
4130bf2eeab3Smrg
4131bf2eeab3Smrg_ACEOF
4132bf2eeab3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133576bae58Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4134576bae58Smrg
4135bf2eeab3Smrgelse
4136bf2eeab3Smrg  ac_cv_header_stdc=no
4137bf2eeab3Smrgfi
4138bf2eeab3Smrgrm -f conftest*
4139bf2eeab3Smrg
4140bf2eeab3Smrgfi
4141bf2eeab3Smrg
4142bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then
4143bf2eeab3Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145bf2eeab3Smrg/* end confdefs.h.  */
4146bf2eeab3Smrg#include <stdlib.h>
4147bf2eeab3Smrg
4148bf2eeab3Smrg_ACEOF
4149bf2eeab3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150576bae58Smrg  $EGREP "free" >/dev/null 2>&1; then :
4151576bae58Smrg
4152bf2eeab3Smrgelse
4153bf2eeab3Smrg  ac_cv_header_stdc=no
4154bf2eeab3Smrgfi
4155bf2eeab3Smrgrm -f conftest*
4156bf2eeab3Smrg
4157bf2eeab3Smrgfi
4158bf2eeab3Smrg
4159bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then
4160bf2eeab3Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161576bae58Smrg  if test "$cross_compiling" = yes; then :
4162bf2eeab3Smrg  :
4163bf2eeab3Smrgelse
4164576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165bf2eeab3Smrg/* end confdefs.h.  */
4166bf2eeab3Smrg#include <ctype.h>
4167bf2eeab3Smrg#include <stdlib.h>
4168bf2eeab3Smrg#if ((' ' & 0x0FF) == 0x020)
4169bf2eeab3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170bf2eeab3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171bf2eeab3Smrg#else
4172bf2eeab3Smrg# define ISLOWER(c) \
4173bf2eeab3Smrg		   (('a' <= (c) && (c) <= 'i') \
4174bf2eeab3Smrg		     || ('j' <= (c) && (c) <= 'r') \
4175bf2eeab3Smrg		     || ('s' <= (c) && (c) <= 'z'))
4176bf2eeab3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177bf2eeab3Smrg#endif
4178bf2eeab3Smrg
4179bf2eeab3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180bf2eeab3Smrgint
4181bf2eeab3Smrgmain ()
4182bf2eeab3Smrg{
4183bf2eeab3Smrg  int i;
4184bf2eeab3Smrg  for (i = 0; i < 256; i++)
4185bf2eeab3Smrg    if (XOR (islower (i), ISLOWER (i))
4186bf2eeab3Smrg	|| toupper (i) != TOUPPER (i))
4187bf2eeab3Smrg      return 2;
4188bf2eeab3Smrg  return 0;
4189bf2eeab3Smrg}
4190bf2eeab3Smrg_ACEOF
4191576bae58Smrgif ac_fn_c_try_run "$LINENO"; then :
4192bf2eeab3Smrg
4193576bae58Smrgelse
4194576bae58Smrg  ac_cv_header_stdc=no
4195bf2eeab3Smrgfi
4196576bae58Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4197576bae58Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4198bf2eeab3Smrgfi
4199bf2eeab3Smrg
4200bf2eeab3Smrgfi
4201bf2eeab3Smrgfi
4202576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4203bf2eeab3Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4204bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then
4205bf2eeab3Smrg
4206576bae58Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4207bf2eeab3Smrg
4208bf2eeab3Smrgfi
4209bf2eeab3Smrg
4210bf2eeab3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4211bf2eeab3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4212bf2eeab3Smrg		  inttypes.h stdint.h unistd.h
4213576bae58Smrgdo :
4214576bae58Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4215576bae58Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4216576bae58Smrg"
4217576bae58Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4218bf2eeab3Smrg  cat >>confdefs.h <<_ACEOF
4219bf2eeab3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4220bf2eeab3Smrg_ACEOF
4221bf2eeab3Smrg
4222bf2eeab3Smrgfi
4223bf2eeab3Smrg
4224bf2eeab3Smrgdone
4225bf2eeab3Smrg
4226bf2eeab3Smrg
4227576bae58Smrg
4228576bae58Smrg
4229576bae58Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4230576bae58Smrg	if test -n "$ac_tool_prefix"; then
4231576bae58Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4232576bae58Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4233576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; }
4235576bae58Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4236bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4237bf2eeab3Smrgelse
4238576bae58Smrg  case $PKG_CONFIG in
4239576bae58Smrg  [\\/]* | ?:[\\/]*)
4240576bae58Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4241576bae58Smrg  ;;
4242576bae58Smrg  *)
4243576bae58Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244576bae58Smrgfor as_dir in $PATH
4245bf2eeab3Smrgdo
4246576bae58Smrg  IFS=$as_save_IFS
4247576bae58Smrg  test -z "$as_dir" && as_dir=.
4248576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4249576bae58Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250576bae58Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4251576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252576bae58Smrg    break 2
4253576bae58Smrg  fi
4254576bae58Smrgdone
4255576bae58Smrg  done
4256576bae58SmrgIFS=$as_save_IFS
4257576bae58Smrg
4258576bae58Smrg  ;;
4259bf2eeab3Smrgesac
4260576bae58Smrgfi
4261576bae58SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4262576bae58Smrgif test -n "$PKG_CONFIG"; then
4263576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4264576bae58Smrg$as_echo "$PKG_CONFIG" >&6; }
4265bf2eeab3Smrgelse
4266576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267576bae58Smrg$as_echo "no" >&6; }
4268bf2eeab3Smrgfi
4269bf2eeab3Smrg
4270bf2eeab3Smrg
4271bf2eeab3Smrgfi
4272576bae58Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4273576bae58Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4274576bae58Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4275576bae58Smrgset dummy pkg-config; ac_word=$2
4276576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; }
4278576bae58Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4279576bae58Smrg  $as_echo_n "(cached) " >&6
4280576bae58Smrgelse
4281576bae58Smrg  case $ac_pt_PKG_CONFIG in
4282576bae58Smrg  [\\/]* | ?:[\\/]*)
4283576bae58Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4284576bae58Smrg  ;;
4285bf2eeab3Smrg  *)
4286576bae58Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287576bae58Smrgfor as_dir in $PATH
4288576bae58Smrgdo
4289576bae58Smrg  IFS=$as_save_IFS
4290576bae58Smrg  test -z "$as_dir" && as_dir=.
4291576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4292576bae58Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293576bae58Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4294576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295576bae58Smrg    break 2
4296576bae58Smrg  fi
4297576bae58Smrgdone
4298576bae58Smrg  done
4299576bae58SmrgIFS=$as_save_IFS
4300576bae58Smrg
4301576bae58Smrg  ;;
4302bf2eeab3Smrgesac
4303576bae58Smrgfi
4304576bae58Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4305576bae58Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4306576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4307576bae58Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4308576bae58Smrgelse
4309576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310576bae58Smrg$as_echo "no" >&6; }
4311576bae58Smrgfi
4312bf2eeab3Smrg
4313576bae58Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4314576bae58Smrg    PKG_CONFIG=""
4315576bae58Smrg  else
4316576bae58Smrg    case $cross_compiling:$ac_tool_warned in
4317576bae58Smrgyes:)
4318576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4319576bae58Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4320576bae58Smrgac_tool_warned=yes ;;
4321576bae58Smrgesac
4322576bae58Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4323576bae58Smrg  fi
4324576bae58Smrgelse
4325576bae58Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4326576bae58Smrgfi
4327bf2eeab3Smrg
4328576bae58Smrgfi
4329576bae58Smrgif test -n "$PKG_CONFIG"; then
4330576bae58Smrg	_pkg_min_version=0.9.0
4331576bae58Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4332576bae58Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4333576bae58Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4334576bae58Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335576bae58Smrg$as_echo "yes" >&6; }
4336576bae58Smrg	else
4337576bae58Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338576bae58Smrg$as_echo "no" >&6; }
4339576bae58Smrg		PKG_CONFIG=""
4340576bae58Smrg	fi
4341bf2eeab3Smrg
4342576bae58Smrgfi
4343bf2eeab3Smrg# Make sure we can run config.sub.
4344bf2eeab3Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4345576bae58Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4346bf2eeab3Smrg
4347576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4348bf2eeab3Smrg$as_echo_n "checking build system type... " >&6; }
4349576bae58Smrgif ${ac_cv_build+:} false; then :
4350bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4351bf2eeab3Smrgelse
4352bf2eeab3Smrg  ac_build_alias=$build_alias
4353bf2eeab3Smrgtest "x$ac_build_alias" = x &&
4354bf2eeab3Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4355bf2eeab3Smrgtest "x$ac_build_alias" = x &&
4356576bae58Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4357bf2eeab3Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4358576bae58Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4359bf2eeab3Smrg
4360bf2eeab3Smrgfi
4361576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4362bf2eeab3Smrg$as_echo "$ac_cv_build" >&6; }
4363bf2eeab3Smrgcase $ac_cv_build in
4364bf2eeab3Smrg*-*-*) ;;
4365576bae58Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4366bf2eeab3Smrgesac
4367bf2eeab3Smrgbuild=$ac_cv_build
4368bf2eeab3Smrgac_save_IFS=$IFS; IFS='-'
4369bf2eeab3Smrgset x $ac_cv_build
4370bf2eeab3Smrgshift
4371bf2eeab3Smrgbuild_cpu=$1
4372bf2eeab3Smrgbuild_vendor=$2
4373bf2eeab3Smrgshift; shift
4374bf2eeab3Smrg# Remember, the first character of IFS is used to create $*,
4375bf2eeab3Smrg# except with old shells:
4376bf2eeab3Smrgbuild_os=$*
4377bf2eeab3SmrgIFS=$ac_save_IFS
4378bf2eeab3Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4379bf2eeab3Smrg
4380bf2eeab3Smrg
4381576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4382bf2eeab3Smrg$as_echo_n "checking host system type... " >&6; }
4383576bae58Smrgif ${ac_cv_host+:} false; then :
4384bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4385bf2eeab3Smrgelse
4386bf2eeab3Smrg  if test "x$host_alias" = x; then
4387bf2eeab3Smrg  ac_cv_host=$ac_cv_build
4388bf2eeab3Smrgelse
4389bf2eeab3Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4390576bae58Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4391bf2eeab3Smrgfi
4392bf2eeab3Smrg
4393bf2eeab3Smrgfi
4394576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4395bf2eeab3Smrg$as_echo "$ac_cv_host" >&6; }
4396bf2eeab3Smrgcase $ac_cv_host in
4397bf2eeab3Smrg*-*-*) ;;
4398576bae58Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4399bf2eeab3Smrgesac
4400bf2eeab3Smrghost=$ac_cv_host
4401bf2eeab3Smrgac_save_IFS=$IFS; IFS='-'
4402bf2eeab3Smrgset x $ac_cv_host
4403bf2eeab3Smrgshift
4404bf2eeab3Smrghost_cpu=$1
4405bf2eeab3Smrghost_vendor=$2
4406bf2eeab3Smrgshift; shift
4407bf2eeab3Smrg# Remember, the first character of IFS is used to create $*,
4408bf2eeab3Smrg# except with old shells:
4409bf2eeab3Smrghost_os=$*
4410bf2eeab3SmrgIFS=$ac_save_IFS
4411bf2eeab3Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4412bf2eeab3Smrg
4413bf2eeab3Smrg
4414576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4415576bae58Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4416576bae58Smrgif ${ac_cv_path_SED+:} false; then :
4417bf2eeab3Smrg  $as_echo_n "(cached) " >&6
4418bf2eeab3Smrgelse
4419576bae58Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4420576bae58Smrg     for ac_i in 1 2 3 4 5 6 7; do
4421576bae58Smrg       ac_script="$ac_script$as_nl$ac_script"
4422576bae58Smrg     done
4423576bae58Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4424576bae58Smrg     { ac_script=; unset ac_script;}
4425576bae58Smrg     if test -z "$SED"; then
4426576bae58Smrg  ac_path_SED_found=false
4427576bae58Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4428576bae58Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429576bae58Smrgfor as_dir in $PATH
4430576bae58Smrgdo
4431576bae58Smrg  IFS=$as_save_IFS
4432576bae58Smrg  test -z "$as_dir" && as_dir=.
4433576bae58Smrg    for ac_prog in sed gsed; do
4434576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4435576bae58Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4436576bae58Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4437576bae58Smrg# Check for GNU ac_path_SED and select it if it is found.
4438576bae58Smrg  # Check for GNU $ac_path_SED
4439576bae58Smrgcase `"$ac_path_SED" --version 2>&1` in
4440576bae58Smrg*GNU*)
4441576bae58Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4442576bae58Smrg*)
4443576bae58Smrg  ac_count=0
4444576bae58Smrg  $as_echo_n 0123456789 >"conftest.in"
4445576bae58Smrg  while :
4446576bae58Smrg  do
4447576bae58Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4448576bae58Smrg    mv "conftest.tmp" "conftest.in"
4449576bae58Smrg    cp "conftest.in" "conftest.nl"
4450576bae58Smrg    $as_echo '' >> "conftest.nl"
4451576bae58Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4452576bae58Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4453576bae58Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4454576bae58Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4455576bae58Smrg      # Best one so far, save it but keep looking for a better one
4456576bae58Smrg      ac_cv_path_SED="$ac_path_SED"
4457576bae58Smrg      ac_path_SED_max=$ac_count
4458576bae58Smrg    fi
4459576bae58Smrg    # 10*(2^10) chars as input seems more than enough
4460576bae58Smrg    test $ac_count -gt 10 && break
4461576bae58Smrg  done
4462576bae58Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4463bf2eeab3Smrgesac
4464576bae58Smrg
4465576bae58Smrg      $ac_path_SED_found && break 3
4466576bae58Smrg    done
4467576bae58Smrg  done
4468576bae58Smrg  done
4469576bae58SmrgIFS=$as_save_IFS
4470576bae58Smrg  if test -z "$ac_cv_path_SED"; then
4471576bae58Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4472576bae58Smrg  fi
4473bf2eeab3Smrgelse
4474576bae58Smrg  ac_cv_path_SED=$SED
4475bf2eeab3Smrgfi
4476bf2eeab3Smrg
4477bf2eeab3Smrgfi
4478576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4479576bae58Smrg$as_echo "$ac_cv_path_SED" >&6; }
4480576bae58Smrg SED="$ac_cv_path_SED"
4481576bae58Smrg  rm -f conftest.sed
4482576bae58Smrg
4483576bae58Smrg
4484576bae58Smrg
4485576bae58Smrg
4486576bae58Smrg
4487576bae58Smrgif  test "x$GCC" = xyes ; then
4488576bae58Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4489576bae58Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4490576bae58Smrg-Wbad-function-cast -Wformat=2"
4491576bae58Smrg    case `$CC -dumpversion` in
4492576bae58Smrg    3.4.* | 4.*)
4493576bae58Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4494576bae58Smrg	;;
4495576bae58Smrg    esac
4496576bae58Smrgelse
4497576bae58Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4498576bae58Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4499bf2eeab3Smrg  SUNCC="yes"
4500bf2eeab3Smrgelse
4501bf2eeab3Smrg  SUNCC="no"
4502bf2eeab3Smrgfi
4503bf2eeab3Smrg
4504bf2eeab3Smrg    if test "x$SUNCC" = "xyes"; then
4505bf2eeab3Smrg	CWARNFLAGS="-v"
4506bf2eeab3Smrg    fi
4507bf2eeab3Smrgfi
4508bf2eeab3Smrg
4509bf2eeab3Smrg
4510bf2eeab3Smrg
4511576bae58Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4512bf2eeab3Smrg
4513bf2eeab3Smrg
4514bf2eeab3Smrg
4515bf2eeab3Smrg# Check whether --enable-strict-compilation was given.
4516576bae58Smrgif test "${enable_strict_compilation+set}" = set; then :
4517bf2eeab3Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4518bf2eeab3Smrgelse
4519bf2eeab3Smrg  STRICT_COMPILE=no
4520bf2eeab3Smrgfi
4521bf2eeab3Smrg
4522bf2eeab3Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4523576bae58Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4524576bae58Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4525bf2eeab3Smrg  SUNCC="yes"
4526bf2eeab3Smrgelse
4527bf2eeab3Smrg  SUNCC="no"
4528bf2eeab3Smrgfi
4529bf2eeab3Smrg
4530576bae58Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4531576bae58Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4532bf2eeab3Smrg  INTELCC="yes"
4533bf2eeab3Smrgelse
4534bf2eeab3Smrg  INTELCC="no"
4535bf2eeab3Smrgfi
4536bf2eeab3Smrg
4537bf2eeab3Smrg	if test "x$GCC" = xyes ; then
4538bf2eeab3Smrg		STRICT_CFLAGS="-pedantic -Werror"
4539bf2eeab3Smrg	elif test "x$SUNCC" = "xyes"; then
4540bf2eeab3Smrg		STRICT_CFLAGS="-errwarn"
4541bf2eeab3Smrg    elif test "x$INTELCC" = "xyes"; then
4542bf2eeab3Smrg		STRICT_CFLAGS="-Werror"
4543bf2eeab3Smrg	fi
4544bf2eeab3Smrgfi
4545bf2eeab3SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4546bf2eeab3Smrg
4547bf2eeab3Smrg
4548bf2eeab3Smrg
4549bf2eeab3Smrg
4550bf2eeab3Smrgcat >>confdefs.h <<_ACEOF
4551bf2eeab3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4552bf2eeab3Smrg_ACEOF
4553bf2eeab3Smrg
4554bf2eeab3Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4555bf2eeab3Smrg	if test "x$PVM" = "x"; then
4556bf2eeab3Smrg		PVM="0"
4557bf2eeab3Smrg	fi
4558bf2eeab3Smrg
4559bf2eeab3Smrgcat >>confdefs.h <<_ACEOF
4560bf2eeab3Smrg#define PACKAGE_VERSION_MINOR $PVM
4561bf2eeab3Smrg_ACEOF
4562bf2eeab3Smrg
4563bf2eeab3Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4564bf2eeab3Smrg	if test "x$PVP" = "x"; then
4565bf2eeab3Smrg		PVP="0"
4566bf2eeab3Smrg	fi
4567bf2eeab3Smrg
4568bf2eeab3Smrgcat >>confdefs.h <<_ACEOF
4569bf2eeab3Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4570bf2eeab3Smrg_ACEOF
4571bf2eeab3Smrg
4572bf2eeab3Smrg
4573bf2eeab3Smrg
4574576bae58SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4575576bae58Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4576576bae58Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4577bf2eeab3Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4578bf2eeab3Smrg
4579576bae58Smrg
4580576bae58Smrg
4581576bae58Smrg
4582576bae58Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4583576bae58SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4584576bae58Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4585576bae58Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4586576bae58Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4587576bae58Smrg
4588bf2eeab3Smrg
4589bf2eeab3Smrg
4590bf2eeab3Smrg
4591bf2eeab3Smrg
4592bf2eeab3Smrg
4593bf2eeab3Smrgif test x$APP_MAN_SUFFIX = x    ; then
4594bf2eeab3Smrg    APP_MAN_SUFFIX=1
4595bf2eeab3Smrgfi
4596bf2eeab3Smrgif test x$APP_MAN_DIR = x    ; then
4597bf2eeab3Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4598bf2eeab3Smrgfi
4599bf2eeab3Smrg
4600bf2eeab3Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4601bf2eeab3Smrg    LIB_MAN_SUFFIX=3
4602bf2eeab3Smrgfi
4603bf2eeab3Smrgif test x$LIB_MAN_DIR = x    ; then
4604bf2eeab3Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4605bf2eeab3Smrgfi
4606bf2eeab3Smrg
4607bf2eeab3Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4608bf2eeab3Smrg    case $host_os in
4609bf2eeab3Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4610bf2eeab3Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4611bf2eeab3Smrg    esac
4612bf2eeab3Smrgfi
4613bf2eeab3Smrgif test x$FILE_MAN_DIR = x    ; then
4614bf2eeab3Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4615bf2eeab3Smrgfi
4616bf2eeab3Smrg
4617bf2eeab3Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4618bf2eeab3Smrg    case $host_os in
4619bf2eeab3Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4620bf2eeab3Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4621bf2eeab3Smrg    esac
4622bf2eeab3Smrgfi
4623bf2eeab3Smrgif test x$MISC_MAN_DIR = x    ; then
4624bf2eeab3Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4625bf2eeab3Smrgfi
4626bf2eeab3Smrg
4627bf2eeab3Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4628bf2eeab3Smrg    case $host_os in
4629bf2eeab3Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4630bf2eeab3Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4631bf2eeab3Smrg    esac
4632bf2eeab3Smrgfi
4633bf2eeab3Smrgif test x$DRIVER_MAN_DIR = x    ; then
4634bf2eeab3Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4635bf2eeab3Smrgfi
4636bf2eeab3Smrg
4637bf2eeab3Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4638bf2eeab3Smrg    case $host_os in
4639bf2eeab3Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4640bf2eeab3Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4641bf2eeab3Smrg    esac
4642bf2eeab3Smrgfi
4643bf2eeab3Smrgif test x$ADMIN_MAN_DIR = x    ; then
4644bf2eeab3Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4645bf2eeab3Smrgfi
4646bf2eeab3Smrg
4647bf2eeab3Smrg
4648bf2eeab3Smrg
4649bf2eeab3Smrg
4650bf2eeab3Smrg
4651bf2eeab3Smrg
4652bf2eeab3Smrg
4653bf2eeab3Smrg
4654bf2eeab3Smrg
4655bf2eeab3Smrg
4656bf2eeab3Smrg
4657bf2eeab3Smrg
4658bf2eeab3Smrg
4659bf2eeab3Smrg
4660bf2eeab3Smrg
4661576bae58SmrgXORG_MAN_PAGE="X Version 11"
4662bf2eeab3Smrg
4663576bae58SmrgMAN_SUBSTS="\
4664576bae58Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4665576bae58Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4666576bae58Smrg	-e 's|__xservername__|Xorg|g' \
4667576bae58Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4668576bae58Smrg	-e 's|__projectroot__|\$(prefix)|g' \
4669576bae58Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4670576bae58Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4671576bae58Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4672576bae58Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4673576bae58Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4674576bae58Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4675576bae58Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4676bf2eeab3Smrg
467714c0a534Smrg
467814c0a534Smrg
4679576bae58Smrg# Check whether --enable-silent-rules was given.
4680576bae58Smrgif test "${enable_silent_rules+set}" = set; then :
4681576bae58Smrg  enableval=$enable_silent_rules;
468214c0a534Smrgfi
468314c0a534Smrg
4684576bae58Smrgcase $enable_silent_rules in
4685576bae58Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4686576bae58Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4687576bae58Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4688576bae58Smrgesac
4689576bae58SmrgAM_BACKSLASH='\'
4690576bae58Smrg
4691576bae58Smrg
4692576bae58Smrg
4693576bae58Smrgfor ac_func in mkstemp
4694576bae58Smrgdo :
4695576bae58Smrg  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
4696576bae58Smrgif test "x$ac_cv_func_mkstemp" = xyes; then :
4697576bae58Smrg  cat >>confdefs.h <<_ACEOF
4698576bae58Smrg#define HAVE_MKSTEMP 1
4699576bae58Smrg_ACEOF
470014c0a534Smrg
470114c0a534Smrgfi
4702576bae58Smrgdone
4703576bae58Smrg
4704576bae58Smrg
4705576bae58Smrg# Checks for pkg-config packages
470614c0a534Smrg
470714c0a534Smrgpkg_failed=no
4708576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5
4709bf2eeab3Smrg$as_echo_n "checking for SMPROXY... " >&6; }
4710bf2eeab3Smrg
4711bf2eeab3Smrgif test -n "$SMPROXY_CFLAGS"; then
4712bf2eeab3Smrg    pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS"
4713bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then
4714bf2eeab3Smrg    if test -n "$PKG_CONFIG" && \
4715576bae58Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm xt xmuu\""; } >&5
4716576bae58Smrg  ($PKG_CONFIG --exists --print-errors "sm xt xmuu") 2>&5
471714c0a534Smrg  ac_status=$?
4718576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719576bae58Smrg  test $ac_status = 0; }; then
4720576bae58Smrg  pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm xt xmuu" 2>/dev/null`
472114c0a534Smrgelse
472214c0a534Smrg  pkg_failed=yes
472314c0a534Smrgfi
4724bf2eeab3Smrg else
4725bf2eeab3Smrg    pkg_failed=untried
472614c0a534Smrgfi
4727bf2eeab3Smrgif test -n "$SMPROXY_LIBS"; then
4728bf2eeab3Smrg    pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS"
4729bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then
4730bf2eeab3Smrg    if test -n "$PKG_CONFIG" && \
4731576bae58Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm xt xmuu\""; } >&5
4732576bae58Smrg  ($PKG_CONFIG --exists --print-errors "sm xt xmuu") 2>&5
473314c0a534Smrg  ac_status=$?
4734576bae58Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735576bae58Smrg  test $ac_status = 0; }; then
4736576bae58Smrg  pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm xt xmuu" 2>/dev/null`
473714c0a534Smrgelse
473814c0a534Smrg  pkg_failed=yes
473914c0a534Smrgfi
4740bf2eeab3Smrg else
4741bf2eeab3Smrg    pkg_failed=untried
474214c0a534Smrgfi
474314c0a534Smrg
474414c0a534Smrg
474514c0a534Smrg
474614c0a534Smrgif test $pkg_failed = yes; then
474714c0a534Smrg
474814c0a534Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
474914c0a534Smrg        _pkg_short_errors_supported=yes
475014c0a534Smrgelse
475114c0a534Smrg        _pkg_short_errors_supported=no
475214c0a534Smrgfi
475314c0a534Smrg        if test $_pkg_short_errors_supported = yes; then
4754576bae58Smrg	        SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm xt xmuu" 2>&1`
475514c0a534Smrg        else
4756576bae58Smrg	        SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm xt xmuu" 2>&1`
475714c0a534Smrg        fi
475814c0a534Smrg	# Put the nasty error message in config.log where it belongs
475914c0a534Smrg	echo "$SMPROXY_PKG_ERRORS" >&5
476014c0a534Smrg
4761576bae58Smrg	as_fn_error $? "Package requirements (sm xt xmuu) were not met:
476214c0a534Smrg
476314c0a534Smrg$SMPROXY_PKG_ERRORS
476414c0a534Smrg
476514c0a534SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
476614c0a534Smrginstalled software in a non-standard prefix.
476714c0a534Smrg
476814c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS
476914c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config.
477014c0a534SmrgSee the pkg-config man page for more details.
4771576bae58Smrg" "$LINENO" 5
477214c0a534Smrgelif test $pkg_failed = untried; then
4773576bae58Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4774bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775576bae58Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
477614c0a534Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
477714c0a534Smrgpath to pkg-config.
477814c0a534Smrg
477914c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS
478014c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config.
478114c0a534SmrgSee the pkg-config man page for more details.
478214c0a534Smrg
4783bf2eeab3SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4784576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; }
478514c0a534Smrgelse
478614c0a534Smrg	SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS
478714c0a534Smrg	SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS
4788576bae58Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789bf2eeab3Smrg$as_echo "yes" >&6; }
479014c0a534Smrg	:
479114c0a534Smrgfi
479214c0a534Smrg
4793bf2eeab3Smrgac_config_files="$ac_config_files Makefile"
479414c0a534Smrg
479514c0a534Smrgcat >confcache <<\_ACEOF
479614c0a534Smrg# This file is a shell script that caches the results of configure
479714c0a534Smrg# tests run on this system so they can be shared between configure
479814c0a534Smrg# scripts and configure runs, see configure's option --config-cache.
479914c0a534Smrg# It is not useful on other systems.  If it contains results you don't
480014c0a534Smrg# want to keep, you may remove or edit it.
480114c0a534Smrg#
480214c0a534Smrg# config.status only pays attention to the cache file if you give it
480314c0a534Smrg# the --recheck option to rerun configure.
480414c0a534Smrg#
480514c0a534Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
480614c0a534Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
480714c0a534Smrg# following values.
480814c0a534Smrg
480914c0a534Smrg_ACEOF
481014c0a534Smrg
481114c0a534Smrg# The following way of writing the cache mishandles newlines in values,
481214c0a534Smrg# but we know of no workaround that is simple, portable, and efficient.
4813bf2eeab3Smrg# So, we kill variables containing newlines.
481414c0a534Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
481514c0a534Smrg# and sets the high bit in the cache file unless we assign to the vars.
4816bf2eeab3Smrg(
4817bf2eeab3Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4818bf2eeab3Smrg    eval ac_val=\$$ac_var
4819bf2eeab3Smrg    case $ac_val in #(
4820bf2eeab3Smrg    *${as_nl}*)
4821bf2eeab3Smrg      case $ac_var in #(
4822576bae58Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4823bf2eeab3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4824bf2eeab3Smrg      esac
4825bf2eeab3Smrg      case $ac_var in #(
4826bf2eeab3Smrg      _ | IFS | as_nl) ;; #(
4827bf2eeab3Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4828576bae58Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
4829bf2eeab3Smrg      esac ;;
4830bf2eeab3Smrg    esac
4831bf2eeab3Smrg  done
4832bf2eeab3Smrg
483314c0a534Smrg  (set) 2>&1 |
4834bf2eeab3Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4835bf2eeab3Smrg    *${as_nl}ac_space=\ *)
4836576bae58Smrg      # `set' does not quote correctly, so add quotes: double-quote
4837576bae58Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
483814c0a534Smrg      sed -n \
483914c0a534Smrg	"s/'/'\\\\''/g;
484014c0a534Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4841bf2eeab3Smrg      ;; #(
484214c0a534Smrg    *)
484314c0a534Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4844bf2eeab3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
484514c0a534Smrg      ;;
4846bf2eeab3Smrg    esac |
4847bf2eeab3Smrg    sort
4848bf2eeab3Smrg) |
484914c0a534Smrg  sed '
4850bf2eeab3Smrg     /^ac_cv_env_/b end
485114c0a534Smrg     t clear
4852bf2eeab3Smrg     :clear
485314c0a534Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
485414c0a534Smrg     t end
4855bf2eeab3Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4856bf2eeab3Smrg     :end' >>confcache
4857bf2eeab3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4858bf2eeab3Smrg  if test -w "$cache_file"; then
4859576bae58Smrg    if test "x$cache_file" != "x/dev/null"; then
4860576bae58Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4861bf2eeab3Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
4862576bae58Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
4863576bae58Smrg	cat confcache >"$cache_file"
4864576bae58Smrg      else
4865576bae58Smrg        case $cache_file in #(
4866576bae58Smrg        */* | ?:*)
4867576bae58Smrg	  mv -f confcache "$cache_file"$$ &&
4868576bae58Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4869576bae58Smrg        *)
4870576bae58Smrg	  mv -f confcache "$cache_file" ;;
4871576bae58Smrg	esac
4872576bae58Smrg      fi
4873576bae58Smrg    fi
487414c0a534Smrg  else
4875576bae58Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4876bf2eeab3Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
487714c0a534Smrg  fi
487814c0a534Smrgfi
487914c0a534Smrgrm -f confcache
488014c0a534Smrg
488114c0a534Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
488214c0a534Smrg# Let make expand exec_prefix.
488314c0a534Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
488414c0a534Smrg
488514c0a534SmrgDEFS=-DHAVE_CONFIG_H
488614c0a534Smrg
488714c0a534Smrgac_libobjs=
488814c0a534Smrgac_ltlibobjs=
4889576bae58SmrgU=
489014c0a534Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
489114c0a534Smrg  # 1. Remove the extension, and $U if already installed.
4892bf2eeab3Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4893bf2eeab3Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4894bf2eeab3Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4895bf2eeab3Smrg  #    will be set to the directory where LIBOBJS objects are built.
4896576bae58Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4897576bae58Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
489814c0a534Smrgdone
489914c0a534SmrgLIBOBJS=$ac_libobjs
490014c0a534Smrg
490114c0a534SmrgLTLIBOBJS=$ac_ltlibobjs
490214c0a534Smrg
490314c0a534Smrg
4904bf2eeab3Smrg if test -n "$EXEEXT"; then
4905bf2eeab3Smrg  am__EXEEXT_TRUE=
4906bf2eeab3Smrg  am__EXEEXT_FALSE='#'
4907bf2eeab3Smrgelse
4908bf2eeab3Smrg  am__EXEEXT_TRUE='#'
4909bf2eeab3Smrg  am__EXEEXT_FALSE=
4910bf2eeab3Smrgfi
4911bf2eeab3Smrg
491214c0a534Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4913576bae58Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4914576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
491514c0a534Smrgfi
491614c0a534Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4917576bae58Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4918576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
491914c0a534Smrgfi
492014c0a534Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4921576bae58Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4922576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
492314c0a534Smrgfi
492414c0a534Smrg
4925576bae58Smrg: "${CONFIG_STATUS=./config.status}"
4926bf2eeab3Smrgac_write_fail=0
492714c0a534Smrgac_clean_files_save=$ac_clean_files
492814c0a534Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4929576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4930bf2eeab3Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4931576bae58Smrgas_write_fail=0
4932576bae58Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
493314c0a534Smrg#! $SHELL
493414c0a534Smrg# Generated by $as_me.
493514c0a534Smrg# Run this file to recreate the current configuration.
493614c0a534Smrg# Compiler output produced by configure, useful for debugging
493714c0a534Smrg# configure, is in config.log if it exists.
493814c0a534Smrg
493914c0a534Smrgdebug=false
494014c0a534Smrgac_cs_recheck=false
494114c0a534Smrgac_cs_silent=false
494214c0a534Smrg
4943576bae58SmrgSHELL=\${CONFIG_SHELL-$SHELL}
4944576bae58Smrgexport SHELL
4945576bae58Smrg_ASEOF
4946576bae58Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4947576bae58Smrg## -------------------- ##
4948576bae58Smrg## M4sh Initialization. ##
4949576bae58Smrg## -------------------- ##
495014c0a534Smrg
4951bf2eeab3Smrg# Be more Bourne compatible
4952bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh
4953576bae58Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
495414c0a534Smrg  emulate sh
495514c0a534Smrg  NULLCMD=:
4956bf2eeab3Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
495714c0a534Smrg  # is contrary to our usage.  Disable this feature.
495814c0a534Smrg  alias -g '${1+"$@"}'='"$@"'
4959bf2eeab3Smrg  setopt NO_GLOB_SUBST
4960bf2eeab3Smrgelse
4961576bae58Smrg  case `(set -o) 2>/dev/null` in #(
4962576bae58Smrg  *posix*) :
4963576bae58Smrg    set -o posix ;; #(
4964576bae58Smrg  *) :
4965576bae58Smrg     ;;
4966bf2eeab3Smrgesac
4967bf2eeab3Smrgfi
4968bf2eeab3Smrg
4969bf2eeab3Smrg
4970bf2eeab3Smrgas_nl='
4971bf2eeab3Smrg'
4972bf2eeab3Smrgexport as_nl
4973bf2eeab3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4974bf2eeab3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4975bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4976bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4977576bae58Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4978576bae58Smrg# but without wasting forks for bash or zsh.
4979576bae58Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4980576bae58Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4981576bae58Smrg  as_echo='print -r --'
4982576bae58Smrg  as_echo_n='print -rn --'
4983576bae58Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4984bf2eeab3Smrg  as_echo='printf %s\n'
4985bf2eeab3Smrg  as_echo_n='printf %s'
4986bf2eeab3Smrgelse
4987bf2eeab3Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4988bf2eeab3Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4989bf2eeab3Smrg    as_echo_n='/usr/ucb/echo -n'
4990bf2eeab3Smrg  else
4991bf2eeab3Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4992bf2eeab3Smrg    as_echo_n_body='eval
4993bf2eeab3Smrg      arg=$1;
4994576bae58Smrg      case $arg in #(
4995bf2eeab3Smrg      *"$as_nl"*)
4996bf2eeab3Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
4997bf2eeab3Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4998bf2eeab3Smrg      esac;
4999bf2eeab3Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5000bf2eeab3Smrg    '
5001bf2eeab3Smrg    export as_echo_n_body
5002bf2eeab3Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5003bf2eeab3Smrg  fi
5004bf2eeab3Smrg  export as_echo_body
5005bf2eeab3Smrg  as_echo='sh -c $as_echo_body as_echo'
5006bf2eeab3Smrgfi
5007bf2eeab3Smrg
5008bf2eeab3Smrg# The user is always right.
5009bf2eeab3Smrgif test "${PATH_SEPARATOR+set}" != set; then
5010bf2eeab3Smrg  PATH_SEPARATOR=:
5011bf2eeab3Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5012bf2eeab3Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5013bf2eeab3Smrg      PATH_SEPARATOR=';'
5014bf2eeab3Smrg  }
501514c0a534Smrgfi
501614c0a534Smrg
501714c0a534Smrg
5018bf2eeab3Smrg# IFS
5019bf2eeab3Smrg# We need space, tab and new line, in precisely that order.  Quoting is
5020bf2eeab3Smrg# there to prevent editors from complaining about space-tab.
5021bf2eeab3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5022bf2eeab3Smrg# splitting by setting IFS to empty value.)
5023bf2eeab3SmrgIFS=" ""	$as_nl"
5024bf2eeab3Smrg
5025bf2eeab3Smrg# Find who we are.  Look in the path if we contain no directory separator.
5026576bae58Smrgas_myself=
5027576bae58Smrgcase $0 in #((
5028bf2eeab3Smrg  *[\\/]* ) as_myself=$0 ;;
5029bf2eeab3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030bf2eeab3Smrgfor as_dir in $PATH
5031bf2eeab3Smrgdo
5032bf2eeab3Smrg  IFS=$as_save_IFS
5033bf2eeab3Smrg  test -z "$as_dir" && as_dir=.
5034576bae58Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5035576bae58Smrg  done
5036bf2eeab3SmrgIFS=$as_save_IFS
5037bf2eeab3Smrg
5038bf2eeab3Smrg     ;;
5039bf2eeab3Smrgesac
5040bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5041bf2eeab3Smrg# in which case we are not to be found in the path.
5042bf2eeab3Smrgif test "x$as_myself" = x; then
5043bf2eeab3Smrg  as_myself=$0
5044bf2eeab3Smrgfi
5045bf2eeab3Smrgif test ! -f "$as_myself"; then
5046bf2eeab3Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5047576bae58Smrg  exit 1
5048bf2eeab3Smrgfi
5049bf2eeab3Smrg
5050576bae58Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5051576bae58Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5052576bae58Smrg# suppresses any "Segmentation fault" message there.  '((' could
5053576bae58Smrg# trigger a bug in pdksh 5.2.14.
5054576bae58Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5055576bae58Smrgdo eval test x\${$as_var+set} = xset \
5056576bae58Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5057bf2eeab3Smrgdone
505814c0a534SmrgPS1='$ '
505914c0a534SmrgPS2='> '
506014c0a534SmrgPS4='+ '
506114c0a534Smrg
506214c0a534Smrg# NLS nuisances.
5063bf2eeab3SmrgLC_ALL=C
5064bf2eeab3Smrgexport LC_ALL
5065bf2eeab3SmrgLANGUAGE=C
5066bf2eeab3Smrgexport LANGUAGE
506714c0a534Smrg
5068576bae58Smrg# CDPATH.
5069576bae58Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5070576bae58Smrg
5071576bae58Smrg
5072576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
5073576bae58Smrg# ----------------------------------------
5074576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5075576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5076576bae58Smrg# script with STATUS, using 1 if that was 0.
5077576bae58Smrgas_fn_error ()
5078576bae58Smrg{
5079576bae58Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
5080576bae58Smrg  if test "$4"; then
5081576bae58Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5082576bae58Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5083576bae58Smrg  fi
5084576bae58Smrg  $as_echo "$as_me: error: $2" >&2
5085576bae58Smrg  as_fn_exit $as_status
5086576bae58Smrg} # as_fn_error
5087576bae58Smrg
5088576bae58Smrg
5089576bae58Smrg# as_fn_set_status STATUS
5090576bae58Smrg# -----------------------
5091576bae58Smrg# Set $? to STATUS, without forking.
5092576bae58Smrgas_fn_set_status ()
5093576bae58Smrg{
5094576bae58Smrg  return $1
5095576bae58Smrg} # as_fn_set_status
5096576bae58Smrg
5097576bae58Smrg# as_fn_exit STATUS
5098576bae58Smrg# -----------------
5099576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5100576bae58Smrgas_fn_exit ()
5101576bae58Smrg{
5102576bae58Smrg  set +e
5103576bae58Smrg  as_fn_set_status $1
5104576bae58Smrg  exit $1
5105576bae58Smrg} # as_fn_exit
5106576bae58Smrg
5107576bae58Smrg# as_fn_unset VAR
5108576bae58Smrg# ---------------
5109576bae58Smrg# Portably unset VAR.
5110576bae58Smrgas_fn_unset ()
5111576bae58Smrg{
5112576bae58Smrg  { eval $1=; unset $1;}
5113576bae58Smrg}
5114576bae58Smrgas_unset=as_fn_unset
5115576bae58Smrg# as_fn_append VAR VALUE
5116576bae58Smrg# ----------------------
5117576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5118576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over
5119576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive
5120576bae58Smrg# implementations.
5121576bae58Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5122576bae58Smrg  eval 'as_fn_append ()
5123576bae58Smrg  {
5124576bae58Smrg    eval $1+=\$2
5125576bae58Smrg  }'
5126576bae58Smrgelse
5127576bae58Smrg  as_fn_append ()
5128576bae58Smrg  {
5129576bae58Smrg    eval $1=\$$1\$2
5130576bae58Smrg  }
5131576bae58Smrgfi # as_fn_append
5132576bae58Smrg
5133576bae58Smrg# as_fn_arith ARG...
5134576bae58Smrg# ------------------
5135576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5136576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5137576bae58Smrg# must be portable across $(()) and expr.
5138576bae58Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5139576bae58Smrg  eval 'as_fn_arith ()
5140576bae58Smrg  {
5141576bae58Smrg    as_val=$(( $* ))
5142576bae58Smrg  }'
5143576bae58Smrgelse
5144576bae58Smrg  as_fn_arith ()
5145576bae58Smrg  {
5146576bae58Smrg    as_val=`expr "$@" || test $? -eq 1`
5147576bae58Smrg  }
5148576bae58Smrgfi # as_fn_arith
5149576bae58Smrg
5150576bae58Smrg
5151bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5152bf2eeab3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
515314c0a534Smrg  as_expr=expr
515414c0a534Smrgelse
515514c0a534Smrg  as_expr=false
515614c0a534Smrgfi
515714c0a534Smrg
5158bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
515914c0a534Smrg  as_basename=basename
516014c0a534Smrgelse
516114c0a534Smrg  as_basename=false
516214c0a534Smrgfi
516314c0a534Smrg
5164576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5165576bae58Smrg  as_dirname=dirname
5166576bae58Smrgelse
5167576bae58Smrg  as_dirname=false
5168576bae58Smrgfi
516914c0a534Smrg
5170bf2eeab3Smrgas_me=`$as_basename -- "$0" ||
517114c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
517214c0a534Smrg	 X"$0" : 'X\(//\)$' \| \
5173bf2eeab3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5174bf2eeab3Smrg$as_echo X/"$0" |
5175bf2eeab3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5176bf2eeab3Smrg	    s//\1/
5177bf2eeab3Smrg	    q
5178bf2eeab3Smrg	  }
5179bf2eeab3Smrg	  /^X\/\(\/\/\)$/{
5180bf2eeab3Smrg	    s//\1/
5181bf2eeab3Smrg	    q
5182bf2eeab3Smrg	  }
5183bf2eeab3Smrg	  /^X\/\(\/\).*/{
5184bf2eeab3Smrg	    s//\1/
5185bf2eeab3Smrg	    q
5186bf2eeab3Smrg	  }
5187bf2eeab3Smrg	  s/.*/./; q'`
518814c0a534Smrg
5189576bae58Smrg# Avoid depending upon Character Ranges.
5190576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5191576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5192576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5193576bae58Smrgas_cr_digits='0123456789'
5194576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
519514c0a534Smrg
5196bf2eeab3SmrgECHO_C= ECHO_N= ECHO_T=
5197576bae58Smrgcase `echo -n x` in #(((((
5198bf2eeab3Smrg-n*)
5199576bae58Smrg  case `echo 'xy\c'` in
5200bf2eeab3Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5201576bae58Smrg  xy)  ECHO_C='\c';;
5202576bae58Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5203576bae58Smrg       ECHO_T='	';;
5204bf2eeab3Smrg  esac;;
5205bf2eeab3Smrg*)
5206bf2eeab3Smrg  ECHO_N='-n';;
5207bf2eeab3Smrgesac
520814c0a534Smrg
520914c0a534Smrgrm -f conf$$ conf$$.exe conf$$.file
5210bf2eeab3Smrgif test -d conf$$.dir; then
5211bf2eeab3Smrg  rm -f conf$$.dir/conf$$.file
5212bf2eeab3Smrgelse
5213bf2eeab3Smrg  rm -f conf$$.dir
5214bf2eeab3Smrg  mkdir conf$$.dir 2>/dev/null
5215bf2eeab3Smrgfi
5216bf2eeab3Smrgif (echo >conf$$.file) 2>/dev/null; then
5217bf2eeab3Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
521814c0a534Smrg    as_ln_s='ln -s'
5219bf2eeab3Smrg    # ... but there are two gotchas:
5220bf2eeab3Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5221bf2eeab3Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5222bf2eeab3Smrg    # In both cases, we have to default to `cp -p'.
5223bf2eeab3Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5224bf2eeab3Smrg      as_ln_s='cp -p'
5225bf2eeab3Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5226bf2eeab3Smrg    as_ln_s=ln
5227bf2eeab3Smrg  else
5228bf2eeab3Smrg    as_ln_s='cp -p'
522914c0a534Smrg  fi
523014c0a534Smrgelse
523114c0a534Smrg  as_ln_s='cp -p'
523214c0a534Smrgfi
5233bf2eeab3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5234bf2eeab3Smrgrmdir conf$$.dir 2>/dev/null
523514c0a534Smrg
5236576bae58Smrg
5237576bae58Smrg# as_fn_mkdir_p
5238576bae58Smrg# -------------
5239576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary.
5240576bae58Smrgas_fn_mkdir_p ()
5241576bae58Smrg{
5242576bae58Smrg
5243576bae58Smrg  case $as_dir in #(
5244576bae58Smrg  -*) as_dir=./$as_dir;;
5245576bae58Smrg  esac
5246576bae58Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5247576bae58Smrg    as_dirs=
5248576bae58Smrg    while :; do
5249576bae58Smrg      case $as_dir in #(
5250576bae58Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5251576bae58Smrg      *) as_qdir=$as_dir;;
5252576bae58Smrg      esac
5253576bae58Smrg      as_dirs="'$as_qdir' $as_dirs"
5254576bae58Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5255576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5256576bae58Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5257576bae58Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5258576bae58Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5259576bae58Smrg$as_echo X"$as_dir" |
5260576bae58Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5261576bae58Smrg	    s//\1/
5262576bae58Smrg	    q
5263576bae58Smrg	  }
5264576bae58Smrg	  /^X\(\/\/\)[^/].*/{
5265576bae58Smrg	    s//\1/
5266576bae58Smrg	    q
5267576bae58Smrg	  }
5268576bae58Smrg	  /^X\(\/\/\)$/{
5269576bae58Smrg	    s//\1/
5270576bae58Smrg	    q
5271576bae58Smrg	  }
5272576bae58Smrg	  /^X\(\/\).*/{
5273576bae58Smrg	    s//\1/
5274576bae58Smrg	    q
5275576bae58Smrg	  }
5276576bae58Smrg	  s/.*/./; q'`
5277576bae58Smrg      test -d "$as_dir" && break
5278576bae58Smrg    done
5279576bae58Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5280576bae58Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5281576bae58Smrg
5282576bae58Smrg
5283576bae58Smrg} # as_fn_mkdir_p
528414c0a534Smrgif mkdir -p . 2>/dev/null; then
5285576bae58Smrg  as_mkdir_p='mkdir -p "$as_dir"'
528614c0a534Smrgelse
528714c0a534Smrg  test -d ./-p && rmdir ./-p
528814c0a534Smrg  as_mkdir_p=false
528914c0a534Smrgfi
529014c0a534Smrg
5291bf2eeab3Smrgif test -x / >/dev/null 2>&1; then
5292bf2eeab3Smrg  as_test_x='test -x'
5293bf2eeab3Smrgelse
5294bf2eeab3Smrg  if ls -dL / >/dev/null 2>&1; then
5295bf2eeab3Smrg    as_ls_L_option=L
5296bf2eeab3Smrg  else
5297bf2eeab3Smrg    as_ls_L_option=
5298bf2eeab3Smrg  fi
5299bf2eeab3Smrg  as_test_x='
5300bf2eeab3Smrg    eval sh -c '\''
5301bf2eeab3Smrg      if test -d "$1"; then
5302bf2eeab3Smrg	test -d "$1/.";
5303bf2eeab3Smrg      else
5304576bae58Smrg	case $1 in #(
5305bf2eeab3Smrg	-*)set "./$1";;
5306bf2eeab3Smrg	esac;
5307576bae58Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5308bf2eeab3Smrg	???[sx]*):;;*)false;;esac;fi
5309bf2eeab3Smrg    '\'' sh
5310bf2eeab3Smrg  '
5311bf2eeab3Smrgfi
5312bf2eeab3Smrgas_executable_p=$as_test_x
531314c0a534Smrg
531414c0a534Smrg# Sed expression to map a string onto a valid CPP name.
531514c0a534Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531614c0a534Smrg
531714c0a534Smrg# Sed expression to map a string onto a valid variable name.
531814c0a534Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531914c0a534Smrg
532014c0a534Smrg
532114c0a534Smrgexec 6>&1
5322576bae58Smrg## ----------------------------------- ##
5323576bae58Smrg## Main body of $CONFIG_STATUS script. ##
5324576bae58Smrg## ----------------------------------- ##
5325576bae58Smrg_ASEOF
5326576bae58Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
532714c0a534Smrg
5328576bae58Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5329576bae58Smrg# Save the log message, to keep $0 and so on meaningful, and to
533014c0a534Smrg# report actual input values of CONFIG_FILES etc. instead of their
5331bf2eeab3Smrg# values after options handling.
5332bf2eeab3Smrgac_log="
5333576bae58SmrgThis file was extended by smproxy $as_me 1.0.4, which was
5334576bae58Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
533514c0a534Smrg
533614c0a534Smrg  CONFIG_FILES    = $CONFIG_FILES
533714c0a534Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
533814c0a534Smrg  CONFIG_LINKS    = $CONFIG_LINKS
533914c0a534Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
534014c0a534Smrg  $ $0 $@
534114c0a534Smrg
5342bf2eeab3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5343bf2eeab3Smrg"
5344bf2eeab3Smrg
534514c0a534Smrg_ACEOF
534614c0a534Smrg
5347bf2eeab3Smrgcase $ac_config_files in *"
5348bf2eeab3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5349bf2eeab3Smrgesac
535014c0a534Smrg
5351bf2eeab3Smrgcase $ac_config_headers in *"
5352bf2eeab3Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5353bf2eeab3Smrgesac
535414c0a534Smrg
535514c0a534Smrg
5356bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5357bf2eeab3Smrg# Files that config.status was made for.
5358bf2eeab3Smrgconfig_files="$ac_config_files"
5359bf2eeab3Smrgconfig_headers="$ac_config_headers"
5360bf2eeab3Smrgconfig_commands="$ac_config_commands"
536114c0a534Smrg
5362bf2eeab3Smrg_ACEOF
536314c0a534Smrg
5364bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
536514c0a534Smrgac_cs_usage="\
5366576bae58Smrg\`$as_me' instantiates files and other configuration actions
5367576bae58Smrgfrom templates according to the current configuration.  Unless the files
5368576bae58Smrgand actions are specified as TAGs, all are instantiated by default.
536914c0a534Smrg
5370576bae58SmrgUsage: $0 [OPTION]... [TAG]...
537114c0a534Smrg
537214c0a534Smrg  -h, --help       print this help, then exit
5373bf2eeab3Smrg  -V, --version    print version number and configuration settings, then exit
5374576bae58Smrg      --config     print configuration, then exit
5375bf2eeab3Smrg  -q, --quiet, --silent
5376bf2eeab3Smrg                   do not print progress messages
537714c0a534Smrg  -d, --debug      don't remove temporary files
537814c0a534Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5379bf2eeab3Smrg      --file=FILE[:TEMPLATE]
5380bf2eeab3Smrg                   instantiate the configuration file FILE
5381bf2eeab3Smrg      --header=FILE[:TEMPLATE]
5382bf2eeab3Smrg                   instantiate the configuration header FILE
538314c0a534Smrg
538414c0a534SmrgConfiguration files:
538514c0a534Smrg$config_files
538614c0a534Smrg
538714c0a534SmrgConfiguration headers:
538814c0a534Smrg$config_headers
538914c0a534Smrg
539014c0a534SmrgConfiguration commands:
539114c0a534Smrg$config_commands
539214c0a534Smrg
5393576bae58SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
539414c0a534Smrg
5395bf2eeab3Smrg_ACEOF
5396bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5397576bae58Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
539814c0a534Smrgac_cs_version="\\
5399576bae58Smrgsmproxy config.status 1.0.4
5400576bae58Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5401576bae58Smrg  with options \\"\$ac_cs_config\\"
540214c0a534Smrg
5403576bae58SmrgCopyright (C) 2010 Free Software Foundation, Inc.
540414c0a534SmrgThis config.status script is free software; the Free Software Foundation
540514c0a534Smrggives unlimited permission to copy, distribute and modify it."
5406bf2eeab3Smrg
5407bf2eeab3Smrgac_pwd='$ac_pwd'
5408bf2eeab3Smrgsrcdir='$srcdir'
5409bf2eeab3SmrgINSTALL='$INSTALL'
5410bf2eeab3SmrgMKDIR_P='$MKDIR_P'
5411bf2eeab3SmrgAWK='$AWK'
5412bf2eeab3Smrgtest -n "\$AWK" || AWK=awk
541314c0a534Smrg_ACEOF
541414c0a534Smrg
5415bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5416bf2eeab3Smrg# The default lists apply if the user does not specify any file.
541714c0a534Smrgac_need_defaults=:
541814c0a534Smrgwhile test $# != 0
541914c0a534Smrgdo
542014c0a534Smrg  case $1 in
5421576bae58Smrg  --*=?*)
5422bf2eeab3Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5423bf2eeab3Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
542414c0a534Smrg    ac_shift=:
542514c0a534Smrg    ;;
5426576bae58Smrg  --*=)
5427576bae58Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5428576bae58Smrg    ac_optarg=
5429576bae58Smrg    ac_shift=:
5430576bae58Smrg    ;;
5431bf2eeab3Smrg  *)
543214c0a534Smrg    ac_option=$1
543314c0a534Smrg    ac_optarg=$2
543414c0a534Smrg    ac_shift=shift
543514c0a534Smrg    ;;
543614c0a534Smrg  esac
543714c0a534Smrg
543814c0a534Smrg  case $ac_option in
543914c0a534Smrg  # Handling of the options.
544014c0a534Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
544114c0a534Smrg    ac_cs_recheck=: ;;
5442bf2eeab3Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5443bf2eeab3Smrg    $as_echo "$ac_cs_version"; exit ;;
5444576bae58Smrg  --config | --confi | --conf | --con | --co | --c )
5445576bae58Smrg    $as_echo "$ac_cs_config"; exit ;;
5446bf2eeab3Smrg  --debug | --debu | --deb | --de | --d | -d )
544714c0a534Smrg    debug=: ;;
544814c0a534Smrg  --file | --fil | --fi | --f )
544914c0a534Smrg    $ac_shift
5450bf2eeab3Smrg    case $ac_optarg in
5451bf2eeab3Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5452576bae58Smrg    '') as_fn_error $? "missing file argument" ;;
5453bf2eeab3Smrg    esac
5454576bae58Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
545514c0a534Smrg    ac_need_defaults=false;;
545614c0a534Smrg  --header | --heade | --head | --hea )
545714c0a534Smrg    $ac_shift
5458bf2eeab3Smrg    case $ac_optarg in
5459bf2eeab3Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5460bf2eeab3Smrg    esac
5461576bae58Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
546214c0a534Smrg    ac_need_defaults=false;;
5463bf2eeab3Smrg  --he | --h)
5464bf2eeab3Smrg    # Conflict between --help and --header
5465576bae58Smrg    as_fn_error $? "ambiguous option: \`$1'
5466576bae58SmrgTry \`$0 --help' for more information.";;
5467bf2eeab3Smrg  --help | --hel | -h )
5468bf2eeab3Smrg    $as_echo "$ac_cs_usage"; exit ;;
546914c0a534Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
547014c0a534Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
547114c0a534Smrg    ac_cs_silent=: ;;
547214c0a534Smrg
547314c0a534Smrg  # This is an error.
5474576bae58Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5475576bae58SmrgTry \`$0 --help' for more information." ;;
547614c0a534Smrg
5477576bae58Smrg  *) as_fn_append ac_config_targets " $1"
5478bf2eeab3Smrg     ac_need_defaults=false ;;
547914c0a534Smrg
548014c0a534Smrg  esac
548114c0a534Smrg  shift
548214c0a534Smrgdone
548314c0a534Smrg
548414c0a534Smrgac_configure_extra_args=
548514c0a534Smrg
548614c0a534Smrgif $ac_cs_silent; then
548714c0a534Smrg  exec 6>/dev/null
548814c0a534Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
548914c0a534Smrgfi
549014c0a534Smrg
549114c0a534Smrg_ACEOF
5492bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
549314c0a534Smrgif \$ac_cs_recheck; then
5494bf2eeab3Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5495bf2eeab3Smrg  shift
5496bf2eeab3Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5497bf2eeab3Smrg  CONFIG_SHELL='$SHELL'
5498bf2eeab3Smrg  export CONFIG_SHELL
5499bf2eeab3Smrg  exec "\$@"
550014c0a534Smrgfi
550114c0a534Smrg
550214c0a534Smrg_ACEOF
5503bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5504bf2eeab3Smrgexec 5>>config.log
5505bf2eeab3Smrg{
5506bf2eeab3Smrg  echo
5507bf2eeab3Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5508bf2eeab3Smrg## Running $as_me. ##
5509bf2eeab3Smrg_ASBOX
5510bf2eeab3Smrg  $as_echo "$ac_log"
5511bf2eeab3Smrg} >&5
551214c0a534Smrg
5513bf2eeab3Smrg_ACEOF
5514bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
551514c0a534Smrg#
5516bf2eeab3Smrg# INIT-COMMANDS
551714c0a534Smrg#
551814c0a534SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
551914c0a534Smrg
552014c0a534Smrg_ACEOF
552114c0a534Smrg
5522bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
552314c0a534Smrg
5524bf2eeab3Smrg# Handling of arguments.
552514c0a534Smrgfor ac_config_target in $ac_config_targets
552614c0a534Smrgdo
5527bf2eeab3Smrg  case $ac_config_target in
5528bf2eeab3Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5529bf2eeab3Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5530bf2eeab3Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5531bf2eeab3Smrg
5532576bae58Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
553314c0a534Smrg  esac
553414c0a534Smrgdone
553514c0a534Smrg
5536bf2eeab3Smrg
553714c0a534Smrg# If the user did not use the arguments to specify the items to instantiate,
553814c0a534Smrg# then the envvar interface is used.  Set only those that are not.
553914c0a534Smrg# We use the long form for the default assignment because of an extremely
554014c0a534Smrg# bizarre bug on SunOS 4.1.3.
554114c0a534Smrgif $ac_need_defaults; then
554214c0a534Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
554314c0a534Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
554414c0a534Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
554514c0a534Smrgfi
554614c0a534Smrg
554714c0a534Smrg# Have a temporary directory for convenience.  Make it in the build tree
5548bf2eeab3Smrg# simply because there is no reason against having it here, and in addition,
554914c0a534Smrg# creating and moving files from /tmp can sometimes cause problems.
5550bf2eeab3Smrg# Hook for its removal unless debugging.
5551bf2eeab3Smrg# Note that there is a small window in which the directory will not be cleaned:
5552bf2eeab3Smrg# after its creation but before its name has been assigned to `$tmp'.
555314c0a534Smrg$debug ||
555414c0a534Smrg{
5555576bae58Smrg  tmp= ac_tmp=
5556bf2eeab3Smrg  trap 'exit_status=$?
5557576bae58Smrg  : "${ac_tmp:=$tmp}"
5558576bae58Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5559bf2eeab3Smrg' 0
5560576bae58Smrg  trap 'as_fn_exit 1' 1 2 13 15
556114c0a534Smrg}
556214c0a534Smrg# Create a (secure) tmp directory for tmp files.
556314c0a534Smrg
556414c0a534Smrg{
5565bf2eeab3Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5566576bae58Smrg  test -d "$tmp"
556714c0a534Smrg}  ||
556814c0a534Smrg{
5569bf2eeab3Smrg  tmp=./conf$$-$RANDOM
5570bf2eeab3Smrg  (umask 077 && mkdir "$tmp")
5571576bae58Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5572576bae58Smrgac_tmp=$tmp
557314c0a534Smrg
5574bf2eeab3Smrg# Set up the scripts for CONFIG_FILES section.
5575bf2eeab3Smrg# No need to generate them if there are no CONFIG_FILES.
5576bf2eeab3Smrg# This happens for instance with `./config.status config.h'.
5577bf2eeab3Smrgif test -n "$CONFIG_FILES"; then
5578bf2eeab3Smrg
5579bf2eeab3Smrg
5580576bae58Smrgac_cr=`echo X | tr X '\015'`
5581576bae58Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5582576bae58Smrg# But we know of no other shell where ac_cr would be empty at this
5583576bae58Smrg# point, so we can use a bashism as a fallback.
5584576bae58Smrgif test "x$ac_cr" = x; then
5585576bae58Smrg  eval ac_cr=\$\'\\r\'
5586576bae58Smrgfi
5587bf2eeab3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5588bf2eeab3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5589bf2eeab3Smrg  ac_cs_awk_cr='\\r'
5590bf2eeab3Smrgelse
5591bf2eeab3Smrg  ac_cs_awk_cr=$ac_cr
5592bf2eeab3Smrgfi
5593bf2eeab3Smrg
5594576bae58Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
559514c0a534Smrg_ACEOF
559614c0a534Smrg
559714c0a534Smrg
5598bf2eeab3Smrg{
5599bf2eeab3Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5600bf2eeab3Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5601bf2eeab3Smrg  echo "_ACEOF"
5602bf2eeab3Smrg} >conf$$subs.sh ||
5603576bae58Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5604576bae58Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5605bf2eeab3Smrgac_delim='%!_!# '
5606bf2eeab3Smrgfor ac_last_try in false false false false false :; do
5607bf2eeab3Smrg  . ./conf$$subs.sh ||
5608576bae58Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
560914c0a534Smrg
5610bf2eeab3Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5611bf2eeab3Smrg  if test $ac_delim_n = $ac_delim_num; then
5612bf2eeab3Smrg    break
5613bf2eeab3Smrg  elif $ac_last_try; then
5614576bae58Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5615bf2eeab3Smrg  else
5616bf2eeab3Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5617bf2eeab3Smrg  fi
5618bf2eeab3Smrgdone
5619bf2eeab3Smrgrm -f conf$$subs.sh
562014c0a534Smrg
5621bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5622576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
562314c0a534Smrg_ACEOF
5624bf2eeab3Smrgsed -n '
5625bf2eeab3Smrgh
5626bf2eeab3Smrgs/^/S["/; s/!.*/"]=/
5627bf2eeab3Smrgp
5628bf2eeab3Smrgg
5629bf2eeab3Smrgs/^[^!]*!//
5630bf2eeab3Smrg:repl
5631bf2eeab3Smrgt repl
5632bf2eeab3Smrgs/'"$ac_delim"'$//
5633bf2eeab3Smrgt delim
5634bf2eeab3Smrg:nl
5635bf2eeab3Smrgh
5636576bae58Smrgs/\(.\{148\}\)..*/\1/
5637bf2eeab3Smrgt more1
5638bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5639bf2eeab3Smrgp
5640bf2eeab3Smrgn
5641bf2eeab3Smrgb repl
5642bf2eeab3Smrg:more1
5643bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5644bf2eeab3Smrgp
5645bf2eeab3Smrgg
5646bf2eeab3Smrgs/.\{148\}//
5647bf2eeab3Smrgt nl
5648bf2eeab3Smrg:delim
5649bf2eeab3Smrgh
5650576bae58Smrgs/\(.\{148\}\)..*/\1/
5651bf2eeab3Smrgt more2
5652bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5653bf2eeab3Smrgp
5654bf2eeab3Smrgb
5655bf2eeab3Smrg:more2
5656bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5657bf2eeab3Smrgp
5658bf2eeab3Smrgg
5659bf2eeab3Smrgs/.\{148\}//
5660bf2eeab3Smrgt delim
5661bf2eeab3Smrg' <conf$$subs.awk | sed '
5662bf2eeab3Smrg/^[^""]/{
5663bf2eeab3Smrg  N
5664bf2eeab3Smrg  s/\n//
5665bf2eeab3Smrg}
5666bf2eeab3Smrg' >>$CONFIG_STATUS || ac_write_fail=1
5667bf2eeab3Smrgrm -f conf$$subs.awk
5668bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5669bf2eeab3Smrg_ACAWK
5670576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5671bf2eeab3Smrg  for (key in S) S_is_set[key] = 1
5672bf2eeab3Smrg  FS = ""
567314c0a534Smrg
5674bf2eeab3Smrg}
5675bf2eeab3Smrg{
5676bf2eeab3Smrg  line = $ 0
5677bf2eeab3Smrg  nfields = split(line, field, "@")
5678bf2eeab3Smrg  substed = 0
5679bf2eeab3Smrg  len = length(field[1])
5680bf2eeab3Smrg  for (i = 2; i < nfields; i++) {
5681bf2eeab3Smrg    key = field[i]
5682bf2eeab3Smrg    keylen = length(key)
5683bf2eeab3Smrg    if (S_is_set[key]) {
5684bf2eeab3Smrg      value = S[key]
5685bf2eeab3Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5686bf2eeab3Smrg      len += length(value) + length(field[++i])
5687bf2eeab3Smrg      substed = 1
5688bf2eeab3Smrg    } else
5689bf2eeab3Smrg      len += 1 + keylen
5690bf2eeab3Smrg  }
5691bf2eeab3Smrg
5692bf2eeab3Smrg  print line
5693bf2eeab3Smrg}
5694bf2eeab3Smrg
5695bf2eeab3Smrg_ACAWK
5696bf2eeab3Smrg_ACEOF
5697bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5698bf2eeab3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5699bf2eeab3Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5700bf2eeab3Smrgelse
5701bf2eeab3Smrg  cat
5702576bae58Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5703576bae58Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5704bf2eeab3Smrg_ACEOF
5705bf2eeab3Smrg
5706576bae58Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5707576bae58Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5708bf2eeab3Smrg# trailing colons and then remove the whole line if VPATH becomes empty
5709bf2eeab3Smrg# (actually we leave an empty line to preserve line numbers).
5710bf2eeab3Smrgif test "x$srcdir" = x.; then
5711576bae58Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5712576bae58Smrgh
5713576bae58Smrgs///
5714576bae58Smrgs/^/:/
5715576bae58Smrgs/[	 ]*$/:/
5716576bae58Smrgs/:\$(srcdir):/:/g
5717576bae58Smrgs/:\${srcdir}:/:/g
5718576bae58Smrgs/:@srcdir@:/:/g
5719576bae58Smrgs/^:*//
5720bf2eeab3Smrgs/:*$//
5721576bae58Smrgx
5722576bae58Smrgs/\(=[	 ]*\).*/\1/
5723576bae58SmrgG
5724576bae58Smrgs/\n//
5725bf2eeab3Smrgs/^[^=]*=[	 ]*$//
5726bf2eeab3Smrg}'
5727bf2eeab3Smrgfi
5728bf2eeab3Smrg
5729bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
573014c0a534Smrgfi # test -n "$CONFIG_FILES"
573114c0a534Smrg
5732bf2eeab3Smrg# Set up the scripts for CONFIG_HEADERS section.
5733bf2eeab3Smrg# No need to generate them if there are no CONFIG_HEADERS.
5734bf2eeab3Smrg# This happens for instance with `./config.status Makefile'.
5735bf2eeab3Smrgif test -n "$CONFIG_HEADERS"; then
5736576bae58Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5737bf2eeab3SmrgBEGIN {
573814c0a534Smrg_ACEOF
5739bf2eeab3Smrg
5740bf2eeab3Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5741bf2eeab3Smrg# here-document in config.status, that substitutes the proper values into
5742bf2eeab3Smrg# config.h.in to produce config.h.
5743bf2eeab3Smrg
5744bf2eeab3Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
5745bf2eeab3Smrg# handling of long lines.
5746bf2eeab3Smrgac_delim='%!_!# '
5747bf2eeab3Smrgfor ac_last_try in false false :; do
5748576bae58Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5749576bae58Smrg  if test -z "$ac_tt"; then
5750bf2eeab3Smrg    break
5751bf2eeab3Smrg  elif $ac_last_try; then
5752576bae58Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5753bf2eeab3Smrg  else
5754bf2eeab3Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5755bf2eeab3Smrg  fi
5756bf2eeab3Smrgdone
5757bf2eeab3Smrg
5758bf2eeab3Smrg# For the awk script, D is an array of macro values keyed by name,
5759bf2eeab3Smrg# likewise P contains macro parameters if any.  Preserve backslash
5760bf2eeab3Smrg# newline sequences.
5761bf2eeab3Smrg
5762bf2eeab3Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5763bf2eeab3Smrgsed -n '
5764bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g
5765bf2eeab3Smrgt rset
5766bf2eeab3Smrg:rset
5767bf2eeab3Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5768bf2eeab3Smrgt def
5769bf2eeab3Smrgd
5770bf2eeab3Smrg:def
5771bf2eeab3Smrgs/\\$//
5772bf2eeab3Smrgt bsnl
5773bf2eeab3Smrgs/["\\]/\\&/g
5774bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5775bf2eeab3SmrgD["\1"]=" \3"/p
5776bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5777bf2eeab3Smrgd
5778bf2eeab3Smrg:bsnl
5779bf2eeab3Smrgs/["\\]/\\&/g
5780bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5781bf2eeab3SmrgD["\1"]=" \3\\\\\\n"\\/p
5782bf2eeab3Smrgt cont
5783bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5784bf2eeab3Smrgt cont
5785bf2eeab3Smrgd
5786bf2eeab3Smrg:cont
5787bf2eeab3Smrgn
5788bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g
5789bf2eeab3Smrgt clear
5790bf2eeab3Smrg:clear
5791bf2eeab3Smrgs/\\$//
5792bf2eeab3Smrgt bsnlc
5793bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
5794bf2eeab3Smrgd
5795bf2eeab3Smrg:bsnlc
5796bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5797bf2eeab3Smrgb cont
5798bf2eeab3Smrg' <confdefs.h | sed '
5799bf2eeab3Smrgs/'"$ac_delim"'/"\\\
5800bf2eeab3Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
5801bf2eeab3Smrg
5802bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5803bf2eeab3Smrg  for (key in D) D_is_set[key] = 1
5804bf2eeab3Smrg  FS = ""
5805bf2eeab3Smrg}
5806bf2eeab3Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5807bf2eeab3Smrg  line = \$ 0
5808bf2eeab3Smrg  split(line, arg, " ")
5809bf2eeab3Smrg  if (arg[1] == "#") {
5810bf2eeab3Smrg    defundef = arg[2]
5811bf2eeab3Smrg    mac1 = arg[3]
5812bf2eeab3Smrg  } else {
5813bf2eeab3Smrg    defundef = substr(arg[1], 2)
5814bf2eeab3Smrg    mac1 = arg[2]
5815bf2eeab3Smrg  }
5816bf2eeab3Smrg  split(mac1, mac2, "(") #)
5817bf2eeab3Smrg  macro = mac2[1]
5818bf2eeab3Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
5819bf2eeab3Smrg  if (D_is_set[macro]) {
5820bf2eeab3Smrg    # Preserve the white space surrounding the "#".
5821bf2eeab3Smrg    print prefix "define", macro P[macro] D[macro]
5822bf2eeab3Smrg    next
5823bf2eeab3Smrg  } else {
5824bf2eeab3Smrg    # Replace #undef with comments.  This is necessary, for example,
5825bf2eeab3Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
5826bf2eeab3Smrg    # on some systems where configure will not decide to define it.
5827bf2eeab3Smrg    if (defundef == "undef") {
5828bf2eeab3Smrg      print "/*", prefix defundef, macro, "*/"
5829bf2eeab3Smrg      next
5830bf2eeab3Smrg    }
5831bf2eeab3Smrg  }
5832bf2eeab3Smrg}
5833bf2eeab3Smrg{ print }
5834bf2eeab3Smrg_ACAWK
5835bf2eeab3Smrg_ACEOF
5836bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5837576bae58Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5838bf2eeab3Smrgfi # test -n "$CONFIG_HEADERS"
5839bf2eeab3Smrg
5840bf2eeab3Smrg
5841bf2eeab3Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5842bf2eeab3Smrgshift
5843bf2eeab3Smrgfor ac_tag
5844bf2eeab3Smrgdo
5845bf2eeab3Smrg  case $ac_tag in
5846bf2eeab3Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5847bf2eeab3Smrg  esac
5848bf2eeab3Smrg  case $ac_mode$ac_tag in
5849bf2eeab3Smrg  :[FHL]*:*);;
5850576bae58Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5851bf2eeab3Smrg  :[FH]-) ac_tag=-:-;;
5852bf2eeab3Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5853bf2eeab3Smrg  esac
5854bf2eeab3Smrg  ac_save_IFS=$IFS
5855bf2eeab3Smrg  IFS=:
5856bf2eeab3Smrg  set x $ac_tag
5857bf2eeab3Smrg  IFS=$ac_save_IFS
5858bf2eeab3Smrg  shift
5859bf2eeab3Smrg  ac_file=$1
5860bf2eeab3Smrg  shift
5861bf2eeab3Smrg
5862bf2eeab3Smrg  case $ac_mode in
5863bf2eeab3Smrg  :L) ac_source=$1;;
5864bf2eeab3Smrg  :[FH])
5865bf2eeab3Smrg    ac_file_inputs=
5866bf2eeab3Smrg    for ac_f
5867bf2eeab3Smrg    do
5868bf2eeab3Smrg      case $ac_f in
5869576bae58Smrg      -) ac_f="$ac_tmp/stdin";;
5870bf2eeab3Smrg      *) # Look for the file first in the build tree, then in the source tree
5871bf2eeab3Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5872bf2eeab3Smrg	 # because $ac_f cannot contain `:'.
5873bf2eeab3Smrg	 test -f "$ac_f" ||
5874bf2eeab3Smrg	   case $ac_f in
5875bf2eeab3Smrg	   [\\/$]*) false;;
5876bf2eeab3Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5877bf2eeab3Smrg	   esac ||
5878576bae58Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5879bf2eeab3Smrg      esac
5880bf2eeab3Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5881576bae58Smrg      as_fn_append ac_file_inputs " '$ac_f'"
5882bf2eeab3Smrg    done
5883bf2eeab3Smrg
5884bf2eeab3Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5885bf2eeab3Smrg    # use $as_me), people would be surprised to read:
5886bf2eeab3Smrg    #    /* config.h.  Generated by config.status.  */
5887bf2eeab3Smrg    configure_input='Generated from '`
5888bf2eeab3Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5889bf2eeab3Smrg	`' by configure.'
5890bf2eeab3Smrg    if test x"$ac_file" != x-; then
5891bf2eeab3Smrg      configure_input="$ac_file.  $configure_input"
5892576bae58Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5893bf2eeab3Smrg$as_echo "$as_me: creating $ac_file" >&6;}
5894bf2eeab3Smrg    fi
5895bf2eeab3Smrg    # Neutralize special characters interpreted by sed in replacement strings.
5896bf2eeab3Smrg    case $configure_input in #(
5897bf2eeab3Smrg    *\&* | *\|* | *\\* )
5898bf2eeab3Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
5899bf2eeab3Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5900bf2eeab3Smrg    *) ac_sed_conf_input=$configure_input;;
5901bf2eeab3Smrg    esac
5902bf2eeab3Smrg
5903bf2eeab3Smrg    case $ac_tag in
5904576bae58Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5905576bae58Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5906bf2eeab3Smrg    esac
5907bf2eeab3Smrg    ;;
590814c0a534Smrg  esac
590914c0a534Smrg
5910bf2eeab3Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
591114c0a534Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591214c0a534Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
591314c0a534Smrg	 X"$ac_file" : 'X\(//\)$' \| \
5914bf2eeab3Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5915bf2eeab3Smrg$as_echo X"$ac_file" |
5916bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5917bf2eeab3Smrg	    s//\1/
5918bf2eeab3Smrg	    q
5919bf2eeab3Smrg	  }
5920bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
5921bf2eeab3Smrg	    s//\1/
5922bf2eeab3Smrg	    q
5923bf2eeab3Smrg	  }
5924bf2eeab3Smrg	  /^X\(\/\/\)$/{
5925bf2eeab3Smrg	    s//\1/
5926bf2eeab3Smrg	    q
5927bf2eeab3Smrg	  }
5928bf2eeab3Smrg	  /^X\(\/\).*/{
5929bf2eeab3Smrg	    s//\1/
5930bf2eeab3Smrg	    q
5931bf2eeab3Smrg	  }
5932bf2eeab3Smrg	  s/.*/./; q'`
5933576bae58Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
593414c0a534Smrg  ac_builddir=.
593514c0a534Smrg
5936bf2eeab3Smrgcase "$ac_dir" in
5937bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5938bf2eeab3Smrg*)
5939bf2eeab3Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5940bf2eeab3Smrg  # A ".." for each directory in $ac_dir_suffix.
5941bf2eeab3Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5942bf2eeab3Smrg  case $ac_top_builddir_sub in
5943bf2eeab3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5944bf2eeab3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5945bf2eeab3Smrg  esac ;;
5946bf2eeab3Smrgesac
5947bf2eeab3Smrgac_abs_top_builddir=$ac_pwd
5948bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5949bf2eeab3Smrg# for backward compatibility:
5950bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix
595114c0a534Smrg
595214c0a534Smrgcase $srcdir in
5953bf2eeab3Smrg  .)  # We are building in place.
595414c0a534Smrg    ac_srcdir=.
5955bf2eeab3Smrg    ac_top_srcdir=$ac_top_builddir_sub
5956bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
5957bf2eeab3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
595814c0a534Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
5959bf2eeab3Smrg    ac_top_srcdir=$srcdir
5960bf2eeab3Smrg    ac_abs_top_srcdir=$srcdir ;;
5961bf2eeab3Smrg  *) # Relative name.
5962bf2eeab3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5963bf2eeab3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5964bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
596514c0a534Smrgesac
5966bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
596714c0a534Smrg
596814c0a534Smrg
5969bf2eeab3Smrg  case $ac_mode in
5970bf2eeab3Smrg  :F)
5971bf2eeab3Smrg  #
5972bf2eeab3Smrg  # CONFIG_FILE
5973bf2eeab3Smrg  #
597414c0a534Smrg
597514c0a534Smrg  case $INSTALL in
597614c0a534Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5977bf2eeab3Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
597814c0a534Smrg  esac
5979bf2eeab3Smrg  ac_MKDIR_P=$MKDIR_P
5980bf2eeab3Smrg  case $MKDIR_P in
5981bf2eeab3Smrg  [\\/$]* | ?:[\\/]* ) ;;
5982bf2eeab3Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5983bf2eeab3Smrg  esac
5984bf2eeab3Smrg_ACEOF
598514c0a534Smrg
5986bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5987bf2eeab3Smrg# If the template does not know about datarootdir, expand it.
5988bf2eeab3Smrg# FIXME: This hack should be removed a few years after 2.60.
5989bf2eeab3Smrgac_datarootdir_hack=; ac_datarootdir_seen=
5990bf2eeab3Smrgac_sed_dataroot='
5991bf2eeab3Smrg/datarootdir/ {
5992bf2eeab3Smrg  p
5993bf2eeab3Smrg  q
5994bf2eeab3Smrg}
5995bf2eeab3Smrg/@datadir@/p
5996bf2eeab3Smrg/@docdir@/p
5997bf2eeab3Smrg/@infodir@/p
5998bf2eeab3Smrg/@localedir@/p
5999576bae58Smrg/@mandir@/p'
6000bf2eeab3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6001bf2eeab3Smrg*datarootdir*) ac_datarootdir_seen=yes;;
6002bf2eeab3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6003576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6004bf2eeab3Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6005bf2eeab3Smrg_ACEOF
6006bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6007bf2eeab3Smrg  ac_datarootdir_hack='
6008bf2eeab3Smrg  s&@datadir@&$datadir&g
6009bf2eeab3Smrg  s&@docdir@&$docdir&g
6010bf2eeab3Smrg  s&@infodir@&$infodir&g
6011bf2eeab3Smrg  s&@localedir@&$localedir&g
6012bf2eeab3Smrg  s&@mandir@&$mandir&g
6013576bae58Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6014bf2eeab3Smrgesac
601514c0a534Smrg_ACEOF
6016bf2eeab3Smrg
6017bf2eeab3Smrg# Neutralize VPATH when `$srcdir' = `.'.
6018bf2eeab3Smrg# Shell code in configure.ac might set extrasub.
6019bf2eeab3Smrg# FIXME: do we really want to maintain this feature?
6020bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6021bf2eeab3Smrgac_sed_extra="$ac_vpsub
602214c0a534Smrg$extrasub
602314c0a534Smrg_ACEOF
6024bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
602514c0a534Smrg:t
602614c0a534Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6027bf2eeab3Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6028bf2eeab3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6029bf2eeab3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6030bf2eeab3Smrgs&@srcdir@&$ac_srcdir&;t t
6031bf2eeab3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6032bf2eeab3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
6033bf2eeab3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6034bf2eeab3Smrgs&@builddir@&$ac_builddir&;t t
6035bf2eeab3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
6036bf2eeab3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6037bf2eeab3Smrgs&@INSTALL@&$ac_INSTALL&;t t
6038bf2eeab3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6039bf2eeab3Smrg$ac_datarootdir_hack
6040bf2eeab3Smrg"
6041576bae58Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6042576bae58Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
604314c0a534Smrg
6044bf2eeab3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6045576bae58Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6046576bae58Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6047576bae58Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6048576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6049576bae58Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
6050bf2eeab3Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6051576bae58Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
605214c0a534Smrg
6053576bae58Smrg  rm -f "$ac_tmp/stdin"
605414c0a534Smrg  case $ac_file in
6055576bae58Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6056576bae58Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6057bf2eeab3Smrg  esac \
6058576bae58Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6059bf2eeab3Smrg ;;
6060bf2eeab3Smrg  :H)
6061bf2eeab3Smrg  #
6062bf2eeab3Smrg  # CONFIG_HEADER
6063bf2eeab3Smrg  #
606414c0a534Smrg  if test x"$ac_file" != x-; then
6065bf2eeab3Smrg    {
6066bf2eeab3Smrg      $as_echo "/* $configure_input  */" \
6067576bae58Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6068576bae58Smrg    } >"$ac_tmp/config.h" \
6069576bae58Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6070576bae58Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6071576bae58Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6072bf2eeab3Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
607314c0a534Smrg    else
6074bf2eeab3Smrg      rm -f "$ac_file"
6075576bae58Smrg      mv "$ac_tmp/config.h" "$ac_file" \
6076576bae58Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
607714c0a534Smrg    fi
607814c0a534Smrg  else
6079bf2eeab3Smrg    $as_echo "/* $configure_input  */" \
6080576bae58Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6081576bae58Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
608214c0a534Smrg  fi
6083bf2eeab3Smrg# Compute "$ac_file"'s index in $config_headers.
6084bf2eeab3Smrg_am_arg="$ac_file"
608514c0a534Smrg_am_stamp_count=1
608614c0a534Smrgfor _am_header in $config_headers :; do
608714c0a534Smrg  case $_am_header in
6088bf2eeab3Smrg    $_am_arg | $_am_arg:* )
608914c0a534Smrg      break ;;
609014c0a534Smrg    * )
609114c0a534Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
609214c0a534Smrg  esac
609314c0a534Smrgdone
6094bf2eeab3Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6095bf2eeab3Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6096bf2eeab3Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6097bf2eeab3Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6098bf2eeab3Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6099bf2eeab3Smrg$as_echo X"$_am_arg" |
6100bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6101bf2eeab3Smrg	    s//\1/
6102bf2eeab3Smrg	    q
6103bf2eeab3Smrg	  }
6104bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
6105bf2eeab3Smrg	    s//\1/
6106bf2eeab3Smrg	    q
6107bf2eeab3Smrg	  }
6108bf2eeab3Smrg	  /^X\(\/\/\)$/{
6109bf2eeab3Smrg	    s//\1/
6110bf2eeab3Smrg	    q
6111bf2eeab3Smrg	  }
6112bf2eeab3Smrg	  /^X\(\/\).*/{
6113bf2eeab3Smrg	    s//\1/
6114bf2eeab3Smrg	    q
6115bf2eeab3Smrg	  }
6116bf2eeab3Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6117bf2eeab3Smrg ;;
611814c0a534Smrg
6119576bae58Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6120bf2eeab3Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6121bf2eeab3Smrg ;;
6122bf2eeab3Smrg  esac
612314c0a534Smrg
612414c0a534Smrg
6125bf2eeab3Smrg  case $ac_file$ac_mode in
6126bf2eeab3Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6127bf2eeab3Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6128bf2eeab3Smrg  # are listed without --file.  Let's play safe and only enable the eval
6129bf2eeab3Smrg  # if we detect the quoting.
6130bf2eeab3Smrg  case $CONFIG_FILES in
6131bf2eeab3Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6132bf2eeab3Smrg  *)   set x $CONFIG_FILES ;;
6133bf2eeab3Smrg  esac
6134bf2eeab3Smrg  shift
6135bf2eeab3Smrg  for mf
6136bf2eeab3Smrg  do
6137bf2eeab3Smrg    # Strip MF so we end up with the name of the file.
6138bf2eeab3Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6139bf2eeab3Smrg    # Check whether this is an Automake generated Makefile or not.
6140bf2eeab3Smrg    # We used to match only the files named `Makefile.in', but
6141bf2eeab3Smrg    # some people rename them; so instead we look at the file content.
6142bf2eeab3Smrg    # Grep'ing the first line is not enough: some people post-process
6143bf2eeab3Smrg    # each Makefile.in and add a new line on top of each file to say so.
6144bf2eeab3Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6145bf2eeab3Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6146bf2eeab3Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6147bf2eeab3Smrg      dirpart=`$as_dirname -- "$mf" ||
614814c0a534Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
614914c0a534Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
615014c0a534Smrg	 X"$mf" : 'X\(//\)$' \| \
6151bf2eeab3Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6152bf2eeab3Smrg$as_echo X"$mf" |
6153bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6154bf2eeab3Smrg	    s//\1/
6155bf2eeab3Smrg	    q
6156bf2eeab3Smrg	  }
6157bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
6158bf2eeab3Smrg	    s//\1/
6159bf2eeab3Smrg	    q
6160bf2eeab3Smrg	  }
6161bf2eeab3Smrg	  /^X\(\/\/\)$/{
6162bf2eeab3Smrg	    s//\1/
6163bf2eeab3Smrg	    q
6164bf2eeab3Smrg	  }
6165bf2eeab3Smrg	  /^X\(\/\).*/{
6166bf2eeab3Smrg	    s//\1/
6167bf2eeab3Smrg	    q
6168bf2eeab3Smrg	  }
6169bf2eeab3Smrg	  s/.*/./; q'`
6170bf2eeab3Smrg    else
6171bf2eeab3Smrg      continue
6172bf2eeab3Smrg    fi
6173bf2eeab3Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6174bf2eeab3Smrg    # from the Makefile without running `make'.
6175bf2eeab3Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6176bf2eeab3Smrg    test -z "$DEPDIR" && continue
6177bf2eeab3Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6178bf2eeab3Smrg    test -z "am__include" && continue
6179bf2eeab3Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6180bf2eeab3Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6181bf2eeab3Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6182bf2eeab3Smrg    # Find all dependency output files, they are included files with
6183bf2eeab3Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6184bf2eeab3Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6185bf2eeab3Smrg    # expansion.
6186bf2eeab3Smrg    for file in `sed -n "
6187bf2eeab3Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6188bf2eeab3Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6189bf2eeab3Smrg      # Make sure the directory exists.
6190bf2eeab3Smrg      test -f "$dirpart/$file" && continue
6191bf2eeab3Smrg      fdir=`$as_dirname -- "$file" ||
619214c0a534Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
619314c0a534Smrg	 X"$file" : 'X\(//\)[^/]' \| \
619414c0a534Smrg	 X"$file" : 'X\(//\)$' \| \
6195bf2eeab3Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6196bf2eeab3Smrg$as_echo X"$file" |
6197bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6198bf2eeab3Smrg	    s//\1/
6199bf2eeab3Smrg	    q
6200bf2eeab3Smrg	  }
6201bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
6202bf2eeab3Smrg	    s//\1/
6203bf2eeab3Smrg	    q
6204bf2eeab3Smrg	  }
6205bf2eeab3Smrg	  /^X\(\/\/\)$/{
6206bf2eeab3Smrg	    s//\1/
6207bf2eeab3Smrg	    q
6208bf2eeab3Smrg	  }
6209bf2eeab3Smrg	  /^X\(\/\).*/{
6210bf2eeab3Smrg	    s//\1/
6211bf2eeab3Smrg	    q
6212bf2eeab3Smrg	  }
6213bf2eeab3Smrg	  s/.*/./; q'`
6214576bae58Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6215bf2eeab3Smrg      # echo "creating $dirpart/$file"
6216bf2eeab3Smrg      echo '# dummy' > "$dirpart/$file"
6217bf2eeab3Smrg    done
621814c0a534Smrg  done
6219bf2eeab3Smrg}
622014c0a534Smrg ;;
6221bf2eeab3Smrg
622214c0a534Smrg  esac
6223bf2eeab3Smrgdone # for ac_tag
622414c0a534Smrg
622514c0a534Smrg
6226576bae58Smrgas_fn_exit 0
622714c0a534Smrg_ACEOF
622814c0a534Smrgac_clean_files=$ac_clean_files_save
622914c0a534Smrg
6230bf2eeab3Smrgtest $ac_write_fail = 0 ||
6231576bae58Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6232bf2eeab3Smrg
623314c0a534Smrg
623414c0a534Smrg# configure is writing to config.log, and then calls config.status.
623514c0a534Smrg# config.status does its own redirection, appending to config.log.
623614c0a534Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
623714c0a534Smrg# by configure, so config.status won't be able to write to it; its
623814c0a534Smrg# output is simply discarded.  So we exec the FD to /dev/null,
623914c0a534Smrg# effectively closing config.log, so it can be properly (re)opened and
624014c0a534Smrg# appended to by config.status.  When coming back to configure, we
624114c0a534Smrg# need to make the FD available again.
624214c0a534Smrgif test "$no_create" != yes; then
624314c0a534Smrg  ac_cs_success=:
624414c0a534Smrg  ac_config_status_args=
624514c0a534Smrg  test "$silent" = yes &&
624614c0a534Smrg    ac_config_status_args="$ac_config_status_args --quiet"
624714c0a534Smrg  exec 5>/dev/null
624814c0a534Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
624914c0a534Smrg  exec 5>>config.log
625014c0a534Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
625114c0a534Smrg  # would make configure fail if this is the last instruction.
6252576bae58Smrg  $ac_cs_success || as_fn_exit 1
625314c0a534Smrgfi
6254bf2eeab3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6255576bae58Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6256bf2eeab3Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6257bf2eeab3Smrgfi
625814c0a534Smrg
6259