configure revision ce62200c
11a30de1fSmrg#! /bin/sh
21a30de1fSmrg# Guess values for system-dependent variables and create Makefiles.
3ce62200cSmrg# Generated by GNU Autoconf 2.68 for xmodmap 1.0.5.
41a30de1fSmrg#
51a30de1fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61a30de1fSmrg#
7ce62200cSmrg#
81a30de1fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9ce62200cSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10ce62200cSmrg# Foundation, Inc.
11ce62200cSmrg#
12ce62200cSmrg#
131a30de1fSmrg# This configure script is free software; the Free Software Foundation
141a30de1fSmrg# gives unlimited permission to copy, distribute and modify it.
15ce62200cSmrg## -------------------- ##
16ce62200cSmrg## M4sh Initialization. ##
17ce62200cSmrg## -------------------- ##
181a30de1fSmrg
191a30de1fSmrg# Be more Bourne compatible
201a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh
21ce62200cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
221a30de1fSmrg  emulate sh
231a30de1fSmrg  NULLCMD=:
24b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
251a30de1fSmrg  # is contrary to our usage.  Disable this feature.
261a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
271a30de1fSmrg  setopt NO_GLOB_SUBST
281a30de1fSmrgelse
29ce62200cSmrg  case `(set -o) 2>/dev/null` in #(
30ce62200cSmrg  *posix*) :
31ce62200cSmrg    set -o posix ;; #(
32ce62200cSmrg  *) :
33ce62200cSmrg     ;;
341a30de1fSmrgesac
351a30de1fSmrgfi
361a30de1fSmrg
371a30de1fSmrg
38b7fb5eacSmrgas_nl='
39b7fb5eacSmrg'
40b7fb5eacSmrgexport as_nl
41b7fb5eacSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42b7fb5eacSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45ce62200cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46ce62200cSmrg# but without wasting forks for bash or zsh.
47ce62200cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48ce62200cSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49ce62200cSmrg  as_echo='print -r --'
50ce62200cSmrg  as_echo_n='print -rn --'
51ce62200cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52b7fb5eacSmrg  as_echo='printf %s\n'
53b7fb5eacSmrg  as_echo_n='printf %s'
54b7fb5eacSmrgelse
55b7fb5eacSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56b7fb5eacSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57b7fb5eacSmrg    as_echo_n='/usr/ucb/echo -n'
581a30de1fSmrg  else
59b7fb5eacSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60b7fb5eacSmrg    as_echo_n_body='eval
61b7fb5eacSmrg      arg=$1;
62ce62200cSmrg      case $arg in #(
63b7fb5eacSmrg      *"$as_nl"*)
64b7fb5eacSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65b7fb5eacSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66b7fb5eacSmrg      esac;
67b7fb5eacSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68b7fb5eacSmrg    '
69b7fb5eacSmrg    export as_echo_n_body
70b7fb5eacSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
711a30de1fSmrg  fi
72b7fb5eacSmrg  export as_echo_body
73b7fb5eacSmrg  as_echo='sh -c $as_echo_body as_echo'
74b7fb5eacSmrgfi
75b7fb5eacSmrg
76b7fb5eacSmrg# The user is always right.
77b7fb5eacSmrgif test "${PATH_SEPARATOR+set}" != set; then
78b7fb5eacSmrg  PATH_SEPARATOR=:
79b7fb5eacSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80b7fb5eacSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81b7fb5eacSmrg      PATH_SEPARATOR=';'
82b7fb5eacSmrg  }
831a30de1fSmrgfi
841a30de1fSmrg
851a30de1fSmrg
861a30de1fSmrg# IFS
871a30de1fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
881a30de1fSmrg# there to prevent editors from complaining about space-tab.
891a30de1fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
901a30de1fSmrg# splitting by setting IFS to empty value.)
911a30de1fSmrgIFS=" ""	$as_nl"
921a30de1fSmrg
931a30de1fSmrg# Find who we are.  Look in the path if we contain no directory separator.
94ce62200cSmrgas_myself=
95ce62200cSmrgcase $0 in #((
961a30de1fSmrg  *[\\/]* ) as_myself=$0 ;;
971a30de1fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981a30de1fSmrgfor as_dir in $PATH
991a30de1fSmrgdo
1001a30de1fSmrg  IFS=$as_save_IFS
1011a30de1fSmrg  test -z "$as_dir" && as_dir=.
102ce62200cSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103ce62200cSmrg  done
1041a30de1fSmrgIFS=$as_save_IFS
1051a30de1fSmrg
1061a30de1fSmrg     ;;
1071a30de1fSmrgesac
1081a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1091a30de1fSmrg# in which case we are not to be found in the path.
1101a30de1fSmrgif test "x$as_myself" = x; then
1111a30de1fSmrg  as_myself=$0
1121a30de1fSmrgfi
1131a30de1fSmrgif test ! -f "$as_myself"; then
114b7fb5eacSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115ce62200cSmrg  exit 1
1161a30de1fSmrgfi
1171a30de1fSmrg
118ce62200cSmrg# Unset variables that we do not need and which cause bugs (e.g. in
119ce62200cSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120ce62200cSmrg# suppresses any "Segmentation fault" message there.  '((' could
121ce62200cSmrg# trigger a bug in pdksh 5.2.14.
122ce62200cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123ce62200cSmrgdo eval test x\${$as_var+set} = xset \
124ce62200cSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1251a30de1fSmrgdone
1261a30de1fSmrgPS1='$ '
1271a30de1fSmrgPS2='> '
1281a30de1fSmrgPS4='+ '
1291a30de1fSmrg
1301a30de1fSmrg# NLS nuisances.
131b7fb5eacSmrgLC_ALL=C
132b7fb5eacSmrgexport LC_ALL
133b7fb5eacSmrgLANGUAGE=C
134b7fb5eacSmrgexport LANGUAGE
1351a30de1fSmrg
136ce62200cSmrg# CDPATH.
137ce62200cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138ce62200cSmrg
139ce62200cSmrgif test "x$CONFIG_SHELL" = x; then
140ce62200cSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141ce62200cSmrg  emulate sh
142ce62200cSmrg  NULLCMD=:
143ce62200cSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144ce62200cSmrg  # is contrary to our usage.  Disable this feature.
145ce62200cSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146ce62200cSmrg  setopt NO_GLOB_SUBST
147ce62200cSmrgelse
148ce62200cSmrg  case \`(set -o) 2>/dev/null\` in #(
149ce62200cSmrg  *posix*) :
150ce62200cSmrg    set -o posix ;; #(
151ce62200cSmrg  *) :
152ce62200cSmrg     ;;
153ce62200cSmrgesac
154ce62200cSmrgfi
155ce62200cSmrg"
156ce62200cSmrg  as_required="as_fn_return () { (exit \$1); }
157ce62200cSmrgas_fn_success () { as_fn_return 0; }
158ce62200cSmrgas_fn_failure () { as_fn_return 1; }
159ce62200cSmrgas_fn_ret_success () { return 0; }
160ce62200cSmrgas_fn_ret_failure () { return 1; }
161ce62200cSmrg
162ce62200cSmrgexitcode=0
163ce62200cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164ce62200cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165ce62200cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166ce62200cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167ce62200cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168ce62200cSmrg
169ce62200cSmrgelse
170ce62200cSmrg  exitcode=1; echo positional parameters were not saved.
171ce62200cSmrgfi
172ce62200cSmrgtest x\$exitcode = x0 || exit 1"
173ce62200cSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174ce62200cSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175ce62200cSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176ce62200cSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177ce62200cSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
178ce62200cSmrg  if (eval "$as_required") 2>/dev/null; then :
179ce62200cSmrg  as_have_required=yes
180ce62200cSmrgelse
181ce62200cSmrg  as_have_required=no
182ce62200cSmrgfi
183ce62200cSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184ce62200cSmrg
185ce62200cSmrgelse
186ce62200cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187ce62200cSmrgas_found=false
188ce62200cSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189ce62200cSmrgdo
190ce62200cSmrg  IFS=$as_save_IFS
191ce62200cSmrg  test -z "$as_dir" && as_dir=.
192ce62200cSmrg  as_found=:
193ce62200cSmrg  case $as_dir in #(
194ce62200cSmrg	 /*)
195ce62200cSmrg	   for as_base in sh bash ksh sh5; do
196ce62200cSmrg	     # Try only shells that exist, to save several forks.
197ce62200cSmrg	     as_shell=$as_dir/$as_base
198ce62200cSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199ce62200cSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200ce62200cSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
201ce62200cSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202ce62200cSmrg  break 2
203ce62200cSmrgfi
204ce62200cSmrgfi
205ce62200cSmrg	   done;;
206ce62200cSmrg       esac
207ce62200cSmrg  as_found=false
208ce62200cSmrgdone
209ce62200cSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210ce62200cSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211ce62200cSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
212ce62200cSmrgfi; }
213ce62200cSmrgIFS=$as_save_IFS
214ce62200cSmrg
215ce62200cSmrg
216ce62200cSmrg      if test "x$CONFIG_SHELL" != x; then :
217ce62200cSmrg  # We cannot yet assume a decent shell, so we have to provide a
218ce62200cSmrg	# neutralization value for shells without unset; and this also
219ce62200cSmrg	# works around shells that cannot unset nonexistent variables.
220ce62200cSmrg	# Preserve -v and -x to the replacement shell.
221ce62200cSmrg	BASH_ENV=/dev/null
222ce62200cSmrg	ENV=/dev/null
223ce62200cSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224ce62200cSmrg	export CONFIG_SHELL
225ce62200cSmrg	case $- in # ((((
226ce62200cSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227ce62200cSmrg	  *v* ) as_opts=-v ;;
228ce62200cSmrg	  *x* ) as_opts=-x ;;
229ce62200cSmrg	  * ) as_opts= ;;
230ce62200cSmrg	esac
231ce62200cSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232ce62200cSmrgfi
233ce62200cSmrg
234ce62200cSmrg    if test x$as_have_required = xno; then :
235ce62200cSmrg  $as_echo "$0: This script requires a shell more modern than all"
236ce62200cSmrg  $as_echo "$0: the shells that I found on your system."
237ce62200cSmrg  if test x${ZSH_VERSION+set} = xset ; then
238ce62200cSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239ce62200cSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240ce62200cSmrg  else
241ce62200cSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242ce62200cSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243ce62200cSmrg$0: about your system, including any error possibly output
244ce62200cSmrg$0: before this message. Then install a modern shell, or
245ce62200cSmrg$0: manually run the script under such a shell if you do
246ce62200cSmrg$0: have one."
247ce62200cSmrg  fi
248ce62200cSmrg  exit 1
249ce62200cSmrgfi
250ce62200cSmrgfi
251ce62200cSmrgfi
252ce62200cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
253ce62200cSmrgexport SHELL
254ce62200cSmrg# Unset more variables known to interfere with behavior of common tools.
255ce62200cSmrgCLICOLOR_FORCE= GREP_OPTIONS=
256ce62200cSmrgunset CLICOLOR_FORCE GREP_OPTIONS
257ce62200cSmrg
258ce62200cSmrg## --------------------- ##
259ce62200cSmrg## M4sh Shell Functions. ##
260ce62200cSmrg## --------------------- ##
261ce62200cSmrg# as_fn_unset VAR
262ce62200cSmrg# ---------------
263ce62200cSmrg# Portably unset VAR.
264ce62200cSmrgas_fn_unset ()
265ce62200cSmrg{
266ce62200cSmrg  { eval $1=; unset $1;}
267ce62200cSmrg}
268ce62200cSmrgas_unset=as_fn_unset
269ce62200cSmrg
270ce62200cSmrg# as_fn_set_status STATUS
271ce62200cSmrg# -----------------------
272ce62200cSmrg# Set $? to STATUS, without forking.
273ce62200cSmrgas_fn_set_status ()
274ce62200cSmrg{
275ce62200cSmrg  return $1
276ce62200cSmrg} # as_fn_set_status
277ce62200cSmrg
278ce62200cSmrg# as_fn_exit STATUS
279ce62200cSmrg# -----------------
280ce62200cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281ce62200cSmrgas_fn_exit ()
282ce62200cSmrg{
283ce62200cSmrg  set +e
284ce62200cSmrg  as_fn_set_status $1
285ce62200cSmrg  exit $1
286ce62200cSmrg} # as_fn_exit
287ce62200cSmrg
288ce62200cSmrg# as_fn_mkdir_p
289ce62200cSmrg# -------------
290ce62200cSmrg# Create "$as_dir" as a directory, including parents if necessary.
291ce62200cSmrgas_fn_mkdir_p ()
292ce62200cSmrg{
293ce62200cSmrg
294ce62200cSmrg  case $as_dir in #(
295ce62200cSmrg  -*) as_dir=./$as_dir;;
296ce62200cSmrg  esac
297ce62200cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
298ce62200cSmrg    as_dirs=
299ce62200cSmrg    while :; do
300ce62200cSmrg      case $as_dir in #(
301ce62200cSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302ce62200cSmrg      *) as_qdir=$as_dir;;
303ce62200cSmrg      esac
304ce62200cSmrg      as_dirs="'$as_qdir' $as_dirs"
305ce62200cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
306ce62200cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307ce62200cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308ce62200cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
309ce62200cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310ce62200cSmrg$as_echo X"$as_dir" |
311ce62200cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312ce62200cSmrg	    s//\1/
313ce62200cSmrg	    q
314ce62200cSmrg	  }
315ce62200cSmrg	  /^X\(\/\/\)[^/].*/{
316ce62200cSmrg	    s//\1/
317ce62200cSmrg	    q
318ce62200cSmrg	  }
319ce62200cSmrg	  /^X\(\/\/\)$/{
320ce62200cSmrg	    s//\1/
321ce62200cSmrg	    q
322ce62200cSmrg	  }
323ce62200cSmrg	  /^X\(\/\).*/{
324ce62200cSmrg	    s//\1/
325ce62200cSmrg	    q
326ce62200cSmrg	  }
327ce62200cSmrg	  s/.*/./; q'`
328ce62200cSmrg      test -d "$as_dir" && break
329ce62200cSmrg    done
330ce62200cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331ce62200cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332ce62200cSmrg
333ce62200cSmrg
334ce62200cSmrg} # as_fn_mkdir_p
335ce62200cSmrg# as_fn_append VAR VALUE
336ce62200cSmrg# ----------------------
337ce62200cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338ce62200cSmrg# advantage of any shell optimizations that allow amortized linear growth over
339ce62200cSmrg# repeated appends, instead of the typical quadratic growth present in naive
340ce62200cSmrg# implementations.
341ce62200cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342ce62200cSmrg  eval 'as_fn_append ()
343ce62200cSmrg  {
344ce62200cSmrg    eval $1+=\$2
345ce62200cSmrg  }'
346ce62200cSmrgelse
347ce62200cSmrg  as_fn_append ()
348ce62200cSmrg  {
349ce62200cSmrg    eval $1=\$$1\$2
350ce62200cSmrg  }
351ce62200cSmrgfi # as_fn_append
352ce62200cSmrg
353ce62200cSmrg# as_fn_arith ARG...
354ce62200cSmrg# ------------------
355ce62200cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356ce62200cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357ce62200cSmrg# must be portable across $(()) and expr.
358ce62200cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359ce62200cSmrg  eval 'as_fn_arith ()
360ce62200cSmrg  {
361ce62200cSmrg    as_val=$(( $* ))
362ce62200cSmrg  }'
363ce62200cSmrgelse
364ce62200cSmrg  as_fn_arith ()
365ce62200cSmrg  {
366ce62200cSmrg    as_val=`expr "$@" || test $? -eq 1`
367ce62200cSmrg  }
368ce62200cSmrgfi # as_fn_arith
369ce62200cSmrg
370ce62200cSmrg
371ce62200cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372ce62200cSmrg# ----------------------------------------
373ce62200cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374ce62200cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375ce62200cSmrg# script with STATUS, using 1 if that was 0.
376ce62200cSmrgas_fn_error ()
377ce62200cSmrg{
378ce62200cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
379ce62200cSmrg  if test "$4"; then
380ce62200cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382ce62200cSmrg  fi
383ce62200cSmrg  $as_echo "$as_me: error: $2" >&2
384ce62200cSmrg  as_fn_exit $as_status
385ce62200cSmrg} # as_fn_error
386ce62200cSmrg
3871a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3881a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3891a30de1fSmrg  as_expr=expr
3901a30de1fSmrgelse
3911a30de1fSmrg  as_expr=false
3921a30de1fSmrgfi
3931a30de1fSmrg
3941a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3951a30de1fSmrg  as_basename=basename
3961a30de1fSmrgelse
3971a30de1fSmrg  as_basename=false
3981a30de1fSmrgfi
3991a30de1fSmrg
400ce62200cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401ce62200cSmrg  as_dirname=dirname
402ce62200cSmrgelse
403ce62200cSmrg  as_dirname=false
404ce62200cSmrgfi
4051a30de1fSmrg
4061a30de1fSmrgas_me=`$as_basename -- "$0" ||
4071a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4081a30de1fSmrg	 X"$0" : 'X\(//\)$' \| \
4091a30de1fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410b7fb5eacSmrg$as_echo X/"$0" |
4111a30de1fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4121a30de1fSmrg	    s//\1/
4131a30de1fSmrg	    q
4141a30de1fSmrg	  }
4151a30de1fSmrg	  /^X\/\(\/\/\)$/{
4161a30de1fSmrg	    s//\1/
4171a30de1fSmrg	    q
4181a30de1fSmrg	  }
4191a30de1fSmrg	  /^X\/\(\/\).*/{
4201a30de1fSmrg	    s//\1/
4211a30de1fSmrg	    q
4221a30de1fSmrg	  }
4231a30de1fSmrg	  s/.*/./; q'`
4241a30de1fSmrg
425ce62200cSmrg# Avoid depending upon Character Ranges.
426ce62200cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427ce62200cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428ce62200cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429ce62200cSmrgas_cr_digits='0123456789'
430ce62200cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4311a30de1fSmrg
4321a30de1fSmrg
433ce62200cSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434ce62200cSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435ce62200cSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436ce62200cSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437ce62200cSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438ce62200cSmrg  sed -n '
439ce62200cSmrg    p
440ce62200cSmrg    /[$]LINENO/=
441ce62200cSmrg  ' <$as_myself |
442ce62200cSmrg    sed '
443ce62200cSmrg      s/[$]LINENO.*/&-/
444ce62200cSmrg      t lineno
445ce62200cSmrg      b
446ce62200cSmrg      :lineno
447ce62200cSmrg      N
448ce62200cSmrg      :loop
449ce62200cSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450ce62200cSmrg      t loop
451ce62200cSmrg      s/-\n.*//
452ce62200cSmrg    ' >$as_me.lineno &&
453ce62200cSmrg  chmod +x "$as_me.lineno" ||
454ce62200cSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4551a30de1fSmrg
456ce62200cSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
457ce62200cSmrg  # (the dirname of $[0] is not the place where we might find the
458ce62200cSmrg  # original and so on.  Autoconf is especially sensitive to this).
459ce62200cSmrg  . "./$as_me.lineno"
460ce62200cSmrg  # Exit status is that of the last command.
461ce62200cSmrg  exit
4621a30de1fSmrg}
4631a30de1fSmrg
464ce62200cSmrgECHO_C= ECHO_N= ECHO_T=
465ce62200cSmrgcase `echo -n x` in #(((((
466ce62200cSmrg-n*)
467ce62200cSmrg  case `echo 'xy\c'` in
468ce62200cSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469ce62200cSmrg  xy)  ECHO_C='\c';;
470ce62200cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471ce62200cSmrg       ECHO_T='	';;
472ce62200cSmrg  esac;;
473ce62200cSmrg*)
474ce62200cSmrg  ECHO_N='-n';;
475ce62200cSmrgesac
4761a30de1fSmrg
477ce62200cSmrgrm -f conf$$ conf$$.exe conf$$.file
478ce62200cSmrgif test -d conf$$.dir; then
479ce62200cSmrg  rm -f conf$$.dir/conf$$.file
480ce62200cSmrgelse
481ce62200cSmrg  rm -f conf$$.dir
482ce62200cSmrg  mkdir conf$$.dir 2>/dev/null
4831a30de1fSmrgfi
484ce62200cSmrgif (echo >conf$$.file) 2>/dev/null; then
485ce62200cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486ce62200cSmrg    as_ln_s='ln -s'
487ce62200cSmrg    # ... but there are two gotchas:
488ce62200cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489ce62200cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490ce62200cSmrg    # In both cases, we have to default to `cp -p'.
491ce62200cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492ce62200cSmrg      as_ln_s='cp -p'
493ce62200cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494ce62200cSmrg    as_ln_s=ln
495ce62200cSmrg  else
496ce62200cSmrg    as_ln_s='cp -p'
497ce62200cSmrg  fi
4981a30de1fSmrgelse
499ce62200cSmrg  as_ln_s='cp -p'
5001a30de1fSmrgfi
501ce62200cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502ce62200cSmrgrmdir conf$$.dir 2>/dev/null
5031a30de1fSmrg
504ce62200cSmrgif mkdir -p . 2>/dev/null; then
505ce62200cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
506ce62200cSmrgelse
507ce62200cSmrg  test -d ./-p && rmdir ./-p
508ce62200cSmrg  as_mkdir_p=false
5091a30de1fSmrgfi
5101a30de1fSmrg
511ce62200cSmrgif test -x / >/dev/null 2>&1; then
512ce62200cSmrg  as_test_x='test -x'
5131a30de1fSmrgelse
514ce62200cSmrg  if ls -dL / >/dev/null 2>&1; then
515ce62200cSmrg    as_ls_L_option=L
516ce62200cSmrg  else
517ce62200cSmrg    as_ls_L_option=
518ce62200cSmrg  fi
519ce62200cSmrg  as_test_x='
520ce62200cSmrg    eval sh -c '\''
521ce62200cSmrg      if test -d "$1"; then
522ce62200cSmrg	test -d "$1/.";
523ce62200cSmrg      else
524ce62200cSmrg	case $1 in #(
525ce62200cSmrg	-*)set "./$1";;
526ce62200cSmrg	esac;
527ce62200cSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528ce62200cSmrg	???[sx]*):;;*)false;;esac;fi
529ce62200cSmrg    '\'' sh
530ce62200cSmrg  '
5311a30de1fSmrgfi
532ce62200cSmrgas_executable_p=$as_test_x
5331a30de1fSmrg
534ce62200cSmrg# Sed expression to map a string onto a valid CPP name.
535ce62200cSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5361a30de1fSmrg
537ce62200cSmrg# Sed expression to map a string onto a valid variable name.
538ce62200cSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5391a30de1fSmrg
5401a30de1fSmrg
541ce62200cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542ce62200cSmrgexec 6>&1
5431a30de1fSmrg
5441a30de1fSmrg# Name of the host.
545ce62200cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5461a30de1fSmrg# so uname gets run too.
5471a30de1fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5481a30de1fSmrg
5491a30de1fSmrg#
5501a30de1fSmrg# Initializations.
5511a30de1fSmrg#
5521a30de1fSmrgac_default_prefix=/usr/local
5531a30de1fSmrgac_clean_files=
5541a30de1fSmrgac_config_libobj_dir=.
5551a30de1fSmrgLIBOBJS=
5561a30de1fSmrgcross_compiling=no
5571a30de1fSmrgsubdirs=
5581a30de1fSmrgMFLAGS=
5591a30de1fSmrgMAKEFLAGS=
5601a30de1fSmrg
5611a30de1fSmrg# Identity of this package.
5621a30de1fSmrgPACKAGE_NAME='xmodmap'
5631a30de1fSmrgPACKAGE_TARNAME='xmodmap'
564ce62200cSmrgPACKAGE_VERSION='1.0.5'
565ce62200cSmrgPACKAGE_STRING='xmodmap 1.0.5'
5661a30de1fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567ce62200cSmrgPACKAGE_URL=''
5681a30de1fSmrg
569b7fb5eacSmrg# Factoring default headers for most tests.
570b7fb5eacSmrgac_includes_default="\
571b7fb5eacSmrg#include <stdio.h>
572b7fb5eacSmrg#ifdef HAVE_SYS_TYPES_H
573b7fb5eacSmrg# include <sys/types.h>
574b7fb5eacSmrg#endif
575b7fb5eacSmrg#ifdef HAVE_SYS_STAT_H
576b7fb5eacSmrg# include <sys/stat.h>
577b7fb5eacSmrg#endif
578b7fb5eacSmrg#ifdef STDC_HEADERS
579b7fb5eacSmrg# include <stdlib.h>
580b7fb5eacSmrg# include <stddef.h>
581b7fb5eacSmrg#else
582b7fb5eacSmrg# ifdef HAVE_STDLIB_H
583b7fb5eacSmrg#  include <stdlib.h>
584b7fb5eacSmrg# endif
585b7fb5eacSmrg#endif
586b7fb5eacSmrg#ifdef HAVE_STRING_H
587b7fb5eacSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588b7fb5eacSmrg#  include <memory.h>
589b7fb5eacSmrg# endif
590b7fb5eacSmrg# include <string.h>
591b7fb5eacSmrg#endif
592b7fb5eacSmrg#ifdef HAVE_STRINGS_H
593b7fb5eacSmrg# include <strings.h>
594b7fb5eacSmrg#endif
595b7fb5eacSmrg#ifdef HAVE_INTTYPES_H
596b7fb5eacSmrg# include <inttypes.h>
597b7fb5eacSmrg#endif
598b7fb5eacSmrg#ifdef HAVE_STDINT_H
599b7fb5eacSmrg# include <stdint.h>
600b7fb5eacSmrg#endif
601b7fb5eacSmrg#ifdef HAVE_UNISTD_H
602b7fb5eacSmrg# include <unistd.h>
603b7fb5eacSmrg#endif"
604b7fb5eacSmrg
605b7fb5eacSmrgac_subst_vars='am__EXEEXT_FALSE
606b7fb5eacSmrgam__EXEEXT_TRUE
607b7fb5eacSmrgLTLIBOBJS
608b7fb5eacSmrgLIBOBJS
6091a30de1fSmrgLINT_FALSE
610b7fb5eacSmrgLINT_TRUE
611b7fb5eacSmrgLINT_FLAGS
612b7fb5eacSmrgLINT
613b7fb5eacSmrgXMODMAP_LIBS
614b7fb5eacSmrgXMODMAP_CFLAGS
615ce62200cSmrgAM_BACKSLASH
616ce62200cSmrgAM_DEFAULT_VERBOSITY
617ce62200cSmrgMAN_SUBSTS
618ce62200cSmrgXORG_MAN_PAGE
6191a30de1fSmrgADMIN_MAN_DIR
620b7fb5eacSmrgDRIVER_MAN_DIR
621b7fb5eacSmrgMISC_MAN_DIR
622b7fb5eacSmrgFILE_MAN_DIR
623b7fb5eacSmrgLIB_MAN_DIR
624b7fb5eacSmrgAPP_MAN_DIR
625b7fb5eacSmrgADMIN_MAN_SUFFIX
626b7fb5eacSmrgDRIVER_MAN_SUFFIX
627b7fb5eacSmrgMISC_MAN_SUFFIX
628b7fb5eacSmrgFILE_MAN_SUFFIX
629b7fb5eacSmrgLIB_MAN_SUFFIX
630b7fb5eacSmrgAPP_MAN_SUFFIX
631ce62200cSmrgSED
632b7fb5eacSmrghost_os
633b7fb5eacSmrghost_vendor
634b7fb5eacSmrghost_cpu
635b7fb5eacSmrghost
636b7fb5eacSmrgbuild_os
637b7fb5eacSmrgbuild_vendor
638b7fb5eacSmrgbuild_cpu
639b7fb5eacSmrgbuild
640ce62200cSmrgINSTALL_CMD
641ce62200cSmrgPKG_CONFIG
642b7fb5eacSmrgCHANGELOG_CMD
643b7fb5eacSmrgCWARNFLAGS
644b7fb5eacSmrgEGREP
645b7fb5eacSmrgGREP
646b7fb5eacSmrgCPP
647b7fb5eacSmrgam__fastdepCC_FALSE
648b7fb5eacSmrgam__fastdepCC_TRUE
649b7fb5eacSmrgCCDEPMODE
650b7fb5eacSmrgAMDEPBACKSLASH
651b7fb5eacSmrgAMDEP_FALSE
652b7fb5eacSmrgAMDEP_TRUE
653b7fb5eacSmrgam__quote
654b7fb5eacSmrgam__include
655b7fb5eacSmrgDEPDIR
656b7fb5eacSmrgOBJEXT
657b7fb5eacSmrgEXEEXT
658b7fb5eacSmrgac_ct_CC
659b7fb5eacSmrgCPPFLAGS
660b7fb5eacSmrgLDFLAGS
661b7fb5eacSmrgCFLAGS
662b7fb5eacSmrgCC
663b7fb5eacSmrgMAINT
664b7fb5eacSmrgMAINTAINER_MODE_FALSE
665b7fb5eacSmrgMAINTAINER_MODE_TRUE
666b7fb5eacSmrgam__untar
667b7fb5eacSmrgam__tar
668b7fb5eacSmrgAMTAR
669b7fb5eacSmrgam__leading_dot
670b7fb5eacSmrgSET_MAKE
671b7fb5eacSmrgAWK
672b7fb5eacSmrgmkdir_p
673b7fb5eacSmrgMKDIR_P
674b7fb5eacSmrgINSTALL_STRIP_PROGRAM
675b7fb5eacSmrgSTRIP
676b7fb5eacSmrginstall_sh
677b7fb5eacSmrgMAKEINFO
678b7fb5eacSmrgAUTOHEADER
679b7fb5eacSmrgAUTOMAKE
680b7fb5eacSmrgAUTOCONF
681b7fb5eacSmrgACLOCAL
682b7fb5eacSmrgVERSION
683b7fb5eacSmrgPACKAGE
684b7fb5eacSmrgCYGPATH_W
685b7fb5eacSmrgam__isrc
686b7fb5eacSmrgINSTALL_DATA
687b7fb5eacSmrgINSTALL_SCRIPT
688b7fb5eacSmrgINSTALL_PROGRAM
689b7fb5eacSmrgtarget_alias
690b7fb5eacSmrghost_alias
691b7fb5eacSmrgbuild_alias
692b7fb5eacSmrgLIBS
693b7fb5eacSmrgECHO_T
694b7fb5eacSmrgECHO_N
695b7fb5eacSmrgECHO_C
696b7fb5eacSmrgDEFS
697b7fb5eacSmrgmandir
698b7fb5eacSmrglocaledir
699b7fb5eacSmrglibdir
700b7fb5eacSmrgpsdir
701b7fb5eacSmrgpdfdir
702b7fb5eacSmrgdvidir
703b7fb5eacSmrghtmldir
704b7fb5eacSmrginfodir
705b7fb5eacSmrgdocdir
706b7fb5eacSmrgoldincludedir
707b7fb5eacSmrgincludedir
708b7fb5eacSmrglocalstatedir
709b7fb5eacSmrgsharedstatedir
710b7fb5eacSmrgsysconfdir
711b7fb5eacSmrgdatadir
712b7fb5eacSmrgdatarootdir
713b7fb5eacSmrglibexecdir
714b7fb5eacSmrgsbindir
715b7fb5eacSmrgbindir
716b7fb5eacSmrgprogram_transform_name
717b7fb5eacSmrgprefix
718b7fb5eacSmrgexec_prefix
719ce62200cSmrgPACKAGE_URL
720b7fb5eacSmrgPACKAGE_BUGREPORT
721b7fb5eacSmrgPACKAGE_STRING
722b7fb5eacSmrgPACKAGE_VERSION
723b7fb5eacSmrgPACKAGE_TARNAME
724b7fb5eacSmrgPACKAGE_NAME
725b7fb5eacSmrgPATH_SEPARATOR
726b7fb5eacSmrgSHELL'
7271a30de1fSmrgac_subst_files=''
728b7fb5eacSmrgac_user_opts='
729b7fb5eacSmrgenable_option_checking
730b7fb5eacSmrgenable_maintainer_mode
731b7fb5eacSmrgenable_dependency_tracking
732b7fb5eacSmrgenable_strict_compilation
733ce62200cSmrgenable_silent_rules
734b7fb5eacSmrgwith_lint
735b7fb5eacSmrg'
7361a30de1fSmrg      ac_precious_vars='build_alias
7371a30de1fSmrghost_alias
7381a30de1fSmrgtarget_alias
7391a30de1fSmrgCC
7401a30de1fSmrgCFLAGS
7411a30de1fSmrgLDFLAGS
7421a30de1fSmrgLIBS
7431a30de1fSmrgCPPFLAGS
744b7fb5eacSmrgCPP
7451a30de1fSmrgPKG_CONFIG
746b7fb5eacSmrgXMODMAP_CFLAGS
747ce62200cSmrgXMODMAP_LIBS
748ce62200cSmrgLINT
749ce62200cSmrgLINT_FLAGS'
7501a30de1fSmrg
7511a30de1fSmrg
7521a30de1fSmrg# Initialize some variables set by options.
7531a30de1fSmrgac_init_help=
7541a30de1fSmrgac_init_version=false
755b7fb5eacSmrgac_unrecognized_opts=
756b7fb5eacSmrgac_unrecognized_sep=
7571a30de1fSmrg# The variables have the same names as the options, with
7581a30de1fSmrg# dashes changed to underlines.
7591a30de1fSmrgcache_file=/dev/null
7601a30de1fSmrgexec_prefix=NONE
7611a30de1fSmrgno_create=
7621a30de1fSmrgno_recursion=
7631a30de1fSmrgprefix=NONE
7641a30de1fSmrgprogram_prefix=NONE
7651a30de1fSmrgprogram_suffix=NONE
7661a30de1fSmrgprogram_transform_name=s,x,x,
7671a30de1fSmrgsilent=
7681a30de1fSmrgsite=
7691a30de1fSmrgsrcdir=
7701a30de1fSmrgverbose=
7711a30de1fSmrgx_includes=NONE
7721a30de1fSmrgx_libraries=NONE
7731a30de1fSmrg
7741a30de1fSmrg# Installation directory options.
7751a30de1fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7761a30de1fSmrg# and all the variables that are supposed to be based on exec_prefix
7771a30de1fSmrg# by default will actually change.
7781a30de1fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
7791a30de1fSmrg# (The list follows the same order as the GNU Coding Standards.)
7801a30de1fSmrgbindir='${exec_prefix}/bin'
7811a30de1fSmrgsbindir='${exec_prefix}/sbin'
7821a30de1fSmrglibexecdir='${exec_prefix}/libexec'
7831a30de1fSmrgdatarootdir='${prefix}/share'
7841a30de1fSmrgdatadir='${datarootdir}'
7851a30de1fSmrgsysconfdir='${prefix}/etc'
7861a30de1fSmrgsharedstatedir='${prefix}/com'
7871a30de1fSmrglocalstatedir='${prefix}/var'
7881a30de1fSmrgincludedir='${prefix}/include'
7891a30de1fSmrgoldincludedir='/usr/include'
7901a30de1fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7911a30de1fSmrginfodir='${datarootdir}/info'
7921a30de1fSmrghtmldir='${docdir}'
7931a30de1fSmrgdvidir='${docdir}'
7941a30de1fSmrgpdfdir='${docdir}'
7951a30de1fSmrgpsdir='${docdir}'
7961a30de1fSmrglibdir='${exec_prefix}/lib'
7971a30de1fSmrglocaledir='${datarootdir}/locale'
7981a30de1fSmrgmandir='${datarootdir}/man'
7991a30de1fSmrg
8001a30de1fSmrgac_prev=
8011a30de1fSmrgac_dashdash=
8021a30de1fSmrgfor ac_option
8031a30de1fSmrgdo
8041a30de1fSmrg  # If the previous option needs an argument, assign it.
8051a30de1fSmrg  if test -n "$ac_prev"; then
8061a30de1fSmrg    eval $ac_prev=\$ac_option
8071a30de1fSmrg    ac_prev=
8081a30de1fSmrg    continue
8091a30de1fSmrg  fi
8101a30de1fSmrg
8111a30de1fSmrg  case $ac_option in
812ce62200cSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813ce62200cSmrg  *=)   ac_optarg= ;;
814ce62200cSmrg  *)    ac_optarg=yes ;;
8151a30de1fSmrg  esac
8161a30de1fSmrg
8171a30de1fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8181a30de1fSmrg
8191a30de1fSmrg  case $ac_dashdash$ac_option in
8201a30de1fSmrg  --)
8211a30de1fSmrg    ac_dashdash=yes ;;
8221a30de1fSmrg
8231a30de1fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8241a30de1fSmrg    ac_prev=bindir ;;
8251a30de1fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8261a30de1fSmrg    bindir=$ac_optarg ;;
8271a30de1fSmrg
8281a30de1fSmrg  -build | --build | --buil | --bui | --bu)
8291a30de1fSmrg    ac_prev=build_alias ;;
8301a30de1fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8311a30de1fSmrg    build_alias=$ac_optarg ;;
8321a30de1fSmrg
8331a30de1fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8341a30de1fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8351a30de1fSmrg    ac_prev=cache_file ;;
8361a30de1fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8371a30de1fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8381a30de1fSmrg    cache_file=$ac_optarg ;;
8391a30de1fSmrg
8401a30de1fSmrg  --config-cache | -C)
8411a30de1fSmrg    cache_file=config.cache ;;
8421a30de1fSmrg
8431a30de1fSmrg  -datadir | --datadir | --datadi | --datad)
8441a30de1fSmrg    ac_prev=datadir ;;
8451a30de1fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8461a30de1fSmrg    datadir=$ac_optarg ;;
8471a30de1fSmrg
8481a30de1fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8491a30de1fSmrg  | --dataroo | --dataro | --datar)
8501a30de1fSmrg    ac_prev=datarootdir ;;
8511a30de1fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8521a30de1fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8531a30de1fSmrg    datarootdir=$ac_optarg ;;
8541a30de1fSmrg
8551a30de1fSmrg  -disable-* | --disable-*)
856b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8571a30de1fSmrg    # Reject names that are not valid shell variable names.
858b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859ce62200cSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
860b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
861b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862b7fb5eacSmrg    case $ac_user_opts in
863b7fb5eacSmrg      *"
864b7fb5eacSmrg"enable_$ac_useropt"
865b7fb5eacSmrg"*) ;;
866b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
868b7fb5eacSmrg    esac
869b7fb5eacSmrg    eval enable_$ac_useropt=no ;;
8701a30de1fSmrg
8711a30de1fSmrg  -docdir | --docdir | --docdi | --doc | --do)
8721a30de1fSmrg    ac_prev=docdir ;;
8731a30de1fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8741a30de1fSmrg    docdir=$ac_optarg ;;
8751a30de1fSmrg
8761a30de1fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8771a30de1fSmrg    ac_prev=dvidir ;;
8781a30de1fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8791a30de1fSmrg    dvidir=$ac_optarg ;;
8801a30de1fSmrg
8811a30de1fSmrg  -enable-* | --enable-*)
882b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8831a30de1fSmrg    # Reject names that are not valid shell variable names.
884b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885ce62200cSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
886b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
887b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888b7fb5eacSmrg    case $ac_user_opts in
889b7fb5eacSmrg      *"
890b7fb5eacSmrg"enable_$ac_useropt"
891b7fb5eacSmrg"*) ;;
892b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
894b7fb5eacSmrg    esac
895b7fb5eacSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
8961a30de1fSmrg
8971a30de1fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8981a30de1fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8991a30de1fSmrg  | --exec | --exe | --ex)
9001a30de1fSmrg    ac_prev=exec_prefix ;;
9011a30de1fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9021a30de1fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9031a30de1fSmrg  | --exec=* | --exe=* | --ex=*)
9041a30de1fSmrg    exec_prefix=$ac_optarg ;;
9051a30de1fSmrg
9061a30de1fSmrg  -gas | --gas | --ga | --g)
9071a30de1fSmrg    # Obsolete; use --with-gas.
9081a30de1fSmrg    with_gas=yes ;;
9091a30de1fSmrg
9101a30de1fSmrg  -help | --help | --hel | --he | -h)
9111a30de1fSmrg    ac_init_help=long ;;
9121a30de1fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9131a30de1fSmrg    ac_init_help=recursive ;;
9141a30de1fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9151a30de1fSmrg    ac_init_help=short ;;
9161a30de1fSmrg
9171a30de1fSmrg  -host | --host | --hos | --ho)
9181a30de1fSmrg    ac_prev=host_alias ;;
9191a30de1fSmrg  -host=* | --host=* | --hos=* | --ho=*)
9201a30de1fSmrg    host_alias=$ac_optarg ;;
9211a30de1fSmrg
9221a30de1fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9231a30de1fSmrg    ac_prev=htmldir ;;
9241a30de1fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9251a30de1fSmrg  | --ht=*)
9261a30de1fSmrg    htmldir=$ac_optarg ;;
9271a30de1fSmrg
9281a30de1fSmrg  -includedir | --includedir | --includedi | --included | --include \
9291a30de1fSmrg  | --includ | --inclu | --incl | --inc)
9301a30de1fSmrg    ac_prev=includedir ;;
9311a30de1fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9321a30de1fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9331a30de1fSmrg    includedir=$ac_optarg ;;
9341a30de1fSmrg
9351a30de1fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9361a30de1fSmrg    ac_prev=infodir ;;
9371a30de1fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9381a30de1fSmrg    infodir=$ac_optarg ;;
9391a30de1fSmrg
9401a30de1fSmrg  -libdir | --libdir | --libdi | --libd)
9411a30de1fSmrg    ac_prev=libdir ;;
9421a30de1fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9431a30de1fSmrg    libdir=$ac_optarg ;;
9441a30de1fSmrg
9451a30de1fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9461a30de1fSmrg  | --libexe | --libex | --libe)
9471a30de1fSmrg    ac_prev=libexecdir ;;
9481a30de1fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9491a30de1fSmrg  | --libexe=* | --libex=* | --libe=*)
9501a30de1fSmrg    libexecdir=$ac_optarg ;;
9511a30de1fSmrg
9521a30de1fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9531a30de1fSmrg    ac_prev=localedir ;;
9541a30de1fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9551a30de1fSmrg    localedir=$ac_optarg ;;
9561a30de1fSmrg
9571a30de1fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9581a30de1fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9591a30de1fSmrg    ac_prev=localstatedir ;;
9601a30de1fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9611a30de1fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9621a30de1fSmrg    localstatedir=$ac_optarg ;;
9631a30de1fSmrg
9641a30de1fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9651a30de1fSmrg    ac_prev=mandir ;;
9661a30de1fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9671a30de1fSmrg    mandir=$ac_optarg ;;
9681a30de1fSmrg
9691a30de1fSmrg  -nfp | --nfp | --nf)
9701a30de1fSmrg    # Obsolete; use --without-fp.
9711a30de1fSmrg    with_fp=no ;;
9721a30de1fSmrg
9731a30de1fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9741a30de1fSmrg  | --no-cr | --no-c | -n)
9751a30de1fSmrg    no_create=yes ;;
9761a30de1fSmrg
9771a30de1fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9781a30de1fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9791a30de1fSmrg    no_recursion=yes ;;
9801a30de1fSmrg
9811a30de1fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9821a30de1fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9831a30de1fSmrg  | --oldin | --oldi | --old | --ol | --o)
9841a30de1fSmrg    ac_prev=oldincludedir ;;
9851a30de1fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9861a30de1fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9871a30de1fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9881a30de1fSmrg    oldincludedir=$ac_optarg ;;
9891a30de1fSmrg
9901a30de1fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9911a30de1fSmrg    ac_prev=prefix ;;
9921a30de1fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9931a30de1fSmrg    prefix=$ac_optarg ;;
9941a30de1fSmrg
9951a30de1fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9961a30de1fSmrg  | --program-pre | --program-pr | --program-p)
9971a30de1fSmrg    ac_prev=program_prefix ;;
9981a30de1fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9991a30de1fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10001a30de1fSmrg    program_prefix=$ac_optarg ;;
10011a30de1fSmrg
10021a30de1fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10031a30de1fSmrg  | --program-suf | --program-su | --program-s)
10041a30de1fSmrg    ac_prev=program_suffix ;;
10051a30de1fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10061a30de1fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10071a30de1fSmrg    program_suffix=$ac_optarg ;;
10081a30de1fSmrg
10091a30de1fSmrg  -program-transform-name | --program-transform-name \
10101a30de1fSmrg  | --program-transform-nam | --program-transform-na \
10111a30de1fSmrg  | --program-transform-n | --program-transform- \
10121a30de1fSmrg  | --program-transform | --program-transfor \
10131a30de1fSmrg  | --program-transfo | --program-transf \
10141a30de1fSmrg  | --program-trans | --program-tran \
10151a30de1fSmrg  | --progr-tra | --program-tr | --program-t)
10161a30de1fSmrg    ac_prev=program_transform_name ;;
10171a30de1fSmrg  -program-transform-name=* | --program-transform-name=* \
10181a30de1fSmrg  | --program-transform-nam=* | --program-transform-na=* \
10191a30de1fSmrg  | --program-transform-n=* | --program-transform-=* \
10201a30de1fSmrg  | --program-transform=* | --program-transfor=* \
10211a30de1fSmrg  | --program-transfo=* | --program-transf=* \
10221a30de1fSmrg  | --program-trans=* | --program-tran=* \
10231a30de1fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10241a30de1fSmrg    program_transform_name=$ac_optarg ;;
10251a30de1fSmrg
10261a30de1fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10271a30de1fSmrg    ac_prev=pdfdir ;;
10281a30de1fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10291a30de1fSmrg    pdfdir=$ac_optarg ;;
10301a30de1fSmrg
10311a30de1fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10321a30de1fSmrg    ac_prev=psdir ;;
10331a30de1fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10341a30de1fSmrg    psdir=$ac_optarg ;;
10351a30de1fSmrg
10361a30de1fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10371a30de1fSmrg  | -silent | --silent | --silen | --sile | --sil)
10381a30de1fSmrg    silent=yes ;;
10391a30de1fSmrg
10401a30de1fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10411a30de1fSmrg    ac_prev=sbindir ;;
10421a30de1fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10431a30de1fSmrg  | --sbi=* | --sb=*)
10441a30de1fSmrg    sbindir=$ac_optarg ;;
10451a30de1fSmrg
10461a30de1fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10471a30de1fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10481a30de1fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10491a30de1fSmrg  | --sha | --sh)
10501a30de1fSmrg    ac_prev=sharedstatedir ;;
10511a30de1fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10521a30de1fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10531a30de1fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10541a30de1fSmrg  | --sha=* | --sh=*)
10551a30de1fSmrg    sharedstatedir=$ac_optarg ;;
10561a30de1fSmrg
10571a30de1fSmrg  -site | --site | --sit)
10581a30de1fSmrg    ac_prev=site ;;
10591a30de1fSmrg  -site=* | --site=* | --sit=*)
10601a30de1fSmrg    site=$ac_optarg ;;
10611a30de1fSmrg
10621a30de1fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10631a30de1fSmrg    ac_prev=srcdir ;;
10641a30de1fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10651a30de1fSmrg    srcdir=$ac_optarg ;;
10661a30de1fSmrg
10671a30de1fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10681a30de1fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10691a30de1fSmrg    ac_prev=sysconfdir ;;
10701a30de1fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10711a30de1fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10721a30de1fSmrg    sysconfdir=$ac_optarg ;;
10731a30de1fSmrg
10741a30de1fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10751a30de1fSmrg    ac_prev=target_alias ;;
10761a30de1fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10771a30de1fSmrg    target_alias=$ac_optarg ;;
10781a30de1fSmrg
10791a30de1fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10801a30de1fSmrg    verbose=yes ;;
10811a30de1fSmrg
10821a30de1fSmrg  -version | --version | --versio | --versi | --vers | -V)
10831a30de1fSmrg    ac_init_version=: ;;
10841a30de1fSmrg
10851a30de1fSmrg  -with-* | --with-*)
1086b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10871a30de1fSmrg    # Reject names that are not valid shell variable names.
1088b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089ce62200cSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1090b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
1091b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092b7fb5eacSmrg    case $ac_user_opts in
1093b7fb5eacSmrg      *"
1094b7fb5eacSmrg"with_$ac_useropt"
1095b7fb5eacSmrg"*) ;;
1096b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
1098b7fb5eacSmrg    esac
1099b7fb5eacSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11001a30de1fSmrg
11011a30de1fSmrg  -without-* | --without-*)
1102b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11031a30de1fSmrg    # Reject names that are not valid shell variable names.
1104b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105ce62200cSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1106b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
1107b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108b7fb5eacSmrg    case $ac_user_opts in
1109b7fb5eacSmrg      *"
1110b7fb5eacSmrg"with_$ac_useropt"
1111b7fb5eacSmrg"*) ;;
1112b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
1114b7fb5eacSmrg    esac
1115b7fb5eacSmrg    eval with_$ac_useropt=no ;;
11161a30de1fSmrg
11171a30de1fSmrg  --x)
11181a30de1fSmrg    # Obsolete; use --with-x.
11191a30de1fSmrg    with_x=yes ;;
11201a30de1fSmrg
11211a30de1fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11221a30de1fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11231a30de1fSmrg    ac_prev=x_includes ;;
11241a30de1fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11251a30de1fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11261a30de1fSmrg    x_includes=$ac_optarg ;;
11271a30de1fSmrg
11281a30de1fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11291a30de1fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11301a30de1fSmrg    ac_prev=x_libraries ;;
11311a30de1fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11321a30de1fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11331a30de1fSmrg    x_libraries=$ac_optarg ;;
11341a30de1fSmrg
1135ce62200cSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136ce62200cSmrgTry \`$0 --help' for more information"
11371a30de1fSmrg    ;;
11381a30de1fSmrg
11391a30de1fSmrg  *=*)
11401a30de1fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11411a30de1fSmrg    # Reject names that are not valid shell variable names.
1142ce62200cSmrg    case $ac_envvar in #(
1143ce62200cSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1144ce62200cSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145ce62200cSmrg    esac
11461a30de1fSmrg    eval $ac_envvar=\$ac_optarg
11471a30de1fSmrg    export $ac_envvar ;;
11481a30de1fSmrg
11491a30de1fSmrg  *)
11501a30de1fSmrg    # FIXME: should be removed in autoconf 3.0.
1151b7fb5eacSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11521a30de1fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153b7fb5eacSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154ce62200cSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11551a30de1fSmrg    ;;
11561a30de1fSmrg
11571a30de1fSmrg  esac
11581a30de1fSmrgdone
11591a30de1fSmrg
11601a30de1fSmrgif test -n "$ac_prev"; then
11611a30de1fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162ce62200cSmrg  as_fn_error $? "missing argument to $ac_option"
11631a30de1fSmrgfi
11641a30de1fSmrg
1165b7fb5eacSmrgif test -n "$ac_unrecognized_opts"; then
1166b7fb5eacSmrg  case $enable_option_checking in
1167b7fb5eacSmrg    no) ;;
1168ce62200cSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169b7fb5eacSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170b7fb5eacSmrg  esac
1171b7fb5eacSmrgfi
1172b7fb5eacSmrg
1173b7fb5eacSmrg# Check all directory arguments for consistency.
11741a30de1fSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11751a30de1fSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11761a30de1fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11771a30de1fSmrg		libdir localedir mandir
11781a30de1fSmrgdo
11791a30de1fSmrg  eval ac_val=\$$ac_var
1180b7fb5eacSmrg  # Remove trailing slashes.
1181b7fb5eacSmrg  case $ac_val in
1182b7fb5eacSmrg    */ )
1183b7fb5eacSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184b7fb5eacSmrg      eval $ac_var=\$ac_val;;
1185b7fb5eacSmrg  esac
1186b7fb5eacSmrg  # Be sure to have absolute directory names.
11871a30de1fSmrg  case $ac_val in
11881a30de1fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
11891a30de1fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11901a30de1fSmrg  esac
1191ce62200cSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11921a30de1fSmrgdone
11931a30de1fSmrg
11941a30de1fSmrg# There might be people who depend on the old broken behavior: `$host'
11951a30de1fSmrg# used to hold the argument of --host etc.
11961a30de1fSmrg# FIXME: To remove some day.
11971a30de1fSmrgbuild=$build_alias
11981a30de1fSmrghost=$host_alias
11991a30de1fSmrgtarget=$target_alias
12001a30de1fSmrg
12011a30de1fSmrg# FIXME: To remove some day.
12021a30de1fSmrgif test "x$host_alias" != x; then
12031a30de1fSmrg  if test "x$build_alias" = x; then
12041a30de1fSmrg    cross_compiling=maybe
1205ce62200cSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206ce62200cSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
12071a30de1fSmrg  elif test "x$build_alias" != "x$host_alias"; then
12081a30de1fSmrg    cross_compiling=yes
12091a30de1fSmrg  fi
12101a30de1fSmrgfi
12111a30de1fSmrg
12121a30de1fSmrgac_tool_prefix=
12131a30de1fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12141a30de1fSmrg
12151a30de1fSmrgtest "$silent" = yes && exec 6>/dev/null
12161a30de1fSmrg
12171a30de1fSmrg
12181a30de1fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12191a30de1fSmrgac_ls_di=`ls -di .` &&
12201a30de1fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221ce62200cSmrg  as_fn_error $? "working directory cannot be determined"
12221a30de1fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223ce62200cSmrg  as_fn_error $? "pwd does not report name of working directory"
12241a30de1fSmrg
12251a30de1fSmrg
12261a30de1fSmrg# Find the source files, if location was not specified.
12271a30de1fSmrgif test -z "$srcdir"; then
12281a30de1fSmrg  ac_srcdir_defaulted=yes
12291a30de1fSmrg  # Try the directory containing this script, then the parent directory.
1230b7fb5eacSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1231b7fb5eacSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232b7fb5eacSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1233b7fb5eacSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1234b7fb5eacSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235b7fb5eacSmrg$as_echo X"$as_myself" |
12361a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12371a30de1fSmrg	    s//\1/
12381a30de1fSmrg	    q
12391a30de1fSmrg	  }
12401a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
12411a30de1fSmrg	    s//\1/
12421a30de1fSmrg	    q
12431a30de1fSmrg	  }
12441a30de1fSmrg	  /^X\(\/\/\)$/{
12451a30de1fSmrg	    s//\1/
12461a30de1fSmrg	    q
12471a30de1fSmrg	  }
12481a30de1fSmrg	  /^X\(\/\).*/{
12491a30de1fSmrg	    s//\1/
12501a30de1fSmrg	    q
12511a30de1fSmrg	  }
12521a30de1fSmrg	  s/.*/./; q'`
12531a30de1fSmrg  srcdir=$ac_confdir
12541a30de1fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12551a30de1fSmrg    srcdir=..
12561a30de1fSmrg  fi
12571a30de1fSmrgelse
12581a30de1fSmrg  ac_srcdir_defaulted=no
12591a30de1fSmrgfi
12601a30de1fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12611a30de1fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262ce62200cSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12631a30de1fSmrgfi
12641a30de1fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12651a30de1fSmrgac_abs_confdir=`(
1266ce62200cSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12671a30de1fSmrg	pwd)`
12681a30de1fSmrg# When building in place, set srcdir=.
12691a30de1fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12701a30de1fSmrg  srcdir=.
12711a30de1fSmrgfi
12721a30de1fSmrg# Remove unnecessary trailing slashes from srcdir.
12731a30de1fSmrg# Double slashes in file names in object file debugging info
12741a30de1fSmrg# mess up M-x gdb in Emacs.
12751a30de1fSmrgcase $srcdir in
12761a30de1fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12771a30de1fSmrgesac
12781a30de1fSmrgfor ac_var in $ac_precious_vars; do
12791a30de1fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12801a30de1fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
12811a30de1fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12821a30de1fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12831a30de1fSmrgdone
12841a30de1fSmrg
12851a30de1fSmrg#
12861a30de1fSmrg# Report the --help message.
12871a30de1fSmrg#
12881a30de1fSmrgif test "$ac_init_help" = "long"; then
12891a30de1fSmrg  # Omit some internal or obsolete options to make the list less imposing.
12901a30de1fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
12911a30de1fSmrg  cat <<_ACEOF
1292ce62200cSmrg\`configure' configures xmodmap 1.0.5 to adapt to many kinds of systems.
12931a30de1fSmrg
12941a30de1fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
12951a30de1fSmrg
12961a30de1fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12971a30de1fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
12981a30de1fSmrg
12991a30de1fSmrgDefaults for the options are specified in brackets.
13001a30de1fSmrg
13011a30de1fSmrgConfiguration:
13021a30de1fSmrg  -h, --help              display this help and exit
13031a30de1fSmrg      --help=short        display options specific to this package
13041a30de1fSmrg      --help=recursive    display the short help of all the included packages
13051a30de1fSmrg  -V, --version           display version information and exit
1306ce62200cSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13071a30de1fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13081a30de1fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13091a30de1fSmrg  -n, --no-create         do not create output files
13101a30de1fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13111a30de1fSmrg
13121a30de1fSmrgInstallation directories:
13131a30de1fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1314b7fb5eacSmrg                          [$ac_default_prefix]
13151a30de1fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316b7fb5eacSmrg                          [PREFIX]
13171a30de1fSmrg
13181a30de1fSmrgBy default, \`make install' will install all the files in
13191a30de1fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13201a30de1fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13211a30de1fSmrgfor instance \`--prefix=\$HOME'.
13221a30de1fSmrg
13231a30de1fSmrgFor better control, use the options below.
13241a30de1fSmrg
13251a30de1fSmrgFine tuning of the installation directories:
1326b7fb5eacSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1327b7fb5eacSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1328b7fb5eacSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1329b7fb5eacSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1330b7fb5eacSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1331b7fb5eacSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1332b7fb5eacSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1333b7fb5eacSmrg  --includedir=DIR        C header files [PREFIX/include]
1334b7fb5eacSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1335b7fb5eacSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1336b7fb5eacSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1337b7fb5eacSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1338b7fb5eacSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1339b7fb5eacSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1340b7fb5eacSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xmodmap]
1341b7fb5eacSmrg  --htmldir=DIR           html documentation [DOCDIR]
1342b7fb5eacSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1343b7fb5eacSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1344b7fb5eacSmrg  --psdir=DIR             ps documentation [DOCDIR]
13451a30de1fSmrg_ACEOF
13461a30de1fSmrg
13471a30de1fSmrg  cat <<\_ACEOF
13481a30de1fSmrg
13491a30de1fSmrgProgram names:
13501a30de1fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13511a30de1fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13521a30de1fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13531a30de1fSmrg
13541a30de1fSmrgSystem types:
13551a30de1fSmrg  --build=BUILD     configure for building on BUILD [guessed]
13561a30de1fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13571a30de1fSmrg_ACEOF
13581a30de1fSmrgfi
13591a30de1fSmrg
13601a30de1fSmrgif test -n "$ac_init_help"; then
13611a30de1fSmrg  case $ac_init_help in
1362ce62200cSmrg     short | recursive ) echo "Configuration of xmodmap 1.0.5:";;
13631a30de1fSmrg   esac
13641a30de1fSmrg  cat <<\_ACEOF
13651a30de1fSmrg
13661a30de1fSmrgOptional Features:
1367b7fb5eacSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
13681a30de1fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13691a30de1fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13701a30de1fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13711a30de1fSmrg			  (and sometimes confusing) to the casual installer
13721a30de1fSmrg  --disable-dependency-tracking  speeds up one-time build
13731a30de1fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1374b7fb5eacSmrg  --enable-strict-compilation
1375b7fb5eacSmrg                          Enable all warnings from compiler and make them
1376b7fb5eacSmrg                          errors (default: disabled)
1377ce62200cSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1378ce62200cSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
13791a30de1fSmrg
13801a30de1fSmrgOptional Packages:
13811a30de1fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
13821a30de1fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383b7fb5eacSmrg  --with-lint             Use a lint-style source code checker (default:
1384b7fb5eacSmrg                          disabled)
13851a30de1fSmrg
13861a30de1fSmrgSome influential environment variables:
13871a30de1fSmrg  CC          C compiler command
13881a30de1fSmrg  CFLAGS      C compiler flags
13891a30de1fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13901a30de1fSmrg              nonstandard directory <lib dir>
13911a30de1fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1392ce62200cSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13931a30de1fSmrg              you have headers in a nonstandard directory <include dir>
1394b7fb5eacSmrg  CPP         C preprocessor
13951a30de1fSmrg  PKG_CONFIG  path to pkg-config utility
1396b7fb5eacSmrg  XMODMAP_CFLAGS
1397b7fb5eacSmrg              C compiler flags for XMODMAP, overriding pkg-config
1398b7fb5eacSmrg  XMODMAP_LIBS
1399b7fb5eacSmrg              linker flags for XMODMAP, overriding pkg-config
1400ce62200cSmrg  LINT        Path to a lint-style command
1401ce62200cSmrg  LINT_FLAGS  Flags for the lint-style command
14021a30de1fSmrg
14031a30de1fSmrgUse these variables to override the choices made by `configure' or to help
14041a30de1fSmrgit to find libraries and programs with nonstandard names/locations.
14051a30de1fSmrg
14061a30de1fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14071a30de1fSmrg_ACEOF
14081a30de1fSmrgac_status=$?
14091a30de1fSmrgfi
14101a30de1fSmrg
14111a30de1fSmrgif test "$ac_init_help" = "recursive"; then
14121a30de1fSmrg  # If there are subdirs, report their specific --help.
14131a30de1fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414b7fb5eacSmrg    test -d "$ac_dir" ||
1415b7fb5eacSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416b7fb5eacSmrg      continue
14171a30de1fSmrg    ac_builddir=.
14181a30de1fSmrg
14191a30de1fSmrgcase "$ac_dir" in
14201a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14211a30de1fSmrg*)
1422b7fb5eacSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14231a30de1fSmrg  # A ".." for each directory in $ac_dir_suffix.
1424b7fb5eacSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14251a30de1fSmrg  case $ac_top_builddir_sub in
14261a30de1fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14271a30de1fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14281a30de1fSmrg  esac ;;
14291a30de1fSmrgesac
14301a30de1fSmrgac_abs_top_builddir=$ac_pwd
14311a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14321a30de1fSmrg# for backward compatibility:
14331a30de1fSmrgac_top_builddir=$ac_top_build_prefix
14341a30de1fSmrg
14351a30de1fSmrgcase $srcdir in
14361a30de1fSmrg  .)  # We are building in place.
14371a30de1fSmrg    ac_srcdir=.
14381a30de1fSmrg    ac_top_srcdir=$ac_top_builddir_sub
14391a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14401a30de1fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14411a30de1fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14421a30de1fSmrg    ac_top_srcdir=$srcdir
14431a30de1fSmrg    ac_abs_top_srcdir=$srcdir ;;
14441a30de1fSmrg  *) # Relative name.
14451a30de1fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14461a30de1fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14471a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14481a30de1fSmrgesac
14491a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14501a30de1fSmrg
14511a30de1fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14521a30de1fSmrg    # Check for guested configure.
14531a30de1fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14541a30de1fSmrg      echo &&
14551a30de1fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14561a30de1fSmrg    elif test -f "$ac_srcdir/configure"; then
14571a30de1fSmrg      echo &&
14581a30de1fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14591a30de1fSmrg    else
1460b7fb5eacSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14611a30de1fSmrg    fi || ac_status=$?
14621a30de1fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14631a30de1fSmrg  done
14641a30de1fSmrgfi
14651a30de1fSmrg
14661a30de1fSmrgtest -n "$ac_init_help" && exit $ac_status
14671a30de1fSmrgif $ac_init_version; then
14681a30de1fSmrg  cat <<\_ACEOF
1469ce62200cSmrgxmodmap configure 1.0.5
1470ce62200cSmrggenerated by GNU Autoconf 2.68
14711a30de1fSmrg
1472ce62200cSmrgCopyright (C) 2010 Free Software Foundation, Inc.
14731a30de1fSmrgThis configure script is free software; the Free Software Foundation
14741a30de1fSmrggives unlimited permission to copy, distribute and modify it.
14751a30de1fSmrg_ACEOF
14761a30de1fSmrg  exit
14771a30de1fSmrgfi
14781a30de1fSmrg
1479ce62200cSmrg## ------------------------ ##
1480ce62200cSmrg## Autoconf initialization. ##
1481ce62200cSmrg## ------------------------ ##
14821a30de1fSmrg
1483ce62200cSmrg# ac_fn_c_try_compile LINENO
1484ce62200cSmrg# --------------------------
1485ce62200cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1486ce62200cSmrgac_fn_c_try_compile ()
14871a30de1fSmrg{
1488ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489ce62200cSmrg  rm -f conftest.$ac_objext
1490ce62200cSmrg  if { { ac_try="$ac_compile"
1491ce62200cSmrgcase "(($ac_try" in
1492ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493ce62200cSmrg  *) ac_try_echo=$ac_try;;
1494ce62200cSmrgesac
1495ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
1497ce62200cSmrg  (eval "$ac_compile") 2>conftest.err
1498ce62200cSmrg  ac_status=$?
1499ce62200cSmrg  if test -s conftest.err; then
1500ce62200cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1501ce62200cSmrg    cat conftest.er1 >&5
1502ce62200cSmrg    mv -f conftest.er1 conftest.err
1503ce62200cSmrg  fi
1504ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505ce62200cSmrg  test $ac_status = 0; } && {
1506ce62200cSmrg	 test -z "$ac_c_werror_flag" ||
1507ce62200cSmrg	 test ! -s conftest.err
1508ce62200cSmrg       } && test -s conftest.$ac_objext; then :
1509ce62200cSmrg  ac_retval=0
1510ce62200cSmrgelse
1511ce62200cSmrg  $as_echo "$as_me: failed program was:" >&5
1512ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5
15131a30de1fSmrg
1514ce62200cSmrg	ac_retval=1
1515ce62200cSmrgfi
1516ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517ce62200cSmrg  as_fn_set_status $ac_retval
15181a30de1fSmrg
1519ce62200cSmrg} # ac_fn_c_try_compile
1520ce62200cSmrg
1521ce62200cSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1522ce62200cSmrg# ---------------------------------------------
1523ce62200cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1524ce62200cSmrg# accordingly.
1525ce62200cSmrgac_fn_c_check_decl ()
1526ce62200cSmrg{
1527ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528ce62200cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1529ce62200cSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1530ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1531ce62200cSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1532ce62200cSmrgif eval \${$3+:} false; then :
1533ce62200cSmrg  $as_echo_n "(cached) " >&6
1534ce62200cSmrgelse
1535ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536ce62200cSmrg/* end confdefs.h.  */
1537ce62200cSmrg$4
1538ce62200cSmrgint
1539ce62200cSmrgmain ()
1540ce62200cSmrg{
1541ce62200cSmrg#ifndef $as_decl_name
1542ce62200cSmrg#ifdef __cplusplus
1543ce62200cSmrg  (void) $as_decl_use;
1544ce62200cSmrg#else
1545ce62200cSmrg  (void) $as_decl_name;
1546ce62200cSmrg#endif
1547ce62200cSmrg#endif
1548ce62200cSmrg
1549ce62200cSmrg  ;
1550ce62200cSmrg  return 0;
1551ce62200cSmrg}
1552ce62200cSmrg_ACEOF
1553ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
1554ce62200cSmrg  eval "$3=yes"
1555ce62200cSmrgelse
1556ce62200cSmrg  eval "$3=no"
1557ce62200cSmrgfi
1558ce62200cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1559ce62200cSmrgfi
1560ce62200cSmrgeval ac_res=\$$3
1561ce62200cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1562ce62200cSmrg$as_echo "$ac_res" >&6; }
1563ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564ce62200cSmrg
1565ce62200cSmrg} # ac_fn_c_check_decl
1566ce62200cSmrg
1567ce62200cSmrg# ac_fn_c_try_cpp LINENO
1568ce62200cSmrg# ----------------------
1569ce62200cSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570ce62200cSmrgac_fn_c_try_cpp ()
1571ce62200cSmrg{
1572ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573ce62200cSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1574ce62200cSmrgcase "(($ac_try" in
1575ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576ce62200cSmrg  *) ac_try_echo=$ac_try;;
1577ce62200cSmrgesac
1578ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
1580ce62200cSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581ce62200cSmrg  ac_status=$?
1582ce62200cSmrg  if test -s conftest.err; then
1583ce62200cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1584ce62200cSmrg    cat conftest.er1 >&5
1585ce62200cSmrg    mv -f conftest.er1 conftest.err
1586ce62200cSmrg  fi
1587ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588ce62200cSmrg  test $ac_status = 0; } > conftest.i && {
1589ce62200cSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590ce62200cSmrg	 test ! -s conftest.err
1591ce62200cSmrg       }; then :
1592ce62200cSmrg  ac_retval=0
1593ce62200cSmrgelse
1594ce62200cSmrg  $as_echo "$as_me: failed program was:" >&5
1595ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1596ce62200cSmrg
1597ce62200cSmrg    ac_retval=1
1598ce62200cSmrgfi
1599ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600ce62200cSmrg  as_fn_set_status $ac_retval
1601ce62200cSmrg
1602ce62200cSmrg} # ac_fn_c_try_cpp
1603ce62200cSmrg
1604ce62200cSmrg# ac_fn_c_try_run LINENO
1605ce62200cSmrg# ----------------------
1606ce62200cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607ce62200cSmrg# that executables *can* be run.
1608ce62200cSmrgac_fn_c_try_run ()
1609ce62200cSmrg{
1610ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611ce62200cSmrg  if { { ac_try="$ac_link"
1612ce62200cSmrgcase "(($ac_try" in
1613ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614ce62200cSmrg  *) ac_try_echo=$ac_try;;
1615ce62200cSmrgesac
1616ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
1618ce62200cSmrg  (eval "$ac_link") 2>&5
1619ce62200cSmrg  ac_status=$?
1620ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621ce62200cSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622ce62200cSmrg  { { case "(($ac_try" in
1623ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624ce62200cSmrg  *) ac_try_echo=$ac_try;;
1625ce62200cSmrgesac
1626ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
1628ce62200cSmrg  (eval "$ac_try") 2>&5
1629ce62200cSmrg  ac_status=$?
1630ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631ce62200cSmrg  test $ac_status = 0; }; }; then :
1632ce62200cSmrg  ac_retval=0
1633ce62200cSmrgelse
1634ce62200cSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1635ce62200cSmrg       $as_echo "$as_me: failed program was:" >&5
1636ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1637ce62200cSmrg
1638ce62200cSmrg       ac_retval=$ac_status
1639ce62200cSmrgfi
1640ce62200cSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642ce62200cSmrg  as_fn_set_status $ac_retval
1643ce62200cSmrg
1644ce62200cSmrg} # ac_fn_c_try_run
1645ce62200cSmrg
1646ce62200cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647ce62200cSmrg# -------------------------------------------------------
1648ce62200cSmrg# Tests whether HEADER exists and can be compiled using the include files in
1649ce62200cSmrg# INCLUDES, setting the cache variable VAR accordingly.
1650ce62200cSmrgac_fn_c_check_header_compile ()
1651ce62200cSmrg{
1652ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654ce62200cSmrg$as_echo_n "checking for $2... " >&6; }
1655ce62200cSmrgif eval \${$3+:} false; then :
1656ce62200cSmrg  $as_echo_n "(cached) " >&6
1657ce62200cSmrgelse
1658ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659ce62200cSmrg/* end confdefs.h.  */
1660ce62200cSmrg$4
1661ce62200cSmrg#include <$2>
1662ce62200cSmrg_ACEOF
1663ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
1664ce62200cSmrg  eval "$3=yes"
1665ce62200cSmrgelse
1666ce62200cSmrg  eval "$3=no"
1667ce62200cSmrgfi
1668ce62200cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669ce62200cSmrgfi
1670ce62200cSmrgeval ac_res=\$$3
1671ce62200cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672ce62200cSmrg$as_echo "$ac_res" >&6; }
1673ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674ce62200cSmrg
1675ce62200cSmrg} # ac_fn_c_check_header_compile
1676ce62200cSmrg
1677ce62200cSmrg# ac_fn_c_try_link LINENO
1678ce62200cSmrg# -----------------------
1679ce62200cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ce62200cSmrgac_fn_c_try_link ()
1681ce62200cSmrg{
1682ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683ce62200cSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
1684ce62200cSmrg  if { { ac_try="$ac_link"
1685ce62200cSmrgcase "(($ac_try" in
1686ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687ce62200cSmrg  *) ac_try_echo=$ac_try;;
1688ce62200cSmrgesac
1689ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
1691ce62200cSmrg  (eval "$ac_link") 2>conftest.err
1692ce62200cSmrg  ac_status=$?
1693ce62200cSmrg  if test -s conftest.err; then
1694ce62200cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1695ce62200cSmrg    cat conftest.er1 >&5
1696ce62200cSmrg    mv -f conftest.er1 conftest.err
1697ce62200cSmrg  fi
1698ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699ce62200cSmrg  test $ac_status = 0; } && {
1700ce62200cSmrg	 test -z "$ac_c_werror_flag" ||
1701ce62200cSmrg	 test ! -s conftest.err
1702ce62200cSmrg       } && test -s conftest$ac_exeext && {
1703ce62200cSmrg	 test "$cross_compiling" = yes ||
1704ce62200cSmrg	 $as_test_x conftest$ac_exeext
1705ce62200cSmrg       }; then :
1706ce62200cSmrg  ac_retval=0
1707ce62200cSmrgelse
1708ce62200cSmrg  $as_echo "$as_me: failed program was:" >&5
1709ce62200cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1710ce62200cSmrg
1711ce62200cSmrg	ac_retval=1
1712ce62200cSmrgfi
1713ce62200cSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714ce62200cSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715ce62200cSmrg  # interfere with the next link command; also delete a directory that is
1716ce62200cSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1717ce62200cSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719ce62200cSmrg  as_fn_set_status $ac_retval
1720ce62200cSmrg
1721ce62200cSmrg} # ac_fn_c_try_link
1722ce62200cSmrg
1723ce62200cSmrg# ac_fn_c_check_func LINENO FUNC VAR
1724ce62200cSmrg# ----------------------------------
1725ce62200cSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ce62200cSmrgac_fn_c_check_func ()
1727ce62200cSmrg{
1728ce62200cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730ce62200cSmrg$as_echo_n "checking for $2... " >&6; }
1731ce62200cSmrgif eval \${$3+:} false; then :
1732ce62200cSmrg  $as_echo_n "(cached) " >&6
1733ce62200cSmrgelse
1734ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735ce62200cSmrg/* end confdefs.h.  */
1736ce62200cSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737ce62200cSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738ce62200cSmrg#define $2 innocuous_$2
1739ce62200cSmrg
1740ce62200cSmrg/* System header to define __stub macros and hopefully few prototypes,
1741ce62200cSmrg    which can conflict with char $2 (); below.
1742ce62200cSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1743ce62200cSmrg    <limits.h> exists even on freestanding compilers.  */
1744ce62200cSmrg
1745ce62200cSmrg#ifdef __STDC__
1746ce62200cSmrg# include <limits.h>
1747ce62200cSmrg#else
1748ce62200cSmrg# include <assert.h>
1749ce62200cSmrg#endif
1750ce62200cSmrg
1751ce62200cSmrg#undef $2
1752ce62200cSmrg
1753ce62200cSmrg/* Override any GCC internal prototype to avoid an error.
1754ce62200cSmrg   Use char because int might match the return type of a GCC
1755ce62200cSmrg   builtin and then its argument prototype would still apply.  */
1756ce62200cSmrg#ifdef __cplusplus
1757ce62200cSmrgextern "C"
1758ce62200cSmrg#endif
1759ce62200cSmrgchar $2 ();
1760ce62200cSmrg/* The GNU C library defines this for functions which it implements
1761ce62200cSmrg    to always fail with ENOSYS.  Some functions are actually named
1762ce62200cSmrg    something starting with __ and the normal name is an alias.  */
1763ce62200cSmrg#if defined __stub_$2 || defined __stub___$2
1764ce62200cSmrgchoke me
1765ce62200cSmrg#endif
1766ce62200cSmrg
1767ce62200cSmrgint
1768ce62200cSmrgmain ()
1769ce62200cSmrg{
1770ce62200cSmrgreturn $2 ();
1771ce62200cSmrg  ;
1772ce62200cSmrg  return 0;
1773ce62200cSmrg}
1774ce62200cSmrg_ACEOF
1775ce62200cSmrgif ac_fn_c_try_link "$LINENO"; then :
1776ce62200cSmrg  eval "$3=yes"
1777ce62200cSmrgelse
1778ce62200cSmrg  eval "$3=no"
1779ce62200cSmrgfi
1780ce62200cSmrgrm -f core conftest.err conftest.$ac_objext \
1781ce62200cSmrg    conftest$ac_exeext conftest.$ac_ext
1782ce62200cSmrgfi
1783ce62200cSmrgeval ac_res=\$$3
1784ce62200cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785ce62200cSmrg$as_echo "$ac_res" >&6; }
1786ce62200cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787ce62200cSmrg
1788ce62200cSmrg} # ac_fn_c_check_func
1789ce62200cSmrgcat >config.log <<_ACEOF
1790ce62200cSmrgThis file contains any messages produced by compilers while
1791ce62200cSmrgrunning configure, to aid debugging if configure makes a mistake.
1792ce62200cSmrg
1793ce62200cSmrgIt was created by xmodmap $as_me 1.0.5, which was
1794ce62200cSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1795ce62200cSmrg
1796ce62200cSmrg  $ $0 $@
1797ce62200cSmrg
1798ce62200cSmrg_ACEOF
1799ce62200cSmrgexec 5>>config.log
1800ce62200cSmrg{
1801ce62200cSmrgcat <<_ASUNAME
1802ce62200cSmrg## --------- ##
1803ce62200cSmrg## Platform. ##
1804ce62200cSmrg## --------- ##
1805ce62200cSmrg
1806ce62200cSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1807ce62200cSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1808ce62200cSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1809ce62200cSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1810ce62200cSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1811ce62200cSmrg
1812ce62200cSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1813ce62200cSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1814ce62200cSmrg
1815ce62200cSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1816ce62200cSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1817ce62200cSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1818ce62200cSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1819ce62200cSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1820ce62200cSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1821ce62200cSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1822ce62200cSmrg
1823ce62200cSmrg_ASUNAME
18241a30de1fSmrg
18251a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18261a30de1fSmrgfor as_dir in $PATH
18271a30de1fSmrgdo
18281a30de1fSmrg  IFS=$as_save_IFS
18291a30de1fSmrg  test -z "$as_dir" && as_dir=.
1830ce62200cSmrg    $as_echo "PATH: $as_dir"
1831ce62200cSmrg  done
18321a30de1fSmrgIFS=$as_save_IFS
18331a30de1fSmrg
18341a30de1fSmrg} >&5
18351a30de1fSmrg
18361a30de1fSmrgcat >&5 <<_ACEOF
18371a30de1fSmrg
18381a30de1fSmrg
18391a30de1fSmrg## ----------- ##
18401a30de1fSmrg## Core tests. ##
18411a30de1fSmrg## ----------- ##
18421a30de1fSmrg
18431a30de1fSmrg_ACEOF
18441a30de1fSmrg
18451a30de1fSmrg
18461a30de1fSmrg# Keep a trace of the command line.
18471a30de1fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
18481a30de1fSmrg# Strip out --silent because we don't want to record it for future runs.
18491a30de1fSmrg# Also quote any args containing shell meta-characters.
18501a30de1fSmrg# Make two passes to allow for proper duplicate-argument suppression.
18511a30de1fSmrgac_configure_args=
18521a30de1fSmrgac_configure_args0=
18531a30de1fSmrgac_configure_args1=
18541a30de1fSmrgac_must_keep_next=false
18551a30de1fSmrgfor ac_pass in 1 2
18561a30de1fSmrgdo
18571a30de1fSmrg  for ac_arg
18581a30de1fSmrg  do
18591a30de1fSmrg    case $ac_arg in
18601a30de1fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18611a30de1fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18621a30de1fSmrg    | -silent | --silent | --silen | --sile | --sil)
18631a30de1fSmrg      continue ;;
18641a30de1fSmrg    *\'*)
1865b7fb5eacSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18661a30de1fSmrg    esac
18671a30de1fSmrg    case $ac_pass in
1868ce62200cSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18691a30de1fSmrg    2)
1870ce62200cSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18711a30de1fSmrg      if test $ac_must_keep_next = true; then
18721a30de1fSmrg	ac_must_keep_next=false # Got value, back to normal.
18731a30de1fSmrg      else
18741a30de1fSmrg	case $ac_arg in
18751a30de1fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18761a30de1fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18771a30de1fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18781a30de1fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18791a30de1fSmrg	    case "$ac_configure_args0 " in
18801a30de1fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18811a30de1fSmrg	    esac
18821a30de1fSmrg	    ;;
18831a30de1fSmrg	  -* ) ac_must_keep_next=true ;;
18841a30de1fSmrg	esac
18851a30de1fSmrg      fi
1886ce62200cSmrg      as_fn_append ac_configure_args " '$ac_arg'"
18871a30de1fSmrg      ;;
18881a30de1fSmrg    esac
18891a30de1fSmrg  done
18901a30de1fSmrgdone
1891ce62200cSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1892ce62200cSmrg{ ac_configure_args1=; unset ac_configure_args1;}
18931a30de1fSmrg
18941a30de1fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
18951a30de1fSmrg# config.log.  We remove comments because anyway the quotes in there
18961a30de1fSmrg# would cause problems or look ugly.
18971a30de1fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
18981a30de1fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18991a30de1fSmrgtrap 'exit_status=$?
19001a30de1fSmrg  # Save into config.log some information that might help in debugging.
19011a30de1fSmrg  {
19021a30de1fSmrg    echo
19031a30de1fSmrg
1904ce62200cSmrg    $as_echo "## ---------------- ##
19051a30de1fSmrg## Cache variables. ##
1906ce62200cSmrg## ---------------- ##"
19071a30de1fSmrg    echo
19081a30de1fSmrg    # The following way of writing the cache mishandles newlines in values,
19091a30de1fSmrg(
19101a30de1fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
19111a30de1fSmrg    eval ac_val=\$$ac_var
19121a30de1fSmrg    case $ac_val in #(
19131a30de1fSmrg    *${as_nl}*)
19141a30de1fSmrg      case $ac_var in #(
1915ce62200cSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1916b7fb5eacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19171a30de1fSmrg      esac
19181a30de1fSmrg      case $ac_var in #(
19191a30de1fSmrg      _ | IFS | as_nl) ;; #(
1920b7fb5eacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1921ce62200cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
19221a30de1fSmrg      esac ;;
19231a30de1fSmrg    esac
19241a30de1fSmrg  done
19251a30de1fSmrg  (set) 2>&1 |
19261a30de1fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
19271a30de1fSmrg    *${as_nl}ac_space=\ *)
19281a30de1fSmrg      sed -n \
19291a30de1fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
19301a30de1fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
19311a30de1fSmrg      ;; #(
19321a30de1fSmrg    *)
19331a30de1fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19341a30de1fSmrg      ;;
19351a30de1fSmrg    esac |
19361a30de1fSmrg    sort
19371a30de1fSmrg)
19381a30de1fSmrg    echo
19391a30de1fSmrg
1940ce62200cSmrg    $as_echo "## ----------------- ##
19411a30de1fSmrg## Output variables. ##
1942ce62200cSmrg## ----------------- ##"
19431a30de1fSmrg    echo
19441a30de1fSmrg    for ac_var in $ac_subst_vars
19451a30de1fSmrg    do
19461a30de1fSmrg      eval ac_val=\$$ac_var
19471a30de1fSmrg      case $ac_val in
1948b7fb5eacSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19491a30de1fSmrg      esac
1950b7fb5eacSmrg      $as_echo "$ac_var='\''$ac_val'\''"
19511a30de1fSmrg    done | sort
19521a30de1fSmrg    echo
19531a30de1fSmrg
19541a30de1fSmrg    if test -n "$ac_subst_files"; then
1955ce62200cSmrg      $as_echo "## ------------------- ##
19561a30de1fSmrg## File substitutions. ##
1957ce62200cSmrg## ------------------- ##"
19581a30de1fSmrg      echo
19591a30de1fSmrg      for ac_var in $ac_subst_files
19601a30de1fSmrg      do
19611a30de1fSmrg	eval ac_val=\$$ac_var
19621a30de1fSmrg	case $ac_val in
1963b7fb5eacSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19641a30de1fSmrg	esac
1965b7fb5eacSmrg	$as_echo "$ac_var='\''$ac_val'\''"
19661a30de1fSmrg      done | sort
19671a30de1fSmrg      echo
19681a30de1fSmrg    fi
19691a30de1fSmrg
19701a30de1fSmrg    if test -s confdefs.h; then
1971ce62200cSmrg      $as_echo "## ----------- ##
19721a30de1fSmrg## confdefs.h. ##
1973ce62200cSmrg## ----------- ##"
19741a30de1fSmrg      echo
19751a30de1fSmrg      cat confdefs.h
19761a30de1fSmrg      echo
19771a30de1fSmrg    fi
19781a30de1fSmrg    test "$ac_signal" != 0 &&
1979b7fb5eacSmrg      $as_echo "$as_me: caught signal $ac_signal"
1980b7fb5eacSmrg    $as_echo "$as_me: exit $exit_status"
19811a30de1fSmrg  } >&5
19821a30de1fSmrg  rm -f core *.core core.conftest.* &&
19831a30de1fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19841a30de1fSmrg    exit $exit_status
19851a30de1fSmrg' 0
19861a30de1fSmrgfor ac_signal in 1 2 13 15; do
1987ce62200cSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19881a30de1fSmrgdone
19891a30de1fSmrgac_signal=0
19901a30de1fSmrg
19911a30de1fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
19921a30de1fSmrgrm -f -r conftest* confdefs.h
19931a30de1fSmrg
1994ce62200cSmrg$as_echo "/* confdefs.h */" > confdefs.h
1995ce62200cSmrg
19961a30de1fSmrg# Predefined preprocessor variables.
19971a30de1fSmrg
19981a30de1fSmrgcat >>confdefs.h <<_ACEOF
19991a30de1fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
20001a30de1fSmrg_ACEOF
20011a30de1fSmrg
20021a30de1fSmrgcat >>confdefs.h <<_ACEOF
20031a30de1fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
20041a30de1fSmrg_ACEOF
20051a30de1fSmrg
20061a30de1fSmrgcat >>confdefs.h <<_ACEOF
20071a30de1fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
20081a30de1fSmrg_ACEOF
20091a30de1fSmrg
20101a30de1fSmrgcat >>confdefs.h <<_ACEOF
20111a30de1fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
20121a30de1fSmrg_ACEOF
20131a30de1fSmrg
20141a30de1fSmrgcat >>confdefs.h <<_ACEOF
20151a30de1fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
20161a30de1fSmrg_ACEOF
20171a30de1fSmrg
2018ce62200cSmrgcat >>confdefs.h <<_ACEOF
2019ce62200cSmrg#define PACKAGE_URL "$PACKAGE_URL"
2020ce62200cSmrg_ACEOF
2021ce62200cSmrg
20221a30de1fSmrg
20231a30de1fSmrg# Let the site file select an alternate cache file if it wants to.
2024b7fb5eacSmrg# Prefer an explicitly selected file to automatically selected ones.
2025b7fb5eacSmrgac_site_file1=NONE
2026b7fb5eacSmrgac_site_file2=NONE
20271a30de1fSmrgif test -n "$CONFIG_SITE"; then
2028ce62200cSmrg  # We do not want a PATH search for config.site.
2029ce62200cSmrg  case $CONFIG_SITE in #((
2030ce62200cSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2031ce62200cSmrg    */*) ac_site_file1=$CONFIG_SITE;;
2032ce62200cSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
2033ce62200cSmrg  esac
20341a30de1fSmrgelif test "x$prefix" != xNONE; then
2035b7fb5eacSmrg  ac_site_file1=$prefix/share/config.site
2036b7fb5eacSmrg  ac_site_file2=$prefix/etc/config.site
20371a30de1fSmrgelse
2038b7fb5eacSmrg  ac_site_file1=$ac_default_prefix/share/config.site
2039b7fb5eacSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
20401a30de1fSmrgfi
2041b7fb5eacSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
20421a30de1fSmrgdo
2043b7fb5eacSmrg  test "x$ac_site_file" = xNONE && continue
2044ce62200cSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2045ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2046b7fb5eacSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
20471a30de1fSmrg    sed 's/^/| /' "$ac_site_file" >&5
2048ce62200cSmrg    . "$ac_site_file" \
2049ce62200cSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2050ce62200cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2051ce62200cSmrgas_fn_error $? "failed to load site script $ac_site_file
2052ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
20531a30de1fSmrg  fi
20541a30de1fSmrgdone
20551a30de1fSmrg
20561a30de1fSmrgif test -r "$cache_file"; then
2057ce62200cSmrg  # Some versions of bash will fail to source /dev/null (special files
2058ce62200cSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2059ce62200cSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2060ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061b7fb5eacSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
20621a30de1fSmrg    case $cache_file in
20631a30de1fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20641a30de1fSmrg      *)                      . "./$cache_file";;
20651a30de1fSmrg    esac
20661a30de1fSmrg  fi
20671a30de1fSmrgelse
2068ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069b7fb5eacSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
20701a30de1fSmrg  >$cache_file
20711a30de1fSmrgfi
20721a30de1fSmrg
20731a30de1fSmrg# Check that the precious variables saved in the cache have kept the same
20741a30de1fSmrg# value.
20751a30de1fSmrgac_cache_corrupted=false
20761a30de1fSmrgfor ac_var in $ac_precious_vars; do
20771a30de1fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
20781a30de1fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
20791a30de1fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
20801a30de1fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
20811a30de1fSmrg  case $ac_old_set,$ac_new_set in
20821a30de1fSmrg    set,)
2083ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2084b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
20851a30de1fSmrg      ac_cache_corrupted=: ;;
20861a30de1fSmrg    ,set)
2087ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2088b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
20891a30de1fSmrg      ac_cache_corrupted=: ;;
20901a30de1fSmrg    ,);;
20911a30de1fSmrg    *)
20921a30de1fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2093b7fb5eacSmrg	# differences in whitespace do not lead to failure.
2094b7fb5eacSmrg	ac_old_val_w=`echo x $ac_old_val`
2095b7fb5eacSmrg	ac_new_val_w=`echo x $ac_new_val`
2096b7fb5eacSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2097ce62200cSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2098b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2099b7fb5eacSmrg	  ac_cache_corrupted=:
2100b7fb5eacSmrg	else
2101ce62200cSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2102b7fb5eacSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2103b7fb5eacSmrg	  eval $ac_var=\$ac_old_val
2104b7fb5eacSmrg	fi
2105ce62200cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2106b7fb5eacSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2107ce62200cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2108b7fb5eacSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
21091a30de1fSmrg      fi;;
21101a30de1fSmrg  esac
21111a30de1fSmrg  # Pass precious variables to config.status.
21121a30de1fSmrg  if test "$ac_new_set" = set; then
21131a30de1fSmrg    case $ac_new_val in
2114b7fb5eacSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
21151a30de1fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
21161a30de1fSmrg    esac
21171a30de1fSmrg    case " $ac_configure_args " in
21181a30de1fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2119ce62200cSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
21201a30de1fSmrg    esac
21211a30de1fSmrg  fi
21221a30de1fSmrgdone
21231a30de1fSmrgif $ac_cache_corrupted; then
2124ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2127b7fb5eacSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2128ce62200cSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
21291a30de1fSmrgfi
2130ce62200cSmrg## -------------------- ##
2131ce62200cSmrg## Main body of script. ##
2132ce62200cSmrg## -------------------- ##
21331a30de1fSmrg
21341a30de1fSmrgac_ext=c
21351a30de1fSmrgac_cpp='$CPP $CPPFLAGS'
21361a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21381a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
21391a30de1fSmrg
21401a30de1fSmrg
2141b7fb5eacSmrgam__api_version='1.11'
21421a30de1fSmrg
21431a30de1fSmrgac_aux_dir=
21441a30de1fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21451a30de1fSmrg  if test -f "$ac_dir/install-sh"; then
21461a30de1fSmrg    ac_aux_dir=$ac_dir
21471a30de1fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
21481a30de1fSmrg    break
21491a30de1fSmrg  elif test -f "$ac_dir/install.sh"; then
21501a30de1fSmrg    ac_aux_dir=$ac_dir
21511a30de1fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
21521a30de1fSmrg    break
21531a30de1fSmrg  elif test -f "$ac_dir/shtool"; then
21541a30de1fSmrg    ac_aux_dir=$ac_dir
21551a30de1fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
21561a30de1fSmrg    break
21571a30de1fSmrg  fi
21581a30de1fSmrgdone
21591a30de1fSmrgif test -z "$ac_aux_dir"; then
2160ce62200cSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
21611a30de1fSmrgfi
21621a30de1fSmrg
21631a30de1fSmrg# These three variables are undocumented and unsupported,
21641a30de1fSmrg# and are intended to be withdrawn in a future Autoconf release.
21651a30de1fSmrg# They can cause serious problems if a builder's source tree is in a directory
21661a30de1fSmrg# whose full name contains unusual characters.
21671a30de1fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
21681a30de1fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
21691a30de1fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
21701a30de1fSmrg
21711a30de1fSmrg
21721a30de1fSmrg# Find a good install program.  We prefer a C program (faster),
21731a30de1fSmrg# so one script is as good as another.  But avoid the broken or
21741a30de1fSmrg# incompatible versions:
21751a30de1fSmrg# SysV /etc/install, /usr/sbin/install
21761a30de1fSmrg# SunOS /usr/etc/install
21771a30de1fSmrg# IRIX /sbin/install
21781a30de1fSmrg# AIX /bin/install
21791a30de1fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
21801a30de1fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21811a30de1fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21821a30de1fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21831a30de1fSmrg# OS/2's system install, which has a completely different semantic
21841a30de1fSmrg# ./install, which can be erroneously created by make from ./install.sh.
2185b7fb5eacSmrg# Reject install programs that cannot install multiple files.
2186ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2187b7fb5eacSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
21881a30de1fSmrgif test -z "$INSTALL"; then
2189ce62200cSmrgif ${ac_cv_path_install+:} false; then :
2190b7fb5eacSmrg  $as_echo_n "(cached) " >&6
21911a30de1fSmrgelse
21921a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21931a30de1fSmrgfor as_dir in $PATH
21941a30de1fSmrgdo
21951a30de1fSmrg  IFS=$as_save_IFS
21961a30de1fSmrg  test -z "$as_dir" && as_dir=.
2197ce62200cSmrg    # Account for people who put trailing slashes in PATH elements.
2198ce62200cSmrgcase $as_dir/ in #((
2199ce62200cSmrg  ./ | .// | /[cC]/* | \
22001a30de1fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2201ce62200cSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22021a30de1fSmrg  /usr/ucb/* ) ;;
22031a30de1fSmrg  *)
22041a30de1fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
22051a30de1fSmrg    # Don't use installbsd from OSF since it installs stuff as root
22061a30de1fSmrg    # by default.
22071a30de1fSmrg    for ac_prog in ginstall scoinst install; do
22081a30de1fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
22091a30de1fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
22101a30de1fSmrg	  if test $ac_prog = install &&
22111a30de1fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22121a30de1fSmrg	    # AIX install.  It has an incompatible calling convention.
22131a30de1fSmrg	    :
22141a30de1fSmrg	  elif test $ac_prog = install &&
22151a30de1fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22161a30de1fSmrg	    # program-specific install script used by HP pwplus--don't use.
22171a30de1fSmrg	    :
22181a30de1fSmrg	  else
2219b7fb5eacSmrg	    rm -rf conftest.one conftest.two conftest.dir
2220b7fb5eacSmrg	    echo one > conftest.one
2221b7fb5eacSmrg	    echo two > conftest.two
2222b7fb5eacSmrg	    mkdir conftest.dir
2223b7fb5eacSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2224b7fb5eacSmrg	      test -s conftest.one && test -s conftest.two &&
2225b7fb5eacSmrg	      test -s conftest.dir/conftest.one &&
2226b7fb5eacSmrg	      test -s conftest.dir/conftest.two
2227b7fb5eacSmrg	    then
2228b7fb5eacSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2229b7fb5eacSmrg	      break 3
2230b7fb5eacSmrg	    fi
22311a30de1fSmrg	  fi
22321a30de1fSmrg	fi
22331a30de1fSmrg      done
22341a30de1fSmrg    done
22351a30de1fSmrg    ;;
22361a30de1fSmrgesac
2237b7fb5eacSmrg
2238ce62200cSmrg  done
22391a30de1fSmrgIFS=$as_save_IFS
22401a30de1fSmrg
2241b7fb5eacSmrgrm -rf conftest.one conftest.two conftest.dir
22421a30de1fSmrg
22431a30de1fSmrgfi
22441a30de1fSmrg  if test "${ac_cv_path_install+set}" = set; then
22451a30de1fSmrg    INSTALL=$ac_cv_path_install
22461a30de1fSmrg  else
22471a30de1fSmrg    # As a last resort, use the slow shell script.  Don't cache a
22481a30de1fSmrg    # value for INSTALL within a source directory, because that will
22491a30de1fSmrg    # break other packages using the cache if that directory is
22501a30de1fSmrg    # removed, or if the value is a relative name.
22511a30de1fSmrg    INSTALL=$ac_install_sh
22521a30de1fSmrg  fi
22531a30de1fSmrgfi
2254ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2255b7fb5eacSmrg$as_echo "$INSTALL" >&6; }
22561a30de1fSmrg
22571a30de1fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22581a30de1fSmrg# It thinks the first close brace ends the variable substitution.
22591a30de1fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22601a30de1fSmrg
22611a30de1fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22621a30de1fSmrg
22631a30de1fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22641a30de1fSmrg
2265ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2266b7fb5eacSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
22671a30de1fSmrg# Just in case
22681a30de1fSmrgsleep 1
22691a30de1fSmrgecho timestamp > conftest.file
2270b7fb5eacSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2271b7fb5eacSmrg# name.  Accept space and tab only in the latter.
2272b7fb5eacSmrgam_lf='
2273b7fb5eacSmrg'
2274b7fb5eacSmrgcase `pwd` in
2275b7fb5eacSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2276ce62200cSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277b7fb5eacSmrgesac
2278b7fb5eacSmrgcase $srcdir in
2279b7fb5eacSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2280ce62200cSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2281b7fb5eacSmrgesac
2282b7fb5eacSmrg
2283b7fb5eacSmrg# Do `set' in a subshell so we don't clobber the current shell's
2284b7fb5eacSmrg# arguments.  Must try -L first in case configure is actually a
2285b7fb5eacSmrg# symlink; some systems play weird games with the mod time of symlinks
2286b7fb5eacSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2287b7fb5eacSmrg# directory).
22881a30de1fSmrgif (
2289b7fb5eacSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
22901a30de1fSmrg   if test "$*" = "X"; then
22911a30de1fSmrg      # -L didn't work.
2292b7fb5eacSmrg      set X `ls -t "$srcdir/configure" conftest.file`
22931a30de1fSmrg   fi
22941a30de1fSmrg   rm -f conftest.file
22951a30de1fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
22961a30de1fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
22971a30de1fSmrg
22981a30de1fSmrg      # If neither matched, then we have a broken ls.  This can happen
22991a30de1fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
23001a30de1fSmrg      # broken ls alias from the environment.  This has actually
23011a30de1fSmrg      # happened.  Such a system could not be considered "sane".
2302ce62200cSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2303ce62200cSmrgalias in your environment" "$LINENO" 5
23041a30de1fSmrg   fi
23051a30de1fSmrg
23061a30de1fSmrg   test "$2" = conftest.file
23071a30de1fSmrg   )
23081a30de1fSmrgthen
23091a30de1fSmrg   # Ok.
23101a30de1fSmrg   :
23111a30de1fSmrgelse
2312ce62200cSmrg   as_fn_error $? "newly created file is older than distributed files!
2313ce62200cSmrgCheck your system clock" "$LINENO" 5
23141a30de1fSmrgfi
2315ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2316b7fb5eacSmrg$as_echo "yes" >&6; }
23171a30de1fSmrgtest "$program_prefix" != NONE &&
23181a30de1fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
23191a30de1fSmrg# Use a double $ so make ignores it.
23201a30de1fSmrgtest "$program_suffix" != NONE &&
23211a30de1fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2322b7fb5eacSmrg# Double any \ or $.
23231a30de1fSmrg# By default was `s,x,x', remove it if useless.
2324b7fb5eacSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2325b7fb5eacSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
23261a30de1fSmrg
23271a30de1fSmrg# expand $ac_aux_dir to an absolute path
23281a30de1fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
23291a30de1fSmrg
2330b7fb5eacSmrgif test x"${MISSING+set}" != xset; then
2331b7fb5eacSmrg  case $am_aux_dir in
2332b7fb5eacSmrg  *\ * | *\	*)
2333b7fb5eacSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2334b7fb5eacSmrg  *)
2335b7fb5eacSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2336b7fb5eacSmrg  esac
2337b7fb5eacSmrgfi
23381a30de1fSmrg# Use eval to expand $SHELL
23391a30de1fSmrgif eval "$MISSING --run true"; then
23401a30de1fSmrg  am_missing_run="$MISSING --run "
23411a30de1fSmrgelse
23421a30de1fSmrg  am_missing_run=
2343ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2344b7fb5eacSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2345b7fb5eacSmrgfi
2346b7fb5eacSmrg
2347b7fb5eacSmrgif test x"${install_sh}" != xset; then
2348b7fb5eacSmrg  case $am_aux_dir in
2349b7fb5eacSmrg  *\ * | *\	*)
2350b7fb5eacSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2351b7fb5eacSmrg  *)
2352b7fb5eacSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2353b7fb5eacSmrg  esac
2354b7fb5eacSmrgfi
2355b7fb5eacSmrg
2356b7fb5eacSmrg# Installed binaries are usually stripped using `strip' when the user
2357b7fb5eacSmrg# run `make install-strip'.  However `strip' might not be the right
2358b7fb5eacSmrg# tool to use in cross-compilation environments, therefore Automake
2359b7fb5eacSmrg# will honor the `STRIP' environment variable to overrule this program.
2360b7fb5eacSmrgif test "$cross_compiling" != no; then
2361b7fb5eacSmrg  if test -n "$ac_tool_prefix"; then
2362b7fb5eacSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363b7fb5eacSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2364ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2366ce62200cSmrgif ${ac_cv_prog_STRIP+:} false; then :
2367b7fb5eacSmrg  $as_echo_n "(cached) " >&6
2368b7fb5eacSmrgelse
2369b7fb5eacSmrg  if test -n "$STRIP"; then
2370b7fb5eacSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371b7fb5eacSmrgelse
2372b7fb5eacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373b7fb5eacSmrgfor as_dir in $PATH
2374b7fb5eacSmrgdo
2375b7fb5eacSmrg  IFS=$as_save_IFS
2376b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
2377ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2378b7fb5eacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379b7fb5eacSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381b7fb5eacSmrg    break 2
2382b7fb5eacSmrg  fi
2383b7fb5eacSmrgdone
2384ce62200cSmrg  done
2385b7fb5eacSmrgIFS=$as_save_IFS
2386b7fb5eacSmrg
2387b7fb5eacSmrgfi
2388b7fb5eacSmrgfi
2389b7fb5eacSmrgSTRIP=$ac_cv_prog_STRIP
2390b7fb5eacSmrgif test -n "$STRIP"; then
2391ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2392b7fb5eacSmrg$as_echo "$STRIP" >&6; }
2393b7fb5eacSmrgelse
2394ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395b7fb5eacSmrg$as_echo "no" >&6; }
2396b7fb5eacSmrgfi
2397b7fb5eacSmrg
2398b7fb5eacSmrg
2399b7fb5eacSmrgfi
2400b7fb5eacSmrgif test -z "$ac_cv_prog_STRIP"; then
2401b7fb5eacSmrg  ac_ct_STRIP=$STRIP
2402b7fb5eacSmrg  # Extract the first word of "strip", so it can be a program name with args.
2403b7fb5eacSmrgset dummy strip; ac_word=$2
2404ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2406ce62200cSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2407b7fb5eacSmrg  $as_echo_n "(cached) " >&6
2408b7fb5eacSmrgelse
2409b7fb5eacSmrg  if test -n "$ac_ct_STRIP"; then
2410b7fb5eacSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2411b7fb5eacSmrgelse
2412b7fb5eacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413b7fb5eacSmrgfor as_dir in $PATH
2414b7fb5eacSmrgdo
2415b7fb5eacSmrg  IFS=$as_save_IFS
2416b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
2417ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2418b7fb5eacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419b7fb5eacSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2420ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421b7fb5eacSmrg    break 2
2422b7fb5eacSmrg  fi
2423b7fb5eacSmrgdone
2424ce62200cSmrg  done
2425b7fb5eacSmrgIFS=$as_save_IFS
2426b7fb5eacSmrg
2427b7fb5eacSmrgfi
2428b7fb5eacSmrgfi
2429b7fb5eacSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430b7fb5eacSmrgif test -n "$ac_ct_STRIP"; then
2431ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2432b7fb5eacSmrg$as_echo "$ac_ct_STRIP" >&6; }
2433b7fb5eacSmrgelse
2434ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435b7fb5eacSmrg$as_echo "no" >&6; }
2436b7fb5eacSmrgfi
2437b7fb5eacSmrg
2438b7fb5eacSmrg  if test "x$ac_ct_STRIP" = x; then
2439b7fb5eacSmrg    STRIP=":"
2440b7fb5eacSmrg  else
2441b7fb5eacSmrg    case $cross_compiling:$ac_tool_warned in
2442b7fb5eacSmrgyes:)
2443ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2444b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445b7fb5eacSmrgac_tool_warned=yes ;;
2446b7fb5eacSmrgesac
2447b7fb5eacSmrg    STRIP=$ac_ct_STRIP
2448b7fb5eacSmrg  fi
2449b7fb5eacSmrgelse
2450b7fb5eacSmrg  STRIP="$ac_cv_prog_STRIP"
2451b7fb5eacSmrgfi
2452b7fb5eacSmrg
24531a30de1fSmrgfi
2454b7fb5eacSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24551a30de1fSmrg
2456ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2457b7fb5eacSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
24581a30de1fSmrgif test -z "$MKDIR_P"; then
2459ce62200cSmrg  if ${ac_cv_path_mkdir+:} false; then :
2460b7fb5eacSmrg  $as_echo_n "(cached) " >&6
24611a30de1fSmrgelse
24621a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631a30de1fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
24641a30de1fSmrgdo
24651a30de1fSmrg  IFS=$as_save_IFS
24661a30de1fSmrg  test -z "$as_dir" && as_dir=.
2467ce62200cSmrg    for ac_prog in mkdir gmkdir; do
24681a30de1fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
24691a30de1fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
24701a30de1fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24711a30de1fSmrg	     'mkdir (GNU coreutils) '* | \
24721a30de1fSmrg	     'mkdir (coreutils) '* | \
24731a30de1fSmrg	     'mkdir (fileutils) '4.1*)
24741a30de1fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24751a30de1fSmrg	       break 3;;
24761a30de1fSmrg	   esac
24771a30de1fSmrg	 done
24781a30de1fSmrg       done
2479ce62200cSmrg  done
24801a30de1fSmrgIFS=$as_save_IFS
24811a30de1fSmrg
24821a30de1fSmrgfi
24831a30de1fSmrg
2484ce62200cSmrg  test -d ./--version && rmdir ./--version
24851a30de1fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
24861a30de1fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
24871a30de1fSmrg  else
24881a30de1fSmrg    # As a last resort, use the slow shell script.  Don't cache a
24891a30de1fSmrg    # value for MKDIR_P within a source directory, because that will
24901a30de1fSmrg    # break other packages using the cache if that directory is
24911a30de1fSmrg    # removed, or if the value is a relative name.
24921a30de1fSmrg    MKDIR_P="$ac_install_sh -d"
24931a30de1fSmrg  fi
24941a30de1fSmrgfi
2495ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2496b7fb5eacSmrg$as_echo "$MKDIR_P" >&6; }
24971a30de1fSmrg
24981a30de1fSmrgmkdir_p="$MKDIR_P"
24991a30de1fSmrgcase $mkdir_p in
25001a30de1fSmrg  [\\/$]* | ?:[\\/]*) ;;
25011a30de1fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
25021a30de1fSmrgesac
25031a30de1fSmrg
25041a30de1fSmrgfor ac_prog in gawk mawk nawk awk
25051a30de1fSmrgdo
25061a30de1fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
25071a30de1fSmrgset dummy $ac_prog; ac_word=$2
2508ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2510ce62200cSmrgif ${ac_cv_prog_AWK+:} false; then :
2511b7fb5eacSmrg  $as_echo_n "(cached) " >&6
25121a30de1fSmrgelse
25131a30de1fSmrg  if test -n "$AWK"; then
25141a30de1fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
25151a30de1fSmrgelse
25161a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171a30de1fSmrgfor as_dir in $PATH
25181a30de1fSmrgdo
25191a30de1fSmrg  IFS=$as_save_IFS
25201a30de1fSmrg  test -z "$as_dir" && as_dir=.
2521ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
25221a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25231a30de1fSmrg    ac_cv_prog_AWK="$ac_prog"
2524ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25251a30de1fSmrg    break 2
25261a30de1fSmrg  fi
25271a30de1fSmrgdone
2528ce62200cSmrg  done
25291a30de1fSmrgIFS=$as_save_IFS
25301a30de1fSmrg
25311a30de1fSmrgfi
25321a30de1fSmrgfi
25331a30de1fSmrgAWK=$ac_cv_prog_AWK
25341a30de1fSmrgif test -n "$AWK"; then
2535ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2536b7fb5eacSmrg$as_echo "$AWK" >&6; }
25371a30de1fSmrgelse
2538ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539b7fb5eacSmrg$as_echo "no" >&6; }
25401a30de1fSmrgfi
25411a30de1fSmrg
25421a30de1fSmrg
25431a30de1fSmrg  test -n "$AWK" && break
25441a30de1fSmrgdone
25451a30de1fSmrg
2546ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2547b7fb5eacSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2548b7fb5eacSmrgset x ${MAKE-make}
2549b7fb5eacSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2550ce62200cSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2551b7fb5eacSmrg  $as_echo_n "(cached) " >&6
25521a30de1fSmrgelse
25531a30de1fSmrg  cat >conftest.make <<\_ACEOF
25541a30de1fSmrgSHELL = /bin/sh
25551a30de1fSmrgall:
25561a30de1fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
25571a30de1fSmrg_ACEOF
2558ce62200cSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25591a30de1fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
25601a30de1fSmrg  *@@@%%%=?*=@@@%%%*)
25611a30de1fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
25621a30de1fSmrg  *)
25631a30de1fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
25641a30de1fSmrgesac
25651a30de1fSmrgrm -f conftest.make
25661a30de1fSmrgfi
25671a30de1fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2568ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569b7fb5eacSmrg$as_echo "yes" >&6; }
25701a30de1fSmrg  SET_MAKE=
25711a30de1fSmrgelse
2572ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573b7fb5eacSmrg$as_echo "no" >&6; }
25741a30de1fSmrg  SET_MAKE="MAKE=${MAKE-make}"
25751a30de1fSmrgfi
25761a30de1fSmrg
25771a30de1fSmrgrm -rf .tst 2>/dev/null
25781a30de1fSmrgmkdir .tst 2>/dev/null
25791a30de1fSmrgif test -d .tst; then
25801a30de1fSmrg  am__leading_dot=.
25811a30de1fSmrgelse
25821a30de1fSmrg  am__leading_dot=_
25831a30de1fSmrgfi
25841a30de1fSmrgrmdir .tst 2>/dev/null
25851a30de1fSmrg
25861a30de1fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25871a30de1fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25881a30de1fSmrg  # is not polluted with repeated "-I."
25891a30de1fSmrg  am__isrc=' -I$(srcdir)'
25901a30de1fSmrg  # test to see if srcdir already configured
25911a30de1fSmrg  if test -f $srcdir/config.status; then
2592ce62200cSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25931a30de1fSmrg  fi
25941a30de1fSmrgfi
25951a30de1fSmrg
25961a30de1fSmrg# test whether we have cygpath
25971a30de1fSmrgif test -z "$CYGPATH_W"; then
25981a30de1fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
25991a30de1fSmrg    CYGPATH_W='cygpath -w'
26001a30de1fSmrg  else
26011a30de1fSmrg    CYGPATH_W=echo
26021a30de1fSmrg  fi
26031a30de1fSmrgfi
26041a30de1fSmrg
26051a30de1fSmrg
26061a30de1fSmrg# Define the identity of the package.
26071a30de1fSmrg PACKAGE='xmodmap'
2608ce62200cSmrg VERSION='1.0.5'
26091a30de1fSmrg
26101a30de1fSmrg
26111a30de1fSmrgcat >>confdefs.h <<_ACEOF
26121a30de1fSmrg#define PACKAGE "$PACKAGE"
26131a30de1fSmrg_ACEOF
26141a30de1fSmrg
26151a30de1fSmrg
26161a30de1fSmrgcat >>confdefs.h <<_ACEOF
26171a30de1fSmrg#define VERSION "$VERSION"
26181a30de1fSmrg_ACEOF
26191a30de1fSmrg
26201a30de1fSmrg# Some tools Automake needs.
26211a30de1fSmrg
26221a30de1fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26231a30de1fSmrg
26241a30de1fSmrg
26251a30de1fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26261a30de1fSmrg
26271a30de1fSmrg
26281a30de1fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26291a30de1fSmrg
26301a30de1fSmrg
26311a30de1fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26321a30de1fSmrg
26331a30de1fSmrg
26341a30de1fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26351a30de1fSmrg
26361a30de1fSmrg# We need awk for the "check" target.  The system "awk" is bad on
26371a30de1fSmrg# some platforms.
26381a30de1fSmrg# Always define AMTAR for backward compatibility.
26391a30de1fSmrg
26401a30de1fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
26411a30de1fSmrg
26421a30de1fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
26431a30de1fSmrg
26441a30de1fSmrg
26451a30de1fSmrg
26461a30de1fSmrg
26471a30de1fSmrg
2648b7fb5eacSmrg
2649ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2650b7fb5eacSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26511a30de1fSmrg    # Check whether --enable-maintainer-mode was given.
2652ce62200cSmrgif test "${enable_maintainer_mode+set}" = set; then :
26531a30de1fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26541a30de1fSmrgelse
26551a30de1fSmrg  USE_MAINTAINER_MODE=no
26561a30de1fSmrgfi
26571a30de1fSmrg
2658ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2659b7fb5eacSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
26601a30de1fSmrg   if test $USE_MAINTAINER_MODE = yes; then
26611a30de1fSmrg  MAINTAINER_MODE_TRUE=
26621a30de1fSmrg  MAINTAINER_MODE_FALSE='#'
26631a30de1fSmrgelse
26641a30de1fSmrg  MAINTAINER_MODE_TRUE='#'
26651a30de1fSmrg  MAINTAINER_MODE_FALSE=
26661a30de1fSmrgfi
26671a30de1fSmrg
26681a30de1fSmrg  MAINT=$MAINTAINER_MODE_TRUE
26691a30de1fSmrg
26701a30de1fSmrg
26711a30de1fSmrg
2672ce62200cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2673b7fb5eacSmrg
2674b7fb5eacSmrg
2675b7fb5eacSmrg
2676b7fb5eacSmrg
2677b7fb5eacSmrg
2678b7fb5eacSmrg
2679b7fb5eacSmrg
2680b7fb5eacSmrg
2681b7fb5eacSmrg
2682b7fb5eacSmrg
2683b7fb5eacSmrg
2684ce62200cSmrgDEPDIR="${am__leading_dot}deps"
2685b7fb5eacSmrg
2686ce62200cSmrgac_config_commands="$ac_config_commands depfiles"
26871a30de1fSmrg
26881a30de1fSmrg
2689ce62200cSmrgam_make=${MAKE-make}
2690ce62200cSmrgcat > confinc << 'END'
2691ce62200cSmrgam__doit:
2692ce62200cSmrg	@echo this is the am__doit target
2693ce62200cSmrg.PHONY: am__doit
2694ce62200cSmrgEND
2695ce62200cSmrg# If we don't find an include directive, just comment out the code.
2696ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2697ce62200cSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2698ce62200cSmrgam__include="#"
2699ce62200cSmrgam__quote=
2700ce62200cSmrg_am_result=none
2701ce62200cSmrg# First try GNU make style include.
2702ce62200cSmrgecho "include confinc" > confmf
2703ce62200cSmrg# Ignore all kinds of additional output from `make'.
2704ce62200cSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2705ce62200cSmrg*the\ am__doit\ target*)
2706ce62200cSmrg  am__include=include
2707ce62200cSmrg  am__quote=
2708ce62200cSmrg  _am_result=GNU
2709ce62200cSmrg  ;;
2710ce62200cSmrgesac
2711ce62200cSmrg# Now try BSD make style include.
2712ce62200cSmrgif test "$am__include" = "#"; then
2713ce62200cSmrg   echo '.include "confinc"' > confmf
2714ce62200cSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2715ce62200cSmrg   *the\ am__doit\ target*)
2716ce62200cSmrg     am__include=.include
2717ce62200cSmrg     am__quote="\""
2718ce62200cSmrg     _am_result=BSD
2719ce62200cSmrg     ;;
2720ce62200cSmrg   esac
2721ce62200cSmrgfi
2722ce62200cSmrg
2723ce62200cSmrg
2724ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2725ce62200cSmrg$as_echo "$_am_result" >&6; }
2726ce62200cSmrgrm -f confinc confmf
2727ce62200cSmrg
2728ce62200cSmrg# Check whether --enable-dependency-tracking was given.
2729ce62200cSmrgif test "${enable_dependency_tracking+set}" = set; then :
2730ce62200cSmrg  enableval=$enable_dependency_tracking;
2731ce62200cSmrgfi
2732ce62200cSmrg
2733ce62200cSmrgif test "x$enable_dependency_tracking" != xno; then
2734ce62200cSmrg  am_depcomp="$ac_aux_dir/depcomp"
2735ce62200cSmrg  AMDEPBACKSLASH='\'
2736ce62200cSmrgfi
2737ce62200cSmrg if test "x$enable_dependency_tracking" != xno; then
2738ce62200cSmrg  AMDEP_TRUE=
2739ce62200cSmrg  AMDEP_FALSE='#'
2740ce62200cSmrgelse
2741ce62200cSmrg  AMDEP_TRUE='#'
2742ce62200cSmrg  AMDEP_FALSE=
2743ce62200cSmrgfi
2744ce62200cSmrg
2745ce62200cSmrg
2746ce62200cSmrgac_ext=c
2747ce62200cSmrgac_cpp='$CPP $CPPFLAGS'
2748ce62200cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ce62200cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ce62200cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2751ce62200cSmrgif test -n "$ac_tool_prefix"; then
2752ce62200cSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753ce62200cSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2754ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755ce62200cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2756ce62200cSmrgif ${ac_cv_prog_CC+:} false; then :
2757ce62200cSmrg  $as_echo_n "(cached) " >&6
2758ce62200cSmrgelse
2759ce62200cSmrg  if test -n "$CC"; then
2760ce62200cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2761ce62200cSmrgelse
2762ce62200cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763ce62200cSmrgfor as_dir in $PATH
2764ce62200cSmrgdo
2765ce62200cSmrg  IFS=$as_save_IFS
2766ce62200cSmrg  test -z "$as_dir" && as_dir=.
2767ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2768ce62200cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769ce62200cSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771ce62200cSmrg    break 2
2772ce62200cSmrg  fi
2773ce62200cSmrgdone
2774ce62200cSmrg  done
2775ce62200cSmrgIFS=$as_save_IFS
2776ce62200cSmrg
2777ce62200cSmrgfi
2778ce62200cSmrgfi
2779ce62200cSmrgCC=$ac_cv_prog_CC
2780ce62200cSmrgif test -n "$CC"; then
2781ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782ce62200cSmrg$as_echo "$CC" >&6; }
2783ce62200cSmrgelse
2784ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785b7fb5eacSmrg$as_echo "no" >&6; }
27861a30de1fSmrgfi
27871a30de1fSmrg
27881a30de1fSmrg
27891a30de1fSmrgfi
27901a30de1fSmrgif test -z "$ac_cv_prog_CC"; then
27911a30de1fSmrg  ac_ct_CC=$CC
27921a30de1fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
27931a30de1fSmrgset dummy gcc; ac_word=$2
2794ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2796ce62200cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2797b7fb5eacSmrg  $as_echo_n "(cached) " >&6
27981a30de1fSmrgelse
27991a30de1fSmrg  if test -n "$ac_ct_CC"; then
28001a30de1fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28011a30de1fSmrgelse
28021a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28031a30de1fSmrgfor as_dir in $PATH
28041a30de1fSmrgdo
28051a30de1fSmrg  IFS=$as_save_IFS
28061a30de1fSmrg  test -z "$as_dir" && as_dir=.
2807ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28081a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28091a30de1fSmrg    ac_cv_prog_ac_ct_CC="gcc"
2810ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28111a30de1fSmrg    break 2
28121a30de1fSmrg  fi
28131a30de1fSmrgdone
2814ce62200cSmrg  done
28151a30de1fSmrgIFS=$as_save_IFS
28161a30de1fSmrg
28171a30de1fSmrgfi
28181a30de1fSmrgfi
28191a30de1fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28201a30de1fSmrgif test -n "$ac_ct_CC"; then
2821ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822b7fb5eacSmrg$as_echo "$ac_ct_CC" >&6; }
28231a30de1fSmrgelse
2824ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825b7fb5eacSmrg$as_echo "no" >&6; }
28261a30de1fSmrgfi
28271a30de1fSmrg
28281a30de1fSmrg  if test "x$ac_ct_CC" = x; then
28291a30de1fSmrg    CC=""
28301a30de1fSmrg  else
28311a30de1fSmrg    case $cross_compiling:$ac_tool_warned in
28321a30de1fSmrgyes:)
2833ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28351a30de1fSmrgac_tool_warned=yes ;;
28361a30de1fSmrgesac
28371a30de1fSmrg    CC=$ac_ct_CC
28381a30de1fSmrg  fi
28391a30de1fSmrgelse
28401a30de1fSmrg  CC="$ac_cv_prog_CC"
28411a30de1fSmrgfi
28421a30de1fSmrg
28431a30de1fSmrgif test -z "$CC"; then
28441a30de1fSmrg          if test -n "$ac_tool_prefix"; then
28451a30de1fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28461a30de1fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2847ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2849ce62200cSmrgif ${ac_cv_prog_CC+:} false; then :
2850b7fb5eacSmrg  $as_echo_n "(cached) " >&6
28511a30de1fSmrgelse
28521a30de1fSmrg  if test -n "$CC"; then
28531a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28541a30de1fSmrgelse
28551a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28561a30de1fSmrgfor as_dir in $PATH
28571a30de1fSmrgdo
28581a30de1fSmrg  IFS=$as_save_IFS
28591a30de1fSmrg  test -z "$as_dir" && as_dir=.
2860ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28611a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28621a30de1fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2863ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28641a30de1fSmrg    break 2
28651a30de1fSmrg  fi
28661a30de1fSmrgdone
2867ce62200cSmrg  done
28681a30de1fSmrgIFS=$as_save_IFS
28691a30de1fSmrg
28701a30de1fSmrgfi
28711a30de1fSmrgfi
28721a30de1fSmrgCC=$ac_cv_prog_CC
28731a30de1fSmrgif test -n "$CC"; then
2874ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875b7fb5eacSmrg$as_echo "$CC" >&6; }
28761a30de1fSmrgelse
2877ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878b7fb5eacSmrg$as_echo "no" >&6; }
28791a30de1fSmrgfi
28801a30de1fSmrg
28811a30de1fSmrg
28821a30de1fSmrg  fi
28831a30de1fSmrgfi
28841a30de1fSmrgif test -z "$CC"; then
28851a30de1fSmrg  # Extract the first word of "cc", so it can be a program name with args.
28861a30de1fSmrgset dummy cc; ac_word=$2
2887ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2889ce62200cSmrgif ${ac_cv_prog_CC+:} false; then :
2890b7fb5eacSmrg  $as_echo_n "(cached) " >&6
28911a30de1fSmrgelse
28921a30de1fSmrg  if test -n "$CC"; then
28931a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28941a30de1fSmrgelse
28951a30de1fSmrg  ac_prog_rejected=no
28961a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28971a30de1fSmrgfor as_dir in $PATH
28981a30de1fSmrgdo
28991a30de1fSmrg  IFS=$as_save_IFS
29001a30de1fSmrg  test -z "$as_dir" && as_dir=.
2901ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29021a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29031a30de1fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29041a30de1fSmrg       ac_prog_rejected=yes
29051a30de1fSmrg       continue
29061a30de1fSmrg     fi
29071a30de1fSmrg    ac_cv_prog_CC="cc"
2908ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29091a30de1fSmrg    break 2
29101a30de1fSmrg  fi
29111a30de1fSmrgdone
2912ce62200cSmrg  done
29131a30de1fSmrgIFS=$as_save_IFS
29141a30de1fSmrg
29151a30de1fSmrgif test $ac_prog_rejected = yes; then
29161a30de1fSmrg  # We found a bogon in the path, so make sure we never use it.
29171a30de1fSmrg  set dummy $ac_cv_prog_CC
29181a30de1fSmrg  shift
29191a30de1fSmrg  if test $# != 0; then
29201a30de1fSmrg    # We chose a different compiler from the bogus one.
29211a30de1fSmrg    # However, it has the same basename, so the bogon will be chosen
29221a30de1fSmrg    # first if we set CC to just the basename; use the full file name.
29231a30de1fSmrg    shift
29241a30de1fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29251a30de1fSmrg  fi
29261a30de1fSmrgfi
29271a30de1fSmrgfi
29281a30de1fSmrgfi
29291a30de1fSmrgCC=$ac_cv_prog_CC
29301a30de1fSmrgif test -n "$CC"; then
2931ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932b7fb5eacSmrg$as_echo "$CC" >&6; }
29331a30de1fSmrgelse
2934ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935b7fb5eacSmrg$as_echo "no" >&6; }
29361a30de1fSmrgfi
29371a30de1fSmrg
29381a30de1fSmrg
29391a30de1fSmrgfi
29401a30de1fSmrgif test -z "$CC"; then
29411a30de1fSmrg  if test -n "$ac_tool_prefix"; then
29421a30de1fSmrg  for ac_prog in cl.exe
29431a30de1fSmrg  do
29441a30de1fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29451a30de1fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2948ce62200cSmrgif ${ac_cv_prog_CC+:} false; then :
2949b7fb5eacSmrg  $as_echo_n "(cached) " >&6
29501a30de1fSmrgelse
29511a30de1fSmrg  if test -n "$CC"; then
29521a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29531a30de1fSmrgelse
29541a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29551a30de1fSmrgfor as_dir in $PATH
29561a30de1fSmrgdo
29571a30de1fSmrg  IFS=$as_save_IFS
29581a30de1fSmrg  test -z "$as_dir" && as_dir=.
2959ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29601a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29611a30de1fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29631a30de1fSmrg    break 2
29641a30de1fSmrg  fi
29651a30de1fSmrgdone
2966ce62200cSmrg  done
29671a30de1fSmrgIFS=$as_save_IFS
29681a30de1fSmrg
29691a30de1fSmrgfi
29701a30de1fSmrgfi
29711a30de1fSmrgCC=$ac_cv_prog_CC
29721a30de1fSmrgif test -n "$CC"; then
2973ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974b7fb5eacSmrg$as_echo "$CC" >&6; }
29751a30de1fSmrgelse
2976ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977b7fb5eacSmrg$as_echo "no" >&6; }
29781a30de1fSmrgfi
29791a30de1fSmrg
29801a30de1fSmrg
29811a30de1fSmrg    test -n "$CC" && break
29821a30de1fSmrg  done
29831a30de1fSmrgfi
29841a30de1fSmrgif test -z "$CC"; then
29851a30de1fSmrg  ac_ct_CC=$CC
29861a30de1fSmrg  for ac_prog in cl.exe
29871a30de1fSmrgdo
29881a30de1fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
29891a30de1fSmrgset dummy $ac_prog; ac_word=$2
2990ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2992ce62200cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2993b7fb5eacSmrg  $as_echo_n "(cached) " >&6
29941a30de1fSmrgelse
29951a30de1fSmrg  if test -n "$ac_ct_CC"; then
29961a30de1fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29971a30de1fSmrgelse
29981a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29991a30de1fSmrgfor as_dir in $PATH
30001a30de1fSmrgdo
30011a30de1fSmrg  IFS=$as_save_IFS
30021a30de1fSmrg  test -z "$as_dir" && as_dir=.
3003ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
30041a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30051a30de1fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3006ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30071a30de1fSmrg    break 2
30081a30de1fSmrg  fi
30091a30de1fSmrgdone
3010ce62200cSmrg  done
30111a30de1fSmrgIFS=$as_save_IFS
30121a30de1fSmrg
30131a30de1fSmrgfi
30141a30de1fSmrgfi
30151a30de1fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30161a30de1fSmrgif test -n "$ac_ct_CC"; then
3017ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018b7fb5eacSmrg$as_echo "$ac_ct_CC" >&6; }
30191a30de1fSmrgelse
3020ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021b7fb5eacSmrg$as_echo "no" >&6; }
30221a30de1fSmrgfi
30231a30de1fSmrg
30241a30de1fSmrg
30251a30de1fSmrg  test -n "$ac_ct_CC" && break
30261a30de1fSmrgdone
30271a30de1fSmrg
30281a30de1fSmrg  if test "x$ac_ct_CC" = x; then
30291a30de1fSmrg    CC=""
30301a30de1fSmrg  else
30311a30de1fSmrg    case $cross_compiling:$ac_tool_warned in
30321a30de1fSmrgyes:)
3033ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30351a30de1fSmrgac_tool_warned=yes ;;
30361a30de1fSmrgesac
30371a30de1fSmrg    CC=$ac_ct_CC
30381a30de1fSmrg  fi
30391a30de1fSmrgfi
30401a30de1fSmrg
30411a30de1fSmrgfi
30421a30de1fSmrg
30431a30de1fSmrg
3044ce62200cSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046ce62200cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3047ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
30481a30de1fSmrg
30491a30de1fSmrg# Provide some information about the compiler.
3050ce62200cSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051b7fb5eacSmrgset X $ac_compile
3052b7fb5eacSmrgac_compiler=$2
3053ce62200cSmrgfor ac_option in --version -v -V -qversion; do
3054ce62200cSmrg  { { ac_try="$ac_compiler $ac_option >&5"
30551a30de1fSmrgcase "(($ac_try" in
30561a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571a30de1fSmrg  *) ac_try_echo=$ac_try;;
30581a30de1fSmrgesac
3059ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
3061ce62200cSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30621a30de1fSmrg  ac_status=$?
3063ce62200cSmrg  if test -s conftest.err; then
3064ce62200cSmrg    sed '10a\
3065ce62200cSmrg... rest of stderr output deleted ...
3066ce62200cSmrg         10q' conftest.err >conftest.er1
3067ce62200cSmrg    cat conftest.er1 >&5
3068ce62200cSmrg  fi
3069ce62200cSmrg  rm -f conftest.er1 conftest.err
3070ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071ce62200cSmrg  test $ac_status = 0; }
3072ce62200cSmrgdone
30731a30de1fSmrg
3074ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751a30de1fSmrg/* end confdefs.h.  */
30761a30de1fSmrg
30771a30de1fSmrgint
30781a30de1fSmrgmain ()
30791a30de1fSmrg{
30801a30de1fSmrg
30811a30de1fSmrg  ;
30821a30de1fSmrg  return 0;
30831a30de1fSmrg}
30841a30de1fSmrg_ACEOF
30851a30de1fSmrgac_clean_files_save=$ac_clean_files
3086b7fb5eacSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30871a30de1fSmrg# Try to create an executable without -o first, disregard a.out.
30881a30de1fSmrg# It will help us diagnose broken compilers, and finding out an intuition
30891a30de1fSmrg# of exeext.
3090ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3091ce62200cSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
3092b7fb5eacSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093b7fb5eacSmrg
3094b7fb5eacSmrg# The possible output files:
3095b7fb5eacSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096b7fb5eacSmrg
30971a30de1fSmrgac_rmfiles=
30981a30de1fSmrgfor ac_file in $ac_files
30991a30de1fSmrgdo
31001a30de1fSmrg  case $ac_file in
3101b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31021a30de1fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
31031a30de1fSmrg  esac
31041a30de1fSmrgdone
31051a30de1fSmrgrm -f $ac_rmfiles
31061a30de1fSmrg
3107ce62200cSmrgif { { ac_try="$ac_link_default"
31081a30de1fSmrgcase "(($ac_try" in
31091a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101a30de1fSmrg  *) ac_try_echo=$ac_try;;
31111a30de1fSmrgesac
3112ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
31141a30de1fSmrg  (eval "$ac_link_default") 2>&5
31151a30de1fSmrg  ac_status=$?
3116ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117ce62200cSmrg  test $ac_status = 0; }; then :
31181a30de1fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
31191a30de1fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
31201a30de1fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31211a30de1fSmrg# so that the user can short-circuit this test for compilers unknown to
31221a30de1fSmrg# Autoconf.
31231a30de1fSmrgfor ac_file in $ac_files ''
31241a30de1fSmrgdo
31251a30de1fSmrg  test -f "$ac_file" || continue
31261a30de1fSmrg  case $ac_file in
3127b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31281a30de1fSmrg	;;
31291a30de1fSmrg    [ab].out )
31301a30de1fSmrg	# We found the default executable, but exeext='' is most
31311a30de1fSmrg	# certainly right.
31321a30de1fSmrg	break;;
31331a30de1fSmrg    *.* )
3134ce62200cSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31351a30de1fSmrg	then :; else
31361a30de1fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31371a30de1fSmrg	fi
31381a30de1fSmrg	# We set ac_cv_exeext here because the later test for it is not
31391a30de1fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
31401a30de1fSmrg	# argument, so we may need to know it at that point already.
31411a30de1fSmrg	# Even if this section looks crufty: it has the advantage of
31421a30de1fSmrg	# actually working.
31431a30de1fSmrg	break;;
31441a30de1fSmrg    * )
31451a30de1fSmrg	break;;
31461a30de1fSmrg  esac
31471a30de1fSmrgdone
31481a30de1fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31491a30de1fSmrg
31501a30de1fSmrgelse
31511a30de1fSmrg  ac_file=''
31521a30de1fSmrgfi
3153ce62200cSmrgif test -z "$ac_file"; then :
3154ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155ce62200cSmrg$as_echo "no" >&6; }
3156ce62200cSmrg$as_echo "$as_me: failed program was:" >&5
31571a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31581a30de1fSmrg
3159ce62200cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161ce62200cSmrgas_fn_error 77 "C compiler cannot create executables
3162ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3163ce62200cSmrgelse
3164ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165ce62200cSmrg$as_echo "yes" >&6; }
31661a30de1fSmrgfi
3167ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3168ce62200cSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3169ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170ce62200cSmrg$as_echo "$ac_file" >&6; }
31711a30de1fSmrgac_exeext=$ac_cv_exeext
31721a30de1fSmrg
3173b7fb5eacSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
31741a30de1fSmrgac_clean_files=$ac_clean_files_save
3175ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176b7fb5eacSmrg$as_echo_n "checking for suffix of executables... " >&6; }
3177ce62200cSmrgif { { ac_try="$ac_link"
31781a30de1fSmrgcase "(($ac_try" in
31791a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801a30de1fSmrg  *) ac_try_echo=$ac_try;;
31811a30de1fSmrgesac
3182ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
31841a30de1fSmrg  (eval "$ac_link") 2>&5
31851a30de1fSmrg  ac_status=$?
3186ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187ce62200cSmrg  test $ac_status = 0; }; then :
31881a30de1fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
31891a30de1fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
31901a30de1fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
31911a30de1fSmrg# `rm'.
31921a30de1fSmrgfor ac_file in conftest.exe conftest conftest.*; do
31931a30de1fSmrg  test -f "$ac_file" || continue
31941a30de1fSmrg  case $ac_file in
3195b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31961a30de1fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31971a30de1fSmrg	  break;;
31981a30de1fSmrg    * ) break;;
31991a30de1fSmrg  esac
32001a30de1fSmrgdone
32011a30de1fSmrgelse
3202ce62200cSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204ce62200cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3205ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
32061a30de1fSmrgfi
3207ce62200cSmrgrm -f conftest conftest$ac_cv_exeext
3208ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209b7fb5eacSmrg$as_echo "$ac_cv_exeext" >&6; }
32101a30de1fSmrg
32111a30de1fSmrgrm -f conftest.$ac_ext
32121a30de1fSmrgEXEEXT=$ac_cv_exeext
32131a30de1fSmrgac_exeext=$EXEEXT
3214ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215ce62200cSmrg/* end confdefs.h.  */
3216ce62200cSmrg#include <stdio.h>
3217ce62200cSmrgint
3218ce62200cSmrgmain ()
3219ce62200cSmrg{
3220ce62200cSmrgFILE *f = fopen ("conftest.out", "w");
3221ce62200cSmrg return ferror (f) || fclose (f) != 0;
3222ce62200cSmrg
3223ce62200cSmrg  ;
3224ce62200cSmrg  return 0;
3225ce62200cSmrg}
3226ce62200cSmrg_ACEOF
3227ce62200cSmrgac_clean_files="$ac_clean_files conftest.out"
3228ce62200cSmrg# Check that the compiler produces executables we can run.  If not, either
3229ce62200cSmrg# the compiler is broken, or we cross compile.
3230ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3231ce62200cSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3232ce62200cSmrgif test "$cross_compiling" != yes; then
3233ce62200cSmrg  { { ac_try="$ac_link"
3234ce62200cSmrgcase "(($ac_try" in
3235ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236ce62200cSmrg  *) ac_try_echo=$ac_try;;
3237ce62200cSmrgesac
3238ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
3240ce62200cSmrg  (eval "$ac_link") 2>&5
3241ce62200cSmrg  ac_status=$?
3242ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243ce62200cSmrg  test $ac_status = 0; }
3244ce62200cSmrg  if { ac_try='./conftest$ac_cv_exeext'
3245ce62200cSmrg  { { case "(($ac_try" in
3246ce62200cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247ce62200cSmrg  *) ac_try_echo=$ac_try;;
3248ce62200cSmrgesac
3249ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
3251ce62200cSmrg  (eval "$ac_try") 2>&5
3252ce62200cSmrg  ac_status=$?
3253ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254ce62200cSmrg  test $ac_status = 0; }; }; then
3255ce62200cSmrg    cross_compiling=no
3256ce62200cSmrg  else
3257ce62200cSmrg    if test "$cross_compiling" = maybe; then
3258ce62200cSmrg	cross_compiling=yes
3259ce62200cSmrg    else
3260ce62200cSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261ce62200cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262ce62200cSmrgas_fn_error $? "cannot run C compiled programs.
3263ce62200cSmrgIf you meant to cross compile, use \`--host'.
3264ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3265ce62200cSmrg    fi
3266ce62200cSmrg  fi
3267ce62200cSmrgfi
3268ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3269ce62200cSmrg$as_echo "$cross_compiling" >&6; }
3270ce62200cSmrg
3271ce62200cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3272ce62200cSmrgac_clean_files=$ac_clean_files_save
3273ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3274b7fb5eacSmrg$as_echo_n "checking for suffix of object files... " >&6; }
3275ce62200cSmrgif ${ac_cv_objext+:} false; then :
3276b7fb5eacSmrg  $as_echo_n "(cached) " >&6
32771a30de1fSmrgelse
3278ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32791a30de1fSmrg/* end confdefs.h.  */
32801a30de1fSmrg
32811a30de1fSmrgint
32821a30de1fSmrgmain ()
32831a30de1fSmrg{
32841a30de1fSmrg
32851a30de1fSmrg  ;
32861a30de1fSmrg  return 0;
32871a30de1fSmrg}
32881a30de1fSmrg_ACEOF
32891a30de1fSmrgrm -f conftest.o conftest.obj
3290ce62200cSmrgif { { ac_try="$ac_compile"
32911a30de1fSmrgcase "(($ac_try" in
32921a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32931a30de1fSmrg  *) ac_try_echo=$ac_try;;
32941a30de1fSmrgesac
3295ce62200cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296ce62200cSmrg$as_echo "$ac_try_echo"; } >&5
32971a30de1fSmrg  (eval "$ac_compile") 2>&5
32981a30de1fSmrg  ac_status=$?
3299ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300ce62200cSmrg  test $ac_status = 0; }; then :
33011a30de1fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
33021a30de1fSmrg  test -f "$ac_file" || continue;
33031a30de1fSmrg  case $ac_file in
3304b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
33051a30de1fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
33061a30de1fSmrg       break;;
33071a30de1fSmrg  esac
33081a30de1fSmrgdone
33091a30de1fSmrgelse
3310b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
33111a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
33121a30de1fSmrg
3313ce62200cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315ce62200cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3316ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
33171a30de1fSmrgfi
33181a30de1fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
33191a30de1fSmrgfi
3320ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3321b7fb5eacSmrg$as_echo "$ac_cv_objext" >&6; }
33221a30de1fSmrgOBJEXT=$ac_cv_objext
33231a30de1fSmrgac_objext=$OBJEXT
3324ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3325b7fb5eacSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3326ce62200cSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3327b7fb5eacSmrg  $as_echo_n "(cached) " >&6
33281a30de1fSmrgelse
3329ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33301a30de1fSmrg/* end confdefs.h.  */
33311a30de1fSmrg
33321a30de1fSmrgint
33331a30de1fSmrgmain ()
33341a30de1fSmrg{
33351a30de1fSmrg#ifndef __GNUC__
33361a30de1fSmrg       choke me
33371a30de1fSmrg#endif
33381a30de1fSmrg
33391a30de1fSmrg  ;
33401a30de1fSmrg  return 0;
33411a30de1fSmrg}
33421a30de1fSmrg_ACEOF
3343ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
33441a30de1fSmrg  ac_compiler_gnu=yes
33451a30de1fSmrgelse
3346ce62200cSmrg  ac_compiler_gnu=no
33471a30de1fSmrgfi
33481a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33491a30de1fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
33501a30de1fSmrg
33511a30de1fSmrgfi
3352ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3353b7fb5eacSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354b7fb5eacSmrgif test $ac_compiler_gnu = yes; then
3355b7fb5eacSmrg  GCC=yes
3356b7fb5eacSmrgelse
3357b7fb5eacSmrg  GCC=
3358b7fb5eacSmrgfi
33591a30de1fSmrgac_test_CFLAGS=${CFLAGS+set}
33601a30de1fSmrgac_save_CFLAGS=$CFLAGS
3361ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362b7fb5eacSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3363ce62200cSmrgif ${ac_cv_prog_cc_g+:} false; then :
3364b7fb5eacSmrg  $as_echo_n "(cached) " >&6
33651a30de1fSmrgelse
33661a30de1fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
33671a30de1fSmrg   ac_c_werror_flag=yes
33681a30de1fSmrg   ac_cv_prog_cc_g=no
33691a30de1fSmrg   CFLAGS="-g"
3370ce62200cSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33711a30de1fSmrg/* end confdefs.h.  */
33721a30de1fSmrg
33731a30de1fSmrgint
33741a30de1fSmrgmain ()
33751a30de1fSmrg{
33761a30de1fSmrg
33771a30de1fSmrg  ;
33781a30de1fSmrg  return 0;
33791a30de1fSmrg}
33801a30de1fSmrg_ACEOF
3381ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
33821a30de1fSmrg  ac_cv_prog_cc_g=yes
33831a30de1fSmrgelse
3384ce62200cSmrg  CFLAGS=""
3385ce62200cSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33861a30de1fSmrg/* end confdefs.h.  */
33871a30de1fSmrg
33881a30de1fSmrgint
33891a30de1fSmrgmain ()
33901a30de1fSmrg{
33911a30de1fSmrg
33921a30de1fSmrg  ;
33931a30de1fSmrg  return 0;
33941a30de1fSmrg}
33951a30de1fSmrg_ACEOF
3396ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
33971a30de1fSmrg
3398ce62200cSmrgelse
3399ce62200cSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
34001a30de1fSmrg	 CFLAGS="-g"
3401ce62200cSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34021a30de1fSmrg/* end confdefs.h.  */
34031a30de1fSmrg
34041a30de1fSmrgint
34051a30de1fSmrgmain ()
34061a30de1fSmrg{
34071a30de1fSmrg
34081a30de1fSmrg  ;
34091a30de1fSmrg  return 0;
34101a30de1fSmrg}
34111a30de1fSmrg_ACEOF
3412ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
34131a30de1fSmrg  ac_cv_prog_cc_g=yes
34141a30de1fSmrgfi
34151a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34161a30de1fSmrgfi
34171a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34181a30de1fSmrgfi
34191a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34201a30de1fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
34211a30de1fSmrgfi
3422ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3423b7fb5eacSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
34241a30de1fSmrgif test "$ac_test_CFLAGS" = set; then
34251a30de1fSmrg  CFLAGS=$ac_save_CFLAGS
34261a30de1fSmrgelif test $ac_cv_prog_cc_g = yes; then
34271a30de1fSmrg  if test "$GCC" = yes; then
34281a30de1fSmrg    CFLAGS="-g -O2"
34291a30de1fSmrg  else
34301a30de1fSmrg    CFLAGS="-g"
34311a30de1fSmrg  fi
34321a30de1fSmrgelse
34331a30de1fSmrg  if test "$GCC" = yes; then
34341a30de1fSmrg    CFLAGS="-O2"
34351a30de1fSmrg  else
34361a30de1fSmrg    CFLAGS=
34371a30de1fSmrg  fi
34381a30de1fSmrgfi
3439ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3440b7fb5eacSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3441ce62200cSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3442b7fb5eacSmrg  $as_echo_n "(cached) " >&6
34431a30de1fSmrgelse
34441a30de1fSmrg  ac_cv_prog_cc_c89=no
34451a30de1fSmrgac_save_CC=$CC
3446ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34471a30de1fSmrg/* end confdefs.h.  */
34481a30de1fSmrg#include <stdarg.h>
34491a30de1fSmrg#include <stdio.h>
34501a30de1fSmrg#include <sys/types.h>
34511a30de1fSmrg#include <sys/stat.h>
34521a30de1fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
34531a30de1fSmrgstruct buf { int x; };
34541a30de1fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
34551a30de1fSmrgstatic char *e (p, i)
34561a30de1fSmrg     char **p;
34571a30de1fSmrg     int i;
34581a30de1fSmrg{
34591a30de1fSmrg  return p[i];
34601a30de1fSmrg}
34611a30de1fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
34621a30de1fSmrg{
34631a30de1fSmrg  char *s;
34641a30de1fSmrg  va_list v;
34651a30de1fSmrg  va_start (v,p);
34661a30de1fSmrg  s = g (p, va_arg (v,int));
34671a30de1fSmrg  va_end (v);
34681a30de1fSmrg  return s;
34691a30de1fSmrg}
34701a30de1fSmrg
34711a30de1fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
34721a30de1fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
34731a30de1fSmrg   These don't provoke an error unfortunately, instead are silently treated
34741a30de1fSmrg   as 'x'.  The following induces an error, until -std is added to get
34751a30de1fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
34761a30de1fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
34771a30de1fSmrg   that's true only with -std.  */
34781a30de1fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
34791a30de1fSmrg
34801a30de1fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
34811a30de1fSmrg   inside strings and character constants.  */
34821a30de1fSmrg#define FOO(x) 'x'
34831a30de1fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
34841a30de1fSmrg
34851a30de1fSmrgint test (int i, double x);
34861a30de1fSmrgstruct s1 {int (*f) (int a);};
34871a30de1fSmrgstruct s2 {int (*f) (double a);};
34881a30de1fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
34891a30de1fSmrgint argc;
34901a30de1fSmrgchar **argv;
34911a30de1fSmrgint
34921a30de1fSmrgmain ()
34931a30de1fSmrg{
34941a30de1fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
34951a30de1fSmrg  ;
34961a30de1fSmrg  return 0;
34971a30de1fSmrg}
34981a30de1fSmrg_ACEOF
34991a30de1fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
35001a30de1fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35011a30de1fSmrgdo
35021a30de1fSmrg  CC="$ac_save_CC $ac_arg"
3503ce62200cSmrg  if ac_fn_c_try_compile "$LINENO"; then :
35041a30de1fSmrg  ac_cv_prog_cc_c89=$ac_arg
35051a30de1fSmrgfi
35061a30de1fSmrgrm -f core conftest.err conftest.$ac_objext
35071a30de1fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
35081a30de1fSmrgdone
35091a30de1fSmrgrm -f conftest.$ac_ext
35101a30de1fSmrgCC=$ac_save_CC
35111a30de1fSmrg
35121a30de1fSmrgfi
35131a30de1fSmrg# AC_CACHE_VAL
35141a30de1fSmrgcase "x$ac_cv_prog_cc_c89" in
35151a30de1fSmrg  x)
3516ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3517b7fb5eacSmrg$as_echo "none needed" >&6; } ;;
35181a30de1fSmrg  xno)
3519ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3520b7fb5eacSmrg$as_echo "unsupported" >&6; } ;;
35211a30de1fSmrg  *)
35221a30de1fSmrg    CC="$CC $ac_cv_prog_cc_c89"
3523ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3524b7fb5eacSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35251a30de1fSmrgesac
3526ce62200cSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
35271a30de1fSmrg
3528ce62200cSmrgfi
35291a30de1fSmrg
35301a30de1fSmrgac_ext=c
35311a30de1fSmrgac_cpp='$CPP $CPPFLAGS'
35321a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35331a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35341a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35351a30de1fSmrg
35361a30de1fSmrgdepcc="$CC"   am_compiler_list=
35371a30de1fSmrg
3538ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3539b7fb5eacSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3540ce62200cSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3541b7fb5eacSmrg  $as_echo_n "(cached) " >&6
35421a30de1fSmrgelse
35431a30de1fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35441a30de1fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
35451a30de1fSmrg  # making bogus files that we don't know about and never remove.  For
35461a30de1fSmrg  # instance it was reported that on HP-UX the gcc test will end up
35471a30de1fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
35481a30de1fSmrg  # in D'.
35491a30de1fSmrg  mkdir conftest.dir
35501a30de1fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
35511a30de1fSmrg  # using a relative directory.
35521a30de1fSmrg  cp "$am_depcomp" conftest.dir
35531a30de1fSmrg  cd conftest.dir
35541a30de1fSmrg  # We will build objects and dependencies in a subdirectory because
35551a30de1fSmrg  # it helps to detect inapplicable dependency modes.  For instance
35561a30de1fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
35571a30de1fSmrg  # side effect of compilation, but ICC will put the dependencies in
35581a30de1fSmrg  # the current directory while Tru64 will put them in the object
35591a30de1fSmrg  # directory.
35601a30de1fSmrg  mkdir sub
35611a30de1fSmrg
35621a30de1fSmrg  am_cv_CC_dependencies_compiler_type=none
35631a30de1fSmrg  if test "$am_compiler_list" = ""; then
35641a30de1fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35651a30de1fSmrg  fi
3566b7fb5eacSmrg  am__universal=false
3567b7fb5eacSmrg  case " $depcc " in #(
3568b7fb5eacSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3569b7fb5eacSmrg     esac
3570b7fb5eacSmrg
35711a30de1fSmrg  for depmode in $am_compiler_list; do
35721a30de1fSmrg    # Setup a source with many dependencies, because some compilers
35731a30de1fSmrg    # like to wrap large dependency lists on column 80 (with \), and
35741a30de1fSmrg    # we should not choose a depcomp mode which is confused by this.
35751a30de1fSmrg    #
35761a30de1fSmrg    # We need to recreate these files for each test, as the compiler may
35771a30de1fSmrg    # overwrite some of them when testing with obscure command lines.
35781a30de1fSmrg    # This happens at least with the AIX C compiler.
35791a30de1fSmrg    : > sub/conftest.c
35801a30de1fSmrg    for i in 1 2 3 4 5 6; do
35811a30de1fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35821a30de1fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35831a30de1fSmrg      # Solaris 8's {/usr,}/bin/sh.
35841a30de1fSmrg      touch sub/conftst$i.h
35851a30de1fSmrg    done
35861a30de1fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35871a30de1fSmrg
3588b7fb5eacSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3589b7fb5eacSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3590b7fb5eacSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3591b7fb5eacSmrg    # versions had trouble with output in subdirs
3592b7fb5eacSmrg    am__obj=sub/conftest.${OBJEXT-o}
3593b7fb5eacSmrg    am__minus_obj="-o $am__obj"
35941a30de1fSmrg    case $depmode in
3595b7fb5eacSmrg    gcc)
3596b7fb5eacSmrg      # This depmode causes a compiler race in universal mode.
3597b7fb5eacSmrg      test "$am__universal" = false || continue
3598b7fb5eacSmrg      ;;
35991a30de1fSmrg    nosideeffect)
36001a30de1fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
36011a30de1fSmrg      # only be used when explicitly requested
36021a30de1fSmrg      if test "x$enable_dependency_tracking" = xyes; then
36031a30de1fSmrg	continue
36041a30de1fSmrg      else
36051a30de1fSmrg	break
36061a30de1fSmrg      fi
36071a30de1fSmrg      ;;
3608b7fb5eacSmrg    msvisualcpp | msvcmsys)
3609b7fb5eacSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3610b7fb5eacSmrg      # not run yet.  These depmodes are late enough in the game, and
3611b7fb5eacSmrg      # so weak that their functioning should not be impacted.
3612b7fb5eacSmrg      am__obj=conftest.${OBJEXT-o}
3613b7fb5eacSmrg      am__minus_obj=
3614b7fb5eacSmrg      ;;
36151a30de1fSmrg    none) break ;;
36161a30de1fSmrg    esac
36171a30de1fSmrg    if depmode=$depmode \
3618b7fb5eacSmrg       source=sub/conftest.c object=$am__obj \
36191a30de1fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3620b7fb5eacSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
36211a30de1fSmrg         >/dev/null 2>conftest.err &&
36221a30de1fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
36231a30de1fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624b7fb5eacSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36251a30de1fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36261a30de1fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
36271a30de1fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
36281a30de1fSmrg      # that says an option was ignored or not supported.
36291a30de1fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
36301a30de1fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
36311a30de1fSmrg      # The diagnosis changed in icc 8.0:
36321a30de1fSmrg      #   icc: Command line remark: option '-MP' not supported
36331a30de1fSmrg      if (grep 'ignoring option' conftest.err ||
36341a30de1fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
36351a30de1fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
36361a30de1fSmrg        break
36371a30de1fSmrg      fi
36381a30de1fSmrg    fi
36391a30de1fSmrg  done
36401a30de1fSmrg
36411a30de1fSmrg  cd ..
36421a30de1fSmrg  rm -rf conftest.dir
36431a30de1fSmrgelse
36441a30de1fSmrg  am_cv_CC_dependencies_compiler_type=none
36451a30de1fSmrgfi
36461a30de1fSmrg
36471a30de1fSmrgfi
3648ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3649b7fb5eacSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
36501a30de1fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
36511a30de1fSmrg
36521a30de1fSmrg if
36531a30de1fSmrg  test "x$enable_dependency_tracking" != xno \
36541a30de1fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
36551a30de1fSmrg  am__fastdepCC_TRUE=
36561a30de1fSmrg  am__fastdepCC_FALSE='#'
36571a30de1fSmrgelse
36581a30de1fSmrg  am__fastdepCC_TRUE='#'
36591a30de1fSmrg  am__fastdepCC_FALSE=
36601a30de1fSmrgfi
36611a30de1fSmrg
36621a30de1fSmrg
3663ce62200cSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3664ce62200cSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3665ce62200cSmrgif ${ac_cv_prog_cc_c99+:} false; then :
3666b7fb5eacSmrg  $as_echo_n "(cached) " >&6
36671a30de1fSmrgelse
3668ce62200cSmrg  ac_cv_prog_cc_c99=no
3669ce62200cSmrgac_save_CC=$CC
3670ce62200cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671ce62200cSmrg/* end confdefs.h.  */
3672ce62200cSmrg#include <stdarg.h>
3673ce62200cSmrg#include <stdbool.h>
3674ce62200cSmrg#include <stdlib.h>
3675ce62200cSmrg#include <wchar.h>
3676ce62200cSmrg#include <stdio.h>
3677b7fb5eacSmrg
3678ce62200cSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3679ce62200cSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3680ce62200cSmrg#define showlist(...) puts (#__VA_ARGS__)
3681ce62200cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3682ce62200cSmrgstatic void
3683ce62200cSmrgtest_varargs_macros (void)
3684ce62200cSmrg{
3685ce62200cSmrg  int x = 1234;
3686ce62200cSmrg  int y = 5678;
3687ce62200cSmrg  debug ("Flag");
3688ce62200cSmrg  debug ("X = %d\n", x);
3689ce62200cSmrg  showlist (The first, second, and third items.);
3690ce62200cSmrg  report (x>y, "x is %d but y is %d", x, y);
3691ce62200cSmrg}
36921a30de1fSmrg
3693ce62200cSmrg// Check long long types.
3694ce62200cSmrg#define BIG64 18446744073709551615ull
3695ce62200cSmrg#define BIG32 4294967295ul
3696ce62200cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3697ce62200cSmrg#if !BIG_OK
3698ce62200cSmrg  your preprocessor is broken;
3699ce62200cSmrg#endif
3700ce62200cSmrg#if BIG_OK
3701ce62200cSmrg#else
3702ce62200cSmrg  your preprocessor is broken;
3703ce62200cSmrg#endif
3704ce62200cSmrgstatic long long int bignum = -9223372036854775807LL;
3705ce62200cSmrgstatic unsigned long long int ubignum = BIG64;
37061a30de1fSmrg
3707ce62200cSmrgstruct incomplete_array
3708ce62200cSmrg{
3709ce62200cSmrg  int datasize;
3710ce62200cSmrg  double data[];
3711ce62200cSmrg};
37121a30de1fSmrg
3713ce62200cSmrgstruct named_init {
3714ce62200cSmrg  int number;
3715ce62200cSmrg  const wchar_t *name;
3716ce62200cSmrg  double average;
3717ce62200cSmrg};
37181a30de1fSmrg
3719ce62200cSmrgtypedef const char *ccp;
37201a30de1fSmrg
3721ce62200cSmrgstatic inline int
3722ce62200cSmrgtest_restrict (ccp restrict text)
3723ce62200cSmrg{
3724ce62200cSmrg  // See if C++-style comments work.
3725ce62200cSmrg  // Iterate through items via the restricted pointer.
3726ce62200cSmrg  // Also check for declarations in for loops.
3727ce62200cSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3728ce62200cSmrg    continue;
3729ce62200cSmrg  return 0;
3730ce62200cSmrg}
37311a30de1fSmrg
3732ce62200cSmrg// Check varargs and va_copy.
3733ce62200cSmrgstatic void
3734ce62200cSmrgtest_varargs (const char *format, ...)
3735ce62200cSmrg{
3736ce62200cSmrg  va_list args;
3737ce62200cSmrg  va_start (args, format);
3738ce62200cSmrg  va_list args_copy;
3739ce62200cSmrg  va_copy (args_copy, args);
37401a30de1fSmrg
3741ce62200cSmrg  const char *str;
3742ce62200cSmrg  int number;
3743ce62200cSmrg  float fnumber;
37441a30de1fSmrg
3745ce62200cSmrg  while (*format)
3746ce62200cSmrg    {
3747ce62200cSmrg      switch (*format++)
3748ce62200cSmrg	{
3749ce62200cSmrg	case 's': // string
3750ce62200cSmrg	  str = va_arg (args_copy, const char *);
3751ce62200cSmrg	  break;
3752ce62200cSmrg	case 'd': // int
3753ce62200cSmrg	  number = va_arg (args_copy, int);
3754ce62200cSmrg	  break;
3755ce62200cSmrg	case 'f': // float
3756ce62200cSmrg	  fnumber = va_arg (args_copy, double);
3757ce62200cSmrg	  break;
3758ce62200cSmrg	default:
3759ce62200cSmrg	  break;
3760ce62200cSmrg	}
3761ce62200cSmrg    }
3762ce62200cSmrg  va_end (args_copy);
3763ce62200cSmrg  va_end (args);
3764ce62200cSmrg}
3765ce62200cSmrg
3766ce62200cSmrgint
3767ce62200cSmrgmain ()
3768ce62200cSmrg{
3769ce62200cSmrg
3770ce62200cSmrg  // Check bool.
3771ce62200cSmrg  _Bool success = false;
3772ce62200cSmrg
3773ce62200cSmrg  // Check restrict.
3774ce62200cSmrg  if (test_restrict ("String literal") == 0)
3775ce62200cSmrg    success = true;
3776ce62200cSmrg  char *restrict newvar = "Another string";
3777ce62200cSmrg
3778ce62200cSmrg  // Check varargs.
3779ce62200cSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3780ce62200cSmrg  test_varargs_macros ();
3781ce62200cSmrg
3782ce62200cSmrg  // Check flexible array members.
3783ce62200cSmrg  struct incomplete_array *ia =
3784ce62200cSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3785ce62200cSmrg  ia->datasize = 10;
3786ce62200cSmrg  for (int i = 0; i < ia->datasize; ++i)
3787ce62200cSmrg    ia->data[i] = i * 1.234;
3788ce62200cSmrg
3789ce62200cSmrg  // Check named initializers.
3790ce62200cSmrg  struct named_init ni = {
3791ce62200cSmrg    .number = 34,
3792ce62200cSmrg    .name = L"Test wide string",
3793ce62200cSmrg    .average = 543.34343,
3794ce62200cSmrg  };
3795ce62200cSmrg
3796ce62200cSmrg  ni.number = 58;
3797ce62200cSmrg
3798ce62200cSmrg  int dynamic_array[ni.number];
3799ce62200cSmrg  dynamic_array[ni.number - 1] = 543;
3800ce62200cSmrg
3801ce62200cSmrg  // work around unused variable warnings
3802ce62200cSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3803ce62200cSmrg	  || dynamic_array[ni.number - 1] != 543);
3804ce62200cSmrg
3805ce62200cSmrg  ;
3806ce62200cSmrg  return 0;
3807ce62200cSmrg}
3808ce62200cSmrg_ACEOF
3809ce62200cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3810ce62200cSmrgdo
3811ce62200cSmrg  CC="$ac_save_CC $ac_arg"
3812ce62200cSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3813ce62200cSmrg  ac_cv_prog_cc_c99=$ac_arg
3814ce62200cSmrgfi
3815ce62200cSmrgrm -f core conftest.err conftest.$ac_objext
3816ce62200cSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3817ce62200cSmrgdone
3818ce62200cSmrgrm -f conftest.$ac_ext
3819ce62200cSmrgCC=$ac_save_CC
3820ce62200cSmrg
3821ce62200cSmrgfi
3822ce62200cSmrg# AC_CACHE_VAL
3823ce62200cSmrgcase "x$ac_cv_prog_cc_c99" in
3824ce62200cSmrg  x)
3825ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826ce62200cSmrg$as_echo "none needed" >&6; } ;;
3827ce62200cSmrg  xno)
3828ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829ce62200cSmrg$as_echo "unsupported" >&6; } ;;
3830ce62200cSmrg  *)
3831ce62200cSmrg    CC="$CC $ac_cv_prog_cc_c99"
3832ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3833ce62200cSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3834ce62200cSmrgesac
3835ce62200cSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3836ce62200cSmrg
3837ce62200cSmrgfi
3838ce62200cSmrg
3839ce62200cSmrg
3840ce62200cSmrg
3841ce62200cSmrgac_ext=c
3842ce62200cSmrgac_cpp='$CPP $CPPFLAGS'
3843ce62200cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ce62200cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ce62200cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3846ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3847ce62200cSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3848ce62200cSmrg# On Suns, sometimes $CPP names a directory.
3849ce62200cSmrgif test -n "$CPP" && test -d "$CPP"; then
3850ce62200cSmrg  CPP=
3851ce62200cSmrgfi
3852ce62200cSmrgif test -z "$CPP"; then
3853ce62200cSmrg  if ${ac_cv_prog_CPP+:} false; then :
3854ce62200cSmrg  $as_echo_n "(cached) " >&6
3855ce62200cSmrgelse
3856ce62200cSmrg      # Double quotes because CPP needs to be expanded
3857ce62200cSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3858ce62200cSmrg    do
3859ce62200cSmrg      ac_preproc_ok=false
3860ce62200cSmrgfor ac_c_preproc_warn_flag in '' yes
3861ce62200cSmrgdo
3862ce62200cSmrg  # Use a header file that comes with gcc, so configuring glibc
3863ce62200cSmrg  # with a fresh cross-compiler works.
3864ce62200cSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3865ce62200cSmrg  # <limits.h> exists even on freestanding compilers.
3866ce62200cSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3867ce62200cSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3868ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869ce62200cSmrg/* end confdefs.h.  */
3870ce62200cSmrg#ifdef __STDC__
3871ce62200cSmrg# include <limits.h>
3872ce62200cSmrg#else
3873ce62200cSmrg# include <assert.h>
3874ce62200cSmrg#endif
3875ce62200cSmrg		     Syntax error
3876ce62200cSmrg_ACEOF
3877ce62200cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3878b7fb5eacSmrg
3879ce62200cSmrgelse
3880b7fb5eacSmrg  # Broken: fails on valid input.
3881b7fb5eacSmrgcontinue
3882b7fb5eacSmrgfi
3883ce62200cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3884b7fb5eacSmrg
3885b7fb5eacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3886b7fb5eacSmrg  # can be detected and how.
3887ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888b7fb5eacSmrg/* end confdefs.h.  */
3889b7fb5eacSmrg#include <ac_nonexistent.h>
3890b7fb5eacSmrg_ACEOF
3891ce62200cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3892b7fb5eacSmrg  # Broken: success on invalid input.
3893b7fb5eacSmrgcontinue
3894b7fb5eacSmrgelse
3895b7fb5eacSmrg  # Passes both tests.
3896b7fb5eacSmrgac_preproc_ok=:
3897b7fb5eacSmrgbreak
3898b7fb5eacSmrgfi
3899ce62200cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3900b7fb5eacSmrg
3901b7fb5eacSmrgdone
3902b7fb5eacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903ce62200cSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3904ce62200cSmrgif $ac_preproc_ok; then :
3905b7fb5eacSmrg  break
3906b7fb5eacSmrgfi
3907b7fb5eacSmrg
3908b7fb5eacSmrg    done
3909b7fb5eacSmrg    ac_cv_prog_CPP=$CPP
3910b7fb5eacSmrg
3911b7fb5eacSmrgfi
3912b7fb5eacSmrg  CPP=$ac_cv_prog_CPP
3913b7fb5eacSmrgelse
3914b7fb5eacSmrg  ac_cv_prog_CPP=$CPP
3915b7fb5eacSmrgfi
3916ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3917b7fb5eacSmrg$as_echo "$CPP" >&6; }
3918b7fb5eacSmrgac_preproc_ok=false
3919b7fb5eacSmrgfor ac_c_preproc_warn_flag in '' yes
3920b7fb5eacSmrgdo
3921b7fb5eacSmrg  # Use a header file that comes with gcc, so configuring glibc
3922b7fb5eacSmrg  # with a fresh cross-compiler works.
3923b7fb5eacSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924b7fb5eacSmrg  # <limits.h> exists even on freestanding compilers.
3925b7fb5eacSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3926b7fb5eacSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3927ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928b7fb5eacSmrg/* end confdefs.h.  */
3929b7fb5eacSmrg#ifdef __STDC__
3930b7fb5eacSmrg# include <limits.h>
3931b7fb5eacSmrg#else
3932b7fb5eacSmrg# include <assert.h>
3933b7fb5eacSmrg#endif
3934b7fb5eacSmrg		     Syntax error
3935b7fb5eacSmrg_ACEOF
3936ce62200cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3937b7fb5eacSmrg
3938ce62200cSmrgelse
3939b7fb5eacSmrg  # Broken: fails on valid input.
3940b7fb5eacSmrgcontinue
3941b7fb5eacSmrgfi
3942ce62200cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3943b7fb5eacSmrg
3944b7fb5eacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3945b7fb5eacSmrg  # can be detected and how.
3946ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947b7fb5eacSmrg/* end confdefs.h.  */
3948b7fb5eacSmrg#include <ac_nonexistent.h>
3949b7fb5eacSmrg_ACEOF
3950ce62200cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3951b7fb5eacSmrg  # Broken: success on invalid input.
3952b7fb5eacSmrgcontinue
3953b7fb5eacSmrgelse
3954b7fb5eacSmrg  # Passes both tests.
3955b7fb5eacSmrgac_preproc_ok=:
3956b7fb5eacSmrgbreak
3957b7fb5eacSmrgfi
3958ce62200cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3959b7fb5eacSmrg
3960b7fb5eacSmrgdone
3961b7fb5eacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962ce62200cSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3963ce62200cSmrgif $ac_preproc_ok; then :
3964ce62200cSmrg
3965b7fb5eacSmrgelse
3966ce62200cSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968ce62200cSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3969ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3970b7fb5eacSmrgfi
3971b7fb5eacSmrg
3972b7fb5eacSmrgac_ext=c
3973b7fb5eacSmrgac_cpp='$CPP $CPPFLAGS'
3974b7fb5eacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975b7fb5eacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976b7fb5eacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3977b7fb5eacSmrg
3978b7fb5eacSmrg
3979ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3980b7fb5eacSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3981ce62200cSmrgif ${ac_cv_path_GREP+:} false; then :
3982b7fb5eacSmrg  $as_echo_n "(cached) " >&6
3983b7fb5eacSmrgelse
3984b7fb5eacSmrg  if test -z "$GREP"; then
3985b7fb5eacSmrg  ac_path_GREP_found=false
3986b7fb5eacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3987b7fb5eacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988b7fb5eacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989b7fb5eacSmrgdo
3990b7fb5eacSmrg  IFS=$as_save_IFS
3991b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
3992ce62200cSmrg    for ac_prog in grep ggrep; do
3993b7fb5eacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3994b7fb5eacSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995b7fb5eacSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996b7fb5eacSmrg# Check for GNU ac_path_GREP and select it if it is found.
3997b7fb5eacSmrg  # Check for GNU $ac_path_GREP
3998b7fb5eacSmrgcase `"$ac_path_GREP" --version 2>&1` in
3999b7fb5eacSmrg*GNU*)
4000b7fb5eacSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001b7fb5eacSmrg*)
4002b7fb5eacSmrg  ac_count=0
4003b7fb5eacSmrg  $as_echo_n 0123456789 >"conftest.in"
4004b7fb5eacSmrg  while :
4005b7fb5eacSmrg  do
4006b7fb5eacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4007b7fb5eacSmrg    mv "conftest.tmp" "conftest.in"
4008b7fb5eacSmrg    cp "conftest.in" "conftest.nl"
4009b7fb5eacSmrg    $as_echo 'GREP' >> "conftest.nl"
4010b7fb5eacSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011b7fb5eacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012ce62200cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4013b7fb5eacSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014b7fb5eacSmrg      # Best one so far, save it but keep looking for a better one
4015b7fb5eacSmrg      ac_cv_path_GREP="$ac_path_GREP"
4016b7fb5eacSmrg      ac_path_GREP_max=$ac_count
4017b7fb5eacSmrg    fi
4018b7fb5eacSmrg    # 10*(2^10) chars as input seems more than enough
4019b7fb5eacSmrg    test $ac_count -gt 10 && break
4020b7fb5eacSmrg  done
4021b7fb5eacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022b7fb5eacSmrgesac
4023b7fb5eacSmrg
4024b7fb5eacSmrg      $ac_path_GREP_found && break 3
4025b7fb5eacSmrg    done
4026b7fb5eacSmrg  done
4027ce62200cSmrg  done
4028b7fb5eacSmrgIFS=$as_save_IFS
4029b7fb5eacSmrg  if test -z "$ac_cv_path_GREP"; then
4030ce62200cSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4031b7fb5eacSmrg  fi
4032b7fb5eacSmrgelse
4033b7fb5eacSmrg  ac_cv_path_GREP=$GREP
4034b7fb5eacSmrgfi
4035b7fb5eacSmrg
4036b7fb5eacSmrgfi
4037ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4038b7fb5eacSmrg$as_echo "$ac_cv_path_GREP" >&6; }
4039b7fb5eacSmrg GREP="$ac_cv_path_GREP"
4040b7fb5eacSmrg
4041b7fb5eacSmrg
4042ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4043b7fb5eacSmrg$as_echo_n "checking for egrep... " >&6; }
4044ce62200cSmrgif ${ac_cv_path_EGREP+:} false; then :
4045b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4046b7fb5eacSmrgelse
4047b7fb5eacSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4048b7fb5eacSmrg   then ac_cv_path_EGREP="$GREP -E"
4049b7fb5eacSmrg   else
4050b7fb5eacSmrg     if test -z "$EGREP"; then
4051b7fb5eacSmrg  ac_path_EGREP_found=false
4052b7fb5eacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4053b7fb5eacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054b7fb5eacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055b7fb5eacSmrgdo
4056b7fb5eacSmrg  IFS=$as_save_IFS
4057b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
4058ce62200cSmrg    for ac_prog in egrep; do
4059b7fb5eacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4060b7fb5eacSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061b7fb5eacSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4062b7fb5eacSmrg# Check for GNU ac_path_EGREP and select it if it is found.
4063b7fb5eacSmrg  # Check for GNU $ac_path_EGREP
4064b7fb5eacSmrgcase `"$ac_path_EGREP" --version 2>&1` in
4065b7fb5eacSmrg*GNU*)
4066b7fb5eacSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067b7fb5eacSmrg*)
4068b7fb5eacSmrg  ac_count=0
4069b7fb5eacSmrg  $as_echo_n 0123456789 >"conftest.in"
4070b7fb5eacSmrg  while :
4071b7fb5eacSmrg  do
4072b7fb5eacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4073b7fb5eacSmrg    mv "conftest.tmp" "conftest.in"
4074b7fb5eacSmrg    cp "conftest.in" "conftest.nl"
4075b7fb5eacSmrg    $as_echo 'EGREP' >> "conftest.nl"
4076b7fb5eacSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077b7fb5eacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078ce62200cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4079b7fb5eacSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080b7fb5eacSmrg      # Best one so far, save it but keep looking for a better one
4081b7fb5eacSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
4082b7fb5eacSmrg      ac_path_EGREP_max=$ac_count
4083b7fb5eacSmrg    fi
4084b7fb5eacSmrg    # 10*(2^10) chars as input seems more than enough
4085b7fb5eacSmrg    test $ac_count -gt 10 && break
4086b7fb5eacSmrg  done
4087b7fb5eacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088b7fb5eacSmrgesac
4089b7fb5eacSmrg
4090b7fb5eacSmrg      $ac_path_EGREP_found && break 3
4091b7fb5eacSmrg    done
4092b7fb5eacSmrg  done
4093ce62200cSmrg  done
4094b7fb5eacSmrgIFS=$as_save_IFS
4095b7fb5eacSmrg  if test -z "$ac_cv_path_EGREP"; then
4096ce62200cSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4097b7fb5eacSmrg  fi
4098b7fb5eacSmrgelse
4099b7fb5eacSmrg  ac_cv_path_EGREP=$EGREP
4100b7fb5eacSmrgfi
4101b7fb5eacSmrg
4102b7fb5eacSmrg   fi
4103b7fb5eacSmrgfi
4104ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4105b7fb5eacSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
4106b7fb5eacSmrg EGREP="$ac_cv_path_EGREP"
4107b7fb5eacSmrg
4108b7fb5eacSmrg
4109ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4110b7fb5eacSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
4111ce62200cSmrgif ${ac_cv_header_stdc+:} false; then :
4112b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4113b7fb5eacSmrgelse
4114ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115b7fb5eacSmrg/* end confdefs.h.  */
4116b7fb5eacSmrg#include <stdlib.h>
4117b7fb5eacSmrg#include <stdarg.h>
4118b7fb5eacSmrg#include <string.h>
4119b7fb5eacSmrg#include <float.h>
4120b7fb5eacSmrg
4121b7fb5eacSmrgint
4122b7fb5eacSmrgmain ()
4123b7fb5eacSmrg{
4124b7fb5eacSmrg
4125b7fb5eacSmrg  ;
4126b7fb5eacSmrg  return 0;
4127b7fb5eacSmrg}
4128b7fb5eacSmrg_ACEOF
4129ce62200cSmrgif ac_fn_c_try_compile "$LINENO"; then :
4130b7fb5eacSmrg  ac_cv_header_stdc=yes
4131b7fb5eacSmrgelse
4132ce62200cSmrg  ac_cv_header_stdc=no
4133b7fb5eacSmrgfi
4134b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135b7fb5eacSmrg
4136b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4137b7fb5eacSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4138ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139b7fb5eacSmrg/* end confdefs.h.  */
4140b7fb5eacSmrg#include <string.h>
4141b7fb5eacSmrg
4142b7fb5eacSmrg_ACEOF
4143b7fb5eacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144ce62200cSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4145ce62200cSmrg
4146b7fb5eacSmrgelse
4147b7fb5eacSmrg  ac_cv_header_stdc=no
4148b7fb5eacSmrgfi
4149b7fb5eacSmrgrm -f conftest*
4150b7fb5eacSmrg
4151b7fb5eacSmrgfi
4152b7fb5eacSmrg
4153b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4154b7fb5eacSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4155ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156b7fb5eacSmrg/* end confdefs.h.  */
4157b7fb5eacSmrg#include <stdlib.h>
4158b7fb5eacSmrg
4159b7fb5eacSmrg_ACEOF
4160b7fb5eacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4161ce62200cSmrg  $EGREP "free" >/dev/null 2>&1; then :
4162ce62200cSmrg
4163b7fb5eacSmrgelse
4164b7fb5eacSmrg  ac_cv_header_stdc=no
4165b7fb5eacSmrgfi
4166b7fb5eacSmrgrm -f conftest*
4167b7fb5eacSmrg
4168b7fb5eacSmrgfi
4169b7fb5eacSmrg
4170b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4171b7fb5eacSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4172ce62200cSmrg  if test "$cross_compiling" = yes; then :
4173b7fb5eacSmrg  :
4174b7fb5eacSmrgelse
4175ce62200cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176b7fb5eacSmrg/* end confdefs.h.  */
4177b7fb5eacSmrg#include <ctype.h>
4178b7fb5eacSmrg#include <stdlib.h>
4179b7fb5eacSmrg#if ((' ' & 0x0FF) == 0x020)
4180b7fb5eacSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4181b7fb5eacSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4182b7fb5eacSmrg#else
4183b7fb5eacSmrg# define ISLOWER(c) \
4184b7fb5eacSmrg		   (('a' <= (c) && (c) <= 'i') \
4185b7fb5eacSmrg		     || ('j' <= (c) && (c) <= 'r') \
4186b7fb5eacSmrg		     || ('s' <= (c) && (c) <= 'z'))
4187b7fb5eacSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4188b7fb5eacSmrg#endif
4189b7fb5eacSmrg
4190b7fb5eacSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4191b7fb5eacSmrgint
4192b7fb5eacSmrgmain ()
4193b7fb5eacSmrg{
4194b7fb5eacSmrg  int i;
4195b7fb5eacSmrg  for (i = 0; i < 256; i++)
4196b7fb5eacSmrg    if (XOR (islower (i), ISLOWER (i))
4197b7fb5eacSmrg	|| toupper (i) != TOUPPER (i))
4198b7fb5eacSmrg      return 2;
4199b7fb5eacSmrg  return 0;
4200b7fb5eacSmrg}
4201b7fb5eacSmrg_ACEOF
4202ce62200cSmrgif ac_fn_c_try_run "$LINENO"; then :
4203b7fb5eacSmrg
4204ce62200cSmrgelse
4205ce62200cSmrg  ac_cv_header_stdc=no
4206b7fb5eacSmrgfi
4207ce62200cSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4208ce62200cSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4209b7fb5eacSmrgfi
4210b7fb5eacSmrg
4211b7fb5eacSmrgfi
4212b7fb5eacSmrgfi
4213ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4214b7fb5eacSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4215b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4216b7fb5eacSmrg
4217ce62200cSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4218b7fb5eacSmrg
4219b7fb5eacSmrgfi
4220b7fb5eacSmrg
4221b7fb5eacSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4222b7fb5eacSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4223b7fb5eacSmrg		  inttypes.h stdint.h unistd.h
4224ce62200cSmrgdo :
4225ce62200cSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4226ce62200cSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4227ce62200cSmrg"
4228ce62200cSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4229b7fb5eacSmrg  cat >>confdefs.h <<_ACEOF
4230b7fb5eacSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4231b7fb5eacSmrg_ACEOF
4232b7fb5eacSmrg
4233b7fb5eacSmrgfi
4234b7fb5eacSmrg
4235b7fb5eacSmrgdone
4236b7fb5eacSmrg
4237b7fb5eacSmrg
4238ce62200cSmrg
4239ce62200cSmrg
4240ce62200cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4241ce62200cSmrg	if test -n "$ac_tool_prefix"; then
4242ce62200cSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4243ce62200cSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4244ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245ce62200cSmrg$as_echo_n "checking for $ac_word... " >&6; }
4246ce62200cSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4247b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4248b7fb5eacSmrgelse
4249ce62200cSmrg  case $PKG_CONFIG in
4250ce62200cSmrg  [\\/]* | ?:[\\/]*)
4251ce62200cSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4252ce62200cSmrg  ;;
4253ce62200cSmrg  *)
4254ce62200cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255ce62200cSmrgfor as_dir in $PATH
4256b7fb5eacSmrgdo
4257ce62200cSmrg  IFS=$as_save_IFS
4258ce62200cSmrg  test -z "$as_dir" && as_dir=.
4259ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4260ce62200cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261ce62200cSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4262ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263ce62200cSmrg    break 2
4264ce62200cSmrg  fi
4265ce62200cSmrgdone
4266ce62200cSmrg  done
4267ce62200cSmrgIFS=$as_save_IFS
4268ce62200cSmrg
4269ce62200cSmrg  ;;
4270b7fb5eacSmrgesac
4271ce62200cSmrgfi
4272ce62200cSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4273ce62200cSmrgif test -n "$PKG_CONFIG"; then
4274ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4275ce62200cSmrg$as_echo "$PKG_CONFIG" >&6; }
4276b7fb5eacSmrgelse
4277ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278ce62200cSmrg$as_echo "no" >&6; }
4279b7fb5eacSmrgfi
4280b7fb5eacSmrg
4281b7fb5eacSmrg
4282b7fb5eacSmrgfi
4283ce62200cSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4284ce62200cSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4285ce62200cSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4286ce62200cSmrgset dummy pkg-config; ac_word=$2
4287ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288ce62200cSmrg$as_echo_n "checking for $ac_word... " >&6; }
4289ce62200cSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4290ce62200cSmrg  $as_echo_n "(cached) " >&6
4291ce62200cSmrgelse
4292ce62200cSmrg  case $ac_pt_PKG_CONFIG in
4293ce62200cSmrg  [\\/]* | ?:[\\/]*)
4294ce62200cSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4295ce62200cSmrg  ;;
4296b7fb5eacSmrg  *)
4297ce62200cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298ce62200cSmrgfor as_dir in $PATH
4299ce62200cSmrgdo
4300ce62200cSmrg  IFS=$as_save_IFS
4301ce62200cSmrg  test -z "$as_dir" && as_dir=.
4302ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4303ce62200cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304ce62200cSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4305ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306ce62200cSmrg    break 2
4307ce62200cSmrg  fi
4308ce62200cSmrgdone
4309ce62200cSmrg  done
4310ce62200cSmrgIFS=$as_save_IFS
4311ce62200cSmrg
4312ce62200cSmrg  ;;
4313b7fb5eacSmrgesac
4314ce62200cSmrgfi
4315ce62200cSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4316ce62200cSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4317ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4318ce62200cSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4319ce62200cSmrgelse
4320ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321ce62200cSmrg$as_echo "no" >&6; }
4322ce62200cSmrgfi
4323b7fb5eacSmrg
4324ce62200cSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4325ce62200cSmrg    PKG_CONFIG=""
4326ce62200cSmrg  else
4327ce62200cSmrg    case $cross_compiling:$ac_tool_warned in
4328ce62200cSmrgyes:)
4329ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4330ce62200cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4331ce62200cSmrgac_tool_warned=yes ;;
4332ce62200cSmrgesac
4333ce62200cSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4334ce62200cSmrg  fi
4335ce62200cSmrgelse
4336ce62200cSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4337ce62200cSmrgfi
4338b7fb5eacSmrg
4339ce62200cSmrgfi
4340ce62200cSmrgif test -n "$PKG_CONFIG"; then
4341ce62200cSmrg	_pkg_min_version=0.9.0
4342ce62200cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4343ce62200cSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4344ce62200cSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4345ce62200cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4346ce62200cSmrg$as_echo "yes" >&6; }
4347ce62200cSmrg	else
4348ce62200cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349ce62200cSmrg$as_echo "no" >&6; }
4350ce62200cSmrg		PKG_CONFIG=""
4351ce62200cSmrg	fi
4352b7fb5eacSmrg
4353ce62200cSmrgfi
4354b7fb5eacSmrg# Make sure we can run config.sub.
4355b7fb5eacSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4356ce62200cSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4357b7fb5eacSmrg
4358ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4359b7fb5eacSmrg$as_echo_n "checking build system type... " >&6; }
4360ce62200cSmrgif ${ac_cv_build+:} false; then :
4361b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4362b7fb5eacSmrgelse
4363b7fb5eacSmrg  ac_build_alias=$build_alias
4364b7fb5eacSmrgtest "x$ac_build_alias" = x &&
4365b7fb5eacSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4366b7fb5eacSmrgtest "x$ac_build_alias" = x &&
4367ce62200cSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4368b7fb5eacSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4369ce62200cSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4370b7fb5eacSmrg
4371b7fb5eacSmrgfi
4372ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4373b7fb5eacSmrg$as_echo "$ac_cv_build" >&6; }
4374b7fb5eacSmrgcase $ac_cv_build in
4375b7fb5eacSmrg*-*-*) ;;
4376ce62200cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4377b7fb5eacSmrgesac
4378b7fb5eacSmrgbuild=$ac_cv_build
4379b7fb5eacSmrgac_save_IFS=$IFS; IFS='-'
4380b7fb5eacSmrgset x $ac_cv_build
4381b7fb5eacSmrgshift
4382b7fb5eacSmrgbuild_cpu=$1
4383b7fb5eacSmrgbuild_vendor=$2
4384b7fb5eacSmrgshift; shift
4385b7fb5eacSmrg# Remember, the first character of IFS is used to create $*,
4386b7fb5eacSmrg# except with old shells:
4387b7fb5eacSmrgbuild_os=$*
4388b7fb5eacSmrgIFS=$ac_save_IFS
4389b7fb5eacSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4390b7fb5eacSmrg
4391b7fb5eacSmrg
4392ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4393b7fb5eacSmrg$as_echo_n "checking host system type... " >&6; }
4394ce62200cSmrgif ${ac_cv_host+:} false; then :
4395b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4396b7fb5eacSmrgelse
4397b7fb5eacSmrg  if test "x$host_alias" = x; then
4398b7fb5eacSmrg  ac_cv_host=$ac_cv_build
4399b7fb5eacSmrgelse
4400b7fb5eacSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4401ce62200cSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4402b7fb5eacSmrgfi
4403b7fb5eacSmrg
4404b7fb5eacSmrgfi
4405ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4406b7fb5eacSmrg$as_echo "$ac_cv_host" >&6; }
4407b7fb5eacSmrgcase $ac_cv_host in
4408b7fb5eacSmrg*-*-*) ;;
4409ce62200cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4410b7fb5eacSmrgesac
4411b7fb5eacSmrghost=$ac_cv_host
4412b7fb5eacSmrgac_save_IFS=$IFS; IFS='-'
4413b7fb5eacSmrgset x $ac_cv_host
4414b7fb5eacSmrgshift
4415b7fb5eacSmrghost_cpu=$1
4416b7fb5eacSmrghost_vendor=$2
4417b7fb5eacSmrgshift; shift
4418b7fb5eacSmrg# Remember, the first character of IFS is used to create $*,
4419b7fb5eacSmrg# except with old shells:
4420b7fb5eacSmrghost_os=$*
4421b7fb5eacSmrgIFS=$ac_save_IFS
4422b7fb5eacSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4423b7fb5eacSmrg
4424b7fb5eacSmrg
4425ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4426ce62200cSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4427ce62200cSmrgif ${ac_cv_path_SED+:} false; then :
4428ce62200cSmrg  $as_echo_n "(cached) " >&6
4429ce62200cSmrgelse
4430ce62200cSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4431ce62200cSmrg     for ac_i in 1 2 3 4 5 6 7; do
4432ce62200cSmrg       ac_script="$ac_script$as_nl$ac_script"
4433ce62200cSmrg     done
4434ce62200cSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4435ce62200cSmrg     { ac_script=; unset ac_script;}
4436ce62200cSmrg     if test -z "$SED"; then
4437ce62200cSmrg  ac_path_SED_found=false
4438ce62200cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4439ce62200cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440ce62200cSmrgfor as_dir in $PATH
4441ce62200cSmrgdo
4442ce62200cSmrg  IFS=$as_save_IFS
4443ce62200cSmrg  test -z "$as_dir" && as_dir=.
4444ce62200cSmrg    for ac_prog in sed gsed; do
4445ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4446ce62200cSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4447ce62200cSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4448ce62200cSmrg# Check for GNU ac_path_SED and select it if it is found.
4449ce62200cSmrg  # Check for GNU $ac_path_SED
4450ce62200cSmrgcase `"$ac_path_SED" --version 2>&1` in
4451ce62200cSmrg*GNU*)
4452ce62200cSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4453ce62200cSmrg*)
4454ce62200cSmrg  ac_count=0
4455ce62200cSmrg  $as_echo_n 0123456789 >"conftest.in"
4456ce62200cSmrg  while :
4457ce62200cSmrg  do
4458ce62200cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4459ce62200cSmrg    mv "conftest.tmp" "conftest.in"
4460ce62200cSmrg    cp "conftest.in" "conftest.nl"
4461ce62200cSmrg    $as_echo '' >> "conftest.nl"
4462ce62200cSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463ce62200cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464ce62200cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4465ce62200cSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4466ce62200cSmrg      # Best one so far, save it but keep looking for a better one
4467ce62200cSmrg      ac_cv_path_SED="$ac_path_SED"
4468ce62200cSmrg      ac_path_SED_max=$ac_count
4469ce62200cSmrg    fi
4470ce62200cSmrg    # 10*(2^10) chars as input seems more than enough
4471ce62200cSmrg    test $ac_count -gt 10 && break
4472ce62200cSmrg  done
4473ce62200cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474ce62200cSmrgesac
4475ce62200cSmrg
4476ce62200cSmrg      $ac_path_SED_found && break 3
4477ce62200cSmrg    done
4478ce62200cSmrg  done
4479ce62200cSmrg  done
4480ce62200cSmrgIFS=$as_save_IFS
4481ce62200cSmrg  if test -z "$ac_cv_path_SED"; then
4482ce62200cSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4483ce62200cSmrg  fi
4484ce62200cSmrgelse
4485ce62200cSmrg  ac_cv_path_SED=$SED
4486ce62200cSmrgfi
4487ce62200cSmrg
4488ce62200cSmrgfi
4489ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4490ce62200cSmrg$as_echo "$ac_cv_path_SED" >&6; }
4491ce62200cSmrg SED="$ac_cv_path_SED"
4492ce62200cSmrg  rm -f conftest.sed
4493ce62200cSmrg
4494ce62200cSmrg
4495b7fb5eacSmrg
4496b7fb5eacSmrg
4497b7fb5eacSmrg
4498b7fb5eacSmrgif  test "x$GCC" = xyes ; then
4499b7fb5eacSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4500b7fb5eacSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4501ce62200cSmrg-Wbad-function-cast -Wformat=2"
4502b7fb5eacSmrg    case `$CC -dumpversion` in
4503b7fb5eacSmrg    3.4.* | 4.*)
4504b7fb5eacSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4505b7fb5eacSmrg	;;
4506b7fb5eacSmrg    esac
4507b7fb5eacSmrgelse
4508ce62200cSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4509ce62200cSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4510b7fb5eacSmrg  SUNCC="yes"
4511b7fb5eacSmrgelse
4512b7fb5eacSmrg  SUNCC="no"
4513b7fb5eacSmrgfi
4514b7fb5eacSmrg
4515b7fb5eacSmrg    if test "x$SUNCC" = "xyes"; then
4516b7fb5eacSmrg	CWARNFLAGS="-v"
4517b7fb5eacSmrg    fi
4518b7fb5eacSmrgfi
4519b7fb5eacSmrg
4520b7fb5eacSmrg
4521b7fb5eacSmrg
4522ce62200cSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4523b7fb5eacSmrg
4524b7fb5eacSmrg
4525b7fb5eacSmrg
4526ce62200cSmrg# Check whether --enable-strict-compilation was given.
4527ce62200cSmrgif test "${enable_strict_compilation+set}" = set; then :
4528ce62200cSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4529b7fb5eacSmrgelse
4530ce62200cSmrg  STRICT_COMPILE=no
4531b7fb5eacSmrgfi
4532b7fb5eacSmrg
4533ce62200cSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4534ce62200cSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4535ce62200cSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4536ce62200cSmrg  SUNCC="yes"
4537b7fb5eacSmrgelse
4538ce62200cSmrg  SUNCC="no"
4539b7fb5eacSmrgfi
4540b7fb5eacSmrg
4541ce62200cSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4542ce62200cSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4543b7fb5eacSmrg  INTELCC="yes"
4544b7fb5eacSmrgelse
4545b7fb5eacSmrg  INTELCC="no"
4546b7fb5eacSmrgfi
4547b7fb5eacSmrg
4548b7fb5eacSmrg	if test "x$GCC" = xyes ; then
4549b7fb5eacSmrg		STRICT_CFLAGS="-pedantic -Werror"
4550b7fb5eacSmrg	elif test "x$SUNCC" = "xyes"; then
4551b7fb5eacSmrg		STRICT_CFLAGS="-errwarn"
4552b7fb5eacSmrg    elif test "x$INTELCC" = "xyes"; then
4553b7fb5eacSmrg		STRICT_CFLAGS="-Werror"
4554b7fb5eacSmrg	fi
4555b7fb5eacSmrgfi
4556b7fb5eacSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4557b7fb5eacSmrg
4558b7fb5eacSmrg
4559b7fb5eacSmrg
4560b7fb5eacSmrg
4561b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4562b7fb5eacSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4563b7fb5eacSmrg_ACEOF
4564b7fb5eacSmrg
4565b7fb5eacSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4566b7fb5eacSmrg	if test "x$PVM" = "x"; then
4567b7fb5eacSmrg		PVM="0"
4568b7fb5eacSmrg	fi
4569b7fb5eacSmrg
4570b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4571b7fb5eacSmrg#define PACKAGE_VERSION_MINOR $PVM
4572b7fb5eacSmrg_ACEOF
4573b7fb5eacSmrg
4574b7fb5eacSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4575b7fb5eacSmrg	if test "x$PVP" = "x"; then
4576b7fb5eacSmrg		PVP="0"
4577b7fb5eacSmrg	fi
4578b7fb5eacSmrg
4579b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4580b7fb5eacSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4581b7fb5eacSmrg_ACEOF
4582b7fb5eacSmrg
4583b7fb5eacSmrg
4584b7fb5eacSmrg
4585ce62200cSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4586ce62200cSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4587ce62200cSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4588b7fb5eacSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4589b7fb5eacSmrg
4590ce62200cSmrg
4591ce62200cSmrg
4592ce62200cSmrg
4593ce62200cSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4594ce62200cSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4595ce62200cSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4596ce62200cSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4597ce62200cSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4598ce62200cSmrg
4599b7fb5eacSmrg
4600b7fb5eacSmrg
4601b7fb5eacSmrg
4602b7fb5eacSmrg
4603b7fb5eacSmrg
4604b7fb5eacSmrgif test x$APP_MAN_SUFFIX = x    ; then
4605b7fb5eacSmrg    APP_MAN_SUFFIX=1
4606b7fb5eacSmrgfi
4607b7fb5eacSmrgif test x$APP_MAN_DIR = x    ; then
4608b7fb5eacSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4609b7fb5eacSmrgfi
4610b7fb5eacSmrg
4611b7fb5eacSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4612b7fb5eacSmrg    LIB_MAN_SUFFIX=3
4613b7fb5eacSmrgfi
4614b7fb5eacSmrgif test x$LIB_MAN_DIR = x    ; then
4615b7fb5eacSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4616b7fb5eacSmrgfi
4617b7fb5eacSmrg
4618b7fb5eacSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4619b7fb5eacSmrg    case $host_os in
4620b7fb5eacSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4621b7fb5eacSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4622b7fb5eacSmrg    esac
4623b7fb5eacSmrgfi
4624b7fb5eacSmrgif test x$FILE_MAN_DIR = x    ; then
4625b7fb5eacSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4626b7fb5eacSmrgfi
4627b7fb5eacSmrg
4628b7fb5eacSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4629b7fb5eacSmrg    case $host_os in
4630b7fb5eacSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4631b7fb5eacSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4632b7fb5eacSmrg    esac
4633b7fb5eacSmrgfi
4634b7fb5eacSmrgif test x$MISC_MAN_DIR = x    ; then
4635b7fb5eacSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4636b7fb5eacSmrgfi
4637b7fb5eacSmrg
4638b7fb5eacSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4639b7fb5eacSmrg    case $host_os in
4640b7fb5eacSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4641b7fb5eacSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4642b7fb5eacSmrg    esac
4643b7fb5eacSmrgfi
4644b7fb5eacSmrgif test x$DRIVER_MAN_DIR = x    ; then
4645b7fb5eacSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4646b7fb5eacSmrgfi
4647b7fb5eacSmrg
4648b7fb5eacSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4649b7fb5eacSmrg    case $host_os in
4650b7fb5eacSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4651b7fb5eacSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4652b7fb5eacSmrg    esac
4653b7fb5eacSmrgfi
4654b7fb5eacSmrgif test x$ADMIN_MAN_DIR = x    ; then
4655b7fb5eacSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4656b7fb5eacSmrgfi
4657b7fb5eacSmrg
4658b7fb5eacSmrg
4659b7fb5eacSmrg
4660b7fb5eacSmrg
4661b7fb5eacSmrg
4662b7fb5eacSmrg
4663b7fb5eacSmrg
4664b7fb5eacSmrg
4665b7fb5eacSmrg
4666b7fb5eacSmrg
4667b7fb5eacSmrg
4668b7fb5eacSmrg
4669b7fb5eacSmrg
4670b7fb5eacSmrg
4671b7fb5eacSmrg
4672ce62200cSmrgXORG_MAN_PAGE="X Version 11"
4673b7fb5eacSmrg
4674ce62200cSmrgMAN_SUBSTS="\
4675ce62200cSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4676ce62200cSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4677ce62200cSmrg	-e 's|__xservername__|Xorg|g' \
4678ce62200cSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
4679ce62200cSmrg	-e 's|__projectroot__|\$(prefix)|g' \
4680ce62200cSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4681ce62200cSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4682ce62200cSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4683ce62200cSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4684ce62200cSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4685ce62200cSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4686ce62200cSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4687b7fb5eacSmrg
4688b7fb5eacSmrg
4689b7fb5eacSmrg
4690ce62200cSmrg# Check whether --enable-silent-rules was given.
4691ce62200cSmrgif test "${enable_silent_rules+set}" = set; then :
4692ce62200cSmrg  enableval=$enable_silent_rules;
4693ce62200cSmrgfi
4694b7fb5eacSmrg
4695ce62200cSmrgcase $enable_silent_rules in
4696ce62200cSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4697ce62200cSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4698ce62200cSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4699ce62200cSmrgesac
4700ce62200cSmrgAM_BACKSLASH='\'
4701b7fb5eacSmrg
4702b7fb5eacSmrg
47031a30de1fSmrg
4704ce62200cSmrgac_config_headers="$ac_config_headers config.h"
47051a30de1fSmrg
47061a30de1fSmrg
4707ce62200cSmrgfor ac_func in strncasecmp
4708ce62200cSmrgdo :
4709ce62200cSmrg  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
4710ce62200cSmrgif test "x$ac_cv_func_strncasecmp" = xyes; then :
47111a30de1fSmrg  cat >>confdefs.h <<_ACEOF
4712ce62200cSmrg#define HAVE_STRNCASECMP 1
47131a30de1fSmrg_ACEOF
47141a30de1fSmrg
47151a30de1fSmrgfi
47161a30de1fSmrgdone
47171a30de1fSmrg
47181a30de1fSmrg
47191a30de1fSmrg# Checks for pkg-config packages
47201a30de1fSmrg
4721b7fb5eacSmrgpkg_failed=no
4722ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5
4723b7fb5eacSmrg$as_echo_n "checking for XMODMAP... " >&6; }
4724b7fb5eacSmrg
4725b7fb5eacSmrgif test -n "$XMODMAP_CFLAGS"; then
4726b7fb5eacSmrg    pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
4727b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then
4728b7fb5eacSmrg    if test -n "$PKG_CONFIG" && \
4729ce62200cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4730b7fb5eacSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4731b7fb5eacSmrg  ac_status=$?
4732ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733ce62200cSmrg  test $ac_status = 0; }; then
4734b7fb5eacSmrg  pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
4735b7fb5eacSmrgelse
4736b7fb5eacSmrg  pkg_failed=yes
47371a30de1fSmrgfi
4738b7fb5eacSmrg else
4739b7fb5eacSmrg    pkg_failed=untried
47401a30de1fSmrgfi
4741b7fb5eacSmrgif test -n "$XMODMAP_LIBS"; then
4742b7fb5eacSmrg    pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
4743b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then
4744b7fb5eacSmrg    if test -n "$PKG_CONFIG" && \
4745ce62200cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
4746b7fb5eacSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
4747b7fb5eacSmrg  ac_status=$?
4748ce62200cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749ce62200cSmrg  test $ac_status = 0; }; then
4750b7fb5eacSmrg  pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
4751b7fb5eacSmrgelse
4752b7fb5eacSmrg  pkg_failed=yes
47531a30de1fSmrgfi
4754b7fb5eacSmrg else
4755b7fb5eacSmrg    pkg_failed=untried
47561a30de1fSmrgfi
47571a30de1fSmrg
4758b7fb5eacSmrg
4759b7fb5eacSmrg
4760b7fb5eacSmrgif test $pkg_failed = yes; then
4761b7fb5eacSmrg
4762b7fb5eacSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4763b7fb5eacSmrg        _pkg_short_errors_supported=yes
4764b7fb5eacSmrgelse
4765b7fb5eacSmrg        _pkg_short_errors_supported=no
47661a30de1fSmrgfi
4767b7fb5eacSmrg        if test $_pkg_short_errors_supported = yes; then
4768b7fb5eacSmrg	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
4769b7fb5eacSmrg        else
4770b7fb5eacSmrg	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
4771b7fb5eacSmrg        fi
4772b7fb5eacSmrg	# Put the nasty error message in config.log where it belongs
4773b7fb5eacSmrg	echo "$XMODMAP_PKG_ERRORS" >&5
47741a30de1fSmrg
4775ce62200cSmrg	as_fn_error $? "Package requirements (x11) were not met:
47761a30de1fSmrg
4777b7fb5eacSmrg$XMODMAP_PKG_ERRORS
47781a30de1fSmrg
4779b7fb5eacSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4780b7fb5eacSmrginstalled software in a non-standard prefix.
47811a30de1fSmrg
4782b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
4783b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
4784b7fb5eacSmrgSee the pkg-config man page for more details.
4785ce62200cSmrg" "$LINENO" 5
4786b7fb5eacSmrgelif test $pkg_failed = untried; then
4787ce62200cSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4788b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4789ce62200cSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4790b7fb5eacSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4791b7fb5eacSmrgpath to pkg-config.
47921a30de1fSmrg
4793b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
4794b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
4795b7fb5eacSmrgSee the pkg-config man page for more details.
47961a30de1fSmrg
4797b7fb5eacSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4798ce62200cSmrgSee \`config.log' for more details" "$LINENO" 5; }
4799ce62200cSmrgelse
4800ce62200cSmrg	XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
4801ce62200cSmrg	XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
4802ce62200cSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4803ce62200cSmrg$as_echo "yes" >&6; }
4804ce62200cSmrg	:
4805ce62200cSmrgfi
48061a30de1fSmrg
48071a30de1fSmrg
4808ce62200cSmrg
4809ce62200cSmrg
4810ce62200cSmrg
4811ce62200cSmrg
4812ce62200cSmrg# Check whether --with-lint was given.
4813ce62200cSmrgif test "${with_lint+set}" = set; then :
4814ce62200cSmrg  withval=$with_lint; use_lint=$withval
4815ce62200cSmrgelse
4816ce62200cSmrg  use_lint=no
4817ce62200cSmrgfi
4818ce62200cSmrg
4819ce62200cSmrg
4820ce62200cSmrg# Obtain platform specific info like program name and options
4821ce62200cSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
4822ce62200cSmrgcase $host_os in
4823ce62200cSmrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
4824ce62200cSmrg	lint_name=splint
4825ce62200cSmrg	lint_options="-badflag"
4826ce62200cSmrg	;;
4827ce62200cSmrg  *freebsd* | *netbsd*)
4828ce62200cSmrg	lint_name=lint
4829ce62200cSmrg	lint_options="-u -b"
4830ce62200cSmrg	;;
4831ce62200cSmrg  *solaris*)
4832ce62200cSmrg	lint_name=lint
4833ce62200cSmrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
4834ce62200cSmrg	;;
4835ce62200cSmrgesac
4836ce62200cSmrg
4837ce62200cSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
4838ce62200cSmrgif test "x$use_lint" = x"yes" ; then
4839ce62200cSmrg   # Extract the first word of "$lint_name", so it can be a program name with args.
4840ce62200cSmrgset dummy $lint_name; ac_word=$2
4841ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842ce62200cSmrg$as_echo_n "checking for $ac_word... " >&6; }
4843ce62200cSmrgif ${ac_cv_path_LINT+:} false; then :
4844ce62200cSmrg  $as_echo_n "(cached) " >&6
4845ce62200cSmrgelse
4846ce62200cSmrg  case $LINT in
4847ce62200cSmrg  [\\/]* | ?:[\\/]*)
4848ce62200cSmrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
4849ce62200cSmrg  ;;
4850ce62200cSmrg  *)
4851ce62200cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852ce62200cSmrgfor as_dir in $PATH
4853ce62200cSmrgdo
4854ce62200cSmrg  IFS=$as_save_IFS
4855ce62200cSmrg  test -z "$as_dir" && as_dir=.
4856ce62200cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4857ce62200cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858ce62200cSmrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
4859ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860ce62200cSmrg    break 2
4861ce62200cSmrg  fi
4862ce62200cSmrgdone
4863ce62200cSmrg  done
4864ce62200cSmrgIFS=$as_save_IFS
4865ce62200cSmrg
4866ce62200cSmrg  ;;
4867ce62200cSmrgesac
4868ce62200cSmrgfi
4869ce62200cSmrgLINT=$ac_cv_path_LINT
4870ce62200cSmrgif test -n "$LINT"; then
4871ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4872ce62200cSmrg$as_echo "$LINT" >&6; }
4873b7fb5eacSmrgelse
4874ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875ce62200cSmrg$as_echo "no" >&6; }
4876b7fb5eacSmrgfi
48771a30de1fSmrg
48781a30de1fSmrg
4879ce62200cSmrg   if test "x$LINT" = "x"; then
4880ce62200cSmrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
4881ce62200cSmrg   fi
4882ce62200cSmrgelif test "x$use_lint" = x"no" ; then
4883ce62200cSmrg   if test "x$LINT" != "x"; then
4884ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
4885ce62200cSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
4886ce62200cSmrg   fi
48871a30de1fSmrgelse
4888ce62200cSmrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
48891a30de1fSmrgfi
48901a30de1fSmrg
4891ce62200cSmrg# User supplied flags override default flags
4892ce62200cSmrgif test "x$LINT_FLAGS" != "x"; then
4893ce62200cSmrg   lint_options=$LINT_FLAGS
4894b7fb5eacSmrgfi
48951a30de1fSmrg
4896ce62200cSmrgLINT_FLAGS=$lint_options
48971a30de1fSmrg
4898ce62200cSmrg if test "x$LINT" != x; then
4899b7fb5eacSmrg  LINT_TRUE=
4900b7fb5eacSmrg  LINT_FALSE='#'
4901b7fb5eacSmrgelse
4902b7fb5eacSmrg  LINT_TRUE='#'
4903b7fb5eacSmrg  LINT_FALSE=
4904b7fb5eacSmrgfi
49051a30de1fSmrg
49061a30de1fSmrg
49071a30de1fSmrg
49081a30de1fSmrg
4909ce62200cSmrgac_config_files="$ac_config_files Makefile man/Makefile"
49101a30de1fSmrg
49111a30de1fSmrgcat >confcache <<\_ACEOF
49121a30de1fSmrg# This file is a shell script that caches the results of configure
49131a30de1fSmrg# tests run on this system so they can be shared between configure
49141a30de1fSmrg# scripts and configure runs, see configure's option --config-cache.
49151a30de1fSmrg# It is not useful on other systems.  If it contains results you don't
49161a30de1fSmrg# want to keep, you may remove or edit it.
49171a30de1fSmrg#
49181a30de1fSmrg# config.status only pays attention to the cache file if you give it
49191a30de1fSmrg# the --recheck option to rerun configure.
49201a30de1fSmrg#
49211a30de1fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
49221a30de1fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
49231a30de1fSmrg# following values.
49241a30de1fSmrg
49251a30de1fSmrg_ACEOF
49261a30de1fSmrg
49271a30de1fSmrg# The following way of writing the cache mishandles newlines in values,
49281a30de1fSmrg# but we know of no workaround that is simple, portable, and efficient.
49291a30de1fSmrg# So, we kill variables containing newlines.
49301a30de1fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
49311a30de1fSmrg# and sets the high bit in the cache file unless we assign to the vars.
49321a30de1fSmrg(
49331a30de1fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49341a30de1fSmrg    eval ac_val=\$$ac_var
49351a30de1fSmrg    case $ac_val in #(
49361a30de1fSmrg    *${as_nl}*)
49371a30de1fSmrg      case $ac_var in #(
4938ce62200cSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4939b7fb5eacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49401a30de1fSmrg      esac
49411a30de1fSmrg      case $ac_var in #(
49421a30de1fSmrg      _ | IFS | as_nl) ;; #(
4943b7fb5eacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4944ce62200cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
49451a30de1fSmrg      esac ;;
49461a30de1fSmrg    esac
49471a30de1fSmrg  done
49481a30de1fSmrg
49491a30de1fSmrg  (set) 2>&1 |
49501a30de1fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
49511a30de1fSmrg    *${as_nl}ac_space=\ *)
4952ce62200cSmrg      # `set' does not quote correctly, so add quotes: double-quote
4953ce62200cSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
49541a30de1fSmrg      sed -n \
49551a30de1fSmrg	"s/'/'\\\\''/g;
49561a30de1fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49571a30de1fSmrg      ;; #(
49581a30de1fSmrg    *)
49591a30de1fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
49601a30de1fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49611a30de1fSmrg      ;;
49621a30de1fSmrg    esac |
49631a30de1fSmrg    sort
49641a30de1fSmrg) |
49651a30de1fSmrg  sed '
49661a30de1fSmrg     /^ac_cv_env_/b end
49671a30de1fSmrg     t clear
49681a30de1fSmrg     :clear
49691a30de1fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49701a30de1fSmrg     t end
49711a30de1fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49721a30de1fSmrg     :end' >>confcache
49731a30de1fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49741a30de1fSmrg  if test -w "$cache_file"; then
4975ce62200cSmrg    if test "x$cache_file" != "x/dev/null"; then
4976ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4977b7fb5eacSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
4978ce62200cSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
4979ce62200cSmrg	cat confcache >"$cache_file"
4980ce62200cSmrg      else
4981ce62200cSmrg        case $cache_file in #(
4982ce62200cSmrg        */* | ?:*)
4983ce62200cSmrg	  mv -f confcache "$cache_file"$$ &&
4984ce62200cSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4985ce62200cSmrg        *)
4986ce62200cSmrg	  mv -f confcache "$cache_file" ;;
4987ce62200cSmrg	esac
4988ce62200cSmrg      fi
4989ce62200cSmrg    fi
49901a30de1fSmrg  else
4991ce62200cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4992b7fb5eacSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49931a30de1fSmrg  fi
49941a30de1fSmrgfi
49951a30de1fSmrgrm -f confcache
49961a30de1fSmrg
49971a30de1fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
49981a30de1fSmrg# Let make expand exec_prefix.
49991a30de1fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50001a30de1fSmrg
50011a30de1fSmrgDEFS=-DHAVE_CONFIG_H
50021a30de1fSmrg
50031a30de1fSmrgac_libobjs=
50041a30de1fSmrgac_ltlibobjs=
5005ce62200cSmrgU=
50061a30de1fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50071a30de1fSmrg  # 1. Remove the extension, and $U if already installed.
50081a30de1fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5009b7fb5eacSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
50101a30de1fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50111a30de1fSmrg  #    will be set to the directory where LIBOBJS objects are built.
5012ce62200cSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5013ce62200cSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
50141a30de1fSmrgdone
50151a30de1fSmrgLIBOBJS=$ac_libobjs
50161a30de1fSmrg
50171a30de1fSmrgLTLIBOBJS=$ac_ltlibobjs
50181a30de1fSmrg
50191a30de1fSmrg
5020b7fb5eacSmrg if test -n "$EXEEXT"; then
5021b7fb5eacSmrg  am__EXEEXT_TRUE=
5022b7fb5eacSmrg  am__EXEEXT_FALSE='#'
5023b7fb5eacSmrgelse
5024b7fb5eacSmrg  am__EXEEXT_TRUE='#'
5025b7fb5eacSmrg  am__EXEEXT_FALSE=
5026b7fb5eacSmrgfi
5027b7fb5eacSmrg
50281a30de1fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5029ce62200cSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5030ce62200cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50311a30de1fSmrgfi
50321a30de1fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5033ce62200cSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
5034ce62200cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50351a30de1fSmrgfi
50361a30de1fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5037ce62200cSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5038ce62200cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50391a30de1fSmrgfi
50401a30de1fSmrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
5041ce62200cSmrg  as_fn_error $? "conditional \"LINT\" was never defined.
5042ce62200cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50431a30de1fSmrgfi
50441a30de1fSmrg
5045ce62200cSmrg: "${CONFIG_STATUS=./config.status}"
5046b7fb5eacSmrgac_write_fail=0
50471a30de1fSmrgac_clean_files_save=$ac_clean_files
50481a30de1fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5049ce62200cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5050b7fb5eacSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5051ce62200cSmrgas_write_fail=0
5052ce62200cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50531a30de1fSmrg#! $SHELL
50541a30de1fSmrg# Generated by $as_me.
50551a30de1fSmrg# Run this file to recreate the current configuration.
50561a30de1fSmrg# Compiler output produced by configure, useful for debugging
50571a30de1fSmrg# configure, is in config.log if it exists.
50581a30de1fSmrg
50591a30de1fSmrgdebug=false
50601a30de1fSmrgac_cs_recheck=false
50611a30de1fSmrgac_cs_silent=false
50621a30de1fSmrg
5063ce62200cSmrgSHELL=\${CONFIG_SHELL-$SHELL}
5064ce62200cSmrgexport SHELL
5065ce62200cSmrg_ASEOF
5066ce62200cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5067ce62200cSmrg## -------------------- ##
5068ce62200cSmrg## M4sh Initialization. ##
5069ce62200cSmrg## -------------------- ##
50701a30de1fSmrg
50711a30de1fSmrg# Be more Bourne compatible
50721a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh
5073ce62200cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50741a30de1fSmrg  emulate sh
50751a30de1fSmrg  NULLCMD=:
5076b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50771a30de1fSmrg  # is contrary to our usage.  Disable this feature.
50781a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
50791a30de1fSmrg  setopt NO_GLOB_SUBST
50801a30de1fSmrgelse
5081ce62200cSmrg  case `(set -o) 2>/dev/null` in #(
5082ce62200cSmrg  *posix*) :
5083ce62200cSmrg    set -o posix ;; #(
5084ce62200cSmrg  *) :
5085ce62200cSmrg     ;;
50861a30de1fSmrgesac
50871a30de1fSmrgfi
50881a30de1fSmrg
50891a30de1fSmrg
5090b7fb5eacSmrgas_nl='
5091b7fb5eacSmrg'
5092b7fb5eacSmrgexport as_nl
5093b7fb5eacSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5094b7fb5eacSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5095b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5096b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5097ce62200cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5098ce62200cSmrg# but without wasting forks for bash or zsh.
5099ce62200cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5100ce62200cSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5101ce62200cSmrg  as_echo='print -r --'
5102ce62200cSmrg  as_echo_n='print -rn --'
5103ce62200cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5104b7fb5eacSmrg  as_echo='printf %s\n'
5105b7fb5eacSmrg  as_echo_n='printf %s'
5106b7fb5eacSmrgelse
5107b7fb5eacSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5108b7fb5eacSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5109b7fb5eacSmrg    as_echo_n='/usr/ucb/echo -n'
51101a30de1fSmrg  else
5111b7fb5eacSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5112b7fb5eacSmrg    as_echo_n_body='eval
5113b7fb5eacSmrg      arg=$1;
5114ce62200cSmrg      case $arg in #(
5115b7fb5eacSmrg      *"$as_nl"*)
5116b7fb5eacSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5117b7fb5eacSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5118b7fb5eacSmrg      esac;
5119b7fb5eacSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5120b7fb5eacSmrg    '
5121b7fb5eacSmrg    export as_echo_n_body
5122b7fb5eacSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
51231a30de1fSmrg  fi
5124b7fb5eacSmrg  export as_echo_body
5125b7fb5eacSmrg  as_echo='sh -c $as_echo_body as_echo'
5126b7fb5eacSmrgfi
5127b7fb5eacSmrg
5128b7fb5eacSmrg# The user is always right.
5129b7fb5eacSmrgif test "${PATH_SEPARATOR+set}" != set; then
5130b7fb5eacSmrg  PATH_SEPARATOR=:
5131b7fb5eacSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5132b7fb5eacSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5133b7fb5eacSmrg      PATH_SEPARATOR=';'
5134b7fb5eacSmrg  }
51351a30de1fSmrgfi
51361a30de1fSmrg
51371a30de1fSmrg
51381a30de1fSmrg# IFS
51391a30de1fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
51401a30de1fSmrg# there to prevent editors from complaining about space-tab.
51411a30de1fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
51421a30de1fSmrg# splitting by setting IFS to empty value.)
51431a30de1fSmrgIFS=" ""	$as_nl"
51441a30de1fSmrg
51451a30de1fSmrg# Find who we are.  Look in the path if we contain no directory separator.
5146ce62200cSmrgas_myself=
5147ce62200cSmrgcase $0 in #((
51481a30de1fSmrg  *[\\/]* ) as_myself=$0 ;;
51491a30de1fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51501a30de1fSmrgfor as_dir in $PATH
51511a30de1fSmrgdo
51521a30de1fSmrg  IFS=$as_save_IFS
51531a30de1fSmrg  test -z "$as_dir" && as_dir=.
5154ce62200cSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5155ce62200cSmrg  done
51561a30de1fSmrgIFS=$as_save_IFS
51571a30de1fSmrg
51581a30de1fSmrg     ;;
51591a30de1fSmrgesac
51601a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
51611a30de1fSmrg# in which case we are not to be found in the path.
51621a30de1fSmrgif test "x$as_myself" = x; then
51631a30de1fSmrg  as_myself=$0
51641a30de1fSmrgfi
51651a30de1fSmrgif test ! -f "$as_myself"; then
5166b7fb5eacSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5167ce62200cSmrg  exit 1
51681a30de1fSmrgfi
51691a30de1fSmrg
5170ce62200cSmrg# Unset variables that we do not need and which cause bugs (e.g. in
5171ce62200cSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5172ce62200cSmrg# suppresses any "Segmentation fault" message there.  '((' could
5173ce62200cSmrg# trigger a bug in pdksh 5.2.14.
5174ce62200cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5175ce62200cSmrgdo eval test x\${$as_var+set} = xset \
5176ce62200cSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51771a30de1fSmrgdone
51781a30de1fSmrgPS1='$ '
51791a30de1fSmrgPS2='> '
51801a30de1fSmrgPS4='+ '
51811a30de1fSmrg
51821a30de1fSmrg# NLS nuisances.
5183b7fb5eacSmrgLC_ALL=C
5184b7fb5eacSmrgexport LC_ALL
5185b7fb5eacSmrgLANGUAGE=C
5186b7fb5eacSmrgexport LANGUAGE
51871a30de1fSmrg
5188ce62200cSmrg# CDPATH.
5189ce62200cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5190ce62200cSmrg
5191ce62200cSmrg
5192ce62200cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
5193ce62200cSmrg# ----------------------------------------
5194ce62200cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5195ce62200cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5196ce62200cSmrg# script with STATUS, using 1 if that was 0.
5197ce62200cSmrgas_fn_error ()
5198ce62200cSmrg{
5199ce62200cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
5200ce62200cSmrg  if test "$4"; then
5201ce62200cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5202ce62200cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5203ce62200cSmrg  fi
5204ce62200cSmrg  $as_echo "$as_me: error: $2" >&2
5205ce62200cSmrg  as_fn_exit $as_status
5206ce62200cSmrg} # as_fn_error
5207ce62200cSmrg
5208ce62200cSmrg
5209ce62200cSmrg# as_fn_set_status STATUS
5210ce62200cSmrg# -----------------------
5211ce62200cSmrg# Set $? to STATUS, without forking.
5212ce62200cSmrgas_fn_set_status ()
5213ce62200cSmrg{
5214ce62200cSmrg  return $1
5215ce62200cSmrg} # as_fn_set_status
5216ce62200cSmrg
5217ce62200cSmrg# as_fn_exit STATUS
5218ce62200cSmrg# -----------------
5219ce62200cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5220ce62200cSmrgas_fn_exit ()
5221ce62200cSmrg{
5222ce62200cSmrg  set +e
5223ce62200cSmrg  as_fn_set_status $1
5224ce62200cSmrg  exit $1
5225ce62200cSmrg} # as_fn_exit
5226ce62200cSmrg
5227ce62200cSmrg# as_fn_unset VAR
5228ce62200cSmrg# ---------------
5229ce62200cSmrg# Portably unset VAR.
5230ce62200cSmrgas_fn_unset ()
5231ce62200cSmrg{
5232ce62200cSmrg  { eval $1=; unset $1;}
5233ce62200cSmrg}
5234ce62200cSmrgas_unset=as_fn_unset
5235ce62200cSmrg# as_fn_append VAR VALUE
5236ce62200cSmrg# ----------------------
5237ce62200cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5238ce62200cSmrg# advantage of any shell optimizations that allow amortized linear growth over
5239ce62200cSmrg# repeated appends, instead of the typical quadratic growth present in naive
5240ce62200cSmrg# implementations.
5241ce62200cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5242ce62200cSmrg  eval 'as_fn_append ()
5243ce62200cSmrg  {
5244ce62200cSmrg    eval $1+=\$2
5245ce62200cSmrg  }'
5246ce62200cSmrgelse
5247ce62200cSmrg  as_fn_append ()
5248ce62200cSmrg  {
5249ce62200cSmrg    eval $1=\$$1\$2
5250ce62200cSmrg  }
5251ce62200cSmrgfi # as_fn_append
5252ce62200cSmrg
5253ce62200cSmrg# as_fn_arith ARG...
5254ce62200cSmrg# ------------------
5255ce62200cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5256ce62200cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5257ce62200cSmrg# must be portable across $(()) and expr.
5258ce62200cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5259ce62200cSmrg  eval 'as_fn_arith ()
5260ce62200cSmrg  {
5261ce62200cSmrg    as_val=$(( $* ))
5262ce62200cSmrg  }'
5263ce62200cSmrgelse
5264ce62200cSmrg  as_fn_arith ()
5265ce62200cSmrg  {
5266ce62200cSmrg    as_val=`expr "$@" || test $? -eq 1`
5267ce62200cSmrg  }
5268ce62200cSmrgfi # as_fn_arith
5269ce62200cSmrg
5270ce62200cSmrg
52711a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
52721a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
52731a30de1fSmrg  as_expr=expr
52741a30de1fSmrgelse
52751a30de1fSmrg  as_expr=false
52761a30de1fSmrgfi
52771a30de1fSmrg
52781a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52791a30de1fSmrg  as_basename=basename
52801a30de1fSmrgelse
52811a30de1fSmrg  as_basename=false
52821a30de1fSmrgfi
52831a30de1fSmrg
5284ce62200cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5285ce62200cSmrg  as_dirname=dirname
5286ce62200cSmrgelse
5287ce62200cSmrg  as_dirname=false
5288ce62200cSmrgfi
52891a30de1fSmrg
52901a30de1fSmrgas_me=`$as_basename -- "$0" ||
52911a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52921a30de1fSmrg	 X"$0" : 'X\(//\)$' \| \
52931a30de1fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5294b7fb5eacSmrg$as_echo X/"$0" |
52951a30de1fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
52961a30de1fSmrg	    s//\1/
52971a30de1fSmrg	    q
52981a30de1fSmrg	  }
52991a30de1fSmrg	  /^X\/\(\/\/\)$/{
53001a30de1fSmrg	    s//\1/
53011a30de1fSmrg	    q
53021a30de1fSmrg	  }
53031a30de1fSmrg	  /^X\/\(\/\).*/{
53041a30de1fSmrg	    s//\1/
53051a30de1fSmrg	    q
53061a30de1fSmrg	  }
53071a30de1fSmrg	  s/.*/./; q'`
53081a30de1fSmrg
5309ce62200cSmrg# Avoid depending upon Character Ranges.
5310ce62200cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5311ce62200cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5312ce62200cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5313ce62200cSmrgas_cr_digits='0123456789'
5314ce62200cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
53151a30de1fSmrg
53161a30de1fSmrgECHO_C= ECHO_N= ECHO_T=
5317ce62200cSmrgcase `echo -n x` in #(((((
53181a30de1fSmrg-n*)
5319ce62200cSmrg  case `echo 'xy\c'` in
53201a30de1fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5321ce62200cSmrg  xy)  ECHO_C='\c';;
5322ce62200cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5323ce62200cSmrg       ECHO_T='	';;
53241a30de1fSmrg  esac;;
53251a30de1fSmrg*)
53261a30de1fSmrg  ECHO_N='-n';;
53271a30de1fSmrgesac
53281a30de1fSmrg
53291a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.file
53301a30de1fSmrgif test -d conf$$.dir; then
53311a30de1fSmrg  rm -f conf$$.dir/conf$$.file
53321a30de1fSmrgelse
53331a30de1fSmrg  rm -f conf$$.dir
5334b7fb5eacSmrg  mkdir conf$$.dir 2>/dev/null
5335b7fb5eacSmrgfi
5336b7fb5eacSmrgif (echo >conf$$.file) 2>/dev/null; then
5337b7fb5eacSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5338b7fb5eacSmrg    as_ln_s='ln -s'
5339b7fb5eacSmrg    # ... but there are two gotchas:
5340b7fb5eacSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5341b7fb5eacSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5342b7fb5eacSmrg    # In both cases, we have to default to `cp -p'.
5343b7fb5eacSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5344b7fb5eacSmrg      as_ln_s='cp -p'
5345b7fb5eacSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5346b7fb5eacSmrg    as_ln_s=ln
5347b7fb5eacSmrg  else
53481a30de1fSmrg    as_ln_s='cp -p'
5349b7fb5eacSmrg  fi
53501a30de1fSmrgelse
53511a30de1fSmrg  as_ln_s='cp -p'
53521a30de1fSmrgfi
53531a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53541a30de1fSmrgrmdir conf$$.dir 2>/dev/null
53551a30de1fSmrg
5356ce62200cSmrg
5357ce62200cSmrg# as_fn_mkdir_p
5358ce62200cSmrg# -------------
5359ce62200cSmrg# Create "$as_dir" as a directory, including parents if necessary.
5360ce62200cSmrgas_fn_mkdir_p ()
5361ce62200cSmrg{
5362ce62200cSmrg
5363ce62200cSmrg  case $as_dir in #(
5364ce62200cSmrg  -*) as_dir=./$as_dir;;
5365ce62200cSmrg  esac
5366ce62200cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
5367ce62200cSmrg    as_dirs=
5368ce62200cSmrg    while :; do
5369ce62200cSmrg      case $as_dir in #(
5370ce62200cSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5371ce62200cSmrg      *) as_qdir=$as_dir;;
5372ce62200cSmrg      esac
5373ce62200cSmrg      as_dirs="'$as_qdir' $as_dirs"
5374ce62200cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
5375ce62200cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5376ce62200cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5377ce62200cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
5378ce62200cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5379ce62200cSmrg$as_echo X"$as_dir" |
5380ce62200cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5381ce62200cSmrg	    s//\1/
5382ce62200cSmrg	    q
5383ce62200cSmrg	  }
5384ce62200cSmrg	  /^X\(\/\/\)[^/].*/{
5385ce62200cSmrg	    s//\1/
5386ce62200cSmrg	    q
5387ce62200cSmrg	  }
5388ce62200cSmrg	  /^X\(\/\/\)$/{
5389ce62200cSmrg	    s//\1/
5390ce62200cSmrg	    q
5391ce62200cSmrg	  }
5392ce62200cSmrg	  /^X\(\/\).*/{
5393ce62200cSmrg	    s//\1/
5394ce62200cSmrg	    q
5395ce62200cSmrg	  }
5396ce62200cSmrg	  s/.*/./; q'`
5397ce62200cSmrg      test -d "$as_dir" && break
5398ce62200cSmrg    done
5399ce62200cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5400ce62200cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5401ce62200cSmrg
5402ce62200cSmrg
5403ce62200cSmrg} # as_fn_mkdir_p
54041a30de1fSmrgif mkdir -p . 2>/dev/null; then
5405ce62200cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
54061a30de1fSmrgelse
54071a30de1fSmrg  test -d ./-p && rmdir ./-p
54081a30de1fSmrg  as_mkdir_p=false
54091a30de1fSmrgfi
54101a30de1fSmrg
54111a30de1fSmrgif test -x / >/dev/null 2>&1; then
54121a30de1fSmrg  as_test_x='test -x'
54131a30de1fSmrgelse
54141a30de1fSmrg  if ls -dL / >/dev/null 2>&1; then
54151a30de1fSmrg    as_ls_L_option=L
54161a30de1fSmrg  else
54171a30de1fSmrg    as_ls_L_option=
54181a30de1fSmrg  fi
54191a30de1fSmrg  as_test_x='
54201a30de1fSmrg    eval sh -c '\''
54211a30de1fSmrg      if test -d "$1"; then
5422b7fb5eacSmrg	test -d "$1/.";
54231a30de1fSmrg      else
5424ce62200cSmrg	case $1 in #(
5425b7fb5eacSmrg	-*)set "./$1";;
54261a30de1fSmrg	esac;
5427ce62200cSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
54281a30de1fSmrg	???[sx]*):;;*)false;;esac;fi
54291a30de1fSmrg    '\'' sh
54301a30de1fSmrg  '
54311a30de1fSmrgfi
54321a30de1fSmrgas_executable_p=$as_test_x
54331a30de1fSmrg
54341a30de1fSmrg# Sed expression to map a string onto a valid CPP name.
54351a30de1fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54361a30de1fSmrg
54371a30de1fSmrg# Sed expression to map a string onto a valid variable name.
54381a30de1fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54391a30de1fSmrg
54401a30de1fSmrg
54411a30de1fSmrgexec 6>&1
5442ce62200cSmrg## ----------------------------------- ##
5443ce62200cSmrg## Main body of $CONFIG_STATUS script. ##
5444ce62200cSmrg## ----------------------------------- ##
5445ce62200cSmrg_ASEOF
5446ce62200cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
54471a30de1fSmrg
5448ce62200cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5449ce62200cSmrg# Save the log message, to keep $0 and so on meaningful, and to
54501a30de1fSmrg# report actual input values of CONFIG_FILES etc. instead of their
54511a30de1fSmrg# values after options handling.
54521a30de1fSmrgac_log="
5453ce62200cSmrgThis file was extended by xmodmap $as_me 1.0.5, which was
5454ce62200cSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
54551a30de1fSmrg
54561a30de1fSmrg  CONFIG_FILES    = $CONFIG_FILES
54571a30de1fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
54581a30de1fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
54591a30de1fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
54601a30de1fSmrg  $ $0 $@
54611a30de1fSmrg
54621a30de1fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
54631a30de1fSmrg"
54641a30de1fSmrg
54651a30de1fSmrg_ACEOF
54661a30de1fSmrg
5467b7fb5eacSmrgcase $ac_config_files in *"
5468b7fb5eacSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5469b7fb5eacSmrgesac
5470b7fb5eacSmrg
5471b7fb5eacSmrgcase $ac_config_headers in *"
5472b7fb5eacSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5473b7fb5eacSmrgesac
5474b7fb5eacSmrg
5475b7fb5eacSmrg
5476b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54771a30de1fSmrg# Files that config.status was made for.
54781a30de1fSmrgconfig_files="$ac_config_files"
54791a30de1fSmrgconfig_headers="$ac_config_headers"
54801a30de1fSmrgconfig_commands="$ac_config_commands"
54811a30de1fSmrg
54821a30de1fSmrg_ACEOF
54831a30de1fSmrg
5484b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54851a30de1fSmrgac_cs_usage="\
5486ce62200cSmrg\`$as_me' instantiates files and other configuration actions
5487ce62200cSmrgfrom templates according to the current configuration.  Unless the files
5488ce62200cSmrgand actions are specified as TAGs, all are instantiated by default.
54891a30de1fSmrg
5490ce62200cSmrgUsage: $0 [OPTION]... [TAG]...
54911a30de1fSmrg
54921a30de1fSmrg  -h, --help       print this help, then exit
54931a30de1fSmrg  -V, --version    print version number and configuration settings, then exit
5494ce62200cSmrg      --config     print configuration, then exit
5495b7fb5eacSmrg  -q, --quiet, --silent
5496b7fb5eacSmrg                   do not print progress messages
54971a30de1fSmrg  -d, --debug      don't remove temporary files
54981a30de1fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
5499b7fb5eacSmrg      --file=FILE[:TEMPLATE]
5500b7fb5eacSmrg                   instantiate the configuration file FILE
5501b7fb5eacSmrg      --header=FILE[:TEMPLATE]
5502b7fb5eacSmrg                   instantiate the configuration header FILE
55031a30de1fSmrg
55041a30de1fSmrgConfiguration files:
55051a30de1fSmrg$config_files
55061a30de1fSmrg
55071a30de1fSmrgConfiguration headers:
55081a30de1fSmrg$config_headers
55091a30de1fSmrg
55101a30de1fSmrgConfiguration commands:
55111a30de1fSmrg$config_commands
55121a30de1fSmrg
5513ce62200cSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
55141a30de1fSmrg
55151a30de1fSmrg_ACEOF
5516b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5517ce62200cSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
55181a30de1fSmrgac_cs_version="\\
5519ce62200cSmrgxmodmap config.status 1.0.5
5520ce62200cSmrgconfigured by $0, generated by GNU Autoconf 2.68,
5521ce62200cSmrg  with options \\"\$ac_cs_config\\"
55221a30de1fSmrg
5523ce62200cSmrgCopyright (C) 2010 Free Software Foundation, Inc.
55241a30de1fSmrgThis config.status script is free software; the Free Software Foundation
55251a30de1fSmrggives unlimited permission to copy, distribute and modify it."
55261a30de1fSmrg
55271a30de1fSmrgac_pwd='$ac_pwd'
55281a30de1fSmrgsrcdir='$srcdir'
55291a30de1fSmrgINSTALL='$INSTALL'
55301a30de1fSmrgMKDIR_P='$MKDIR_P'
5531b7fb5eacSmrgAWK='$AWK'
5532b7fb5eacSmrgtest -n "\$AWK" || AWK=awk
55331a30de1fSmrg_ACEOF
55341a30de1fSmrg
5535b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5536b7fb5eacSmrg# The default lists apply if the user does not specify any file.
55371a30de1fSmrgac_need_defaults=:
55381a30de1fSmrgwhile test $# != 0
55391a30de1fSmrgdo
55401a30de1fSmrg  case $1 in
5541ce62200cSmrg  --*=?*)
55421a30de1fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
55431a30de1fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55441a30de1fSmrg    ac_shift=:
55451a30de1fSmrg    ;;
5546ce62200cSmrg  --*=)
5547ce62200cSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5548ce62200cSmrg    ac_optarg=
5549ce62200cSmrg    ac_shift=:
5550ce62200cSmrg    ;;
55511a30de1fSmrg  *)
55521a30de1fSmrg    ac_option=$1
55531a30de1fSmrg    ac_optarg=$2
55541a30de1fSmrg    ac_shift=shift
55551a30de1fSmrg    ;;
55561a30de1fSmrg  esac
55571a30de1fSmrg
55581a30de1fSmrg  case $ac_option in
55591a30de1fSmrg  # Handling of the options.
55601a30de1fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55611a30de1fSmrg    ac_cs_recheck=: ;;
55621a30de1fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5563b7fb5eacSmrg    $as_echo "$ac_cs_version"; exit ;;
5564ce62200cSmrg  --config | --confi | --conf | --con | --co | --c )
5565ce62200cSmrg    $as_echo "$ac_cs_config"; exit ;;
55661a30de1fSmrg  --debug | --debu | --deb | --de | --d | -d )
55671a30de1fSmrg    debug=: ;;
55681a30de1fSmrg  --file | --fil | --fi | --f )
55691a30de1fSmrg    $ac_shift
5570b7fb5eacSmrg    case $ac_optarg in
5571b7fb5eacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5572ce62200cSmrg    '') as_fn_error $? "missing file argument" ;;
5573b7fb5eacSmrg    esac
5574ce62200cSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
55751a30de1fSmrg    ac_need_defaults=false;;
55761a30de1fSmrg  --header | --heade | --head | --hea )
55771a30de1fSmrg    $ac_shift
5578b7fb5eacSmrg    case $ac_optarg in
5579b7fb5eacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5580b7fb5eacSmrg    esac
5581ce62200cSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
55821a30de1fSmrg    ac_need_defaults=false;;
55831a30de1fSmrg  --he | --h)
55841a30de1fSmrg    # Conflict between --help and --header
5585ce62200cSmrg    as_fn_error $? "ambiguous option: \`$1'
5586ce62200cSmrgTry \`$0 --help' for more information.";;
55871a30de1fSmrg  --help | --hel | -h )
5588b7fb5eacSmrg    $as_echo "$ac_cs_usage"; exit ;;
55891a30de1fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55901a30de1fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
55911a30de1fSmrg    ac_cs_silent=: ;;
55921a30de1fSmrg
55931a30de1fSmrg  # This is an error.
5594ce62200cSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
5595ce62200cSmrgTry \`$0 --help' for more information." ;;
55961a30de1fSmrg
5597ce62200cSmrg  *) as_fn_append ac_config_targets " $1"
55981a30de1fSmrg     ac_need_defaults=false ;;
55991a30de1fSmrg
56001a30de1fSmrg  esac
56011a30de1fSmrg  shift
56021a30de1fSmrgdone
56031a30de1fSmrg
56041a30de1fSmrgac_configure_extra_args=
56051a30de1fSmrg
56061a30de1fSmrgif $ac_cs_silent; then
56071a30de1fSmrg  exec 6>/dev/null
56081a30de1fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
56091a30de1fSmrgfi
56101a30de1fSmrg
56111a30de1fSmrg_ACEOF
5612b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56131a30de1fSmrgif \$ac_cs_recheck; then
5614b7fb5eacSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5615b7fb5eacSmrg  shift
5616b7fb5eacSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5617b7fb5eacSmrg  CONFIG_SHELL='$SHELL'
56181a30de1fSmrg  export CONFIG_SHELL
5619b7fb5eacSmrg  exec "\$@"
56201a30de1fSmrgfi
56211a30de1fSmrg
56221a30de1fSmrg_ACEOF
5623b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56241a30de1fSmrgexec 5>>config.log
56251a30de1fSmrg{
56261a30de1fSmrg  echo
56271a30de1fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56281a30de1fSmrg## Running $as_me. ##
56291a30de1fSmrg_ASBOX
5630b7fb5eacSmrg  $as_echo "$ac_log"
56311a30de1fSmrg} >&5
56321a30de1fSmrg
56331a30de1fSmrg_ACEOF
5634b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56351a30de1fSmrg#
56361a30de1fSmrg# INIT-COMMANDS
56371a30de1fSmrg#
56381a30de1fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56391a30de1fSmrg
56401a30de1fSmrg_ACEOF
56411a30de1fSmrg
5642b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56431a30de1fSmrg
56441a30de1fSmrg# Handling of arguments.
56451a30de1fSmrgfor ac_config_target in $ac_config_targets
56461a30de1fSmrgdo
56471a30de1fSmrg  case $ac_config_target in
56481a30de1fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5649ce62200cSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56501a30de1fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5651ce62200cSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
56521a30de1fSmrg
5653ce62200cSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
56541a30de1fSmrg  esac
56551a30de1fSmrgdone
56561a30de1fSmrg
56571a30de1fSmrg
56581a30de1fSmrg# If the user did not use the arguments to specify the items to instantiate,
56591a30de1fSmrg# then the envvar interface is used.  Set only those that are not.
56601a30de1fSmrg# We use the long form for the default assignment because of an extremely
56611a30de1fSmrg# bizarre bug on SunOS 4.1.3.
56621a30de1fSmrgif $ac_need_defaults; then
56631a30de1fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56641a30de1fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56651a30de1fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56661a30de1fSmrgfi
56671a30de1fSmrg
56681a30de1fSmrg# Have a temporary directory for convenience.  Make it in the build tree
56691a30de1fSmrg# simply because there is no reason against having it here, and in addition,
56701a30de1fSmrg# creating and moving files from /tmp can sometimes cause problems.
56711a30de1fSmrg# Hook for its removal unless debugging.
56721a30de1fSmrg# Note that there is a small window in which the directory will not be cleaned:
56731a30de1fSmrg# after its creation but before its name has been assigned to `$tmp'.
56741a30de1fSmrg$debug ||
56751a30de1fSmrg{
5676ce62200cSmrg  tmp= ac_tmp=
56771a30de1fSmrg  trap 'exit_status=$?
5678ce62200cSmrg  : "${ac_tmp:=$tmp}"
5679ce62200cSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
56801a30de1fSmrg' 0
5681ce62200cSmrg  trap 'as_fn_exit 1' 1 2 13 15
56821a30de1fSmrg}
56831a30de1fSmrg# Create a (secure) tmp directory for tmp files.
56841a30de1fSmrg
56851a30de1fSmrg{
56861a30de1fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5687ce62200cSmrg  test -d "$tmp"
56881a30de1fSmrg}  ||
56891a30de1fSmrg{
56901a30de1fSmrg  tmp=./conf$$-$RANDOM
56911a30de1fSmrg  (umask 077 && mkdir "$tmp")
5692ce62200cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5693ce62200cSmrgac_tmp=$tmp
56941a30de1fSmrg
5695b7fb5eacSmrg# Set up the scripts for CONFIG_FILES section.
5696b7fb5eacSmrg# No need to generate them if there are no CONFIG_FILES.
5697b7fb5eacSmrg# This happens for instance with `./config.status config.h'.
56981a30de1fSmrgif test -n "$CONFIG_FILES"; then
56991a30de1fSmrg
57001a30de1fSmrg
5701ce62200cSmrgac_cr=`echo X | tr X '\015'`
5702ce62200cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5703ce62200cSmrg# But we know of no other shell where ac_cr would be empty at this
5704ce62200cSmrg# point, so we can use a bashism as a fallback.
5705ce62200cSmrgif test "x$ac_cr" = x; then
5706ce62200cSmrg  eval ac_cr=\$\'\\r\'
5707ce62200cSmrgfi
5708b7fb5eacSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5709b7fb5eacSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5710b7fb5eacSmrg  ac_cs_awk_cr='\\r'
5711b7fb5eacSmrgelse
5712b7fb5eacSmrg  ac_cs_awk_cr=$ac_cr
57131a30de1fSmrgfi
57141a30de1fSmrg
5715ce62200cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
57161a30de1fSmrg_ACEOF
57171a30de1fSmrg
57181a30de1fSmrg
5719b7fb5eacSmrg{
5720b7fb5eacSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5721b7fb5eacSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5722b7fb5eacSmrg  echo "_ACEOF"
5723b7fb5eacSmrg} >conf$$subs.sh ||
5724ce62200cSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5725ce62200cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
57261a30de1fSmrgac_delim='%!_!# '
57271a30de1fSmrgfor ac_last_try in false false false false false :; do
5728b7fb5eacSmrg  . ./conf$$subs.sh ||
5729ce62200cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57301a30de1fSmrg
5731b7fb5eacSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5732b7fb5eacSmrg  if test $ac_delim_n = $ac_delim_num; then
57331a30de1fSmrg    break
57341a30de1fSmrg  elif $ac_last_try; then
5735ce62200cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57361a30de1fSmrg  else
57371a30de1fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57381a30de1fSmrg  fi
57391a30de1fSmrgdone
5740b7fb5eacSmrgrm -f conf$$subs.sh
57411a30de1fSmrg
5742b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5743ce62200cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5744b7fb5eacSmrg_ACEOF
5745b7fb5eacSmrgsed -n '
5746b7fb5eacSmrgh
5747b7fb5eacSmrgs/^/S["/; s/!.*/"]=/
5748b7fb5eacSmrgp
5749b7fb5eacSmrgg
5750b7fb5eacSmrgs/^[^!]*!//
5751b7fb5eacSmrg:repl
5752b7fb5eacSmrgt repl
5753b7fb5eacSmrgs/'"$ac_delim"'$//
5754b7fb5eacSmrgt delim
5755b7fb5eacSmrg:nl
5756b7fb5eacSmrgh
5757ce62200cSmrgs/\(.\{148\}\)..*/\1/
5758b7fb5eacSmrgt more1
5759b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5760b7fb5eacSmrgp
5761b7fb5eacSmrgn
5762b7fb5eacSmrgb repl
5763b7fb5eacSmrg:more1
5764b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5765b7fb5eacSmrgp
5766b7fb5eacSmrgg
5767b7fb5eacSmrgs/.\{148\}//
5768b7fb5eacSmrgt nl
5769b7fb5eacSmrg:delim
5770b7fb5eacSmrgh
5771ce62200cSmrgs/\(.\{148\}\)..*/\1/
5772b7fb5eacSmrgt more2
5773b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5774b7fb5eacSmrgp
5775b7fb5eacSmrgb
5776b7fb5eacSmrg:more2
5777b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5778b7fb5eacSmrgp
5779b7fb5eacSmrgg
5780b7fb5eacSmrgs/.\{148\}//
5781b7fb5eacSmrgt delim
5782b7fb5eacSmrg' <conf$$subs.awk | sed '
5783b7fb5eacSmrg/^[^""]/{
5784b7fb5eacSmrg  N
5785b7fb5eacSmrg  s/\n//
5786b7fb5eacSmrg}
5787b7fb5eacSmrg' >>$CONFIG_STATUS || ac_write_fail=1
5788b7fb5eacSmrgrm -f conf$$subs.awk
5789b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5790b7fb5eacSmrg_ACAWK
5791ce62200cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5792b7fb5eacSmrg  for (key in S) S_is_set[key] = 1
5793b7fb5eacSmrg  FS = ""
5794b7fb5eacSmrg
5795b7fb5eacSmrg}
5796b7fb5eacSmrg{
5797b7fb5eacSmrg  line = $ 0
5798b7fb5eacSmrg  nfields = split(line, field, "@")
5799b7fb5eacSmrg  substed = 0
5800b7fb5eacSmrg  len = length(field[1])
5801b7fb5eacSmrg  for (i = 2; i < nfields; i++) {
5802b7fb5eacSmrg    key = field[i]
5803b7fb5eacSmrg    keylen = length(key)
5804b7fb5eacSmrg    if (S_is_set[key]) {
5805b7fb5eacSmrg      value = S[key]
5806b7fb5eacSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5807b7fb5eacSmrg      len += length(value) + length(field[++i])
5808b7fb5eacSmrg      substed = 1
5809b7fb5eacSmrg    } else
5810b7fb5eacSmrg      len += 1 + keylen
5811b7fb5eacSmrg  }
5812b7fb5eacSmrg
5813b7fb5eacSmrg  print line
5814b7fb5eacSmrg}
58151a30de1fSmrg
5816b7fb5eacSmrg_ACAWK
58171a30de1fSmrg_ACEOF
5818b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5819b7fb5eacSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5820b7fb5eacSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5821b7fb5eacSmrgelse
5822b7fb5eacSmrg  cat
5823ce62200cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5824ce62200cSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
58251a30de1fSmrg_ACEOF
58261a30de1fSmrg
5827ce62200cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5828ce62200cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
58291a30de1fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
58301a30de1fSmrg# (actually we leave an empty line to preserve line numbers).
58311a30de1fSmrgif test "x$srcdir" = x.; then
5832ce62200cSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5833ce62200cSmrgh
5834ce62200cSmrgs///
5835ce62200cSmrgs/^/:/
5836ce62200cSmrgs/[	 ]*$/:/
5837ce62200cSmrgs/:\$(srcdir):/:/g
5838ce62200cSmrgs/:\${srcdir}:/:/g
5839ce62200cSmrgs/:@srcdir@:/:/g
5840ce62200cSmrgs/^:*//
58411a30de1fSmrgs/:*$//
5842ce62200cSmrgx
5843ce62200cSmrgs/\(=[	 ]*\).*/\1/
5844ce62200cSmrgG
5845ce62200cSmrgs/\n//
58461a30de1fSmrgs/^[^=]*=[	 ]*$//
58471a30de1fSmrg}'
58481a30de1fSmrgfi
58491a30de1fSmrg
5850b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58511a30de1fSmrgfi # test -n "$CONFIG_FILES"
58521a30de1fSmrg
5853b7fb5eacSmrg# Set up the scripts for CONFIG_HEADERS section.
5854b7fb5eacSmrg# No need to generate them if there are no CONFIG_HEADERS.
5855b7fb5eacSmrg# This happens for instance with `./config.status Makefile'.
5856b7fb5eacSmrgif test -n "$CONFIG_HEADERS"; then
5857ce62200cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5858b7fb5eacSmrgBEGIN {
5859b7fb5eacSmrg_ACEOF
5860b7fb5eacSmrg
5861b7fb5eacSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5862b7fb5eacSmrg# here-document in config.status, that substitutes the proper values into
5863b7fb5eacSmrg# config.h.in to produce config.h.
5864b7fb5eacSmrg
5865b7fb5eacSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
5866b7fb5eacSmrg# handling of long lines.
5867b7fb5eacSmrgac_delim='%!_!# '
5868b7fb5eacSmrgfor ac_last_try in false false :; do
5869ce62200cSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5870ce62200cSmrg  if test -z "$ac_tt"; then
5871b7fb5eacSmrg    break
5872b7fb5eacSmrg  elif $ac_last_try; then
5873ce62200cSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5874b7fb5eacSmrg  else
5875b7fb5eacSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5876b7fb5eacSmrg  fi
5877b7fb5eacSmrgdone
5878b7fb5eacSmrg
5879b7fb5eacSmrg# For the awk script, D is an array of macro values keyed by name,
5880b7fb5eacSmrg# likewise P contains macro parameters if any.  Preserve backslash
5881b7fb5eacSmrg# newline sequences.
5882b7fb5eacSmrg
5883b7fb5eacSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5884b7fb5eacSmrgsed -n '
5885b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g
5886b7fb5eacSmrgt rset
5887b7fb5eacSmrg:rset
5888b7fb5eacSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5889b7fb5eacSmrgt def
5890b7fb5eacSmrgd
5891b7fb5eacSmrg:def
5892b7fb5eacSmrgs/\\$//
5893b7fb5eacSmrgt bsnl
5894b7fb5eacSmrgs/["\\]/\\&/g
5895b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5896b7fb5eacSmrgD["\1"]=" \3"/p
5897b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5898b7fb5eacSmrgd
5899b7fb5eacSmrg:bsnl
5900b7fb5eacSmrgs/["\\]/\\&/g
5901b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5902b7fb5eacSmrgD["\1"]=" \3\\\\\\n"\\/p
5903b7fb5eacSmrgt cont
5904b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5905b7fb5eacSmrgt cont
5906b7fb5eacSmrgd
5907b7fb5eacSmrg:cont
5908b7fb5eacSmrgn
5909b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g
5910b7fb5eacSmrgt clear
5911b7fb5eacSmrg:clear
5912b7fb5eacSmrgs/\\$//
5913b7fb5eacSmrgt bsnlc
5914b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
5915b7fb5eacSmrgd
5916b7fb5eacSmrg:bsnlc
5917b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5918b7fb5eacSmrgb cont
5919b7fb5eacSmrg' <confdefs.h | sed '
5920b7fb5eacSmrgs/'"$ac_delim"'/"\\\
5921b7fb5eacSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
5922b7fb5eacSmrg
5923b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5924b7fb5eacSmrg  for (key in D) D_is_set[key] = 1
5925b7fb5eacSmrg  FS = ""
5926b7fb5eacSmrg}
5927b7fb5eacSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5928b7fb5eacSmrg  line = \$ 0
5929b7fb5eacSmrg  split(line, arg, " ")
5930b7fb5eacSmrg  if (arg[1] == "#") {
5931b7fb5eacSmrg    defundef = arg[2]
5932b7fb5eacSmrg    mac1 = arg[3]
5933b7fb5eacSmrg  } else {
5934b7fb5eacSmrg    defundef = substr(arg[1], 2)
5935b7fb5eacSmrg    mac1 = arg[2]
5936b7fb5eacSmrg  }
5937b7fb5eacSmrg  split(mac1, mac2, "(") #)
5938b7fb5eacSmrg  macro = mac2[1]
5939b7fb5eacSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
5940b7fb5eacSmrg  if (D_is_set[macro]) {
5941b7fb5eacSmrg    # Preserve the white space surrounding the "#".
5942b7fb5eacSmrg    print prefix "define", macro P[macro] D[macro]
5943b7fb5eacSmrg    next
5944b7fb5eacSmrg  } else {
5945b7fb5eacSmrg    # Replace #undef with comments.  This is necessary, for example,
5946b7fb5eacSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
5947b7fb5eacSmrg    # on some systems where configure will not decide to define it.
5948b7fb5eacSmrg    if (defundef == "undef") {
5949b7fb5eacSmrg      print "/*", prefix defundef, macro, "*/"
5950b7fb5eacSmrg      next
5951b7fb5eacSmrg    }
5952b7fb5eacSmrg  }
5953b7fb5eacSmrg}
5954b7fb5eacSmrg{ print }
5955b7fb5eacSmrg_ACAWK
5956b7fb5eacSmrg_ACEOF
5957b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5958ce62200cSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5959b7fb5eacSmrgfi # test -n "$CONFIG_HEADERS"
5960b7fb5eacSmrg
59611a30de1fSmrg
5962b7fb5eacSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5963b7fb5eacSmrgshift
5964b7fb5eacSmrgfor ac_tag
59651a30de1fSmrgdo
59661a30de1fSmrg  case $ac_tag in
59671a30de1fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
59681a30de1fSmrg  esac
59691a30de1fSmrg  case $ac_mode$ac_tag in
59701a30de1fSmrg  :[FHL]*:*);;
5971ce62200cSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
59721a30de1fSmrg  :[FH]-) ac_tag=-:-;;
59731a30de1fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
59741a30de1fSmrg  esac
59751a30de1fSmrg  ac_save_IFS=$IFS
59761a30de1fSmrg  IFS=:
59771a30de1fSmrg  set x $ac_tag
59781a30de1fSmrg  IFS=$ac_save_IFS
59791a30de1fSmrg  shift
59801a30de1fSmrg  ac_file=$1
59811a30de1fSmrg  shift
59821a30de1fSmrg
59831a30de1fSmrg  case $ac_mode in
59841a30de1fSmrg  :L) ac_source=$1;;
59851a30de1fSmrg  :[FH])
59861a30de1fSmrg    ac_file_inputs=
59871a30de1fSmrg    for ac_f
59881a30de1fSmrg    do
59891a30de1fSmrg      case $ac_f in
5990ce62200cSmrg      -) ac_f="$ac_tmp/stdin";;
59911a30de1fSmrg      *) # Look for the file first in the build tree, then in the source tree
59921a30de1fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
59931a30de1fSmrg	 # because $ac_f cannot contain `:'.
59941a30de1fSmrg	 test -f "$ac_f" ||
59951a30de1fSmrg	   case $ac_f in
59961a30de1fSmrg	   [\\/$]*) false;;
59971a30de1fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
59981a30de1fSmrg	   esac ||
5999ce62200cSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
60001a30de1fSmrg      esac
6001b7fb5eacSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6002ce62200cSmrg      as_fn_append ac_file_inputs " '$ac_f'"
60031a30de1fSmrg    done
60041a30de1fSmrg
60051a30de1fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
60061a30de1fSmrg    # use $as_me), people would be surprised to read:
60071a30de1fSmrg    #    /* config.h.  Generated by config.status.  */
6008b7fb5eacSmrg    configure_input='Generated from '`
6009b7fb5eacSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6010b7fb5eacSmrg	`' by configure.'
60111a30de1fSmrg    if test x"$ac_file" != x-; then
60121a30de1fSmrg      configure_input="$ac_file.  $configure_input"
6013ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6014b7fb5eacSmrg$as_echo "$as_me: creating $ac_file" >&6;}
60151a30de1fSmrg    fi
6016b7fb5eacSmrg    # Neutralize special characters interpreted by sed in replacement strings.
6017b7fb5eacSmrg    case $configure_input in #(
6018b7fb5eacSmrg    *\&* | *\|* | *\\* )
6019b7fb5eacSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6020b7fb5eacSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6021b7fb5eacSmrg    *) ac_sed_conf_input=$configure_input;;
6022b7fb5eacSmrg    esac
60231a30de1fSmrg
60241a30de1fSmrg    case $ac_tag in
6025ce62200cSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6026ce62200cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
60271a30de1fSmrg    esac
60281a30de1fSmrg    ;;
60291a30de1fSmrg  esac
60301a30de1fSmrg
60311a30de1fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
60321a30de1fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60331a30de1fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
60341a30de1fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
60351a30de1fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6036b7fb5eacSmrg$as_echo X"$ac_file" |
60371a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60381a30de1fSmrg	    s//\1/
60391a30de1fSmrg	    q
60401a30de1fSmrg	  }
60411a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
60421a30de1fSmrg	    s//\1/
60431a30de1fSmrg	    q
60441a30de1fSmrg	  }
60451a30de1fSmrg	  /^X\(\/\/\)$/{
60461a30de1fSmrg	    s//\1/
60471a30de1fSmrg	    q
60481a30de1fSmrg	  }
60491a30de1fSmrg	  /^X\(\/\).*/{
60501a30de1fSmrg	    s//\1/
60511a30de1fSmrg	    q
60521a30de1fSmrg	  }
60531a30de1fSmrg	  s/.*/./; q'`
6054ce62200cSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
60551a30de1fSmrg  ac_builddir=.
60561a30de1fSmrg
60571a30de1fSmrgcase "$ac_dir" in
60581a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
60591a30de1fSmrg*)
6060b7fb5eacSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
60611a30de1fSmrg  # A ".." for each directory in $ac_dir_suffix.
6062b7fb5eacSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
60631a30de1fSmrg  case $ac_top_builddir_sub in
60641a30de1fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
60651a30de1fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
60661a30de1fSmrg  esac ;;
60671a30de1fSmrgesac
60681a30de1fSmrgac_abs_top_builddir=$ac_pwd
60691a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
60701a30de1fSmrg# for backward compatibility:
60711a30de1fSmrgac_top_builddir=$ac_top_build_prefix
60721a30de1fSmrg
60731a30de1fSmrgcase $srcdir in
60741a30de1fSmrg  .)  # We are building in place.
60751a30de1fSmrg    ac_srcdir=.
60761a30de1fSmrg    ac_top_srcdir=$ac_top_builddir_sub
60771a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
60781a30de1fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
60791a30de1fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
60801a30de1fSmrg    ac_top_srcdir=$srcdir
60811a30de1fSmrg    ac_abs_top_srcdir=$srcdir ;;
60821a30de1fSmrg  *) # Relative name.
60831a30de1fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
60841a30de1fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
60851a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
60861a30de1fSmrgesac
60871a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
60881a30de1fSmrg
60891a30de1fSmrg
60901a30de1fSmrg  case $ac_mode in
60911a30de1fSmrg  :F)
60921a30de1fSmrg  #
60931a30de1fSmrg  # CONFIG_FILE
60941a30de1fSmrg  #
60951a30de1fSmrg
60961a30de1fSmrg  case $INSTALL in
60971a30de1fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60981a30de1fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
60991a30de1fSmrg  esac
61001a30de1fSmrg  ac_MKDIR_P=$MKDIR_P
61011a30de1fSmrg  case $MKDIR_P in
61021a30de1fSmrg  [\\/$]* | ?:[\\/]* ) ;;
61031a30de1fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
61041a30de1fSmrg  esac
61051a30de1fSmrg_ACEOF
61061a30de1fSmrg
6107b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61081a30de1fSmrg# If the template does not know about datarootdir, expand it.
61091a30de1fSmrg# FIXME: This hack should be removed a few years after 2.60.
61101a30de1fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6111b7fb5eacSmrgac_sed_dataroot='
6112b7fb5eacSmrg/datarootdir/ {
61131a30de1fSmrg  p
61141a30de1fSmrg  q
61151a30de1fSmrg}
61161a30de1fSmrg/@datadir@/p
61171a30de1fSmrg/@docdir@/p
61181a30de1fSmrg/@infodir@/p
61191a30de1fSmrg/@localedir@/p
6120ce62200cSmrg/@mandir@/p'
6121b7fb5eacSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
61221a30de1fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
61231a30de1fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6124ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6125b7fb5eacSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
61261a30de1fSmrg_ACEOF
6127b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61281a30de1fSmrg  ac_datarootdir_hack='
61291a30de1fSmrg  s&@datadir@&$datadir&g
61301a30de1fSmrg  s&@docdir@&$docdir&g
61311a30de1fSmrg  s&@infodir@&$infodir&g
61321a30de1fSmrg  s&@localedir@&$localedir&g
61331a30de1fSmrg  s&@mandir@&$mandir&g
6134ce62200cSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
61351a30de1fSmrgesac
61361a30de1fSmrg_ACEOF
61371a30de1fSmrg
61381a30de1fSmrg# Neutralize VPATH when `$srcdir' = `.'.
61391a30de1fSmrg# Shell code in configure.ac might set extrasub.
61401a30de1fSmrg# FIXME: do we really want to maintain this feature?
6141b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6142b7fb5eacSmrgac_sed_extra="$ac_vpsub
61431a30de1fSmrg$extrasub
61441a30de1fSmrg_ACEOF
6145b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61461a30de1fSmrg:t
61471a30de1fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6148b7fb5eacSmrgs|@configure_input@|$ac_sed_conf_input|;t t
61491a30de1fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6150b7fb5eacSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
61511a30de1fSmrgs&@srcdir@&$ac_srcdir&;t t
61521a30de1fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
61531a30de1fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
61541a30de1fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
61551a30de1fSmrgs&@builddir@&$ac_builddir&;t t
61561a30de1fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
61571a30de1fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
61581a30de1fSmrgs&@INSTALL@&$ac_INSTALL&;t t
61591a30de1fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
61601a30de1fSmrg$ac_datarootdir_hack
6161b7fb5eacSmrg"
6162ce62200cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6163ce62200cSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61641a30de1fSmrg
61651a30de1fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6166ce62200cSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6167ce62200cSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6168ce62200cSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6169ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6170ce62200cSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
6171b7fb5eacSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6172ce62200cSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
61731a30de1fSmrg
6174ce62200cSmrg  rm -f "$ac_tmp/stdin"
61751a30de1fSmrg  case $ac_file in
6176ce62200cSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6177ce62200cSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6178b7fb5eacSmrg  esac \
6179ce62200cSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61801a30de1fSmrg ;;
61811a30de1fSmrg  :H)
61821a30de1fSmrg  #
61831a30de1fSmrg  # CONFIG_HEADER
61841a30de1fSmrg  #
61851a30de1fSmrg  if test x"$ac_file" != x-; then
6186b7fb5eacSmrg    {
6187b7fb5eacSmrg      $as_echo "/* $configure_input  */" \
6188ce62200cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6189ce62200cSmrg    } >"$ac_tmp/config.h" \
6190ce62200cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6191ce62200cSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6192ce62200cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6193b7fb5eacSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
61941a30de1fSmrg    else
6195b7fb5eacSmrg      rm -f "$ac_file"
6196ce62200cSmrg      mv "$ac_tmp/config.h" "$ac_file" \
6197ce62200cSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
61981a30de1fSmrg    fi
61991a30de1fSmrg  else
6200b7fb5eacSmrg    $as_echo "/* $configure_input  */" \
6201ce62200cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6202ce62200cSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
62031a30de1fSmrg  fi
6204b7fb5eacSmrg# Compute "$ac_file"'s index in $config_headers.
6205b7fb5eacSmrg_am_arg="$ac_file"
62061a30de1fSmrg_am_stamp_count=1
62071a30de1fSmrgfor _am_header in $config_headers :; do
62081a30de1fSmrg  case $_am_header in
6209b7fb5eacSmrg    $_am_arg | $_am_arg:* )
62101a30de1fSmrg      break ;;
62111a30de1fSmrg    * )
62121a30de1fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
62131a30de1fSmrg  esac
62141a30de1fSmrgdone
6215b7fb5eacSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6216b7fb5eacSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6217b7fb5eacSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6218b7fb5eacSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6219b7fb5eacSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6220b7fb5eacSmrg$as_echo X"$_am_arg" |
62211a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62221a30de1fSmrg	    s//\1/
62231a30de1fSmrg	    q
62241a30de1fSmrg	  }
62251a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
62261a30de1fSmrg	    s//\1/
62271a30de1fSmrg	    q
62281a30de1fSmrg	  }
62291a30de1fSmrg	  /^X\(\/\/\)$/{
62301a30de1fSmrg	    s//\1/
62311a30de1fSmrg	    q
62321a30de1fSmrg	  }
62331a30de1fSmrg	  /^X\(\/\).*/{
62341a30de1fSmrg	    s//\1/
62351a30de1fSmrg	    q
62361a30de1fSmrg	  }
62371a30de1fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
62381a30de1fSmrg ;;
62391a30de1fSmrg
6240ce62200cSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6241b7fb5eacSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
62421a30de1fSmrg ;;
62431a30de1fSmrg  esac
62441a30de1fSmrg
62451a30de1fSmrg
62461a30de1fSmrg  case $ac_file$ac_mode in
6247b7fb5eacSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6248b7fb5eacSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6249b7fb5eacSmrg  # are listed without --file.  Let's play safe and only enable the eval
6250b7fb5eacSmrg  # if we detect the quoting.
6251b7fb5eacSmrg  case $CONFIG_FILES in
6252b7fb5eacSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6253b7fb5eacSmrg  *)   set x $CONFIG_FILES ;;
6254b7fb5eacSmrg  esac
6255b7fb5eacSmrg  shift
6256b7fb5eacSmrg  for mf
6257b7fb5eacSmrg  do
6258b7fb5eacSmrg    # Strip MF so we end up with the name of the file.
6259b7fb5eacSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6260b7fb5eacSmrg    # Check whether this is an Automake generated Makefile or not.
6261b7fb5eacSmrg    # We used to match only the files named `Makefile.in', but
6262b7fb5eacSmrg    # some people rename them; so instead we look at the file content.
6263b7fb5eacSmrg    # Grep'ing the first line is not enough: some people post-process
6264b7fb5eacSmrg    # each Makefile.in and add a new line on top of each file to say so.
6265b7fb5eacSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6266b7fb5eacSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6267b7fb5eacSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6268b7fb5eacSmrg      dirpart=`$as_dirname -- "$mf" ||
62691a30de1fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62701a30de1fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
62711a30de1fSmrg	 X"$mf" : 'X\(//\)$' \| \
62721a30de1fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6273b7fb5eacSmrg$as_echo X"$mf" |
62741a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62751a30de1fSmrg	    s//\1/
62761a30de1fSmrg	    q
62771a30de1fSmrg	  }
62781a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
62791a30de1fSmrg	    s//\1/
62801a30de1fSmrg	    q
62811a30de1fSmrg	  }
62821a30de1fSmrg	  /^X\(\/\/\)$/{
62831a30de1fSmrg	    s//\1/
62841a30de1fSmrg	    q
62851a30de1fSmrg	  }
62861a30de1fSmrg	  /^X\(\/\).*/{
62871a30de1fSmrg	    s//\1/
62881a30de1fSmrg	    q
62891a30de1fSmrg	  }
62901a30de1fSmrg	  s/.*/./; q'`
6291b7fb5eacSmrg    else
6292b7fb5eacSmrg      continue
6293b7fb5eacSmrg    fi
6294b7fb5eacSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6295b7fb5eacSmrg    # from the Makefile without running `make'.
6296b7fb5eacSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6297b7fb5eacSmrg    test -z "$DEPDIR" && continue
6298b7fb5eacSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6299b7fb5eacSmrg    test -z "am__include" && continue
6300b7fb5eacSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6301b7fb5eacSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6302b7fb5eacSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6303b7fb5eacSmrg    # Find all dependency output files, they are included files with
6304b7fb5eacSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6305b7fb5eacSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6306b7fb5eacSmrg    # expansion.
6307b7fb5eacSmrg    for file in `sed -n "
6308b7fb5eacSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6309b7fb5eacSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6310b7fb5eacSmrg      # Make sure the directory exists.
6311b7fb5eacSmrg      test -f "$dirpart/$file" && continue
6312b7fb5eacSmrg      fdir=`$as_dirname -- "$file" ||
63131a30de1fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63141a30de1fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
63151a30de1fSmrg	 X"$file" : 'X\(//\)$' \| \
63161a30de1fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6317b7fb5eacSmrg$as_echo X"$file" |
63181a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63191a30de1fSmrg	    s//\1/
63201a30de1fSmrg	    q
63211a30de1fSmrg	  }
63221a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
63231a30de1fSmrg	    s//\1/
63241a30de1fSmrg	    q
63251a30de1fSmrg	  }
63261a30de1fSmrg	  /^X\(\/\/\)$/{
63271a30de1fSmrg	    s//\1/
63281a30de1fSmrg	    q
63291a30de1fSmrg	  }
63301a30de1fSmrg	  /^X\(\/\).*/{
63311a30de1fSmrg	    s//\1/
63321a30de1fSmrg	    q
63331a30de1fSmrg	  }
63341a30de1fSmrg	  s/.*/./; q'`
6335ce62200cSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6336b7fb5eacSmrg      # echo "creating $dirpart/$file"
6337b7fb5eacSmrg      echo '# dummy' > "$dirpart/$file"
6338b7fb5eacSmrg    done
63391a30de1fSmrg  done
6340b7fb5eacSmrg}
63411a30de1fSmrg ;;
63421a30de1fSmrg
63431a30de1fSmrg  esac
63441a30de1fSmrgdone # for ac_tag
63451a30de1fSmrg
63461a30de1fSmrg
6347ce62200cSmrgas_fn_exit 0
63481a30de1fSmrg_ACEOF
63491a30de1fSmrgac_clean_files=$ac_clean_files_save
63501a30de1fSmrg
6351b7fb5eacSmrgtest $ac_write_fail = 0 ||
6352ce62200cSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6353b7fb5eacSmrg
63541a30de1fSmrg
63551a30de1fSmrg# configure is writing to config.log, and then calls config.status.
63561a30de1fSmrg# config.status does its own redirection, appending to config.log.
63571a30de1fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
63581a30de1fSmrg# by configure, so config.status won't be able to write to it; its
63591a30de1fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
63601a30de1fSmrg# effectively closing config.log, so it can be properly (re)opened and
63611a30de1fSmrg# appended to by config.status.  When coming back to configure, we
63621a30de1fSmrg# need to make the FD available again.
63631a30de1fSmrgif test "$no_create" != yes; then
63641a30de1fSmrg  ac_cs_success=:
63651a30de1fSmrg  ac_config_status_args=
63661a30de1fSmrg  test "$silent" = yes &&
63671a30de1fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
63681a30de1fSmrg  exec 5>/dev/null
63691a30de1fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63701a30de1fSmrg  exec 5>>config.log
63711a30de1fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63721a30de1fSmrg  # would make configure fail if this is the last instruction.
6373ce62200cSmrg  $ac_cs_success || as_fn_exit 1
63741a30de1fSmrgfi
6375b7fb5eacSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6376ce62200cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6377b7fb5eacSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6378b7fb5eacSmrgfi
63791a30de1fSmrg
6380