configure revision fc51f767
167f05d30Smrg#! /bin/sh
267f05d30Smrg# Guess values for system-dependent variables and create Makefiles.
3fc51f767Smrg# Generated by GNU Autoconf 2.68 for viewres 1.0.3.
467f05d30Smrg#
567f05d30Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
667f05d30Smrg#
7fffe5102Smrg#
8fffe5102Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9fc51f767Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10fc51f767Smrg# Foundation, Inc.
11fffe5102Smrg#
12fffe5102Smrg#
1367f05d30Smrg# This configure script is free software; the Free Software Foundation
1467f05d30Smrg# gives unlimited permission to copy, distribute and modify it.
15fffe5102Smrg## -------------------- ##
16fffe5102Smrg## M4sh Initialization. ##
17fffe5102Smrg## -------------------- ##
1867f05d30Smrg
19fffe5102Smrg# Be more Bourne compatible
20fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh
21fffe5102Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2267f05d30Smrg  emulate sh
2367f05d30Smrg  NULLCMD=:
24fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2567f05d30Smrg  # is contrary to our usage.  Disable this feature.
2667f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
27fffe5102Smrg  setopt NO_GLOB_SUBST
28fffe5102Smrgelse
29fffe5102Smrg  case `(set -o) 2>/dev/null` in #(
30fffe5102Smrg  *posix*) :
31fffe5102Smrg    set -o posix ;; #(
32fffe5102Smrg  *) :
33fffe5102Smrg     ;;
34fffe5102Smrgesac
3567f05d30Smrgfi
3667f05d30Smrg
37fffe5102Smrg
38fffe5102Smrgas_nl='
39fffe5102Smrg'
40fffe5102Smrgexport as_nl
41fffe5102Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42fffe5102Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45fffe5102Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46fffe5102Smrg# but without wasting forks for bash or zsh.
47fffe5102Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48fffe5102Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49fffe5102Smrg  as_echo='print -r --'
50fffe5102Smrg  as_echo_n='print -rn --'
51fffe5102Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52fffe5102Smrg  as_echo='printf %s\n'
53fffe5102Smrg  as_echo_n='printf %s'
5467f05d30Smrgelse
55fffe5102Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56fffe5102Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57fffe5102Smrg    as_echo_n='/usr/ucb/echo -n'
58fffe5102Smrg  else
59fffe5102Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60fffe5102Smrg    as_echo_n_body='eval
61fffe5102Smrg      arg=$1;
62fffe5102Smrg      case $arg in #(
63fffe5102Smrg      *"$as_nl"*)
64fffe5102Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65fffe5102Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66fffe5102Smrg      esac;
67fffe5102Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68fffe5102Smrg    '
69fffe5102Smrg    export as_echo_n_body
70fffe5102Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71fffe5102Smrg  fi
72fffe5102Smrg  export as_echo_body
73fffe5102Smrg  as_echo='sh -c $as_echo_body as_echo'
74fffe5102Smrgfi
75fffe5102Smrg
76fffe5102Smrg# The user is always right.
77fffe5102Smrgif test "${PATH_SEPARATOR+set}" != set; then
78fffe5102Smrg  PATH_SEPARATOR=:
79fffe5102Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80fffe5102Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81fffe5102Smrg      PATH_SEPARATOR=';'
82fffe5102Smrg  }
8367f05d30Smrgfi
8467f05d30Smrg
8567f05d30Smrg
86fffe5102Smrg# IFS
87fffe5102Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88fffe5102Smrg# there to prevent editors from complaining about space-tab.
89fffe5102Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90fffe5102Smrg# splitting by setting IFS to empty value.)
91fffe5102SmrgIFS=" ""	$as_nl"
92fffe5102Smrg
93fffe5102Smrg# Find who we are.  Look in the path if we contain no directory separator.
94fc51f767Smrgas_myself=
95fffe5102Smrgcase $0 in #((
96fffe5102Smrg  *[\\/]* ) as_myself=$0 ;;
97fffe5102Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98fffe5102Smrgfor as_dir in $PATH
99fffe5102Smrgdo
100fffe5102Smrg  IFS=$as_save_IFS
101fffe5102Smrg  test -z "$as_dir" && as_dir=.
102fffe5102Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103fffe5102Smrg  done
104fffe5102SmrgIFS=$as_save_IFS
105fffe5102Smrg
106fffe5102Smrg     ;;
107fffe5102Smrgesac
108fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109fffe5102Smrg# in which case we are not to be found in the path.
110fffe5102Smrgif test "x$as_myself" = x; then
111fffe5102Smrg  as_myself=$0
112fffe5102Smrgfi
113fffe5102Smrgif test ! -f "$as_myself"; then
114fffe5102Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115fffe5102Smrg  exit 1
116fffe5102Smrgfi
117fffe5102Smrg
118fffe5102Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119fffe5102Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120fffe5102Smrg# suppresses any "Segmentation fault" message there.  '((' could
121fffe5102Smrg# trigger a bug in pdksh 5.2.14.
122fffe5102Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123fffe5102Smrgdo eval test x\${$as_var+set} = xset \
124fffe5102Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125fffe5102Smrgdone
12667f05d30SmrgPS1='$ '
12767f05d30SmrgPS2='> '
12867f05d30SmrgPS4='+ '
12967f05d30Smrg
13067f05d30Smrg# NLS nuisances.
131fffe5102SmrgLC_ALL=C
132fffe5102Smrgexport LC_ALL
133fffe5102SmrgLANGUAGE=C
134fffe5102Smrgexport LANGUAGE
135fffe5102Smrg
136fffe5102Smrg# CDPATH.
137fffe5102Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138fffe5102Smrg
139fffe5102Smrgif test "x$CONFIG_SHELL" = x; then
140fffe5102Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141fffe5102Smrg  emulate sh
142fffe5102Smrg  NULLCMD=:
143fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144fffe5102Smrg  # is contrary to our usage.  Disable this feature.
145fffe5102Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146fffe5102Smrg  setopt NO_GLOB_SUBST
147fffe5102Smrgelse
148fffe5102Smrg  case \`(set -o) 2>/dev/null\` in #(
149fffe5102Smrg  *posix*) :
150fffe5102Smrg    set -o posix ;; #(
151fffe5102Smrg  *) :
152fffe5102Smrg     ;;
153fffe5102Smrgesac
154fffe5102Smrgfi
155fffe5102Smrg"
156fffe5102Smrg  as_required="as_fn_return () { (exit \$1); }
157fffe5102Smrgas_fn_success () { as_fn_return 0; }
158fffe5102Smrgas_fn_failure () { as_fn_return 1; }
159fffe5102Smrgas_fn_ret_success () { return 0; }
160fffe5102Smrgas_fn_ret_failure () { return 1; }
161fffe5102Smrg
162fffe5102Smrgexitcode=0
163fffe5102Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164fffe5102Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165fffe5102Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166fffe5102Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167fffe5102Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168fffe5102Smrg
169fffe5102Smrgelse
170fffe5102Smrg  exitcode=1; echo positional parameters were not saved.
171fffe5102Smrgfi
172fffe5102Smrgtest x\$exitcode = x0 || exit 1"
173fffe5102Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174fffe5102Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175fffe5102Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176fffe5102Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177fffe5102Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178fffe5102Smrg  if (eval "$as_required") 2>/dev/null; then :
179fffe5102Smrg  as_have_required=yes
180fffe5102Smrgelse
181fffe5102Smrg  as_have_required=no
182fffe5102Smrgfi
183fffe5102Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184fffe5102Smrg
185fffe5102Smrgelse
186fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187fffe5102Smrgas_found=false
188fffe5102Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18967f05d30Smrgdo
190fffe5102Smrg  IFS=$as_save_IFS
191fffe5102Smrg  test -z "$as_dir" && as_dir=.
192fffe5102Smrg  as_found=:
193fffe5102Smrg  case $as_dir in #(
194fffe5102Smrg	 /*)
195fffe5102Smrg	   for as_base in sh bash ksh sh5; do
196fffe5102Smrg	     # Try only shells that exist, to save several forks.
197fffe5102Smrg	     as_shell=$as_dir/$as_base
198fffe5102Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199fffe5102Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200fffe5102Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201fffe5102Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202fffe5102Smrg  break 2
203fffe5102Smrgfi
204fffe5102Smrgfi
205fffe5102Smrg	   done;;
206fffe5102Smrg       esac
207fffe5102Smrg  as_found=false
208fffe5102Smrgdone
209fffe5102Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210fffe5102Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211fffe5102Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212fffe5102Smrgfi; }
213fffe5102SmrgIFS=$as_save_IFS
214fffe5102Smrg
215fffe5102Smrg
216fffe5102Smrg      if test "x$CONFIG_SHELL" != x; then :
217fffe5102Smrg  # We cannot yet assume a decent shell, so we have to provide a
218fffe5102Smrg	# neutralization value for shells without unset; and this also
219fffe5102Smrg	# works around shells that cannot unset nonexistent variables.
220fc51f767Smrg	# Preserve -v and -x to the replacement shell.
221fffe5102Smrg	BASH_ENV=/dev/null
222fffe5102Smrg	ENV=/dev/null
223fffe5102Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224fffe5102Smrg	export CONFIG_SHELL
225fc51f767Smrg	case $- in # ((((
226fc51f767Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227fc51f767Smrg	  *v* ) as_opts=-v ;;
228fc51f767Smrg	  *x* ) as_opts=-x ;;
229fc51f767Smrg	  * ) as_opts= ;;
230fc51f767Smrg	esac
231fc51f767Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fffe5102Smrgfi
233fffe5102Smrg
234fffe5102Smrg    if test x$as_have_required = xno; then :
235fffe5102Smrg  $as_echo "$0: This script requires a shell more modern than all"
236fffe5102Smrg  $as_echo "$0: the shells that I found on your system."
237fffe5102Smrg  if test x${ZSH_VERSION+set} = xset ; then
238fffe5102Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239fffe5102Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24067f05d30Smrg  else
241fffe5102Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242fffe5102Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243fffe5102Smrg$0: about your system, including any error possibly output
244fffe5102Smrg$0: before this message. Then install a modern shell, or
245fffe5102Smrg$0: manually run the script under such a shell if you do
246fffe5102Smrg$0: have one."
24767f05d30Smrg  fi
248fffe5102Smrg  exit 1
249fffe5102Smrgfi
250fffe5102Smrgfi
251fffe5102Smrgfi
252fffe5102SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253fffe5102Smrgexport SHELL
254fffe5102Smrg# Unset more variables known to interfere with behavior of common tools.
255fffe5102SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256fffe5102Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257fffe5102Smrg
258fffe5102Smrg## --------------------- ##
259fffe5102Smrg## M4sh Shell Functions. ##
260fffe5102Smrg## --------------------- ##
261fffe5102Smrg# as_fn_unset VAR
262fffe5102Smrg# ---------------
263fffe5102Smrg# Portably unset VAR.
264fffe5102Smrgas_fn_unset ()
265fffe5102Smrg{
266fffe5102Smrg  { eval $1=; unset $1;}
267fffe5102Smrg}
268fffe5102Smrgas_unset=as_fn_unset
269fffe5102Smrg
270fffe5102Smrg# as_fn_set_status STATUS
271fffe5102Smrg# -----------------------
272fffe5102Smrg# Set $? to STATUS, without forking.
273fffe5102Smrgas_fn_set_status ()
274fffe5102Smrg{
275fffe5102Smrg  return $1
276fffe5102Smrg} # as_fn_set_status
277fffe5102Smrg
278fffe5102Smrg# as_fn_exit STATUS
279fffe5102Smrg# -----------------
280fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281fffe5102Smrgas_fn_exit ()
282fffe5102Smrg{
283fffe5102Smrg  set +e
284fffe5102Smrg  as_fn_set_status $1
285fffe5102Smrg  exit $1
286fffe5102Smrg} # as_fn_exit
287fffe5102Smrg
288fffe5102Smrg# as_fn_mkdir_p
289fffe5102Smrg# -------------
290fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary.
291fffe5102Smrgas_fn_mkdir_p ()
292fffe5102Smrg{
29367f05d30Smrg
294fffe5102Smrg  case $as_dir in #(
295fffe5102Smrg  -*) as_dir=./$as_dir;;
296fffe5102Smrg  esac
297fffe5102Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298fffe5102Smrg    as_dirs=
299fffe5102Smrg    while :; do
300fffe5102Smrg      case $as_dir in #(
301fffe5102Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302fffe5102Smrg      *) as_qdir=$as_dir;;
303fffe5102Smrg      esac
304fffe5102Smrg      as_dirs="'$as_qdir' $as_dirs"
305fffe5102Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307fffe5102Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308fffe5102Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309fffe5102Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310fffe5102Smrg$as_echo X"$as_dir" |
311fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312fffe5102Smrg	    s//\1/
313fffe5102Smrg	    q
314fffe5102Smrg	  }
315fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
316fffe5102Smrg	    s//\1/
317fffe5102Smrg	    q
318fffe5102Smrg	  }
319fffe5102Smrg	  /^X\(\/\/\)$/{
320fffe5102Smrg	    s//\1/
321fffe5102Smrg	    q
322fffe5102Smrg	  }
323fffe5102Smrg	  /^X\(\/\).*/{
324fffe5102Smrg	    s//\1/
325fffe5102Smrg	    q
326fffe5102Smrg	  }
327fffe5102Smrg	  s/.*/./; q'`
328fffe5102Smrg      test -d "$as_dir" && break
329fffe5102Smrg    done
330fffe5102Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331fc51f767Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332fffe5102Smrg
333fffe5102Smrg
334fffe5102Smrg} # as_fn_mkdir_p
335fffe5102Smrg# as_fn_append VAR VALUE
336fffe5102Smrg# ----------------------
337fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over
339fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive
340fffe5102Smrg# implementations.
341fffe5102Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342fffe5102Smrg  eval 'as_fn_append ()
343fffe5102Smrg  {
344fffe5102Smrg    eval $1+=\$2
345fffe5102Smrg  }'
346fffe5102Smrgelse
347fffe5102Smrg  as_fn_append ()
348fffe5102Smrg  {
349fffe5102Smrg    eval $1=\$$1\$2
350fffe5102Smrg  }
351fffe5102Smrgfi # as_fn_append
352fffe5102Smrg
353fffe5102Smrg# as_fn_arith ARG...
354fffe5102Smrg# ------------------
355fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357fffe5102Smrg# must be portable across $(()) and expr.
358fffe5102Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359fffe5102Smrg  eval 'as_fn_arith ()
360fffe5102Smrg  {
361fffe5102Smrg    as_val=$(( $* ))
362fffe5102Smrg  }'
363fffe5102Smrgelse
364fffe5102Smrg  as_fn_arith ()
365fffe5102Smrg  {
366fffe5102Smrg    as_val=`expr "$@" || test $? -eq 1`
367fffe5102Smrg  }
368fffe5102Smrgfi # as_fn_arith
369fffe5102Smrg
370fffe5102Smrg
371fc51f767Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372fc51f767Smrg# ----------------------------------------
373fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375fc51f767Smrg# script with STATUS, using 1 if that was 0.
376fffe5102Smrgas_fn_error ()
377fffe5102Smrg{
378fc51f767Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379fc51f767Smrg  if test "$4"; then
380fc51f767Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381fc51f767Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382fffe5102Smrg  fi
383fc51f767Smrg  $as_echo "$as_me: error: $2" >&2
384fffe5102Smrg  as_fn_exit $as_status
385fffe5102Smrg} # as_fn_error
386fffe5102Smrg
387fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388fffe5102Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38967f05d30Smrg  as_expr=expr
39067f05d30Smrgelse
39167f05d30Smrg  as_expr=false
39267f05d30Smrgfi
39367f05d30Smrg
394fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39567f05d30Smrg  as_basename=basename
39667f05d30Smrgelse
39767f05d30Smrg  as_basename=false
39867f05d30Smrgfi
39967f05d30Smrg
400fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401fffe5102Smrg  as_dirname=dirname
402fffe5102Smrgelse
403fffe5102Smrg  as_dirname=false
404fffe5102Smrgfi
40567f05d30Smrg
406fffe5102Smrgas_me=`$as_basename -- "$0" ||
40767f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40867f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
409fffe5102Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410fffe5102Smrg$as_echo X/"$0" |
411fffe5102Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412fffe5102Smrg	    s//\1/
413fffe5102Smrg	    q
414fffe5102Smrg	  }
415fffe5102Smrg	  /^X\/\(\/\/\)$/{
416fffe5102Smrg	    s//\1/
417fffe5102Smrg	    q
418fffe5102Smrg	  }
419fffe5102Smrg	  /^X\/\(\/\).*/{
420fffe5102Smrg	    s//\1/
421fffe5102Smrg	    q
422fffe5102Smrg	  }
423fffe5102Smrg	  s/.*/./; q'`
42467f05d30Smrg
42567f05d30Smrg# Avoid depending upon Character Ranges.
42667f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
42767f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42867f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42967f05d30Smrgas_cr_digits='0123456789'
43067f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43167f05d30Smrg
43267f05d30Smrg
433fffe5102Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434fffe5102Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435fffe5102Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436fffe5102Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437fffe5102Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438fffe5102Smrg  sed -n '
439fffe5102Smrg    p
440fffe5102Smrg    /[$]LINENO/=
441fffe5102Smrg  ' <$as_myself |
44267f05d30Smrg    sed '
443fffe5102Smrg      s/[$]LINENO.*/&-/
444fffe5102Smrg      t lineno
445fffe5102Smrg      b
446fffe5102Smrg      :lineno
44767f05d30Smrg      N
448fffe5102Smrg      :loop
449fffe5102Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45067f05d30Smrg      t loop
451fffe5102Smrg      s/-\n.*//
45267f05d30Smrg    ' >$as_me.lineno &&
453fffe5102Smrg  chmod +x "$as_me.lineno" ||
454fffe5102Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45567f05d30Smrg
45667f05d30Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
45767f05d30Smrg  # (the dirname of $[0] is not the place where we might find the
458fffe5102Smrg  # original and so on.  Autoconf is especially sensitive to this).
459fffe5102Smrg  . "./$as_me.lineno"
46067f05d30Smrg  # Exit status is that of the last command.
46167f05d30Smrg  exit
46267f05d30Smrg}
46367f05d30Smrg
464fffe5102SmrgECHO_C= ECHO_N= ECHO_T=
465fffe5102Smrgcase `echo -n x` in #(((((
466fffe5102Smrg-n*)
467fffe5102Smrg  case `echo 'xy\c'` in
468fffe5102Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469fffe5102Smrg  xy)  ECHO_C='\c';;
470fffe5102Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471fffe5102Smrg       ECHO_T='	';;
472fffe5102Smrg  esac;;
473fffe5102Smrg*)
474fffe5102Smrg  ECHO_N='-n';;
47567f05d30Smrgesac
47667f05d30Smrg
477fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file
478fffe5102Smrgif test -d conf$$.dir; then
479fffe5102Smrg  rm -f conf$$.dir/conf$$.file
48067f05d30Smrgelse
481fffe5102Smrg  rm -f conf$$.dir
482fffe5102Smrg  mkdir conf$$.dir 2>/dev/null
48367f05d30Smrgfi
484fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then
485fffe5102Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
48667f05d30Smrg    as_ln_s='ln -s'
487fffe5102Smrg    # ... but there are two gotchas:
488fffe5102Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489fffe5102Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490fffe5102Smrg    # In both cases, we have to default to `cp -p'.
491fffe5102Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492fffe5102Smrg      as_ln_s='cp -p'
493fffe5102Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494fffe5102Smrg    as_ln_s=ln
495fffe5102Smrg  else
496fffe5102Smrg    as_ln_s='cp -p'
49767f05d30Smrg  fi
49867f05d30Smrgelse
49967f05d30Smrg  as_ln_s='cp -p'
50067f05d30Smrgfi
501fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502fffe5102Smrgrmdir conf$$.dir 2>/dev/null
50367f05d30Smrg
50467f05d30Smrgif mkdir -p . 2>/dev/null; then
505fffe5102Smrg  as_mkdir_p='mkdir -p "$as_dir"'
50667f05d30Smrgelse
50767f05d30Smrg  test -d ./-p && rmdir ./-p
50867f05d30Smrg  as_mkdir_p=false
50967f05d30Smrgfi
51067f05d30Smrg
511fffe5102Smrgif test -x / >/dev/null 2>&1; then
512fffe5102Smrg  as_test_x='test -x'
513fffe5102Smrgelse
514fffe5102Smrg  if ls -dL / >/dev/null 2>&1; then
515fffe5102Smrg    as_ls_L_option=L
516fffe5102Smrg  else
517fffe5102Smrg    as_ls_L_option=
518fffe5102Smrg  fi
519fffe5102Smrg  as_test_x='
520fffe5102Smrg    eval sh -c '\''
521fffe5102Smrg      if test -d "$1"; then
522fffe5102Smrg	test -d "$1/.";
523fffe5102Smrg      else
524fffe5102Smrg	case $1 in #(
525fffe5102Smrg	-*)set "./$1";;
526fffe5102Smrg	esac;
527fffe5102Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528fffe5102Smrg	???[sx]*):;;*)false;;esac;fi
529fffe5102Smrg    '\'' sh
530fffe5102Smrg  '
531fffe5102Smrgfi
532fffe5102Smrgas_executable_p=$as_test_x
53367f05d30Smrg
53467f05d30Smrg# Sed expression to map a string onto a valid CPP name.
53567f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53667f05d30Smrg
53767f05d30Smrg# Sed expression to map a string onto a valid variable name.
53867f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53967f05d30Smrg
54067f05d30Smrg
541fffe5102Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542fffe5102Smrgexec 6>&1
54367f05d30Smrg
54467f05d30Smrg# Name of the host.
545fc51f767Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54667f05d30Smrg# so uname gets run too.
54767f05d30Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54867f05d30Smrg
54967f05d30Smrg#
55067f05d30Smrg# Initializations.
55167f05d30Smrg#
55267f05d30Smrgac_default_prefix=/usr/local
553fffe5102Smrgac_clean_files=
55467f05d30Smrgac_config_libobj_dir=.
555fffe5102SmrgLIBOBJS=
55667f05d30Smrgcross_compiling=no
55767f05d30Smrgsubdirs=
55867f05d30SmrgMFLAGS=
55967f05d30SmrgMAKEFLAGS=
56067f05d30Smrg
56167f05d30Smrg# Identity of this package.
56267f05d30SmrgPACKAGE_NAME='viewres'
56367f05d30SmrgPACKAGE_TARNAME='viewres'
564fc51f767SmrgPACKAGE_VERSION='1.0.3'
565fc51f767SmrgPACKAGE_STRING='viewres 1.0.3'
56667f05d30SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567fffe5102SmrgPACKAGE_URL=''
56867f05d30Smrg
569fffe5102Smrg# Factoring default headers for most tests.
570fffe5102Smrgac_includes_default="\
571fffe5102Smrg#include <stdio.h>
572fffe5102Smrg#ifdef HAVE_SYS_TYPES_H
573fffe5102Smrg# include <sys/types.h>
574fffe5102Smrg#endif
575fffe5102Smrg#ifdef HAVE_SYS_STAT_H
576fffe5102Smrg# include <sys/stat.h>
577fffe5102Smrg#endif
578fffe5102Smrg#ifdef STDC_HEADERS
579fffe5102Smrg# include <stdlib.h>
580fffe5102Smrg# include <stddef.h>
581fffe5102Smrg#else
582fffe5102Smrg# ifdef HAVE_STDLIB_H
583fffe5102Smrg#  include <stdlib.h>
584fffe5102Smrg# endif
585fffe5102Smrg#endif
586fffe5102Smrg#ifdef HAVE_STRING_H
587fffe5102Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588fffe5102Smrg#  include <memory.h>
589fffe5102Smrg# endif
590fffe5102Smrg# include <string.h>
591fffe5102Smrg#endif
592fffe5102Smrg#ifdef HAVE_STRINGS_H
593fffe5102Smrg# include <strings.h>
594fffe5102Smrg#endif
595fffe5102Smrg#ifdef HAVE_INTTYPES_H
596fffe5102Smrg# include <inttypes.h>
597fffe5102Smrg#endif
598fffe5102Smrg#ifdef HAVE_STDINT_H
599fffe5102Smrg# include <stdint.h>
600fffe5102Smrg#endif
601fffe5102Smrg#ifdef HAVE_UNISTD_H
602fffe5102Smrg# include <unistd.h>
603fffe5102Smrg#endif"
604fffe5102Smrg
605fffe5102Smrgac_subst_vars='am__EXEEXT_FALSE
606fffe5102Smrgam__EXEEXT_TRUE
607fffe5102SmrgLTLIBOBJS
608fffe5102SmrgLIBOBJS
609fffe5102Smrgappdefaultdir
610fffe5102SmrgVIEWRES_LIBS
611fffe5102SmrgVIEWRES_CFLAGS
612fc51f767SmrgAM_BACKSLASH
613fc51f767SmrgAM_DEFAULT_VERBOSITY
614fc51f767SmrgMAN_SUBSTS
615fc51f767SmrgXORG_MAN_PAGE
616fffe5102SmrgADMIN_MAN_DIR
617fffe5102SmrgDRIVER_MAN_DIR
618fffe5102SmrgMISC_MAN_DIR
619fffe5102SmrgFILE_MAN_DIR
620fffe5102SmrgLIB_MAN_DIR
621fffe5102SmrgAPP_MAN_DIR
622fffe5102SmrgADMIN_MAN_SUFFIX
623fffe5102SmrgDRIVER_MAN_SUFFIX
624fffe5102SmrgMISC_MAN_SUFFIX
625fffe5102SmrgFILE_MAN_SUFFIX
626fffe5102SmrgLIB_MAN_SUFFIX
627fffe5102SmrgAPP_MAN_SUFFIX
628fc51f767SmrgSED
629fffe5102Smrghost_os
630fffe5102Smrghost_vendor
631fffe5102Smrghost_cpu
632fffe5102Smrghost
633fffe5102Smrgbuild_os
634fffe5102Smrgbuild_vendor
635fffe5102Smrgbuild_cpu
636fffe5102Smrgbuild
637fffe5102SmrgINSTALL_CMD
638fffe5102SmrgPKG_CONFIG
639fffe5102SmrgCHANGELOG_CMD
640fffe5102SmrgCWARNFLAGS
641fffe5102SmrgEGREP
642fffe5102SmrgGREP
643fffe5102SmrgCPP
644fffe5102Smrgam__fastdepCC_FALSE
645fffe5102Smrgam__fastdepCC_TRUE
646fffe5102SmrgCCDEPMODE
647fffe5102SmrgAMDEPBACKSLASH
648fffe5102SmrgAMDEP_FALSE
649fffe5102SmrgAMDEP_TRUE
650fffe5102Smrgam__quote
651fffe5102Smrgam__include
652fffe5102SmrgDEPDIR
653fffe5102SmrgOBJEXT
654fffe5102SmrgEXEEXT
655fffe5102Smrgac_ct_CC
656fffe5102SmrgCPPFLAGS
657fffe5102SmrgLDFLAGS
658fffe5102SmrgCFLAGS
659fffe5102SmrgCC
660fffe5102SmrgMAINT
661fffe5102SmrgMAINTAINER_MODE_FALSE
662fffe5102SmrgMAINTAINER_MODE_TRUE
663fffe5102Smrgam__untar
664fffe5102Smrgam__tar
665fffe5102SmrgAMTAR
666fffe5102Smrgam__leading_dot
667fffe5102SmrgSET_MAKE
668fffe5102SmrgAWK
669fffe5102Smrgmkdir_p
670fffe5102SmrgMKDIR_P
671fffe5102SmrgINSTALL_STRIP_PROGRAM
672fffe5102SmrgSTRIP
673fffe5102Smrginstall_sh
674fffe5102SmrgMAKEINFO
675fffe5102SmrgAUTOHEADER
676fffe5102SmrgAUTOMAKE
677fffe5102SmrgAUTOCONF
678fffe5102SmrgACLOCAL
679fffe5102SmrgVERSION
680fffe5102SmrgPACKAGE
681fffe5102SmrgCYGPATH_W
682fffe5102Smrgam__isrc
683fffe5102SmrgINSTALL_DATA
684fffe5102SmrgINSTALL_SCRIPT
685fffe5102SmrgINSTALL_PROGRAM
686fffe5102Smrgtarget_alias
687fffe5102Smrghost_alias
688fffe5102Smrgbuild_alias
689fffe5102SmrgLIBS
690fffe5102SmrgECHO_T
691fffe5102SmrgECHO_N
692fffe5102SmrgECHO_C
693fffe5102SmrgDEFS
694fffe5102Smrgmandir
695fffe5102Smrglocaledir
696fffe5102Smrglibdir
697fffe5102Smrgpsdir
698fffe5102Smrgpdfdir
699fffe5102Smrgdvidir
700fffe5102Smrghtmldir
701fffe5102Smrginfodir
702fffe5102Smrgdocdir
703fffe5102Smrgoldincludedir
704fffe5102Smrgincludedir
705fffe5102Smrglocalstatedir
706fffe5102Smrgsharedstatedir
707fffe5102Smrgsysconfdir
708fffe5102Smrgdatadir
709fffe5102Smrgdatarootdir
710fffe5102Smrglibexecdir
711fffe5102Smrgsbindir
712fffe5102Smrgbindir
713fffe5102Smrgprogram_transform_name
714fffe5102Smrgprefix
715fffe5102Smrgexec_prefix
716fffe5102SmrgPACKAGE_URL
717fffe5102SmrgPACKAGE_BUGREPORT
718fffe5102SmrgPACKAGE_STRING
719fffe5102SmrgPACKAGE_VERSION
720fffe5102SmrgPACKAGE_TARNAME
721fffe5102SmrgPACKAGE_NAME
722fffe5102SmrgPATH_SEPARATOR
723fffe5102SmrgSHELL'
72467f05d30Smrgac_subst_files=''
725fffe5102Smrgac_user_opts='
726fffe5102Smrgenable_option_checking
727fffe5102Smrgenable_maintainer_mode
728fffe5102Smrgenable_dependency_tracking
729fffe5102Smrgenable_strict_compilation
730fc51f767Smrgenable_silent_rules
731fffe5102Smrgwith_appdefaultdir
732fffe5102Smrg'
733fffe5102Smrg      ac_precious_vars='build_alias
734fffe5102Smrghost_alias
735fffe5102Smrgtarget_alias
736fffe5102SmrgCC
737fffe5102SmrgCFLAGS
738fffe5102SmrgLDFLAGS
739fffe5102SmrgLIBS
740fffe5102SmrgCPPFLAGS
741fffe5102SmrgCPP
742fffe5102SmrgPKG_CONFIG
743fffe5102SmrgVIEWRES_CFLAGS
744fc51f767SmrgVIEWRES_LIBS'
745fffe5102Smrg
74667f05d30Smrg
74767f05d30Smrg# Initialize some variables set by options.
74867f05d30Smrgac_init_help=
74967f05d30Smrgac_init_version=false
750fffe5102Smrgac_unrecognized_opts=
751fffe5102Smrgac_unrecognized_sep=
75267f05d30Smrg# The variables have the same names as the options, with
75367f05d30Smrg# dashes changed to underlines.
75467f05d30Smrgcache_file=/dev/null
75567f05d30Smrgexec_prefix=NONE
75667f05d30Smrgno_create=
75767f05d30Smrgno_recursion=
75867f05d30Smrgprefix=NONE
75967f05d30Smrgprogram_prefix=NONE
76067f05d30Smrgprogram_suffix=NONE
76167f05d30Smrgprogram_transform_name=s,x,x,
76267f05d30Smrgsilent=
76367f05d30Smrgsite=
76467f05d30Smrgsrcdir=
76567f05d30Smrgverbose=
76667f05d30Smrgx_includes=NONE
76767f05d30Smrgx_libraries=NONE
76867f05d30Smrg
76967f05d30Smrg# Installation directory options.
77067f05d30Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
77167f05d30Smrg# and all the variables that are supposed to be based on exec_prefix
77267f05d30Smrg# by default will actually change.
77367f05d30Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
774fffe5102Smrg# (The list follows the same order as the GNU Coding Standards.)
77567f05d30Smrgbindir='${exec_prefix}/bin'
77667f05d30Smrgsbindir='${exec_prefix}/sbin'
77767f05d30Smrglibexecdir='${exec_prefix}/libexec'
778fffe5102Smrgdatarootdir='${prefix}/share'
779fffe5102Smrgdatadir='${datarootdir}'
78067f05d30Smrgsysconfdir='${prefix}/etc'
78167f05d30Smrgsharedstatedir='${prefix}/com'
78267f05d30Smrglocalstatedir='${prefix}/var'
78367f05d30Smrgincludedir='${prefix}/include'
78467f05d30Smrgoldincludedir='/usr/include'
785fffe5102Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786fffe5102Smrginfodir='${datarootdir}/info'
787fffe5102Smrghtmldir='${docdir}'
788fffe5102Smrgdvidir='${docdir}'
789fffe5102Smrgpdfdir='${docdir}'
790fffe5102Smrgpsdir='${docdir}'
791fffe5102Smrglibdir='${exec_prefix}/lib'
792fffe5102Smrglocaledir='${datarootdir}/locale'
793fffe5102Smrgmandir='${datarootdir}/man'
79467f05d30Smrg
79567f05d30Smrgac_prev=
796fffe5102Smrgac_dashdash=
79767f05d30Smrgfor ac_option
79867f05d30Smrgdo
79967f05d30Smrg  # If the previous option needs an argument, assign it.
80067f05d30Smrg  if test -n "$ac_prev"; then
801fffe5102Smrg    eval $ac_prev=\$ac_option
80267f05d30Smrg    ac_prev=
80367f05d30Smrg    continue
80467f05d30Smrg  fi
80567f05d30Smrg
806fffe5102Smrg  case $ac_option in
807fc51f767Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808fc51f767Smrg  *=)   ac_optarg= ;;
809fc51f767Smrg  *)    ac_optarg=yes ;;
810fffe5102Smrg  esac
81167f05d30Smrg
81267f05d30Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
81367f05d30Smrg
814fffe5102Smrg  case $ac_dashdash$ac_option in
815fffe5102Smrg  --)
816fffe5102Smrg    ac_dashdash=yes ;;
81767f05d30Smrg
81867f05d30Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81967f05d30Smrg    ac_prev=bindir ;;
82067f05d30Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82167f05d30Smrg    bindir=$ac_optarg ;;
82267f05d30Smrg
82367f05d30Smrg  -build | --build | --buil | --bui | --bu)
82467f05d30Smrg    ac_prev=build_alias ;;
82567f05d30Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
82667f05d30Smrg    build_alias=$ac_optarg ;;
82767f05d30Smrg
82867f05d30Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
82967f05d30Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
83067f05d30Smrg    ac_prev=cache_file ;;
83167f05d30Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
83267f05d30Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83367f05d30Smrg    cache_file=$ac_optarg ;;
83467f05d30Smrg
83567f05d30Smrg  --config-cache | -C)
83667f05d30Smrg    cache_file=config.cache ;;
83767f05d30Smrg
838fffe5102Smrg  -datadir | --datadir | --datadi | --datad)
83967f05d30Smrg    ac_prev=datadir ;;
840fffe5102Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
84167f05d30Smrg    datadir=$ac_optarg ;;
84267f05d30Smrg
843fffe5102Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844fffe5102Smrg  | --dataroo | --dataro | --datar)
845fffe5102Smrg    ac_prev=datarootdir ;;
846fffe5102Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847fffe5102Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848fffe5102Smrg    datarootdir=$ac_optarg ;;
849fffe5102Smrg
85067f05d30Smrg  -disable-* | --disable-*)
851fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
85267f05d30Smrg    # Reject names that are not valid shell variable names.
853fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854fc51f767Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
855fffe5102Smrg    ac_useropt_orig=$ac_useropt
856fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857fffe5102Smrg    case $ac_user_opts in
858fffe5102Smrg      *"
859fffe5102Smrg"enable_$ac_useropt"
860fffe5102Smrg"*) ;;
861fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
862fffe5102Smrg	 ac_unrecognized_sep=', ';;
863fffe5102Smrg    esac
864fffe5102Smrg    eval enable_$ac_useropt=no ;;
865fffe5102Smrg
866fffe5102Smrg  -docdir | --docdir | --docdi | --doc | --do)
867fffe5102Smrg    ac_prev=docdir ;;
868fffe5102Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869fffe5102Smrg    docdir=$ac_optarg ;;
870fffe5102Smrg
871fffe5102Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872fffe5102Smrg    ac_prev=dvidir ;;
873fffe5102Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874fffe5102Smrg    dvidir=$ac_optarg ;;
87567f05d30Smrg
87667f05d30Smrg  -enable-* | --enable-*)
877fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
87867f05d30Smrg    # Reject names that are not valid shell variable names.
879fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880fc51f767Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
881fffe5102Smrg    ac_useropt_orig=$ac_useropt
882fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883fffe5102Smrg    case $ac_user_opts in
884fffe5102Smrg      *"
885fffe5102Smrg"enable_$ac_useropt"
886fffe5102Smrg"*) ;;
887fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888fffe5102Smrg	 ac_unrecognized_sep=', ';;
88967f05d30Smrg    esac
890fffe5102Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
89167f05d30Smrg
89267f05d30Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
89367f05d30Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
89467f05d30Smrg  | --exec | --exe | --ex)
89567f05d30Smrg    ac_prev=exec_prefix ;;
89667f05d30Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
89767f05d30Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
89867f05d30Smrg  | --exec=* | --exe=* | --ex=*)
89967f05d30Smrg    exec_prefix=$ac_optarg ;;
90067f05d30Smrg
90167f05d30Smrg  -gas | --gas | --ga | --g)
90267f05d30Smrg    # Obsolete; use --with-gas.
90367f05d30Smrg    with_gas=yes ;;
90467f05d30Smrg
90567f05d30Smrg  -help | --help | --hel | --he | -h)
90667f05d30Smrg    ac_init_help=long ;;
90767f05d30Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
90867f05d30Smrg    ac_init_help=recursive ;;
90967f05d30Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
91067f05d30Smrg    ac_init_help=short ;;
91167f05d30Smrg
91267f05d30Smrg  -host | --host | --hos | --ho)
91367f05d30Smrg    ac_prev=host_alias ;;
91467f05d30Smrg  -host=* | --host=* | --hos=* | --ho=*)
91567f05d30Smrg    host_alias=$ac_optarg ;;
91667f05d30Smrg
917fffe5102Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918fffe5102Smrg    ac_prev=htmldir ;;
919fffe5102Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920fffe5102Smrg  | --ht=*)
921fffe5102Smrg    htmldir=$ac_optarg ;;
922fffe5102Smrg
92367f05d30Smrg  -includedir | --includedir | --includedi | --included | --include \
92467f05d30Smrg  | --includ | --inclu | --incl | --inc)
92567f05d30Smrg    ac_prev=includedir ;;
92667f05d30Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
92767f05d30Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
92867f05d30Smrg    includedir=$ac_optarg ;;
92967f05d30Smrg
93067f05d30Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
93167f05d30Smrg    ac_prev=infodir ;;
93267f05d30Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
93367f05d30Smrg    infodir=$ac_optarg ;;
93467f05d30Smrg
93567f05d30Smrg  -libdir | --libdir | --libdi | --libd)
93667f05d30Smrg    ac_prev=libdir ;;
93767f05d30Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
93867f05d30Smrg    libdir=$ac_optarg ;;
93967f05d30Smrg
94067f05d30Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
94167f05d30Smrg  | --libexe | --libex | --libe)
94267f05d30Smrg    ac_prev=libexecdir ;;
94367f05d30Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
94467f05d30Smrg  | --libexe=* | --libex=* | --libe=*)
94567f05d30Smrg    libexecdir=$ac_optarg ;;
94667f05d30Smrg
947fffe5102Smrg  -localedir | --localedir | --localedi | --localed | --locale)
948fffe5102Smrg    ac_prev=localedir ;;
949fffe5102Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950fffe5102Smrg    localedir=$ac_optarg ;;
951fffe5102Smrg
95267f05d30Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
953fffe5102Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
95467f05d30Smrg    ac_prev=localstatedir ;;
95567f05d30Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956fffe5102Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
95767f05d30Smrg    localstatedir=$ac_optarg ;;
95867f05d30Smrg
95967f05d30Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
96067f05d30Smrg    ac_prev=mandir ;;
96167f05d30Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
96267f05d30Smrg    mandir=$ac_optarg ;;
96367f05d30Smrg
96467f05d30Smrg  -nfp | --nfp | --nf)
96567f05d30Smrg    # Obsolete; use --without-fp.
96667f05d30Smrg    with_fp=no ;;
96767f05d30Smrg
96867f05d30Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
96967f05d30Smrg  | --no-cr | --no-c | -n)
97067f05d30Smrg    no_create=yes ;;
97167f05d30Smrg
97267f05d30Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
97367f05d30Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
97467f05d30Smrg    no_recursion=yes ;;
97567f05d30Smrg
97667f05d30Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
97767f05d30Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
97867f05d30Smrg  | --oldin | --oldi | --old | --ol | --o)
97967f05d30Smrg    ac_prev=oldincludedir ;;
98067f05d30Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
98167f05d30Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
98267f05d30Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
98367f05d30Smrg    oldincludedir=$ac_optarg ;;
98467f05d30Smrg
98567f05d30Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
98667f05d30Smrg    ac_prev=prefix ;;
98767f05d30Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
98867f05d30Smrg    prefix=$ac_optarg ;;
98967f05d30Smrg
99067f05d30Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
99167f05d30Smrg  | --program-pre | --program-pr | --program-p)
99267f05d30Smrg    ac_prev=program_prefix ;;
99367f05d30Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
99467f05d30Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
99567f05d30Smrg    program_prefix=$ac_optarg ;;
99667f05d30Smrg
99767f05d30Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
99867f05d30Smrg  | --program-suf | --program-su | --program-s)
99967f05d30Smrg    ac_prev=program_suffix ;;
100067f05d30Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
100167f05d30Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
100267f05d30Smrg    program_suffix=$ac_optarg ;;
100367f05d30Smrg
100467f05d30Smrg  -program-transform-name | --program-transform-name \
100567f05d30Smrg  | --program-transform-nam | --program-transform-na \
100667f05d30Smrg  | --program-transform-n | --program-transform- \
100767f05d30Smrg  | --program-transform | --program-transfor \
100867f05d30Smrg  | --program-transfo | --program-transf \
100967f05d30Smrg  | --program-trans | --program-tran \
101067f05d30Smrg  | --progr-tra | --program-tr | --program-t)
101167f05d30Smrg    ac_prev=program_transform_name ;;
101267f05d30Smrg  -program-transform-name=* | --program-transform-name=* \
101367f05d30Smrg  | --program-transform-nam=* | --program-transform-na=* \
101467f05d30Smrg  | --program-transform-n=* | --program-transform-=* \
101567f05d30Smrg  | --program-transform=* | --program-transfor=* \
101667f05d30Smrg  | --program-transfo=* | --program-transf=* \
101767f05d30Smrg  | --program-trans=* | --program-tran=* \
101867f05d30Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
101967f05d30Smrg    program_transform_name=$ac_optarg ;;
102067f05d30Smrg
1021fffe5102Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022fffe5102Smrg    ac_prev=pdfdir ;;
1023fffe5102Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024fffe5102Smrg    pdfdir=$ac_optarg ;;
1025fffe5102Smrg
1026fffe5102Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1027fffe5102Smrg    ac_prev=psdir ;;
1028fffe5102Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029fffe5102Smrg    psdir=$ac_optarg ;;
1030fffe5102Smrg
103167f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
103267f05d30Smrg  | -silent | --silent | --silen | --sile | --sil)
103367f05d30Smrg    silent=yes ;;
103467f05d30Smrg
103567f05d30Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
103667f05d30Smrg    ac_prev=sbindir ;;
103767f05d30Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
103867f05d30Smrg  | --sbi=* | --sb=*)
103967f05d30Smrg    sbindir=$ac_optarg ;;
104067f05d30Smrg
104167f05d30Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
104267f05d30Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
104367f05d30Smrg  | --sharedst | --shareds | --shared | --share | --shar \
104467f05d30Smrg  | --sha | --sh)
104567f05d30Smrg    ac_prev=sharedstatedir ;;
104667f05d30Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
104767f05d30Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
104867f05d30Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
104967f05d30Smrg  | --sha=* | --sh=*)
105067f05d30Smrg    sharedstatedir=$ac_optarg ;;
105167f05d30Smrg
105267f05d30Smrg  -site | --site | --sit)
105367f05d30Smrg    ac_prev=site ;;
105467f05d30Smrg  -site=* | --site=* | --sit=*)
105567f05d30Smrg    site=$ac_optarg ;;
105667f05d30Smrg
105767f05d30Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
105867f05d30Smrg    ac_prev=srcdir ;;
105967f05d30Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
106067f05d30Smrg    srcdir=$ac_optarg ;;
106167f05d30Smrg
106267f05d30Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
106367f05d30Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
106467f05d30Smrg    ac_prev=sysconfdir ;;
106567f05d30Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
106667f05d30Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
106767f05d30Smrg    sysconfdir=$ac_optarg ;;
106867f05d30Smrg
106967f05d30Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
107067f05d30Smrg    ac_prev=target_alias ;;
107167f05d30Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
107267f05d30Smrg    target_alias=$ac_optarg ;;
107367f05d30Smrg
107467f05d30Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
107567f05d30Smrg    verbose=yes ;;
107667f05d30Smrg
107767f05d30Smrg  -version | --version | --versio | --versi | --vers | -V)
107867f05d30Smrg    ac_init_version=: ;;
107967f05d30Smrg
108067f05d30Smrg  -with-* | --with-*)
1081fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
108267f05d30Smrg    # Reject names that are not valid shell variable names.
1083fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084fc51f767Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1085fffe5102Smrg    ac_useropt_orig=$ac_useropt
1086fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087fffe5102Smrg    case $ac_user_opts in
1088fffe5102Smrg      *"
1089fffe5102Smrg"with_$ac_useropt"
1090fffe5102Smrg"*) ;;
1091fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092fffe5102Smrg	 ac_unrecognized_sep=', ';;
109367f05d30Smrg    esac
1094fffe5102Smrg    eval with_$ac_useropt=\$ac_optarg ;;
109567f05d30Smrg
109667f05d30Smrg  -without-* | --without-*)
1097fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
109867f05d30Smrg    # Reject names that are not valid shell variable names.
1099fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100fc51f767Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1101fffe5102Smrg    ac_useropt_orig=$ac_useropt
1102fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103fffe5102Smrg    case $ac_user_opts in
1104fffe5102Smrg      *"
1105fffe5102Smrg"with_$ac_useropt"
1106fffe5102Smrg"*) ;;
1107fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1108fffe5102Smrg	 ac_unrecognized_sep=', ';;
1109fffe5102Smrg    esac
1110fffe5102Smrg    eval with_$ac_useropt=no ;;
111167f05d30Smrg
111267f05d30Smrg  --x)
111367f05d30Smrg    # Obsolete; use --with-x.
111467f05d30Smrg    with_x=yes ;;
111567f05d30Smrg
111667f05d30Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
111767f05d30Smrg  | --x-incl | --x-inc | --x-in | --x-i)
111867f05d30Smrg    ac_prev=x_includes ;;
111967f05d30Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
112067f05d30Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
112167f05d30Smrg    x_includes=$ac_optarg ;;
112267f05d30Smrg
112367f05d30Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
112467f05d30Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
112567f05d30Smrg    ac_prev=x_libraries ;;
112667f05d30Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
112767f05d30Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
112867f05d30Smrg    x_libraries=$ac_optarg ;;
112967f05d30Smrg
1130fc51f767Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1131fc51f767SmrgTry \`$0 --help' for more information"
113267f05d30Smrg    ;;
113367f05d30Smrg
113467f05d30Smrg  *=*)
113567f05d30Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
113667f05d30Smrg    # Reject names that are not valid shell variable names.
1137fffe5102Smrg    case $ac_envvar in #(
1138fffe5102Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1139fc51f767Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1140fffe5102Smrg    esac
1141fffe5102Smrg    eval $ac_envvar=\$ac_optarg
114267f05d30Smrg    export $ac_envvar ;;
114367f05d30Smrg
114467f05d30Smrg  *)
114567f05d30Smrg    # FIXME: should be removed in autoconf 3.0.
1146fffe5102Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
114767f05d30Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148fffe5102Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149fc51f767Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
115067f05d30Smrg    ;;
115167f05d30Smrg
115267f05d30Smrg  esac
115367f05d30Smrgdone
115467f05d30Smrg
115567f05d30Smrgif test -n "$ac_prev"; then
115667f05d30Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157fc51f767Smrg  as_fn_error $? "missing argument to $ac_option"
115867f05d30Smrgfi
115967f05d30Smrg
1160fffe5102Smrgif test -n "$ac_unrecognized_opts"; then
1161fffe5102Smrg  case $enable_option_checking in
1162fffe5102Smrg    no) ;;
1163fc51f767Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1164fffe5102Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116567f05d30Smrg  esac
1166fffe5102Smrgfi
116767f05d30Smrg
1168fffe5102Smrg# Check all directory arguments for consistency.
1169fffe5102Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170fffe5102Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1171fffe5102Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172fffe5102Smrg		libdir localedir mandir
117367f05d30Smrgdo
1174fffe5102Smrg  eval ac_val=\$$ac_var
1175fffe5102Smrg  # Remove trailing slashes.
117667f05d30Smrg  case $ac_val in
1177fffe5102Smrg    */ )
1178fffe5102Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1179fffe5102Smrg      eval $ac_var=\$ac_val;;
118067f05d30Smrg  esac
1181fffe5102Smrg  # Be sure to have absolute directory names.
1182fffe5102Smrg  case $ac_val in
1183fffe5102Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1184fffe5102Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185fffe5102Smrg  esac
1186fc51f767Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
118767f05d30Smrgdone
118867f05d30Smrg
118967f05d30Smrg# There might be people who depend on the old broken behavior: `$host'
119067f05d30Smrg# used to hold the argument of --host etc.
119167f05d30Smrg# FIXME: To remove some day.
119267f05d30Smrgbuild=$build_alias
119367f05d30Smrghost=$host_alias
119467f05d30Smrgtarget=$target_alias
119567f05d30Smrg
119667f05d30Smrg# FIXME: To remove some day.
119767f05d30Smrgif test "x$host_alias" != x; then
119867f05d30Smrg  if test "x$build_alias" = x; then
119967f05d30Smrg    cross_compiling=maybe
1200fc51f767Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1201fc51f767Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
120267f05d30Smrg  elif test "x$build_alias" != "x$host_alias"; then
120367f05d30Smrg    cross_compiling=yes
120467f05d30Smrg  fi
120567f05d30Smrgfi
120667f05d30Smrg
120767f05d30Smrgac_tool_prefix=
120867f05d30Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
120967f05d30Smrg
121067f05d30Smrgtest "$silent" = yes && exec 6>/dev/null
121167f05d30Smrg
121267f05d30Smrg
1213fffe5102Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1214fffe5102Smrgac_ls_di=`ls -di .` &&
1215fffe5102Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216fc51f767Smrg  as_fn_error $? "working directory cannot be determined"
1217fffe5102Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218fc51f767Smrg  as_fn_error $? "pwd does not report name of working directory"
1219fffe5102Smrg
1220fffe5102Smrg
122167f05d30Smrg# Find the source files, if location was not specified.
122267f05d30Smrgif test -z "$srcdir"; then
122367f05d30Smrg  ac_srcdir_defaulted=yes
1224fffe5102Smrg  # Try the directory containing this script, then the parent directory.
1225fffe5102Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1226fffe5102Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227fffe5102Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1228fffe5102Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1229fffe5102Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230fffe5102Smrg$as_echo X"$as_myself" |
1231fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232fffe5102Smrg	    s//\1/
1233fffe5102Smrg	    q
1234fffe5102Smrg	  }
1235fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
1236fffe5102Smrg	    s//\1/
1237fffe5102Smrg	    q
1238fffe5102Smrg	  }
1239fffe5102Smrg	  /^X\(\/\/\)$/{
1240fffe5102Smrg	    s//\1/
1241fffe5102Smrg	    q
1242fffe5102Smrg	  }
1243fffe5102Smrg	  /^X\(\/\).*/{
1244fffe5102Smrg	    s//\1/
1245fffe5102Smrg	    q
1246fffe5102Smrg	  }
1247fffe5102Smrg	  s/.*/./; q'`
124867f05d30Smrg  srcdir=$ac_confdir
1249fffe5102Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
125067f05d30Smrg    srcdir=..
125167f05d30Smrg  fi
125267f05d30Smrgelse
125367f05d30Smrg  ac_srcdir_defaulted=no
125467f05d30Smrgfi
1255fffe5102Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1256fffe5102Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257fc51f767Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258fffe5102Smrgfi
1259fffe5102Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260fffe5102Smrgac_abs_confdir=`(
1261fc51f767Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262fffe5102Smrg	pwd)`
1263fffe5102Smrg# When building in place, set srcdir=.
1264fffe5102Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1265fffe5102Smrg  srcdir=.
1266fffe5102Smrgfi
1267fffe5102Smrg# Remove unnecessary trailing slashes from srcdir.
1268fffe5102Smrg# Double slashes in file names in object file debugging info
1269fffe5102Smrg# mess up M-x gdb in Emacs.
1270fffe5102Smrgcase $srcdir in
1271fffe5102Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272fffe5102Smrgesac
1273fffe5102Smrgfor ac_var in $ac_precious_vars; do
1274fffe5102Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275fffe5102Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1276fffe5102Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277fffe5102Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278fffe5102Smrgdone
127967f05d30Smrg
128067f05d30Smrg#
128167f05d30Smrg# Report the --help message.
128267f05d30Smrg#
128367f05d30Smrgif test "$ac_init_help" = "long"; then
128467f05d30Smrg  # Omit some internal or obsolete options to make the list less imposing.
128567f05d30Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
128667f05d30Smrg  cat <<_ACEOF
1287fc51f767Smrg\`configure' configures viewres 1.0.3 to adapt to many kinds of systems.
128867f05d30Smrg
128967f05d30SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
129067f05d30Smrg
129167f05d30SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
129267f05d30SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
129367f05d30Smrg
129467f05d30SmrgDefaults for the options are specified in brackets.
129567f05d30Smrg
129667f05d30SmrgConfiguration:
129767f05d30Smrg  -h, --help              display this help and exit
129867f05d30Smrg      --help=short        display options specific to this package
129967f05d30Smrg      --help=recursive    display the short help of all the included packages
130067f05d30Smrg  -V, --version           display version information and exit
1301fc51f767Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
130267f05d30Smrg      --cache-file=FILE   cache test results in FILE [disabled]
130367f05d30Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
130467f05d30Smrg  -n, --no-create         do not create output files
130567f05d30Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
130667f05d30Smrg
130767f05d30SmrgInstallation directories:
130867f05d30Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1309fffe5102Smrg                          [$ac_default_prefix]
131067f05d30Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1311fffe5102Smrg                          [PREFIX]
131267f05d30Smrg
131367f05d30SmrgBy default, \`make install' will install all the files in
131467f05d30Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
131567f05d30Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
131667f05d30Smrgfor instance \`--prefix=\$HOME'.
131767f05d30Smrg
131867f05d30SmrgFor better control, use the options below.
131967f05d30Smrg
132067f05d30SmrgFine tuning of the installation directories:
1321fffe5102Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1322fffe5102Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1323fffe5102Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1324fffe5102Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1325fffe5102Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1326fffe5102Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1327fffe5102Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1328fffe5102Smrg  --includedir=DIR        C header files [PREFIX/include]
1329fffe5102Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1330fffe5102Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1331fffe5102Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1332fffe5102Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1333fffe5102Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1334fffe5102Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1335fffe5102Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/viewres]
1336fffe5102Smrg  --htmldir=DIR           html documentation [DOCDIR]
1337fffe5102Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1338fffe5102Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1339fffe5102Smrg  --psdir=DIR             ps documentation [DOCDIR]
134067f05d30Smrg_ACEOF
134167f05d30Smrg
134267f05d30Smrg  cat <<\_ACEOF
134367f05d30Smrg
134467f05d30SmrgProgram names:
134567f05d30Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
134667f05d30Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
134767f05d30Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
134867f05d30Smrg
134967f05d30SmrgSystem types:
135067f05d30Smrg  --build=BUILD     configure for building on BUILD [guessed]
135167f05d30Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
135267f05d30Smrg_ACEOF
135367f05d30Smrgfi
135467f05d30Smrg
135567f05d30Smrgif test -n "$ac_init_help"; then
135667f05d30Smrg  case $ac_init_help in
1357fc51f767Smrg     short | recursive ) echo "Configuration of viewres 1.0.3:";;
135867f05d30Smrg   esac
135967f05d30Smrg  cat <<\_ACEOF
136067f05d30Smrg
136167f05d30SmrgOptional Features:
1362fffe5102Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
136367f05d30Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
136467f05d30Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1365fffe5102Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1366fffe5102Smrg			  (and sometimes confusing) to the casual installer
1367fffe5102Smrg  --disable-dependency-tracking  speeds up one-time build
1368fffe5102Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1369fffe5102Smrg  --enable-strict-compilation
1370fffe5102Smrg                          Enable all warnings from compiler and make them
1371fffe5102Smrg                          errors (default: disabled)
1372fc51f767Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1373fc51f767Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
137467f05d30Smrg
137567f05d30SmrgOptional Packages:
137667f05d30Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
137767f05d30Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1378fffe5102Smrg  --with-appdefaultdir=<pathname>
1379fffe5102Smrg                          specify directory for app-defaults files (default is
1380fffe5102Smrg                          autodetected)
138167f05d30Smrg
138267f05d30SmrgSome influential environment variables:
138367f05d30Smrg  CC          C compiler command
138467f05d30Smrg  CFLAGS      C compiler flags
138567f05d30Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
138667f05d30Smrg              nonstandard directory <lib dir>
1387fffe5102Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1388fffe5102Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389fffe5102Smrg              you have headers in a nonstandard directory <include dir>
1390fffe5102Smrg  CPP         C preprocessor
139167f05d30Smrg  PKG_CONFIG  path to pkg-config utility
1392fffe5102Smrg  VIEWRES_CFLAGS
1393fffe5102Smrg              C compiler flags for VIEWRES, overriding pkg-config
1394fffe5102Smrg  VIEWRES_LIBS
1395fffe5102Smrg              linker flags for VIEWRES, overriding pkg-config
139667f05d30Smrg
139767f05d30SmrgUse these variables to override the choices made by `configure' or to help
139867f05d30Smrgit to find libraries and programs with nonstandard names/locations.
139967f05d30Smrg
140067f05d30SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
140167f05d30Smrg_ACEOF
1402fffe5102Smrgac_status=$?
140367f05d30Smrgfi
140467f05d30Smrg
140567f05d30Smrgif test "$ac_init_help" = "recursive"; then
140667f05d30Smrg  # If there are subdirs, report their specific --help.
140767f05d30Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408fffe5102Smrg    test -d "$ac_dir" ||
1409fffe5102Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410fffe5102Smrg      continue
141167f05d30Smrg    ac_builddir=.
141267f05d30Smrg
1413fffe5102Smrgcase "$ac_dir" in
1414fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415fffe5102Smrg*)
1416fffe5102Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417fffe5102Smrg  # A ".." for each directory in $ac_dir_suffix.
1418fffe5102Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419fffe5102Smrg  case $ac_top_builddir_sub in
1420fffe5102Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421fffe5102Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422fffe5102Smrg  esac ;;
1423fffe5102Smrgesac
1424fffe5102Smrgac_abs_top_builddir=$ac_pwd
1425fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1426fffe5102Smrg# for backward compatibility:
1427fffe5102Smrgac_top_builddir=$ac_top_build_prefix
142867f05d30Smrg
142967f05d30Smrgcase $srcdir in
1430fffe5102Smrg  .)  # We are building in place.
143167f05d30Smrg    ac_srcdir=.
1432fffe5102Smrg    ac_top_srcdir=$ac_top_builddir_sub
1433fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1434fffe5102Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
143567f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1436fffe5102Smrg    ac_top_srcdir=$srcdir
1437fffe5102Smrg    ac_abs_top_srcdir=$srcdir ;;
1438fffe5102Smrg  *) # Relative name.
1439fffe5102Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440fffe5102Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1441fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
144267f05d30Smrgesac
1443fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444fffe5102Smrg
1445fffe5102Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1446fffe5102Smrg    # Check for guested configure.
1447fffe5102Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1448fffe5102Smrg      echo &&
1449fffe5102Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450fffe5102Smrg    elif test -f "$ac_srcdir/configure"; then
1451fffe5102Smrg      echo &&
1452fffe5102Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
145367f05d30Smrg    else
1454fffe5102Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455fffe5102Smrg    fi || ac_status=$?
1456fffe5102Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
145767f05d30Smrg  done
145867f05d30Smrgfi
145967f05d30Smrg
1460fffe5102Smrgtest -n "$ac_init_help" && exit $ac_status
146167f05d30Smrgif $ac_init_version; then
146267f05d30Smrg  cat <<\_ACEOF
1463fc51f767Smrgviewres configure 1.0.3
1464fc51f767Smrggenerated by GNU Autoconf 2.68
146567f05d30Smrg
1466fc51f767SmrgCopyright (C) 2010 Free Software Foundation, Inc.
146767f05d30SmrgThis configure script is free software; the Free Software Foundation
146867f05d30Smrggives unlimited permission to copy, distribute and modify it.
146967f05d30Smrg_ACEOF
1470fffe5102Smrg  exit
147167f05d30Smrgfi
147267f05d30Smrg
1473fffe5102Smrg## ------------------------ ##
1474fffe5102Smrg## Autoconf initialization. ##
1475fffe5102Smrg## ------------------------ ##
147667f05d30Smrg
1477fffe5102Smrg# ac_fn_c_try_compile LINENO
1478fffe5102Smrg# --------------------------
1479fffe5102Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1480fffe5102Smrgac_fn_c_try_compile ()
148167f05d30Smrg{
1482fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483fffe5102Smrg  rm -f conftest.$ac_objext
1484fffe5102Smrg  if { { ac_try="$ac_compile"
1485fffe5102Smrgcase "(($ac_try" in
1486fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487fffe5102Smrg  *) ac_try_echo=$ac_try;;
1488fffe5102Smrgesac
1489fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1491fffe5102Smrg  (eval "$ac_compile") 2>conftest.err
1492fffe5102Smrg  ac_status=$?
1493fffe5102Smrg  if test -s conftest.err; then
1494fffe5102Smrg    grep -v '^ *+' conftest.err >conftest.er1
1495fffe5102Smrg    cat conftest.er1 >&5
1496fffe5102Smrg    mv -f conftest.er1 conftest.err
1497fffe5102Smrg  fi
1498fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499fffe5102Smrg  test $ac_status = 0; } && {
1500fffe5102Smrg	 test -z "$ac_c_werror_flag" ||
1501fffe5102Smrg	 test ! -s conftest.err
1502fffe5102Smrg       } && test -s conftest.$ac_objext; then :
1503fffe5102Smrg  ac_retval=0
1504fffe5102Smrgelse
1505fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
1506fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
150767f05d30Smrg
1508fffe5102Smrg	ac_retval=1
1509fffe5102Smrgfi
1510fc51f767Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511fffe5102Smrg  as_fn_set_status $ac_retval
151267f05d30Smrg
1513fffe5102Smrg} # ac_fn_c_try_compile
151467f05d30Smrg
1515fc51f767Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1516fc51f767Smrg# ---------------------------------------------
1517fc51f767Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1518fc51f767Smrg# accordingly.
1519fffe5102Smrgac_fn_c_check_decl ()
1520fffe5102Smrg{
1521fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522fc51f767Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1523fc51f767Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1524fc51f767Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1525fc51f767Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1526fc51f767Smrgif eval \${$3+:} false; then :
1527fffe5102Smrg  $as_echo_n "(cached) " >&6
1528fffe5102Smrgelse
1529fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530fffe5102Smrg/* end confdefs.h.  */
1531fffe5102Smrg$4
1532fffe5102Smrgint
1533fffe5102Smrgmain ()
1534fffe5102Smrg{
1535fc51f767Smrg#ifndef $as_decl_name
1536fc51f767Smrg#ifdef __cplusplus
1537fc51f767Smrg  (void) $as_decl_use;
1538fc51f767Smrg#else
1539fc51f767Smrg  (void) $as_decl_name;
1540fc51f767Smrg#endif
1541fffe5102Smrg#endif
154267f05d30Smrg
1543fffe5102Smrg  ;
1544fffe5102Smrg  return 0;
1545fffe5102Smrg}
1546fffe5102Smrg_ACEOF
1547fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
1548fffe5102Smrg  eval "$3=yes"
1549fffe5102Smrgelse
1550fffe5102Smrg  eval "$3=no"
1551fffe5102Smrgfi
1552fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1553fffe5102Smrgfi
1554fffe5102Smrgeval ac_res=\$$3
1555fffe5102Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556fffe5102Smrg$as_echo "$ac_res" >&6; }
1557fc51f767Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
155867f05d30Smrg
1559fffe5102Smrg} # ac_fn_c_check_decl
1560fffe5102Smrg
1561fffe5102Smrg# ac_fn_c_try_cpp LINENO
1562fffe5102Smrg# ----------------------
1563fffe5102Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564fffe5102Smrgac_fn_c_try_cpp ()
1565fffe5102Smrg{
1566fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567fffe5102Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1568fffe5102Smrgcase "(($ac_try" in
1569fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570fffe5102Smrg  *) ac_try_echo=$ac_try;;
1571fffe5102Smrgesac
1572fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1574fffe5102Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575fffe5102Smrg  ac_status=$?
1576fffe5102Smrg  if test -s conftest.err; then
1577fffe5102Smrg    grep -v '^ *+' conftest.err >conftest.er1
1578fffe5102Smrg    cat conftest.er1 >&5
1579fffe5102Smrg    mv -f conftest.er1 conftest.err
1580fffe5102Smrg  fi
1581fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582fc51f767Smrg  test $ac_status = 0; } > conftest.i && {
1583fffe5102Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584fffe5102Smrg	 test ! -s conftest.err
1585fffe5102Smrg       }; then :
1586fffe5102Smrg  ac_retval=0
1587fffe5102Smrgelse
1588fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
1589fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
1590fffe5102Smrg
1591fffe5102Smrg    ac_retval=1
1592fffe5102Smrgfi
1593fc51f767Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594fffe5102Smrg  as_fn_set_status $ac_retval
1595fffe5102Smrg
1596fffe5102Smrg} # ac_fn_c_try_cpp
1597fffe5102Smrg
1598fffe5102Smrg# ac_fn_c_try_run LINENO
1599fffe5102Smrg# ----------------------
1600fffe5102Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601fffe5102Smrg# that executables *can* be run.
1602fffe5102Smrgac_fn_c_try_run ()
1603fffe5102Smrg{
1604fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605fffe5102Smrg  if { { ac_try="$ac_link"
1606fffe5102Smrgcase "(($ac_try" in
1607fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608fffe5102Smrg  *) ac_try_echo=$ac_try;;
1609fffe5102Smrgesac
1610fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1612fffe5102Smrg  (eval "$ac_link") 2>&5
1613fffe5102Smrg  ac_status=$?
1614fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615fffe5102Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616fffe5102Smrg  { { case "(($ac_try" in
1617fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618fffe5102Smrg  *) ac_try_echo=$ac_try;;
1619fffe5102Smrgesac
1620fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1622fffe5102Smrg  (eval "$ac_try") 2>&5
1623fffe5102Smrg  ac_status=$?
1624fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625fffe5102Smrg  test $ac_status = 0; }; }; then :
1626fffe5102Smrg  ac_retval=0
1627fffe5102Smrgelse
1628fffe5102Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1629fffe5102Smrg       $as_echo "$as_me: failed program was:" >&5
1630fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
1631fffe5102Smrg
1632fffe5102Smrg       ac_retval=$ac_status
1633fffe5102Smrgfi
1634fffe5102Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635fc51f767Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636fffe5102Smrg  as_fn_set_status $ac_retval
1637fffe5102Smrg
1638fffe5102Smrg} # ac_fn_c_try_run
1639fffe5102Smrg
1640fffe5102Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641fffe5102Smrg# -------------------------------------------------------
1642fffe5102Smrg# Tests whether HEADER exists and can be compiled using the include files in
1643fffe5102Smrg# INCLUDES, setting the cache variable VAR accordingly.
1644fffe5102Smrgac_fn_c_check_header_compile ()
1645fffe5102Smrg{
1646fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648fffe5102Smrg$as_echo_n "checking for $2... " >&6; }
1649fc51f767Smrgif eval \${$3+:} false; then :
1650fffe5102Smrg  $as_echo_n "(cached) " >&6
1651fffe5102Smrgelse
1652fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653fffe5102Smrg/* end confdefs.h.  */
1654fffe5102Smrg$4
1655fffe5102Smrg#include <$2>
1656fffe5102Smrg_ACEOF
1657fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
1658fffe5102Smrg  eval "$3=yes"
1659fffe5102Smrgelse
1660fffe5102Smrg  eval "$3=no"
1661fffe5102Smrgfi
1662fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663fffe5102Smrgfi
1664fffe5102Smrgeval ac_res=\$$3
1665fffe5102Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666fffe5102Smrg$as_echo "$ac_res" >&6; }
1667fc51f767Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668fffe5102Smrg
1669fffe5102Smrg} # ac_fn_c_check_header_compile
1670fffe5102Smrgcat >config.log <<_ACEOF
1671fffe5102SmrgThis file contains any messages produced by compilers while
1672fffe5102Smrgrunning configure, to aid debugging if configure makes a mistake.
1673fffe5102Smrg
1674fc51f767SmrgIt was created by viewres $as_me 1.0.3, which was
1675fc51f767Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1676fffe5102Smrg
1677fffe5102Smrg  $ $0 $@
1678fffe5102Smrg
1679fffe5102Smrg_ACEOF
1680fffe5102Smrgexec 5>>config.log
1681fffe5102Smrg{
1682fffe5102Smrgcat <<_ASUNAME
1683fffe5102Smrg## --------- ##
1684fffe5102Smrg## Platform. ##
1685fffe5102Smrg## --------- ##
1686fffe5102Smrg
1687fffe5102Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688fffe5102Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1689fffe5102Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1690fffe5102Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1691fffe5102Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1692fffe5102Smrg
1693fffe5102Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694fffe5102Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1695fffe5102Smrg
1696fffe5102Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1697fffe5102Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1698fffe5102Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699fffe5102Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1700fffe5102Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1701fffe5102Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1702fffe5102Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1703fffe5102Smrg
1704fffe5102Smrg_ASUNAME
1705fffe5102Smrg
1706fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707fffe5102Smrgfor as_dir in $PATH
1708fffe5102Smrgdo
1709fffe5102Smrg  IFS=$as_save_IFS
171067f05d30Smrg  test -z "$as_dir" && as_dir=.
1711fffe5102Smrg    $as_echo "PATH: $as_dir"
1712fffe5102Smrg  done
1713fffe5102SmrgIFS=$as_save_IFS
171467f05d30Smrg
171567f05d30Smrg} >&5
171667f05d30Smrg
171767f05d30Smrgcat >&5 <<_ACEOF
171867f05d30Smrg
171967f05d30Smrg
172067f05d30Smrg## ----------- ##
172167f05d30Smrg## Core tests. ##
172267f05d30Smrg## ----------- ##
172367f05d30Smrg
172467f05d30Smrg_ACEOF
172567f05d30Smrg
172667f05d30Smrg
172767f05d30Smrg# Keep a trace of the command line.
172867f05d30Smrg# Strip out --no-create and --no-recursion so they do not pile up.
172967f05d30Smrg# Strip out --silent because we don't want to record it for future runs.
173067f05d30Smrg# Also quote any args containing shell meta-characters.
173167f05d30Smrg# Make two passes to allow for proper duplicate-argument suppression.
173267f05d30Smrgac_configure_args=
173367f05d30Smrgac_configure_args0=
173467f05d30Smrgac_configure_args1=
173567f05d30Smrgac_must_keep_next=false
173667f05d30Smrgfor ac_pass in 1 2
173767f05d30Smrgdo
173867f05d30Smrg  for ac_arg
173967f05d30Smrg  do
174067f05d30Smrg    case $ac_arg in
174167f05d30Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
174267f05d30Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
174367f05d30Smrg    | -silent | --silent | --silen | --sile | --sil)
174467f05d30Smrg      continue ;;
1745fffe5102Smrg    *\'*)
1746fffe5102Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
174767f05d30Smrg    esac
174867f05d30Smrg    case $ac_pass in
1749fffe5102Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
175067f05d30Smrg    2)
1751fffe5102Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
175267f05d30Smrg      if test $ac_must_keep_next = true; then
175367f05d30Smrg	ac_must_keep_next=false # Got value, back to normal.
175467f05d30Smrg      else
175567f05d30Smrg	case $ac_arg in
175667f05d30Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
175767f05d30Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
175867f05d30Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
175967f05d30Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
176067f05d30Smrg	    case "$ac_configure_args0 " in
176167f05d30Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
176267f05d30Smrg	    esac
176367f05d30Smrg	    ;;
176467f05d30Smrg	  -* ) ac_must_keep_next=true ;;
176567f05d30Smrg	esac
176667f05d30Smrg      fi
1767fffe5102Smrg      as_fn_append ac_configure_args " '$ac_arg'"
176867f05d30Smrg      ;;
176967f05d30Smrg    esac
177067f05d30Smrg  done
177167f05d30Smrgdone
1772fffe5102Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1773fffe5102Smrg{ ac_configure_args1=; unset ac_configure_args1;}
177467f05d30Smrg
177567f05d30Smrg# When interrupted or exit'd, cleanup temporary files, and complete
177667f05d30Smrg# config.log.  We remove comments because anyway the quotes in there
177767f05d30Smrg# would cause problems or look ugly.
1778fffe5102Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1779fffe5102Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
178067f05d30Smrgtrap 'exit_status=$?
178167f05d30Smrg  # Save into config.log some information that might help in debugging.
178267f05d30Smrg  {
178367f05d30Smrg    echo
178467f05d30Smrg
1785fc51f767Smrg    $as_echo "## ---------------- ##
178667f05d30Smrg## Cache variables. ##
1787fc51f767Smrg## ---------------- ##"
178867f05d30Smrg    echo
178967f05d30Smrg    # The following way of writing the cache mishandles newlines in values,
1790fffe5102Smrg(
1791fffe5102Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792fffe5102Smrg    eval ac_val=\$$ac_var
1793fffe5102Smrg    case $ac_val in #(
1794fffe5102Smrg    *${as_nl}*)
1795fffe5102Smrg      case $ac_var in #(
1796fffe5102Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1797fffe5102Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1798fffe5102Smrg      esac
1799fffe5102Smrg      case $ac_var in #(
1800fffe5102Smrg      _ | IFS | as_nl) ;; #(
1801fffe5102Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802fffe5102Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1803fffe5102Smrg      esac ;;
1804fffe5102Smrg    esac
1805fffe5102Smrg  done
180667f05d30Smrg  (set) 2>&1 |
1807fffe5102Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808fffe5102Smrg    *${as_nl}ac_space=\ *)
180967f05d30Smrg      sed -n \
1810fffe5102Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1811fffe5102Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812fffe5102Smrg      ;; #(
181367f05d30Smrg    *)
1814fffe5102Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
181567f05d30Smrg      ;;
1816fffe5102Smrg    esac |
1817fffe5102Smrg    sort
1818fffe5102Smrg)
181967f05d30Smrg    echo
182067f05d30Smrg
1821fc51f767Smrg    $as_echo "## ----------------- ##
182267f05d30Smrg## Output variables. ##
1823fc51f767Smrg## ----------------- ##"
182467f05d30Smrg    echo
182567f05d30Smrg    for ac_var in $ac_subst_vars
182667f05d30Smrg    do
1827fffe5102Smrg      eval ac_val=\$$ac_var
1828fffe5102Smrg      case $ac_val in
1829fffe5102Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830fffe5102Smrg      esac
1831fffe5102Smrg      $as_echo "$ac_var='\''$ac_val'\''"
183267f05d30Smrg    done | sort
183367f05d30Smrg    echo
183467f05d30Smrg
183567f05d30Smrg    if test -n "$ac_subst_files"; then
1836fc51f767Smrg      $as_echo "## ------------------- ##
1837fffe5102Smrg## File substitutions. ##
1838fc51f767Smrg## ------------------- ##"
183967f05d30Smrg      echo
184067f05d30Smrg      for ac_var in $ac_subst_files
184167f05d30Smrg      do
1842fffe5102Smrg	eval ac_val=\$$ac_var
1843fffe5102Smrg	case $ac_val in
1844fffe5102Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845fffe5102Smrg	esac
1846fffe5102Smrg	$as_echo "$ac_var='\''$ac_val'\''"
184767f05d30Smrg      done | sort
184867f05d30Smrg      echo
184967f05d30Smrg    fi
185067f05d30Smrg
185167f05d30Smrg    if test -s confdefs.h; then
1852fc51f767Smrg      $as_echo "## ----------- ##
185367f05d30Smrg## confdefs.h. ##
1854fc51f767Smrg## ----------- ##"
185567f05d30Smrg      echo
1856fffe5102Smrg      cat confdefs.h
185767f05d30Smrg      echo
185867f05d30Smrg    fi
185967f05d30Smrg    test "$ac_signal" != 0 &&
1860fffe5102Smrg      $as_echo "$as_me: caught signal $ac_signal"
1861fffe5102Smrg    $as_echo "$as_me: exit $exit_status"
186267f05d30Smrg  } >&5
1863fffe5102Smrg  rm -f core *.core core.conftest.* &&
1864fffe5102Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
186567f05d30Smrg    exit $exit_status
1866fffe5102Smrg' 0
186767f05d30Smrgfor ac_signal in 1 2 13 15; do
1868fffe5102Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
186967f05d30Smrgdone
187067f05d30Smrgac_signal=0
187167f05d30Smrg
187267f05d30Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873fffe5102Smrgrm -f -r conftest* confdefs.h
1874fffe5102Smrg
1875fffe5102Smrg$as_echo "/* confdefs.h */" > confdefs.h
187667f05d30Smrg
187767f05d30Smrg# Predefined preprocessor variables.
187867f05d30Smrg
187967f05d30Smrgcat >>confdefs.h <<_ACEOF
188067f05d30Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
188167f05d30Smrg_ACEOF
188267f05d30Smrg
188367f05d30Smrgcat >>confdefs.h <<_ACEOF
188467f05d30Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
188567f05d30Smrg_ACEOF
188667f05d30Smrg
188767f05d30Smrgcat >>confdefs.h <<_ACEOF
188867f05d30Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
188967f05d30Smrg_ACEOF
189067f05d30Smrg
189167f05d30Smrgcat >>confdefs.h <<_ACEOF
189267f05d30Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
189367f05d30Smrg_ACEOF
189467f05d30Smrg
189567f05d30Smrgcat >>confdefs.h <<_ACEOF
189667f05d30Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
189767f05d30Smrg_ACEOF
189867f05d30Smrg
1899fffe5102Smrgcat >>confdefs.h <<_ACEOF
1900fffe5102Smrg#define PACKAGE_URL "$PACKAGE_URL"
1901fffe5102Smrg_ACEOF
1902fffe5102Smrg
190367f05d30Smrg
190467f05d30Smrg# Let the site file select an alternate cache file if it wants to.
1905fffe5102Smrg# Prefer an explicitly selected file to automatically selected ones.
1906fffe5102Smrgac_site_file1=NONE
1907fffe5102Smrgac_site_file2=NONE
1908fffe5102Smrgif test -n "$CONFIG_SITE"; then
1909fc51f767Smrg  # We do not want a PATH search for config.site.
1910fc51f767Smrg  case $CONFIG_SITE in #((
1911fc51f767Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
1912fc51f767Smrg    */*) ac_site_file1=$CONFIG_SITE;;
1913fc51f767Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
1914fc51f767Smrg  esac
1915fffe5102Smrgelif test "x$prefix" != xNONE; then
1916fffe5102Smrg  ac_site_file1=$prefix/share/config.site
1917fffe5102Smrg  ac_site_file2=$prefix/etc/config.site
1918fffe5102Smrgelse
1919fffe5102Smrg  ac_site_file1=$ac_default_prefix/share/config.site
1920fffe5102Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
192167f05d30Smrgfi
1922fffe5102Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1923fffe5102Smrgdo
1924fffe5102Smrg  test "x$ac_site_file" = xNONE && continue
1925fffe5102Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1926fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1927fffe5102Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
192867f05d30Smrg    sed 's/^/| /' "$ac_site_file" >&5
1929fc51f767Smrg    . "$ac_site_file" \
1930fc51f767Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1931fc51f767Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932fc51f767Smrgas_fn_error $? "failed to load site script $ac_site_file
1933fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
193467f05d30Smrg  fi
193567f05d30Smrgdone
193667f05d30Smrg
193767f05d30Smrgif test -r "$cache_file"; then
1938fffe5102Smrg  # Some versions of bash will fail to source /dev/null (special files
1939fffe5102Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1940fffe5102Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1941fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1942fffe5102Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
194367f05d30Smrg    case $cache_file in
1944fffe5102Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945fffe5102Smrg      *)                      . "./$cache_file";;
194667f05d30Smrg    esac
194767f05d30Smrg  fi
194867f05d30Smrgelse
1949fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1950fffe5102Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
195167f05d30Smrg  >$cache_file
195267f05d30Smrgfi
195367f05d30Smrg
195467f05d30Smrg# Check that the precious variables saved in the cache have kept the same
195567f05d30Smrg# value.
195667f05d30Smrgac_cache_corrupted=false
1957fffe5102Smrgfor ac_var in $ac_precious_vars; do
195867f05d30Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
195967f05d30Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1960fffe5102Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961fffe5102Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
196267f05d30Smrg  case $ac_old_set,$ac_new_set in
196367f05d30Smrg    set,)
1964fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
196667f05d30Smrg      ac_cache_corrupted=: ;;
196767f05d30Smrg    ,set)
1968fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1969fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
197067f05d30Smrg      ac_cache_corrupted=: ;;
197167f05d30Smrg    ,);;
197267f05d30Smrg    *)
197367f05d30Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1974fffe5102Smrg	# differences in whitespace do not lead to failure.
1975fffe5102Smrg	ac_old_val_w=`echo x $ac_old_val`
1976fffe5102Smrg	ac_new_val_w=`echo x $ac_new_val`
1977fffe5102Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978fffe5102Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1979fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980fffe5102Smrg	  ac_cache_corrupted=:
1981fffe5102Smrg	else
1982fffe5102Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1983fffe5102Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984fffe5102Smrg	  eval $ac_var=\$ac_old_val
1985fffe5102Smrg	fi
1986fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1987fffe5102Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1988fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1989fffe5102Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
199067f05d30Smrg      fi;;
199167f05d30Smrg  esac
199267f05d30Smrg  # Pass precious variables to config.status.
199367f05d30Smrg  if test "$ac_new_set" = set; then
199467f05d30Smrg    case $ac_new_val in
1995fffe5102Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
199667f05d30Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
199767f05d30Smrg    esac
199867f05d30Smrg    case " $ac_configure_args " in
199967f05d30Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2000fffe5102Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
200167f05d30Smrg    esac
200267f05d30Smrg  fi
200367f05d30Smrgdone
200467f05d30Smrgif $ac_cache_corrupted; then
2005fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2008fffe5102Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009fc51f767Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
201067f05d30Smrgfi
2011fffe5102Smrg## -------------------- ##
2012fffe5102Smrg## Main body of script. ##
2013fffe5102Smrg## -------------------- ##
201467f05d30Smrg
201567f05d30Smrgac_ext=c
201667f05d30Smrgac_cpp='$CPP $CPPFLAGS'
201767f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
201867f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
201967f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
202067f05d30Smrg
202167f05d30Smrg
2022fffe5102Smrgam__api_version='1.11'
202367f05d30Smrg
202467f05d30Smrgac_aux_dir=
2025fffe5102Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2026fc51f767Smrg  if test -f "$ac_dir/install-sh"; then
2027fc51f767Smrg    ac_aux_dir=$ac_dir
2028fc51f767Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2029fc51f767Smrg    break
2030fc51f767Smrg  elif test -f "$ac_dir/install.sh"; then
2031fc51f767Smrg    ac_aux_dir=$ac_dir
2032fc51f767Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2033fc51f767Smrg    break
2034fc51f767Smrg  elif test -f "$ac_dir/shtool"; then
2035fc51f767Smrg    ac_aux_dir=$ac_dir
2036fc51f767Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2037fc51f767Smrg    break
2038fc51f767Smrg  fi
203967f05d30Smrgdone
204067f05d30Smrgif test -z "$ac_aux_dir"; then
2041fc51f767Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
204267f05d30Smrgfi
2043fffe5102Smrg
2044fffe5102Smrg# These three variables are undocumented and unsupported,
2045fffe5102Smrg# and are intended to be withdrawn in a future Autoconf release.
2046fffe5102Smrg# They can cause serious problems if a builder's source tree is in a directory
2047fffe5102Smrg# whose full name contains unusual characters.
2048fffe5102Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2049fffe5102Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2050fffe5102Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2051fffe5102Smrg
205267f05d30Smrg
205367f05d30Smrg# Find a good install program.  We prefer a C program (faster),
205467f05d30Smrg# so one script is as good as another.  But avoid the broken or
205567f05d30Smrg# incompatible versions:
205667f05d30Smrg# SysV /etc/install, /usr/sbin/install
205767f05d30Smrg# SunOS /usr/etc/install
205867f05d30Smrg# IRIX /sbin/install
205967f05d30Smrg# AIX /bin/install
206067f05d30Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
206167f05d30Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
206267f05d30Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
206367f05d30Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
206467f05d30Smrg# OS/2's system install, which has a completely different semantic
206567f05d30Smrg# ./install, which can be erroneously created by make from ./install.sh.
2066fffe5102Smrg# Reject install programs that cannot install multiple files.
2067fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2068fffe5102Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
206967f05d30Smrgif test -z "$INSTALL"; then
2070fc51f767Smrgif ${ac_cv_path_install+:} false; then :
2071fffe5102Smrg  $as_echo_n "(cached) " >&6
207267f05d30Smrgelse
207367f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207467f05d30Smrgfor as_dir in $PATH
207567f05d30Smrgdo
207667f05d30Smrg  IFS=$as_save_IFS
207767f05d30Smrg  test -z "$as_dir" && as_dir=.
2078fffe5102Smrg    # Account for people who put trailing slashes in PATH elements.
2079fffe5102Smrgcase $as_dir/ in #((
2080fffe5102Smrg  ./ | .// | /[cC]/* | \
208167f05d30Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2082fffe5102Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
208367f05d30Smrg  /usr/ucb/* ) ;;
208467f05d30Smrg  *)
208567f05d30Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
208667f05d30Smrg    # Don't use installbsd from OSF since it installs stuff as root
208767f05d30Smrg    # by default.
208867f05d30Smrg    for ac_prog in ginstall scoinst install; do
208967f05d30Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2090fffe5102Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
209167f05d30Smrg	  if test $ac_prog = install &&
209267f05d30Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
209367f05d30Smrg	    # AIX install.  It has an incompatible calling convention.
209467f05d30Smrg	    :
209567f05d30Smrg	  elif test $ac_prog = install &&
209667f05d30Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
209767f05d30Smrg	    # program-specific install script used by HP pwplus--don't use.
209867f05d30Smrg	    :
209967f05d30Smrg	  else
2100fffe5102Smrg	    rm -rf conftest.one conftest.two conftest.dir
2101fffe5102Smrg	    echo one > conftest.one
2102fffe5102Smrg	    echo two > conftest.two
2103fffe5102Smrg	    mkdir conftest.dir
2104fffe5102Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2105fffe5102Smrg	      test -s conftest.one && test -s conftest.two &&
2106fffe5102Smrg	      test -s conftest.dir/conftest.one &&
2107fffe5102Smrg	      test -s conftest.dir/conftest.two
2108fffe5102Smrg	    then
2109fffe5102Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2110fffe5102Smrg	      break 3
2111fffe5102Smrg	    fi
211267f05d30Smrg	  fi
211367f05d30Smrg	fi
211467f05d30Smrg      done
211567f05d30Smrg    done
211667f05d30Smrg    ;;
211767f05d30Smrgesac
211867f05d30Smrg
2119fffe5102Smrg  done
2120fffe5102SmrgIFS=$as_save_IFS
2121fffe5102Smrg
2122fffe5102Smrgrm -rf conftest.one conftest.two conftest.dir
212367f05d30Smrg
212467f05d30Smrgfi
212567f05d30Smrg  if test "${ac_cv_path_install+set}" = set; then
212667f05d30Smrg    INSTALL=$ac_cv_path_install
212767f05d30Smrg  else
2128fffe5102Smrg    # As a last resort, use the slow shell script.  Don't cache a
2129fffe5102Smrg    # value for INSTALL within a source directory, because that will
213067f05d30Smrg    # break other packages using the cache if that directory is
2131fffe5102Smrg    # removed, or if the value is a relative name.
213267f05d30Smrg    INSTALL=$ac_install_sh
213367f05d30Smrg  fi
213467f05d30Smrgfi
2135fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2136fffe5102Smrg$as_echo "$INSTALL" >&6; }
213767f05d30Smrg
213867f05d30Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
213967f05d30Smrg# It thinks the first close brace ends the variable substitution.
214067f05d30Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
214167f05d30Smrg
214267f05d30Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
214367f05d30Smrg
214467f05d30Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
214567f05d30Smrg
2146fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2147fffe5102Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
214867f05d30Smrg# Just in case
214967f05d30Smrgsleep 1
215067f05d30Smrgecho timestamp > conftest.file
2151fffe5102Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2152fffe5102Smrg# name.  Accept space and tab only in the latter.
2153fffe5102Smrgam_lf='
2154fffe5102Smrg'
2155fffe5102Smrgcase `pwd` in
2156fffe5102Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2157fc51f767Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2158fffe5102Smrgesac
2159fffe5102Smrgcase $srcdir in
2160fffe5102Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2161fc51f767Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2162fffe5102Smrgesac
2163fffe5102Smrg
216467f05d30Smrg# Do `set' in a subshell so we don't clobber the current shell's
216567f05d30Smrg# arguments.  Must try -L first in case configure is actually a
216667f05d30Smrg# symlink; some systems play weird games with the mod time of symlinks
216767f05d30Smrg# (eg FreeBSD returns the mod time of the symlink's containing
216867f05d30Smrg# directory).
216967f05d30Smrgif (
2170fffe5102Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
217167f05d30Smrg   if test "$*" = "X"; then
217267f05d30Smrg      # -L didn't work.
2173fffe5102Smrg      set X `ls -t "$srcdir/configure" conftest.file`
217467f05d30Smrg   fi
217567f05d30Smrg   rm -f conftest.file
217667f05d30Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
217767f05d30Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
217867f05d30Smrg
217967f05d30Smrg      # If neither matched, then we have a broken ls.  This can happen
218067f05d30Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
218167f05d30Smrg      # broken ls alias from the environment.  This has actually
218267f05d30Smrg      # happened.  Such a system could not be considered "sane".
2183fc51f767Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2184fffe5102Smrgalias in your environment" "$LINENO" 5
218567f05d30Smrg   fi
218667f05d30Smrg
218767f05d30Smrg   test "$2" = conftest.file
218867f05d30Smrg   )
218967f05d30Smrgthen
219067f05d30Smrg   # Ok.
219167f05d30Smrg   :
219267f05d30Smrgelse
2193fc51f767Smrg   as_fn_error $? "newly created file is older than distributed files!
2194fffe5102SmrgCheck your system clock" "$LINENO" 5
219567f05d30Smrgfi
2196fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2197fffe5102Smrg$as_echo "yes" >&6; }
219867f05d30Smrgtest "$program_prefix" != NONE &&
2199fffe5102Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
220067f05d30Smrg# Use a double $ so make ignores it.
220167f05d30Smrgtest "$program_suffix" != NONE &&
2202fffe5102Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2203fffe5102Smrg# Double any \ or $.
220467f05d30Smrg# By default was `s,x,x', remove it if useless.
2205fffe5102Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2206fffe5102Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
220767f05d30Smrg
220867f05d30Smrg# expand $ac_aux_dir to an absolute path
220967f05d30Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
221067f05d30Smrg
2211fffe5102Smrgif test x"${MISSING+set}" != xset; then
2212fffe5102Smrg  case $am_aux_dir in
2213fffe5102Smrg  *\ * | *\	*)
2214fffe5102Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2215fffe5102Smrg  *)
2216fffe5102Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2217fffe5102Smrg  esac
2218fffe5102Smrgfi
221967f05d30Smrg# Use eval to expand $SHELL
222067f05d30Smrgif eval "$MISSING --run true"; then
222167f05d30Smrg  am_missing_run="$MISSING --run "
222267f05d30Smrgelse
222367f05d30Smrg  am_missing_run=
2224fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2225fffe5102Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2226fffe5102Smrgfi
2227fffe5102Smrg
2228fffe5102Smrgif test x"${install_sh}" != xset; then
2229fffe5102Smrg  case $am_aux_dir in
2230fffe5102Smrg  *\ * | *\	*)
2231fffe5102Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2232fffe5102Smrg  *)
2233fffe5102Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2234fffe5102Smrg  esac
2235fffe5102Smrgfi
2236fffe5102Smrg
2237fffe5102Smrg# Installed binaries are usually stripped using `strip' when the user
2238fffe5102Smrg# run `make install-strip'.  However `strip' might not be the right
2239fffe5102Smrg# tool to use in cross-compilation environments, therefore Automake
2240fffe5102Smrg# will honor the `STRIP' environment variable to overrule this program.
2241fffe5102Smrgif test "$cross_compiling" != no; then
2242fffe5102Smrg  if test -n "$ac_tool_prefix"; then
2243fffe5102Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2244fffe5102Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2245fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2247fc51f767Smrgif ${ac_cv_prog_STRIP+:} false; then :
2248fffe5102Smrg  $as_echo_n "(cached) " >&6
2249fffe5102Smrgelse
2250fffe5102Smrg  if test -n "$STRIP"; then
2251fffe5102Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2252fffe5102Smrgelse
2253fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254fffe5102Smrgfor as_dir in $PATH
2255fffe5102Smrgdo
2256fffe5102Smrg  IFS=$as_save_IFS
2257fffe5102Smrg  test -z "$as_dir" && as_dir=.
2258fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2259fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260fffe5102Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2261fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262fffe5102Smrg    break 2
2263fffe5102Smrg  fi
2264fffe5102Smrgdone
2265fffe5102Smrg  done
2266fffe5102SmrgIFS=$as_save_IFS
2267fffe5102Smrg
2268fffe5102Smrgfi
2269fffe5102Smrgfi
2270fffe5102SmrgSTRIP=$ac_cv_prog_STRIP
2271fffe5102Smrgif test -n "$STRIP"; then
2272fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2273fffe5102Smrg$as_echo "$STRIP" >&6; }
2274fffe5102Smrgelse
2275fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276fffe5102Smrg$as_echo "no" >&6; }
2277fffe5102Smrgfi
2278fffe5102Smrg
2279fffe5102Smrg
2280fffe5102Smrgfi
2281fffe5102Smrgif test -z "$ac_cv_prog_STRIP"; then
2282fffe5102Smrg  ac_ct_STRIP=$STRIP
2283fffe5102Smrg  # Extract the first word of "strip", so it can be a program name with args.
2284fffe5102Smrgset dummy strip; ac_word=$2
2285fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2287fc51f767Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2288fffe5102Smrg  $as_echo_n "(cached) " >&6
2289fffe5102Smrgelse
2290fffe5102Smrg  if test -n "$ac_ct_STRIP"; then
2291fffe5102Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2292fffe5102Smrgelse
2293fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294fffe5102Smrgfor as_dir in $PATH
2295fffe5102Smrgdo
2296fffe5102Smrg  IFS=$as_save_IFS
2297fffe5102Smrg  test -z "$as_dir" && as_dir=.
2298fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2299fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300fffe5102Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2301fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302fffe5102Smrg    break 2
2303fffe5102Smrg  fi
2304fffe5102Smrgdone
2305fffe5102Smrg  done
2306fffe5102SmrgIFS=$as_save_IFS
2307fffe5102Smrg
2308fffe5102Smrgfi
2309fffe5102Smrgfi
2310fffe5102Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2311fffe5102Smrgif test -n "$ac_ct_STRIP"; then
2312fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2313fffe5102Smrg$as_echo "$ac_ct_STRIP" >&6; }
2314fffe5102Smrgelse
2315fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316fffe5102Smrg$as_echo "no" >&6; }
2317fffe5102Smrgfi
2318fffe5102Smrg
2319fffe5102Smrg  if test "x$ac_ct_STRIP" = x; then
2320fffe5102Smrg    STRIP=":"
2321fffe5102Smrg  else
2322fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2323fffe5102Smrgyes:)
2324fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2325fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2326fffe5102Smrgac_tool_warned=yes ;;
2327fffe5102Smrgesac
2328fffe5102Smrg    STRIP=$ac_ct_STRIP
2329fffe5102Smrg  fi
2330fffe5102Smrgelse
2331fffe5102Smrg  STRIP="$ac_cv_prog_STRIP"
2332fffe5102Smrgfi
2333fffe5102Smrg
233467f05d30Smrgfi
2335fffe5102SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2336fffe5102Smrg
2337fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2338fffe5102Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2339fffe5102Smrgif test -z "$MKDIR_P"; then
2340fc51f767Smrg  if ${ac_cv_path_mkdir+:} false; then :
2341fffe5102Smrg  $as_echo_n "(cached) " >&6
2342fffe5102Smrgelse
2343fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2345fffe5102Smrgdo
2346fffe5102Smrg  IFS=$as_save_IFS
2347fffe5102Smrg  test -z "$as_dir" && as_dir=.
2348fffe5102Smrg    for ac_prog in mkdir gmkdir; do
2349fffe5102Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2350fffe5102Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2351fffe5102Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2352fffe5102Smrg	     'mkdir (GNU coreutils) '* | \
2353fffe5102Smrg	     'mkdir (coreutils) '* | \
2354fffe5102Smrg	     'mkdir (fileutils) '4.1*)
2355fffe5102Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2356fffe5102Smrg	       break 3;;
2357fffe5102Smrg	   esac
2358fffe5102Smrg	 done
2359fffe5102Smrg       done
2360fffe5102Smrg  done
2361fffe5102SmrgIFS=$as_save_IFS
2362fffe5102Smrg
2363fffe5102Smrgfi
2364fffe5102Smrg
2365fffe5102Smrg  test -d ./--version && rmdir ./--version
2366fffe5102Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2367fffe5102Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2368fffe5102Smrg  else
2369fffe5102Smrg    # As a last resort, use the slow shell script.  Don't cache a
2370fffe5102Smrg    # value for MKDIR_P within a source directory, because that will
2371fffe5102Smrg    # break other packages using the cache if that directory is
2372fffe5102Smrg    # removed, or if the value is a relative name.
2373fffe5102Smrg    MKDIR_P="$ac_install_sh -d"
2374fffe5102Smrg  fi
2375fffe5102Smrgfi
2376fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2377fffe5102Smrg$as_echo "$MKDIR_P" >&6; }
2378fffe5102Smrg
2379fffe5102Smrgmkdir_p="$MKDIR_P"
2380fffe5102Smrgcase $mkdir_p in
2381fffe5102Smrg  [\\/$]* | ?:[\\/]*) ;;
2382fffe5102Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2383fffe5102Smrgesac
238467f05d30Smrg
238567f05d30Smrgfor ac_prog in gawk mawk nawk awk
238667f05d30Smrgdo
238767f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
238867f05d30Smrgset dummy $ac_prog; ac_word=$2
2389fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2391fc51f767Smrgif ${ac_cv_prog_AWK+:} false; then :
2392fffe5102Smrg  $as_echo_n "(cached) " >&6
239367f05d30Smrgelse
239467f05d30Smrg  if test -n "$AWK"; then
239567f05d30Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
239667f05d30Smrgelse
239767f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
239867f05d30Smrgfor as_dir in $PATH
239967f05d30Smrgdo
240067f05d30Smrg  IFS=$as_save_IFS
240167f05d30Smrg  test -z "$as_dir" && as_dir=.
2402fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2403fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
240467f05d30Smrg    ac_cv_prog_AWK="$ac_prog"
2405fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
240667f05d30Smrg    break 2
240767f05d30Smrg  fi
240867f05d30Smrgdone
2409fffe5102Smrg  done
2410fffe5102SmrgIFS=$as_save_IFS
241167f05d30Smrg
241267f05d30Smrgfi
241367f05d30Smrgfi
241467f05d30SmrgAWK=$ac_cv_prog_AWK
241567f05d30Smrgif test -n "$AWK"; then
2416fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2417fffe5102Smrg$as_echo "$AWK" >&6; }
241867f05d30Smrgelse
2419fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420fffe5102Smrg$as_echo "no" >&6; }
242167f05d30Smrgfi
242267f05d30Smrg
2423fffe5102Smrg
242467f05d30Smrg  test -n "$AWK" && break
242567f05d30Smrgdone
242667f05d30Smrg
2427fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2428fffe5102Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2429fffe5102Smrgset x ${MAKE-make}
2430fffe5102Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2431fc51f767Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2432fffe5102Smrg  $as_echo_n "(cached) " >&6
243367f05d30Smrgelse
243467f05d30Smrg  cat >conftest.make <<\_ACEOF
2435fffe5102SmrgSHELL = /bin/sh
243667f05d30Smrgall:
2437fffe5102Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
243867f05d30Smrg_ACEOF
2439fc51f767Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2440fffe5102Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2441fffe5102Smrg  *@@@%%%=?*=@@@%%%*)
2442fffe5102Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2443fffe5102Smrg  *)
2444fffe5102Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2445fffe5102Smrgesac
244667f05d30Smrgrm -f conftest.make
244767f05d30Smrgfi
2448fffe5102Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2449fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450fffe5102Smrg$as_echo "yes" >&6; }
245167f05d30Smrg  SET_MAKE=
245267f05d30Smrgelse
2453fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454fffe5102Smrg$as_echo "no" >&6; }
245567f05d30Smrg  SET_MAKE="MAKE=${MAKE-make}"
245667f05d30Smrgfi
245767f05d30Smrg
245867f05d30Smrgrm -rf .tst 2>/dev/null
245967f05d30Smrgmkdir .tst 2>/dev/null
246067f05d30Smrgif test -d .tst; then
246167f05d30Smrg  am__leading_dot=.
246267f05d30Smrgelse
246367f05d30Smrg  am__leading_dot=_
246467f05d30Smrgfi
246567f05d30Smrgrmdir .tst 2>/dev/null
246667f05d30Smrg
2467fffe5102Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2468fffe5102Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2469fffe5102Smrg  # is not polluted with repeated "-I."
2470fffe5102Smrg  am__isrc=' -I$(srcdir)'
2471fffe5102Smrg  # test to see if srcdir already configured
2472fffe5102Smrg  if test -f $srcdir/config.status; then
2473fc51f767Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2474fffe5102Smrg  fi
247567f05d30Smrgfi
247667f05d30Smrg
247767f05d30Smrg# test whether we have cygpath
247867f05d30Smrgif test -z "$CYGPATH_W"; then
247967f05d30Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
248067f05d30Smrg    CYGPATH_W='cygpath -w'
248167f05d30Smrg  else
248267f05d30Smrg    CYGPATH_W=echo
248367f05d30Smrg  fi
248467f05d30Smrgfi
248567f05d30Smrg
248667f05d30Smrg
248767f05d30Smrg# Define the identity of the package.
248867f05d30Smrg PACKAGE='viewres'
2489fc51f767Smrg VERSION='1.0.3'
249067f05d30Smrg
249167f05d30Smrg
249267f05d30Smrgcat >>confdefs.h <<_ACEOF
249367f05d30Smrg#define PACKAGE "$PACKAGE"
249467f05d30Smrg_ACEOF
249567f05d30Smrg
249667f05d30Smrg
249767f05d30Smrgcat >>confdefs.h <<_ACEOF
249867f05d30Smrg#define VERSION "$VERSION"
249967f05d30Smrg_ACEOF
250067f05d30Smrg
250167f05d30Smrg# Some tools Automake needs.
250267f05d30Smrg
250367f05d30SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
250467f05d30Smrg
250567f05d30Smrg
250667f05d30SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
250767f05d30Smrg
250867f05d30Smrg
250967f05d30SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
251067f05d30Smrg
251167f05d30Smrg
251267f05d30SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
251367f05d30Smrg
251467f05d30Smrg
251567f05d30SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
251667f05d30Smrg
2517fffe5102Smrg# We need awk for the "check" target.  The system "awk" is bad on
2518fffe5102Smrg# some platforms.
2519fffe5102Smrg# Always define AMTAR for backward compatibility.
252067f05d30Smrg
252167f05d30SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
252267f05d30Smrg
2523fffe5102Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252467f05d30Smrg
2525fffe5102Smrg
2526fffe5102Smrg
2527fffe5102Smrg
2528fffe5102Smrg
2529fffe5102Smrg
2530fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2531fffe5102Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2532fffe5102Smrg    # Check whether --enable-maintainer-mode was given.
2533fffe5102Smrgif test "${enable_maintainer_mode+set}" = set; then :
2534fffe5102Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
253567f05d30Smrgelse
2536fffe5102Smrg  USE_MAINTAINER_MODE=no
2537fffe5102Smrgfi
2538fffe5102Smrg
2539fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2540fffe5102Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2541fffe5102Smrg   if test $USE_MAINTAINER_MODE = yes; then
2542fffe5102Smrg  MAINTAINER_MODE_TRUE=
2543fffe5102Smrg  MAINTAINER_MODE_FALSE='#'
254467f05d30Smrgelse
2545fffe5102Smrg  MAINTAINER_MODE_TRUE='#'
2546fffe5102Smrg  MAINTAINER_MODE_FALSE=
254767f05d30Smrgfi
254867f05d30Smrg
2549fffe5102Smrg  MAINT=$MAINTAINER_MODE_TRUE
255067f05d30Smrg
255167f05d30Smrg
255267f05d30Smrg
2553fc51f767Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
255467f05d30Smrg
255567f05d30Smrg
255667f05d30Smrg
255767f05d30Smrg
255867f05d30Smrg
255967f05d30Smrg
2560fffe5102Smrg
2561fffe5102Smrg
2562fffe5102Smrg
2563fffe5102Smrg
2564fffe5102Smrg
2565fffe5102SmrgDEPDIR="${am__leading_dot}deps"
2566fffe5102Smrg
2567fffe5102Smrgac_config_commands="$ac_config_commands depfiles"
2568fffe5102Smrg
2569fffe5102Smrg
2570fffe5102Smrgam_make=${MAKE-make}
2571fffe5102Smrgcat > confinc << 'END'
2572fffe5102Smrgam__doit:
2573fffe5102Smrg	@echo this is the am__doit target
2574fffe5102Smrg.PHONY: am__doit
2575fffe5102SmrgEND
2576fffe5102Smrg# If we don't find an include directive, just comment out the code.
2577fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2578fffe5102Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2579fffe5102Smrgam__include="#"
2580fffe5102Smrgam__quote=
2581fffe5102Smrg_am_result=none
2582fffe5102Smrg# First try GNU make style include.
2583fffe5102Smrgecho "include confinc" > confmf
2584fffe5102Smrg# Ignore all kinds of additional output from `make'.
2585fffe5102Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2586fffe5102Smrg*the\ am__doit\ target*)
2587fffe5102Smrg  am__include=include
2588fffe5102Smrg  am__quote=
2589fffe5102Smrg  _am_result=GNU
2590fffe5102Smrg  ;;
2591fffe5102Smrgesac
2592fffe5102Smrg# Now try BSD make style include.
2593fffe5102Smrgif test "$am__include" = "#"; then
2594fffe5102Smrg   echo '.include "confinc"' > confmf
2595fffe5102Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2596fffe5102Smrg   *the\ am__doit\ target*)
2597fffe5102Smrg     am__include=.include
2598fffe5102Smrg     am__quote="\""
2599fffe5102Smrg     _am_result=BSD
2600fffe5102Smrg     ;;
2601fffe5102Smrg   esac
260267f05d30Smrgfi
260367f05d30Smrg
260467f05d30Smrg
2605fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2606fffe5102Smrg$as_echo "$_am_result" >&6; }
2607fffe5102Smrgrm -f confinc confmf
260867f05d30Smrg
2609fffe5102Smrg# Check whether --enable-dependency-tracking was given.
2610fffe5102Smrgif test "${enable_dependency_tracking+set}" = set; then :
2611fffe5102Smrg  enableval=$enable_dependency_tracking;
2612fffe5102Smrgfi
261367f05d30Smrg
2614fffe5102Smrgif test "x$enable_dependency_tracking" != xno; then
2615fffe5102Smrg  am_depcomp="$ac_aux_dir/depcomp"
2616fffe5102Smrg  AMDEPBACKSLASH='\'
2617fffe5102Smrgfi
2618fffe5102Smrg if test "x$enable_dependency_tracking" != xno; then
2619fffe5102Smrg  AMDEP_TRUE=
2620fffe5102Smrg  AMDEP_FALSE='#'
2621fffe5102Smrgelse
2622fffe5102Smrg  AMDEP_TRUE='#'
2623fffe5102Smrg  AMDEP_FALSE=
2624fffe5102Smrgfi
262567f05d30Smrg
262667f05d30Smrg
262767f05d30Smrgac_ext=c
262867f05d30Smrgac_cpp='$CPP $CPPFLAGS'
262967f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
263067f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
263167f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
263267f05d30Smrgif test -n "$ac_tool_prefix"; then
263367f05d30Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
263467f05d30Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2635fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2637fc51f767Smrgif ${ac_cv_prog_CC+:} false; then :
2638fffe5102Smrg  $as_echo_n "(cached) " >&6
263967f05d30Smrgelse
264067f05d30Smrg  if test -n "$CC"; then
264167f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
264267f05d30Smrgelse
264367f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264467f05d30Smrgfor as_dir in $PATH
264567f05d30Smrgdo
264667f05d30Smrg  IFS=$as_save_IFS
264767f05d30Smrg  test -z "$as_dir" && as_dir=.
2648fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2649fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
265067f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
265267f05d30Smrg    break 2
265367f05d30Smrg  fi
265467f05d30Smrgdone
2655fffe5102Smrg  done
2656fffe5102SmrgIFS=$as_save_IFS
265767f05d30Smrg
265867f05d30Smrgfi
265967f05d30Smrgfi
266067f05d30SmrgCC=$ac_cv_prog_CC
266167f05d30Smrgif test -n "$CC"; then
2662fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663fffe5102Smrg$as_echo "$CC" >&6; }
266467f05d30Smrgelse
2665fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666fffe5102Smrg$as_echo "no" >&6; }
266767f05d30Smrgfi
266867f05d30Smrg
2669fffe5102Smrg
267067f05d30Smrgfi
267167f05d30Smrgif test -z "$ac_cv_prog_CC"; then
267267f05d30Smrg  ac_ct_CC=$CC
267367f05d30Smrg  # Extract the first word of "gcc", so it can be a program name with args.
267467f05d30Smrgset dummy gcc; ac_word=$2
2675fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2677fc51f767Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2678fffe5102Smrg  $as_echo_n "(cached) " >&6
267967f05d30Smrgelse
268067f05d30Smrg  if test -n "$ac_ct_CC"; then
268167f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
268267f05d30Smrgelse
268367f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268467f05d30Smrgfor as_dir in $PATH
268567f05d30Smrgdo
268667f05d30Smrg  IFS=$as_save_IFS
268767f05d30Smrg  test -z "$as_dir" && as_dir=.
2688fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2689fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
269067f05d30Smrg    ac_cv_prog_ac_ct_CC="gcc"
2691fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
269267f05d30Smrg    break 2
269367f05d30Smrg  fi
269467f05d30Smrgdone
2695fffe5102Smrg  done
2696fffe5102SmrgIFS=$as_save_IFS
269767f05d30Smrg
269867f05d30Smrgfi
269967f05d30Smrgfi
270067f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
270167f05d30Smrgif test -n "$ac_ct_CC"; then
2702fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
270467f05d30Smrgelse
2705fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706fffe5102Smrg$as_echo "no" >&6; }
270767f05d30Smrgfi
270867f05d30Smrg
2709fffe5102Smrg  if test "x$ac_ct_CC" = x; then
2710fffe5102Smrg    CC=""
2711fffe5102Smrg  else
2712fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2713fffe5102Smrgyes:)
2714fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716fffe5102Smrgac_tool_warned=yes ;;
2717fffe5102Smrgesac
2718fffe5102Smrg    CC=$ac_ct_CC
2719fffe5102Smrg  fi
272067f05d30Smrgelse
272167f05d30Smrg  CC="$ac_cv_prog_CC"
272267f05d30Smrgfi
272367f05d30Smrg
272467f05d30Smrgif test -z "$CC"; then
2725fffe5102Smrg          if test -n "$ac_tool_prefix"; then
2726fffe5102Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
272767f05d30Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2728fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2730fc51f767Smrgif ${ac_cv_prog_CC+:} false; then :
2731fffe5102Smrg  $as_echo_n "(cached) " >&6
273267f05d30Smrgelse
273367f05d30Smrg  if test -n "$CC"; then
273467f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
273567f05d30Smrgelse
273667f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
273767f05d30Smrgfor as_dir in $PATH
273867f05d30Smrgdo
273967f05d30Smrg  IFS=$as_save_IFS
274067f05d30Smrg  test -z "$as_dir" && as_dir=.
2741fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2742fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
274367f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2744fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
274567f05d30Smrg    break 2
274667f05d30Smrg  fi
274767f05d30Smrgdone
2748fffe5102Smrg  done
2749fffe5102SmrgIFS=$as_save_IFS
275067f05d30Smrg
275167f05d30Smrgfi
275267f05d30Smrgfi
275367f05d30SmrgCC=$ac_cv_prog_CC
275467f05d30Smrgif test -n "$CC"; then
2755fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756fffe5102Smrg$as_echo "$CC" >&6; }
275767f05d30Smrgelse
2758fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759fffe5102Smrg$as_echo "no" >&6; }
276067f05d30Smrgfi
276167f05d30Smrg
276267f05d30Smrg
2763fffe5102Smrg  fi
276467f05d30Smrgfi
276567f05d30Smrgif test -z "$CC"; then
276667f05d30Smrg  # Extract the first word of "cc", so it can be a program name with args.
276767f05d30Smrgset dummy cc; ac_word=$2
2768fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2770fc51f767Smrgif ${ac_cv_prog_CC+:} false; then :
2771fffe5102Smrg  $as_echo_n "(cached) " >&6
277267f05d30Smrgelse
277367f05d30Smrg  if test -n "$CC"; then
277467f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
277567f05d30Smrgelse
277667f05d30Smrg  ac_prog_rejected=no
277767f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
277867f05d30Smrgfor as_dir in $PATH
277967f05d30Smrgdo
278067f05d30Smrg  IFS=$as_save_IFS
278167f05d30Smrg  test -z "$as_dir" && as_dir=.
2782fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2783fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278467f05d30Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
278567f05d30Smrg       ac_prog_rejected=yes
278667f05d30Smrg       continue
278767f05d30Smrg     fi
278867f05d30Smrg    ac_cv_prog_CC="cc"
2789fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
279067f05d30Smrg    break 2
279167f05d30Smrg  fi
279267f05d30Smrgdone
2793fffe5102Smrg  done
2794fffe5102SmrgIFS=$as_save_IFS
279567f05d30Smrg
279667f05d30Smrgif test $ac_prog_rejected = yes; then
279767f05d30Smrg  # We found a bogon in the path, so make sure we never use it.
279867f05d30Smrg  set dummy $ac_cv_prog_CC
279967f05d30Smrg  shift
280067f05d30Smrg  if test $# != 0; then
280167f05d30Smrg    # We chose a different compiler from the bogus one.
280267f05d30Smrg    # However, it has the same basename, so the bogon will be chosen
280367f05d30Smrg    # first if we set CC to just the basename; use the full file name.
280467f05d30Smrg    shift
280567f05d30Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
280667f05d30Smrg  fi
280767f05d30Smrgfi
280867f05d30Smrgfi
280967f05d30Smrgfi
281067f05d30SmrgCC=$ac_cv_prog_CC
281167f05d30Smrgif test -n "$CC"; then
2812fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813fffe5102Smrg$as_echo "$CC" >&6; }
281467f05d30Smrgelse
2815fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816fffe5102Smrg$as_echo "no" >&6; }
281767f05d30Smrgfi
281867f05d30Smrg
2819fffe5102Smrg
282067f05d30Smrgfi
282167f05d30Smrgif test -z "$CC"; then
282267f05d30Smrg  if test -n "$ac_tool_prefix"; then
2823fffe5102Smrg  for ac_prog in cl.exe
282467f05d30Smrg  do
282567f05d30Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
282667f05d30Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2829fc51f767Smrgif ${ac_cv_prog_CC+:} false; then :
2830fffe5102Smrg  $as_echo_n "(cached) " >&6
283167f05d30Smrgelse
283267f05d30Smrg  if test -n "$CC"; then
283367f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
283467f05d30Smrgelse
283567f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
283667f05d30Smrgfor as_dir in $PATH
283767f05d30Smrgdo
283867f05d30Smrg  IFS=$as_save_IFS
283967f05d30Smrg  test -z "$as_dir" && as_dir=.
2840fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2841fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
284267f05d30Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2843fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
284467f05d30Smrg    break 2
284567f05d30Smrg  fi
284667f05d30Smrgdone
2847fffe5102Smrg  done
2848fffe5102SmrgIFS=$as_save_IFS
284967f05d30Smrg
285067f05d30Smrgfi
285167f05d30Smrgfi
285267f05d30SmrgCC=$ac_cv_prog_CC
285367f05d30Smrgif test -n "$CC"; then
2854fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855fffe5102Smrg$as_echo "$CC" >&6; }
285667f05d30Smrgelse
2857fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858fffe5102Smrg$as_echo "no" >&6; }
285967f05d30Smrgfi
286067f05d30Smrg
2861fffe5102Smrg
286267f05d30Smrg    test -n "$CC" && break
286367f05d30Smrg  done
286467f05d30Smrgfi
286567f05d30Smrgif test -z "$CC"; then
286667f05d30Smrg  ac_ct_CC=$CC
2867fffe5102Smrg  for ac_prog in cl.exe
286867f05d30Smrgdo
286967f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
287067f05d30Smrgset dummy $ac_prog; ac_word=$2
2871fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2873fc51f767Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2874fffe5102Smrg  $as_echo_n "(cached) " >&6
287567f05d30Smrgelse
287667f05d30Smrg  if test -n "$ac_ct_CC"; then
287767f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
287867f05d30Smrgelse
287967f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
288067f05d30Smrgfor as_dir in $PATH
288167f05d30Smrgdo
288267f05d30Smrg  IFS=$as_save_IFS
288367f05d30Smrg  test -z "$as_dir" && as_dir=.
2884fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2885fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
288667f05d30Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2887fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
288867f05d30Smrg    break 2
288967f05d30Smrg  fi
289067f05d30Smrgdone
2891fffe5102Smrg  done
2892fffe5102SmrgIFS=$as_save_IFS
289367f05d30Smrg
289467f05d30Smrgfi
289567f05d30Smrgfi
289667f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
289767f05d30Smrgif test -n "$ac_ct_CC"; then
2898fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
290067f05d30Smrgelse
2901fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902fffe5102Smrg$as_echo "no" >&6; }
290367f05d30Smrgfi
290467f05d30Smrg
2905fffe5102Smrg
290667f05d30Smrg  test -n "$ac_ct_CC" && break
290767f05d30Smrgdone
290867f05d30Smrg
2909fffe5102Smrg  if test "x$ac_ct_CC" = x; then
2910fffe5102Smrg    CC=""
2911fffe5102Smrg  else
2912fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2913fffe5102Smrgyes:)
2914fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916fffe5102Smrgac_tool_warned=yes ;;
2917fffe5102Smrgesac
2918fffe5102Smrg    CC=$ac_ct_CC
2919fffe5102Smrg  fi
292067f05d30Smrgfi
292167f05d30Smrg
292267f05d30Smrgfi
292367f05d30Smrg
292467f05d30Smrg
2925fffe5102Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927fc51f767Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
2928fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
292967f05d30Smrg
293067f05d30Smrg# Provide some information about the compiler.
2931fffe5102Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2932fffe5102Smrgset X $ac_compile
2933fffe5102Smrgac_compiler=$2
2934fffe5102Smrgfor ac_option in --version -v -V -qversion; do
2935fffe5102Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2936fffe5102Smrgcase "(($ac_try" in
2937fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938fffe5102Smrg  *) ac_try_echo=$ac_try;;
2939fffe5102Smrgesac
2940fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
2942fffe5102Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
294367f05d30Smrg  ac_status=$?
2944fffe5102Smrg  if test -s conftest.err; then
2945fffe5102Smrg    sed '10a\
2946fffe5102Smrg... rest of stderr output deleted ...
2947fffe5102Smrg         10q' conftest.err >conftest.er1
2948fffe5102Smrg    cat conftest.er1 >&5
2949fffe5102Smrg  fi
2950fffe5102Smrg  rm -f conftest.er1 conftest.err
2951fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952fffe5102Smrg  test $ac_status = 0; }
2953fffe5102Smrgdone
295467f05d30Smrg
2955fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
295667f05d30Smrg/* end confdefs.h.  */
295767f05d30Smrg
295867f05d30Smrgint
295967f05d30Smrgmain ()
296067f05d30Smrg{
296167f05d30Smrg
296267f05d30Smrg  ;
296367f05d30Smrg  return 0;
296467f05d30Smrg}
296567f05d30Smrg_ACEOF
296667f05d30Smrgac_clean_files_save=$ac_clean_files
2967fffe5102Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
296867f05d30Smrg# Try to create an executable without -o first, disregard a.out.
296967f05d30Smrg# It will help us diagnose broken compilers, and finding out an intuition
297067f05d30Smrg# of exeext.
2971fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2972fffe5102Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
2973fffe5102Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2974fffe5102Smrg
2975fffe5102Smrg# The possible output files:
2976fffe5102Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2977fffe5102Smrg
2978fffe5102Smrgac_rmfiles=
2979fffe5102Smrgfor ac_file in $ac_files
2980fffe5102Smrgdo
2981fffe5102Smrg  case $ac_file in
2982fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983fffe5102Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2984fffe5102Smrg  esac
2985fffe5102Smrgdone
2986fffe5102Smrgrm -f $ac_rmfiles
2987fffe5102Smrg
2988fffe5102Smrgif { { ac_try="$ac_link_default"
2989fffe5102Smrgcase "(($ac_try" in
2990fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991fffe5102Smrg  *) ac_try_echo=$ac_try;;
2992fffe5102Smrgesac
2993fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
2995fffe5102Smrg  (eval "$ac_link_default") 2>&5
299667f05d30Smrg  ac_status=$?
2997fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998fffe5102Smrg  test $ac_status = 0; }; then :
2999fffe5102Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000fffe5102Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001fffe5102Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3002fffe5102Smrg# so that the user can short-circuit this test for compilers unknown to
3003fffe5102Smrg# Autoconf.
3004fffe5102Smrgfor ac_file in $ac_files ''
300567f05d30Smrgdo
300667f05d30Smrg  test -f "$ac_file" || continue
300767f05d30Smrg  case $ac_file in
3008fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
300967f05d30Smrg	;;
301067f05d30Smrg    [ab].out )
301167f05d30Smrg	# We found the default executable, but exeext='' is most
301267f05d30Smrg	# certainly right.
301367f05d30Smrg	break;;
301467f05d30Smrg    *.* )
3015fffe5102Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016fffe5102Smrg	then :; else
3017fffe5102Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018fffe5102Smrg	fi
3019fffe5102Smrg	# We set ac_cv_exeext here because the later test for it is not
3020fffe5102Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3021fffe5102Smrg	# argument, so we may need to know it at that point already.
3022fffe5102Smrg	# Even if this section looks crufty: it has the advantage of
3023fffe5102Smrg	# actually working.
302467f05d30Smrg	break;;
302567f05d30Smrg    * )
302667f05d30Smrg	break;;
302767f05d30Smrg  esac
302867f05d30Smrgdone
3029fffe5102Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3030fffe5102Smrg
303167f05d30Smrgelse
3032fffe5102Smrg  ac_file=''
3033fffe5102Smrgfi
3034fffe5102Smrgif test -z "$ac_file"; then :
3035fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036fffe5102Smrg$as_echo "no" >&6; }
3037fffe5102Smrg$as_echo "$as_me: failed program was:" >&5
303867f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
303967f05d30Smrg
3040fffe5102Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042fc51f767Smrgas_fn_error 77 "C compiler cannot create executables
3043fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
3044fffe5102Smrgelse
3045fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046fffe5102Smrg$as_echo "yes" >&6; }
304767f05d30Smrgfi
3048fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3049fffe5102Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3050fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3051fffe5102Smrg$as_echo "$ac_file" >&6; }
305267f05d30Smrgac_exeext=$ac_cv_exeext
305367f05d30Smrg
3054fffe5102Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
305567f05d30Smrgac_clean_files=$ac_clean_files_save
3056fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3057fffe5102Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3058fffe5102Smrgif { { ac_try="$ac_link"
3059fffe5102Smrgcase "(($ac_try" in
3060fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061fffe5102Smrg  *) ac_try_echo=$ac_try;;
3062fffe5102Smrgesac
3063fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3065fffe5102Smrg  (eval "$ac_link") 2>&5
306667f05d30Smrg  ac_status=$?
3067fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068fffe5102Smrg  test $ac_status = 0; }; then :
306967f05d30Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
307067f05d30Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
307167f05d30Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
307267f05d30Smrg# `rm'.
307367f05d30Smrgfor ac_file in conftest.exe conftest conftest.*; do
307467f05d30Smrg  test -f "$ac_file" || continue
307567f05d30Smrg  case $ac_file in
3076fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
307767f05d30Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
307867f05d30Smrg	  break;;
307967f05d30Smrg    * ) break;;
308067f05d30Smrg  esac
308167f05d30Smrgdone
308267f05d30Smrgelse
3083fffe5102Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085fc51f767Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3086fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
308767f05d30Smrgfi
3088fffe5102Smrgrm -f conftest conftest$ac_cv_exeext
3089fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3090fffe5102Smrg$as_echo "$ac_cv_exeext" >&6; }
309167f05d30Smrg
309267f05d30Smrgrm -f conftest.$ac_ext
309367f05d30SmrgEXEEXT=$ac_cv_exeext
309467f05d30Smrgac_exeext=$EXEEXT
3095fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096fffe5102Smrg/* end confdefs.h.  */
3097fffe5102Smrg#include <stdio.h>
3098fffe5102Smrgint
3099fffe5102Smrgmain ()
3100fffe5102Smrg{
3101fffe5102SmrgFILE *f = fopen ("conftest.out", "w");
3102fffe5102Smrg return ferror (f) || fclose (f) != 0;
3103fffe5102Smrg
3104fffe5102Smrg  ;
3105fffe5102Smrg  return 0;
3106fffe5102Smrg}
310767f05d30Smrg_ACEOF
3108fffe5102Smrgac_clean_files="$ac_clean_files conftest.out"
3109fffe5102Smrg# Check that the compiler produces executables we can run.  If not, either
3110fffe5102Smrg# the compiler is broken, or we cross compile.
3111fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3112fffe5102Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3113fffe5102Smrgif test "$cross_compiling" != yes; then
3114fffe5102Smrg  { { ac_try="$ac_link"
3115fffe5102Smrgcase "(($ac_try" in
3116fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117fffe5102Smrg  *) ac_try_echo=$ac_try;;
3118fffe5102Smrgesac
3119fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3121fffe5102Smrg  (eval "$ac_link") 2>&5
3122fffe5102Smrg  ac_status=$?
3123fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124fffe5102Smrg  test $ac_status = 0; }
3125fffe5102Smrg  if { ac_try='./conftest$ac_cv_exeext'
3126fffe5102Smrg  { { case "(($ac_try" in
3127fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128fffe5102Smrg  *) ac_try_echo=$ac_try;;
3129fffe5102Smrgesac
3130fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3132fffe5102Smrg  (eval "$ac_try") 2>&5
3133fffe5102Smrg  ac_status=$?
3134fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135fffe5102Smrg  test $ac_status = 0; }; }; then
3136fffe5102Smrg    cross_compiling=no
3137fffe5102Smrg  else
3138fffe5102Smrg    if test "$cross_compiling" = maybe; then
3139fffe5102Smrg	cross_compiling=yes
3140fffe5102Smrg    else
3141fffe5102Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143fc51f767Smrgas_fn_error $? "cannot run C compiled programs.
3144fffe5102SmrgIf you meant to cross compile, use \`--host'.
3145fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
3146fffe5102Smrg    fi
3147fffe5102Smrg  fi
3148fffe5102Smrgfi
3149fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3150fffe5102Smrg$as_echo "$cross_compiling" >&6; }
3151fffe5102Smrg
3152fffe5102Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3153fffe5102Smrgac_clean_files=$ac_clean_files_save
3154fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3155fffe5102Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3156fc51f767Smrgif ${ac_cv_objext+:} false; then :
3157fffe5102Smrg  $as_echo_n "(cached) " >&6
3158fffe5102Smrgelse
3159fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
316067f05d30Smrg/* end confdefs.h.  */
316167f05d30Smrg
316267f05d30Smrgint
316367f05d30Smrgmain ()
316467f05d30Smrg{
316567f05d30Smrg
316667f05d30Smrg  ;
316767f05d30Smrg  return 0;
316867f05d30Smrg}
316967f05d30Smrg_ACEOF
317067f05d30Smrgrm -f conftest.o conftest.obj
3171fffe5102Smrgif { { ac_try="$ac_compile"
3172fffe5102Smrgcase "(($ac_try" in
3173fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174fffe5102Smrg  *) ac_try_echo=$ac_try;;
3175fffe5102Smrgesac
3176fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3178fffe5102Smrg  (eval "$ac_compile") 2>&5
317967f05d30Smrg  ac_status=$?
3180fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181fffe5102Smrg  test $ac_status = 0; }; then :
3182fffe5102Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3183fffe5102Smrg  test -f "$ac_file" || continue;
318467f05d30Smrg  case $ac_file in
3185fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
318667f05d30Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
318767f05d30Smrg       break;;
318867f05d30Smrg  esac
318967f05d30Smrgdone
319067f05d30Smrgelse
3191fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
319267f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
319367f05d30Smrg
3194fffe5102Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196fc51f767Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3197fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
319867f05d30Smrgfi
319967f05d30Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
320067f05d30Smrgfi
3201fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3202fffe5102Smrg$as_echo "$ac_cv_objext" >&6; }
320367f05d30SmrgOBJEXT=$ac_cv_objext
320467f05d30Smrgac_objext=$OBJEXT
3205fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3206fffe5102Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3207fc51f767Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3208fffe5102Smrg  $as_echo_n "(cached) " >&6
320967f05d30Smrgelse
3210fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
321167f05d30Smrg/* end confdefs.h.  */
321267f05d30Smrg
321367f05d30Smrgint
321467f05d30Smrgmain ()
321567f05d30Smrg{
321667f05d30Smrg#ifndef __GNUC__
321767f05d30Smrg       choke me
321867f05d30Smrg#endif
321967f05d30Smrg
322067f05d30Smrg  ;
322167f05d30Smrg  return 0;
322267f05d30Smrg}
322367f05d30Smrg_ACEOF
3224fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
322567f05d30Smrg  ac_compiler_gnu=yes
322667f05d30Smrgelse
3227fffe5102Smrg  ac_compiler_gnu=no
322867f05d30Smrgfi
3229fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
323067f05d30Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
323167f05d30Smrg
323267f05d30Smrgfi
3233fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3234fffe5102Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3235fffe5102Smrgif test $ac_compiler_gnu = yes; then
3236fffe5102Smrg  GCC=yes
3237fffe5102Smrgelse
3238fffe5102Smrg  GCC=
3239fffe5102Smrgfi
324067f05d30Smrgac_test_CFLAGS=${CFLAGS+set}
324167f05d30Smrgac_save_CFLAGS=$CFLAGS
3242fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3243fffe5102Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3244fc51f767Smrgif ${ac_cv_prog_cc_g+:} false; then :
3245fffe5102Smrg  $as_echo_n "(cached) " >&6
3246fffe5102Smrgelse
3247fffe5102Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3248fffe5102Smrg   ac_c_werror_flag=yes
3249fffe5102Smrg   ac_cv_prog_cc_g=no
3250fffe5102Smrg   CFLAGS="-g"
3251fffe5102Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
325267f05d30Smrg/* end confdefs.h.  */
325367f05d30Smrg
325467f05d30Smrgint
325567f05d30Smrgmain ()
325667f05d30Smrg{
325767f05d30Smrg
325867f05d30Smrg  ;
325967f05d30Smrg  return 0;
326067f05d30Smrg}
326167f05d30Smrg_ACEOF
3262fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
326367f05d30Smrg  ac_cv_prog_cc_g=yes
326467f05d30Smrgelse
3265fffe5102Smrg  CFLAGS=""
3266fffe5102Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267fffe5102Smrg/* end confdefs.h.  */
3268fffe5102Smrg
3269fffe5102Smrgint
3270fffe5102Smrgmain ()
3271fffe5102Smrg{
3272fffe5102Smrg
3273fffe5102Smrg  ;
3274fffe5102Smrg  return 0;
3275fffe5102Smrg}
3276fffe5102Smrg_ACEOF
3277fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
3278fffe5102Smrg
3279fffe5102Smrgelse
3280fffe5102Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3281fffe5102Smrg	 CFLAGS="-g"
3282fffe5102Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283fffe5102Smrg/* end confdefs.h.  */
3284fffe5102Smrg
3285fffe5102Smrgint
3286fffe5102Smrgmain ()
3287fffe5102Smrg{
328867f05d30Smrg
3289fffe5102Smrg  ;
3290fffe5102Smrg  return 0;
3291fffe5102Smrg}
3292fffe5102Smrg_ACEOF
3293fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
3294fffe5102Smrg  ac_cv_prog_cc_g=yes
3295fffe5102Smrgfi
3296fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
329767f05d30Smrgfi
3298fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
329967f05d30Smrgfi
3300fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301fffe5102Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3302fffe5102Smrgfi
3303fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3304fffe5102Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
330567f05d30Smrgif test "$ac_test_CFLAGS" = set; then
330667f05d30Smrg  CFLAGS=$ac_save_CFLAGS
330767f05d30Smrgelif test $ac_cv_prog_cc_g = yes; then
330867f05d30Smrg  if test "$GCC" = yes; then
330967f05d30Smrg    CFLAGS="-g -O2"
331067f05d30Smrg  else
331167f05d30Smrg    CFLAGS="-g"
331267f05d30Smrg  fi
331367f05d30Smrgelse
331467f05d30Smrg  if test "$GCC" = yes; then
331567f05d30Smrg    CFLAGS="-O2"
331667f05d30Smrg  else
331767f05d30Smrg    CFLAGS=
331867f05d30Smrg  fi
331967f05d30Smrgfi
3320fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3321fffe5102Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3322fc51f767Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3323fffe5102Smrg  $as_echo_n "(cached) " >&6
332467f05d30Smrgelse
3325fffe5102Smrg  ac_cv_prog_cc_c89=no
332667f05d30Smrgac_save_CC=$CC
3327fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
332867f05d30Smrg/* end confdefs.h.  */
332967f05d30Smrg#include <stdarg.h>
333067f05d30Smrg#include <stdio.h>
333167f05d30Smrg#include <sys/types.h>
333267f05d30Smrg#include <sys/stat.h>
333367f05d30Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
333467f05d30Smrgstruct buf { int x; };
333567f05d30SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
333667f05d30Smrgstatic char *e (p, i)
333767f05d30Smrg     char **p;
333867f05d30Smrg     int i;
333967f05d30Smrg{
334067f05d30Smrg  return p[i];
334167f05d30Smrg}
334267f05d30Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
334367f05d30Smrg{
334467f05d30Smrg  char *s;
334567f05d30Smrg  va_list v;
334667f05d30Smrg  va_start (v,p);
334767f05d30Smrg  s = g (p, va_arg (v,int));
334867f05d30Smrg  va_end (v);
334967f05d30Smrg  return s;
335067f05d30Smrg}
335167f05d30Smrg
335267f05d30Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
335367f05d30Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
335467f05d30Smrg   These don't provoke an error unfortunately, instead are silently treated
3355fffe5102Smrg   as 'x'.  The following induces an error, until -std is added to get
335667f05d30Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
335767f05d30Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3358fffe5102Smrg   that's true only with -std.  */
335967f05d30Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
336067f05d30Smrg
3361fffe5102Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3362fffe5102Smrg   inside strings and character constants.  */
3363fffe5102Smrg#define FOO(x) 'x'
3364fffe5102Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3365fffe5102Smrg
336667f05d30Smrgint test (int i, double x);
336767f05d30Smrgstruct s1 {int (*f) (int a);};
336867f05d30Smrgstruct s2 {int (*f) (double a);};
336967f05d30Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
337067f05d30Smrgint argc;
337167f05d30Smrgchar **argv;
337267f05d30Smrgint
337367f05d30Smrgmain ()
337467f05d30Smrg{
337567f05d30Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
337667f05d30Smrg  ;
337767f05d30Smrg  return 0;
337867f05d30Smrg}
337967f05d30Smrg_ACEOF
3380fffe5102Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3381fffe5102Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
338267f05d30Smrgdo
338367f05d30Smrg  CC="$ac_save_CC $ac_arg"
3384fffe5102Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3385fffe5102Smrg  ac_cv_prog_cc_c89=$ac_arg
338667f05d30Smrgfi
3387fffe5102Smrgrm -f core conftest.err conftest.$ac_objext
3388fffe5102Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
338967f05d30Smrgdone
3390fffe5102Smrgrm -f conftest.$ac_ext
339167f05d30SmrgCC=$ac_save_CC
339267f05d30Smrg
339367f05d30Smrgfi
3394fffe5102Smrg# AC_CACHE_VAL
3395fffe5102Smrgcase "x$ac_cv_prog_cc_c89" in
3396fffe5102Smrg  x)
3397fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3398fffe5102Smrg$as_echo "none needed" >&6; } ;;
3399fffe5102Smrg  xno)
3400fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3401fffe5102Smrg$as_echo "unsupported" >&6; } ;;
340267f05d30Smrg  *)
3403fffe5102Smrg    CC="$CC $ac_cv_prog_cc_c89"
3404fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3405fffe5102Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
340667f05d30Smrgesac
3407fffe5102Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
340867f05d30Smrg
340967f05d30Smrgfi
341067f05d30Smrg
341167f05d30Smrgac_ext=c
341267f05d30Smrgac_cpp='$CPP $CPPFLAGS'
341367f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
341467f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
341567f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
341667f05d30Smrg
341767f05d30Smrgdepcc="$CC"   am_compiler_list=
341867f05d30Smrg
3419fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3420fffe5102Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3421fc51f767Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3422fffe5102Smrg  $as_echo_n "(cached) " >&6
342367f05d30Smrgelse
342467f05d30Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
342567f05d30Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
342667f05d30Smrg  # making bogus files that we don't know about and never remove.  For
342767f05d30Smrg  # instance it was reported that on HP-UX the gcc test will end up
342867f05d30Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
342967f05d30Smrg  # in D'.
343067f05d30Smrg  mkdir conftest.dir
343167f05d30Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
343267f05d30Smrg  # using a relative directory.
343367f05d30Smrg  cp "$am_depcomp" conftest.dir
343467f05d30Smrg  cd conftest.dir
343567f05d30Smrg  # We will build objects and dependencies in a subdirectory because
343667f05d30Smrg  # it helps to detect inapplicable dependency modes.  For instance
343767f05d30Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
343867f05d30Smrg  # side effect of compilation, but ICC will put the dependencies in
343967f05d30Smrg  # the current directory while Tru64 will put them in the object
344067f05d30Smrg  # directory.
344167f05d30Smrg  mkdir sub
344267f05d30Smrg
344367f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
344467f05d30Smrg  if test "$am_compiler_list" = ""; then
344567f05d30Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
344667f05d30Smrg  fi
3447fffe5102Smrg  am__universal=false
3448fffe5102Smrg  case " $depcc " in #(
3449fffe5102Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3450fffe5102Smrg     esac
3451fffe5102Smrg
345267f05d30Smrg  for depmode in $am_compiler_list; do
345367f05d30Smrg    # Setup a source with many dependencies, because some compilers
345467f05d30Smrg    # like to wrap large dependency lists on column 80 (with \), and
345567f05d30Smrg    # we should not choose a depcomp mode which is confused by this.
345667f05d30Smrg    #
345767f05d30Smrg    # We need to recreate these files for each test, as the compiler may
345867f05d30Smrg    # overwrite some of them when testing with obscure command lines.
345967f05d30Smrg    # This happens at least with the AIX C compiler.
346067f05d30Smrg    : > sub/conftest.c
346167f05d30Smrg    for i in 1 2 3 4 5 6; do
346267f05d30Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463fffe5102Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464fffe5102Smrg      # Solaris 8's {/usr,}/bin/sh.
3465fffe5102Smrg      touch sub/conftst$i.h
346667f05d30Smrg    done
346767f05d30Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
346867f05d30Smrg
3469fffe5102Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3470fffe5102Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3471fffe5102Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3472fffe5102Smrg    # versions had trouble with output in subdirs
3473fffe5102Smrg    am__obj=sub/conftest.${OBJEXT-o}
3474fffe5102Smrg    am__minus_obj="-o $am__obj"
347567f05d30Smrg    case $depmode in
3476fffe5102Smrg    gcc)
3477fffe5102Smrg      # This depmode causes a compiler race in universal mode.
3478fffe5102Smrg      test "$am__universal" = false || continue
3479fffe5102Smrg      ;;
348067f05d30Smrg    nosideeffect)
348167f05d30Smrg      # after this tag, mechanisms are not by side-effect, so they'll
348267f05d30Smrg      # only be used when explicitly requested
348367f05d30Smrg      if test "x$enable_dependency_tracking" = xyes; then
348467f05d30Smrg	continue
348567f05d30Smrg      else
348667f05d30Smrg	break
348767f05d30Smrg      fi
348867f05d30Smrg      ;;
3489fffe5102Smrg    msvisualcpp | msvcmsys)
3490fffe5102Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3491fffe5102Smrg      # not run yet.  These depmodes are late enough in the game, and
3492fffe5102Smrg      # so weak that their functioning should not be impacted.
3493fffe5102Smrg      am__obj=conftest.${OBJEXT-o}
3494fffe5102Smrg      am__minus_obj=
3495fffe5102Smrg      ;;
349667f05d30Smrg    none) break ;;
349767f05d30Smrg    esac
349867f05d30Smrg    if depmode=$depmode \
3499fffe5102Smrg       source=sub/conftest.c object=$am__obj \
350067f05d30Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501fffe5102Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
350267f05d30Smrg         >/dev/null 2>conftest.err &&
3503fffe5102Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
350467f05d30Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3505fffe5102Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
350667f05d30Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
350767f05d30Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3508fffe5102Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3509fffe5102Smrg      # that says an option was ignored or not supported.
3510fffe5102Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3511fffe5102Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3512fffe5102Smrg      # The diagnosis changed in icc 8.0:
3513fffe5102Smrg      #   icc: Command line remark: option '-MP' not supported
3514fffe5102Smrg      if (grep 'ignoring option' conftest.err ||
3515fffe5102Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
351667f05d30Smrg        am_cv_CC_dependencies_compiler_type=$depmode
351767f05d30Smrg        break
351867f05d30Smrg      fi
351967f05d30Smrg    fi
352067f05d30Smrg  done
352167f05d30Smrg
352267f05d30Smrg  cd ..
352367f05d30Smrg  rm -rf conftest.dir
352467f05d30Smrgelse
352567f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
352667f05d30Smrgfi
352767f05d30Smrg
352867f05d30Smrgfi
3529fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3530fffe5102Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
353167f05d30SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
353267f05d30Smrg
3533fffe5102Smrg if
353467f05d30Smrg  test "x$enable_dependency_tracking" != xno \
353567f05d30Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
353667f05d30Smrg  am__fastdepCC_TRUE=
353767f05d30Smrg  am__fastdepCC_FALSE='#'
353867f05d30Smrgelse
353967f05d30Smrg  am__fastdepCC_TRUE='#'
354067f05d30Smrg  am__fastdepCC_FALSE=
354167f05d30Smrgfi
354267f05d30Smrg
354367f05d30Smrg
3544fc51f767Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3545fc51f767Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3546fc51f767Smrgif ${ac_cv_prog_cc_c99+:} false; then :
3547fc51f767Smrg  $as_echo_n "(cached) " >&6
3548fc51f767Smrgelse
3549fc51f767Smrg  ac_cv_prog_cc_c99=no
3550fc51f767Smrgac_save_CC=$CC
3551fc51f767Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552fc51f767Smrg/* end confdefs.h.  */
3553fc51f767Smrg#include <stdarg.h>
3554fc51f767Smrg#include <stdbool.h>
3555fc51f767Smrg#include <stdlib.h>
3556fc51f767Smrg#include <wchar.h>
3557fc51f767Smrg#include <stdio.h>
3558fc51f767Smrg
3559fc51f767Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3560fc51f767Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3561fc51f767Smrg#define showlist(...) puts (#__VA_ARGS__)
3562fc51f767Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3563fc51f767Smrgstatic void
3564fc51f767Smrgtest_varargs_macros (void)
3565fc51f767Smrg{
3566fc51f767Smrg  int x = 1234;
3567fc51f767Smrg  int y = 5678;
3568fc51f767Smrg  debug ("Flag");
3569fc51f767Smrg  debug ("X = %d\n", x);
3570fc51f767Smrg  showlist (The first, second, and third items.);
3571fc51f767Smrg  report (x>y, "x is %d but y is %d", x, y);
3572fc51f767Smrg}
3573fc51f767Smrg
3574fc51f767Smrg// Check long long types.
3575fc51f767Smrg#define BIG64 18446744073709551615ull
3576fc51f767Smrg#define BIG32 4294967295ul
3577fc51f767Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3578fc51f767Smrg#if !BIG_OK
3579fc51f767Smrg  your preprocessor is broken;
3580fc51f767Smrg#endif
3581fc51f767Smrg#if BIG_OK
3582fc51f767Smrg#else
3583fc51f767Smrg  your preprocessor is broken;
3584fc51f767Smrg#endif
3585fc51f767Smrgstatic long long int bignum = -9223372036854775807LL;
3586fc51f767Smrgstatic unsigned long long int ubignum = BIG64;
3587fc51f767Smrg
3588fc51f767Smrgstruct incomplete_array
3589fc51f767Smrg{
3590fc51f767Smrg  int datasize;
3591fc51f767Smrg  double data[];
3592fc51f767Smrg};
3593fc51f767Smrg
3594fc51f767Smrgstruct named_init {
3595fc51f767Smrg  int number;
3596fc51f767Smrg  const wchar_t *name;
3597fc51f767Smrg  double average;
3598fc51f767Smrg};
3599fc51f767Smrg
3600fc51f767Smrgtypedef const char *ccp;
3601fc51f767Smrg
3602fc51f767Smrgstatic inline int
3603fc51f767Smrgtest_restrict (ccp restrict text)
3604fc51f767Smrg{
3605fc51f767Smrg  // See if C++-style comments work.
3606fc51f767Smrg  // Iterate through items via the restricted pointer.
3607fc51f767Smrg  // Also check for declarations in for loops.
3608fc51f767Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3609fc51f767Smrg    continue;
3610fc51f767Smrg  return 0;
3611fc51f767Smrg}
3612fc51f767Smrg
3613fc51f767Smrg// Check varargs and va_copy.
3614fc51f767Smrgstatic void
3615fc51f767Smrgtest_varargs (const char *format, ...)
3616fc51f767Smrg{
3617fc51f767Smrg  va_list args;
3618fc51f767Smrg  va_start (args, format);
3619fc51f767Smrg  va_list args_copy;
3620fc51f767Smrg  va_copy (args_copy, args);
3621fc51f767Smrg
3622fc51f767Smrg  const char *str;
3623fc51f767Smrg  int number;
3624fc51f767Smrg  float fnumber;
3625fc51f767Smrg
3626fc51f767Smrg  while (*format)
3627fc51f767Smrg    {
3628fc51f767Smrg      switch (*format++)
3629fc51f767Smrg	{
3630fc51f767Smrg	case 's': // string
3631fc51f767Smrg	  str = va_arg (args_copy, const char *);
3632fc51f767Smrg	  break;
3633fc51f767Smrg	case 'd': // int
3634fc51f767Smrg	  number = va_arg (args_copy, int);
3635fc51f767Smrg	  break;
3636fc51f767Smrg	case 'f': // float
3637fc51f767Smrg	  fnumber = va_arg (args_copy, double);
3638fc51f767Smrg	  break;
3639fc51f767Smrg	default:
3640fc51f767Smrg	  break;
3641fc51f767Smrg	}
3642fc51f767Smrg    }
3643fc51f767Smrg  va_end (args_copy);
3644fc51f767Smrg  va_end (args);
3645fc51f767Smrg}
3646fc51f767Smrg
3647fc51f767Smrgint
3648fc51f767Smrgmain ()
3649fc51f767Smrg{
3650fc51f767Smrg
3651fc51f767Smrg  // Check bool.
3652fc51f767Smrg  _Bool success = false;
3653fc51f767Smrg
3654fc51f767Smrg  // Check restrict.
3655fc51f767Smrg  if (test_restrict ("String literal") == 0)
3656fc51f767Smrg    success = true;
3657fc51f767Smrg  char *restrict newvar = "Another string";
3658fc51f767Smrg
3659fc51f767Smrg  // Check varargs.
3660fc51f767Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3661fc51f767Smrg  test_varargs_macros ();
3662fc51f767Smrg
3663fc51f767Smrg  // Check flexible array members.
3664fc51f767Smrg  struct incomplete_array *ia =
3665fc51f767Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3666fc51f767Smrg  ia->datasize = 10;
3667fc51f767Smrg  for (int i = 0; i < ia->datasize; ++i)
3668fc51f767Smrg    ia->data[i] = i * 1.234;
3669fc51f767Smrg
3670fc51f767Smrg  // Check named initializers.
3671fc51f767Smrg  struct named_init ni = {
3672fc51f767Smrg    .number = 34,
3673fc51f767Smrg    .name = L"Test wide string",
3674fc51f767Smrg    .average = 543.34343,
3675fc51f767Smrg  };
3676fc51f767Smrg
3677fc51f767Smrg  ni.number = 58;
3678fc51f767Smrg
3679fc51f767Smrg  int dynamic_array[ni.number];
3680fc51f767Smrg  dynamic_array[ni.number - 1] = 543;
3681fc51f767Smrg
3682fc51f767Smrg  // work around unused variable warnings
3683fc51f767Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3684fc51f767Smrg	  || dynamic_array[ni.number - 1] != 543);
3685fc51f767Smrg
3686fc51f767Smrg  ;
3687fc51f767Smrg  return 0;
3688fc51f767Smrg}
3689fc51f767Smrg_ACEOF
3690fc51f767Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3691fc51f767Smrgdo
3692fc51f767Smrg  CC="$ac_save_CC $ac_arg"
3693fc51f767Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3694fc51f767Smrg  ac_cv_prog_cc_c99=$ac_arg
3695fc51f767Smrgfi
3696fc51f767Smrgrm -f core conftest.err conftest.$ac_objext
3697fc51f767Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3698fc51f767Smrgdone
3699fc51f767Smrgrm -f conftest.$ac_ext
3700fc51f767SmrgCC=$ac_save_CC
3701fc51f767Smrg
3702fc51f767Smrgfi
3703fc51f767Smrg# AC_CACHE_VAL
3704fc51f767Smrgcase "x$ac_cv_prog_cc_c99" in
3705fc51f767Smrg  x)
3706fc51f767Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707fc51f767Smrg$as_echo "none needed" >&6; } ;;
3708fc51f767Smrg  xno)
3709fc51f767Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710fc51f767Smrg$as_echo "unsupported" >&6; } ;;
3711fc51f767Smrg  *)
3712fc51f767Smrg    CC="$CC $ac_cv_prog_cc_c99"
3713fc51f767Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3714fc51f767Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3715fc51f767Smrgesac
3716fc51f767Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3717fc51f767Smrg
3718fc51f767Smrgfi
3719fc51f767Smrg
3720fc51f767Smrg
3721fffe5102Smrg
3722fffe5102Smrgac_ext=c
3723fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
3724fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3727fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3728fffe5102Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3729fffe5102Smrg# On Suns, sometimes $CPP names a directory.
3730fffe5102Smrgif test -n "$CPP" && test -d "$CPP"; then
3731fffe5102Smrg  CPP=
3732fffe5102Smrgfi
3733fffe5102Smrgif test -z "$CPP"; then
3734fc51f767Smrg  if ${ac_cv_prog_CPP+:} false; then :
3735fffe5102Smrg  $as_echo_n "(cached) " >&6
373667f05d30Smrgelse
3737fffe5102Smrg      # Double quotes because CPP needs to be expanded
3738fffe5102Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3739fffe5102Smrg    do
3740fffe5102Smrg      ac_preproc_ok=false
3741fffe5102Smrgfor ac_c_preproc_warn_flag in '' yes
374267f05d30Smrgdo
3743fffe5102Smrg  # Use a header file that comes with gcc, so configuring glibc
3744fffe5102Smrg  # with a fresh cross-compiler works.
3745fffe5102Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3746fffe5102Smrg  # <limits.h> exists even on freestanding compilers.
3747fffe5102Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3748fffe5102Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3749fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750fffe5102Smrg/* end confdefs.h.  */
3751fffe5102Smrg#ifdef __STDC__
3752fffe5102Smrg# include <limits.h>
3753fffe5102Smrg#else
3754fffe5102Smrg# include <assert.h>
3755fffe5102Smrg#endif
3756fffe5102Smrg		     Syntax error
3757fffe5102Smrg_ACEOF
3758fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3759fffe5102Smrg
3760fffe5102Smrgelse
3761fffe5102Smrg  # Broken: fails on valid input.
3762fffe5102Smrgcontinue
3763fffe5102Smrgfi
3764fc51f767Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3765fffe5102Smrg
3766fffe5102Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3767fffe5102Smrg  # can be detected and how.
3768fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769fffe5102Smrg/* end confdefs.h.  */
3770fffe5102Smrg#include <ac_nonexistent.h>
3771fffe5102Smrg_ACEOF
3772fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3773fffe5102Smrg  # Broken: success on invalid input.
3774fffe5102Smrgcontinue
3775fffe5102Smrgelse
3776fffe5102Smrg  # Passes both tests.
3777fffe5102Smrgac_preproc_ok=:
3778fffe5102Smrgbreak
3779fffe5102Smrgfi
3780fc51f767Smrgrm -f conftest.err conftest.i conftest.$ac_ext
3781fffe5102Smrg
378267f05d30Smrgdone
3783fffe5102Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784fc51f767Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3785fffe5102Smrgif $ac_preproc_ok; then :
3786fffe5102Smrg  break
3787fffe5102Smrgfi
378867f05d30Smrg
3789fffe5102Smrg    done
3790fffe5102Smrg    ac_cv_prog_CPP=$CPP
379167f05d30Smrg
379267f05d30Smrgfi
3793fffe5102Smrg  CPP=$ac_cv_prog_CPP
3794fffe5102Smrgelse
3795fffe5102Smrg  ac_cv_prog_CPP=$CPP
379667f05d30Smrgfi
3797fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3798fffe5102Smrg$as_echo "$CPP" >&6; }
3799fffe5102Smrgac_preproc_ok=false
3800fffe5102Smrgfor ac_c_preproc_warn_flag in '' yes
3801fffe5102Smrgdo
3802fffe5102Smrg  # Use a header file that comes with gcc, so configuring glibc
3803fffe5102Smrg  # with a fresh cross-compiler works.
3804fffe5102Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805fffe5102Smrg  # <limits.h> exists even on freestanding compilers.
3806fffe5102Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3807fffe5102Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3808fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809fffe5102Smrg/* end confdefs.h.  */
3810fffe5102Smrg#ifdef __STDC__
3811fffe5102Smrg# include <limits.h>
3812fffe5102Smrg#else
3813fffe5102Smrg# include <assert.h>
3814fffe5102Smrg#endif
3815fffe5102Smrg		     Syntax error
3816fffe5102Smrg_ACEOF
3817fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
381867f05d30Smrg
3819fffe5102Smrgelse
3820fffe5102Smrg  # Broken: fails on valid input.
3821fffe5102Smrgcontinue
3822fffe5102Smrgfi
3823fc51f767Smrgrm -f conftest.err conftest.i conftest.$ac_ext
382467f05d30Smrg
3825fffe5102Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3826fffe5102Smrg  # can be detected and how.
3827fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828fffe5102Smrg/* end confdefs.h.  */
3829fffe5102Smrg#include <ac_nonexistent.h>
3830fffe5102Smrg_ACEOF
3831fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3832fffe5102Smrg  # Broken: success on invalid input.
3833fffe5102Smrgcontinue
3834fffe5102Smrgelse
3835fffe5102Smrg  # Passes both tests.
3836fffe5102Smrgac_preproc_ok=:
3837fffe5102Smrgbreak
3838fffe5102Smrgfi
3839fc51f767Smrgrm -f conftest.err conftest.i conftest.$ac_ext
384067f05d30Smrg
3841fffe5102Smrgdone
3842fffe5102Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3843fc51f767Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3844fffe5102Smrgif $ac_preproc_ok; then :
384567f05d30Smrg
3846fffe5102Smrgelse
3847fffe5102Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849fc51f767Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3850fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
3851fffe5102Smrgfi
385267f05d30Smrg
3853fffe5102Smrgac_ext=c
3854fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
3855fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
385867f05d30Smrg
385967f05d30Smrg
3860fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3861fffe5102Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3862fc51f767Smrgif ${ac_cv_path_GREP+:} false; then :
3863fffe5102Smrg  $as_echo_n "(cached) " >&6
386467f05d30Smrgelse
3865fffe5102Smrg  if test -z "$GREP"; then
3866fffe5102Smrg  ac_path_GREP_found=false
3867fffe5102Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
386867f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
387067f05d30Smrgdo
387167f05d30Smrg  IFS=$as_save_IFS
387267f05d30Smrg  test -z "$as_dir" && as_dir=.
3873fffe5102Smrg    for ac_prog in grep ggrep; do
3874fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3875fffe5102Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3876fffe5102Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3877fffe5102Smrg# Check for GNU ac_path_GREP and select it if it is found.
3878fffe5102Smrg  # Check for GNU $ac_path_GREP
3879fffe5102Smrgcase `"$ac_path_GREP" --version 2>&1` in
3880fffe5102Smrg*GNU*)
3881fffe5102Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882fffe5102Smrg*)
3883fffe5102Smrg  ac_count=0
3884fffe5102Smrg  $as_echo_n 0123456789 >"conftest.in"
3885fffe5102Smrg  while :
3886fffe5102Smrg  do
3887fffe5102Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3888fffe5102Smrg    mv "conftest.tmp" "conftest.in"
3889fffe5102Smrg    cp "conftest.in" "conftest.nl"
3890fffe5102Smrg    $as_echo 'GREP' >> "conftest.nl"
3891fffe5102Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892fffe5102Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893fffe5102Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3894fffe5102Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3895fffe5102Smrg      # Best one so far, save it but keep looking for a better one
3896fffe5102Smrg      ac_cv_path_GREP="$ac_path_GREP"
3897fffe5102Smrg      ac_path_GREP_max=$ac_count
3898fffe5102Smrg    fi
3899fffe5102Smrg    # 10*(2^10) chars as input seems more than enough
3900fffe5102Smrg    test $ac_count -gt 10 && break
3901fffe5102Smrg  done
3902fffe5102Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
390367f05d30Smrgesac
390467f05d30Smrg
3905fffe5102Smrg      $ac_path_GREP_found && break 3
3906fffe5102Smrg    done
3907fffe5102Smrg  done
3908fffe5102Smrg  done
3909fffe5102SmrgIFS=$as_save_IFS
3910fffe5102Smrg  if test -z "$ac_cv_path_GREP"; then
3911fc51f767Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3912fffe5102Smrg  fi
391367f05d30Smrgelse
3914fffe5102Smrg  ac_cv_path_GREP=$GREP
391567f05d30Smrgfi
391667f05d30Smrg
391767f05d30Smrgfi
3918fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3919fffe5102Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3920fffe5102Smrg GREP="$ac_cv_path_GREP"
3921fffe5102Smrg
3922fffe5102Smrg
3923fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3924fffe5102Smrg$as_echo_n "checking for egrep... " >&6; }
3925fc51f767Smrgif ${ac_cv_path_EGREP+:} false; then :
3926fffe5102Smrg  $as_echo_n "(cached) " >&6
392767f05d30Smrgelse
3928fffe5102Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3929fffe5102Smrg   then ac_cv_path_EGREP="$GREP -E"
3930fffe5102Smrg   else
3931fffe5102Smrg     if test -z "$EGREP"; then
3932fffe5102Smrg  ac_path_EGREP_found=false
3933fffe5102Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
393467f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
393667f05d30Smrgdo
393767f05d30Smrg  IFS=$as_save_IFS
393867f05d30Smrg  test -z "$as_dir" && as_dir=.
3939fffe5102Smrg    for ac_prog in egrep; do
3940fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3941fffe5102Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3942fffe5102Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3943fffe5102Smrg# Check for GNU ac_path_EGREP and select it if it is found.
3944fffe5102Smrg  # Check for GNU $ac_path_EGREP
3945fffe5102Smrgcase `"$ac_path_EGREP" --version 2>&1` in
3946fffe5102Smrg*GNU*)
3947fffe5102Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3948fffe5102Smrg*)
3949fffe5102Smrg  ac_count=0
3950fffe5102Smrg  $as_echo_n 0123456789 >"conftest.in"
3951fffe5102Smrg  while :
3952fffe5102Smrg  do
3953fffe5102Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3954fffe5102Smrg    mv "conftest.tmp" "conftest.in"
3955fffe5102Smrg    cp "conftest.in" "conftest.nl"
3956fffe5102Smrg    $as_echo 'EGREP' >> "conftest.nl"
3957fffe5102Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958fffe5102Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959fffe5102Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3960fffe5102Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3961fffe5102Smrg      # Best one so far, save it but keep looking for a better one
3962fffe5102Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
3963fffe5102Smrg      ac_path_EGREP_max=$ac_count
3964fffe5102Smrg    fi
3965fffe5102Smrg    # 10*(2^10) chars as input seems more than enough
3966fffe5102Smrg    test $ac_count -gt 10 && break
3967fffe5102Smrg  done
3968fffe5102Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969fffe5102Smrgesac
3970fffe5102Smrg
3971fffe5102Smrg      $ac_path_EGREP_found && break 3
3972fffe5102Smrg    done
3973fffe5102Smrg  done
3974fffe5102Smrg  done
3975fffe5102SmrgIFS=$as_save_IFS
3976fffe5102Smrg  if test -z "$ac_cv_path_EGREP"; then
3977fc51f767Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3978fffe5102Smrg  fi
3979fffe5102Smrgelse
3980fffe5102Smrg  ac_cv_path_EGREP=$EGREP
3981fffe5102Smrgfi
3982fffe5102Smrg
3983fffe5102Smrg   fi
3984fffe5102Smrgfi
3985fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3986fffe5102Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
3987fffe5102Smrg EGREP="$ac_cv_path_EGREP"
3988fffe5102Smrg
3989fffe5102Smrg
3990fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3991fffe5102Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
3992fc51f767Smrgif ${ac_cv_header_stdc+:} false; then :
3993fffe5102Smrg  $as_echo_n "(cached) " >&6
3994fffe5102Smrgelse
3995fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996fffe5102Smrg/* end confdefs.h.  */
3997fffe5102Smrg#include <stdlib.h>
3998fffe5102Smrg#include <stdarg.h>
3999fffe5102Smrg#include <string.h>
4000fffe5102Smrg#include <float.h>
4001fffe5102Smrg
4002fffe5102Smrgint
4003fffe5102Smrgmain ()
4004fffe5102Smrg{
4005fffe5102Smrg
4006fffe5102Smrg  ;
4007fffe5102Smrg  return 0;
4008fffe5102Smrg}
4009fffe5102Smrg_ACEOF
4010fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
4011fffe5102Smrg  ac_cv_header_stdc=yes
4012fffe5102Smrgelse
4013fffe5102Smrg  ac_cv_header_stdc=no
4014fffe5102Smrgfi
4015fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016fffe5102Smrg
4017fffe5102Smrgif test $ac_cv_header_stdc = yes; then
4018fffe5102Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4019fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020fffe5102Smrg/* end confdefs.h.  */
4021fffe5102Smrg#include <string.h>
4022fffe5102Smrg
4023fffe5102Smrg_ACEOF
4024fffe5102Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025fffe5102Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4026fffe5102Smrg
4027fffe5102Smrgelse
4028fffe5102Smrg  ac_cv_header_stdc=no
4029fffe5102Smrgfi
4030fffe5102Smrgrm -f conftest*
4031fffe5102Smrg
4032fffe5102Smrgfi
4033fffe5102Smrg
4034fffe5102Smrgif test $ac_cv_header_stdc = yes; then
4035fffe5102Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4036fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037fffe5102Smrg/* end confdefs.h.  */
4038fffe5102Smrg#include <stdlib.h>
4039fffe5102Smrg
4040fffe5102Smrg_ACEOF
4041fffe5102Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042fffe5102Smrg  $EGREP "free" >/dev/null 2>&1; then :
4043fffe5102Smrg
4044fffe5102Smrgelse
4045fffe5102Smrg  ac_cv_header_stdc=no
4046fffe5102Smrgfi
4047fffe5102Smrgrm -f conftest*
4048fffe5102Smrg
4049fffe5102Smrgfi
4050fffe5102Smrg
4051fffe5102Smrgif test $ac_cv_header_stdc = yes; then
4052fffe5102Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4053fffe5102Smrg  if test "$cross_compiling" = yes; then :
4054fffe5102Smrg  :
4055fffe5102Smrgelse
4056fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057fffe5102Smrg/* end confdefs.h.  */
4058fffe5102Smrg#include <ctype.h>
4059fffe5102Smrg#include <stdlib.h>
4060fffe5102Smrg#if ((' ' & 0x0FF) == 0x020)
4061fffe5102Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4062fffe5102Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4063fffe5102Smrg#else
4064fffe5102Smrg# define ISLOWER(c) \
4065fffe5102Smrg		   (('a' <= (c) && (c) <= 'i') \
4066fffe5102Smrg		     || ('j' <= (c) && (c) <= 'r') \
4067fffe5102Smrg		     || ('s' <= (c) && (c) <= 'z'))
4068fffe5102Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069fffe5102Smrg#endif
4070fffe5102Smrg
4071fffe5102Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4072fffe5102Smrgint
4073fffe5102Smrgmain ()
4074fffe5102Smrg{
4075fffe5102Smrg  int i;
4076fffe5102Smrg  for (i = 0; i < 256; i++)
4077fffe5102Smrg    if (XOR (islower (i), ISLOWER (i))
4078fffe5102Smrg	|| toupper (i) != TOUPPER (i))
4079fffe5102Smrg      return 2;
4080fffe5102Smrg  return 0;
4081fffe5102Smrg}
4082fffe5102Smrg_ACEOF
4083fffe5102Smrgif ac_fn_c_try_run "$LINENO"; then :
4084fffe5102Smrg
4085fffe5102Smrgelse
4086fffe5102Smrg  ac_cv_header_stdc=no
4087fffe5102Smrgfi
4088fffe5102Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4089fffe5102Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4090fffe5102Smrgfi
4091fffe5102Smrg
4092fffe5102Smrgfi
4093fffe5102Smrgfi
4094fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4095fffe5102Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4096fffe5102Smrgif test $ac_cv_header_stdc = yes; then
4097fffe5102Smrg
4098fffe5102Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4099fffe5102Smrg
4100fffe5102Smrgfi
4101fffe5102Smrg
4102fffe5102Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4103fffe5102Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4104fffe5102Smrg		  inttypes.h stdint.h unistd.h
4105fffe5102Smrgdo :
4106fffe5102Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4107fffe5102Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4108fffe5102Smrg"
4109fc51f767Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4110fffe5102Smrg  cat >>confdefs.h <<_ACEOF
4111fffe5102Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4112fffe5102Smrg_ACEOF
4113fffe5102Smrg
4114fffe5102Smrgfi
4115fffe5102Smrg
4116fffe5102Smrgdone
4117fffe5102Smrg
4118fffe5102Smrg
4119fc51f767Smrg
4120fc51f767Smrg
4121fc51f767Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4122fc51f767Smrg	if test -n "$ac_tool_prefix"; then
4123fc51f767Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4124fc51f767Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4125fc51f767Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126fc51f767Smrg$as_echo_n "checking for $ac_word... " >&6; }
4127fc51f767Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4128fffe5102Smrg  $as_echo_n "(cached) " >&6
4129fffe5102Smrgelse
4130fc51f767Smrg  case $PKG_CONFIG in
4131fc51f767Smrg  [\\/]* | ?:[\\/]*)
4132fc51f767Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4133fc51f767Smrg  ;;
4134fc51f767Smrg  *)
4135fc51f767Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136fc51f767Smrgfor as_dir in $PATH
4137fc51f767Smrgdo
4138fc51f767Smrg  IFS=$as_save_IFS
4139fc51f767Smrg  test -z "$as_dir" && as_dir=.
4140fc51f767Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4141fc51f767Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142fc51f767Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4143fc51f767Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144fc51f767Smrg    break 2
4145fc51f767Smrg  fi
4146fc51f767Smrgdone
4147fc51f767Smrg  done
4148fc51f767SmrgIFS=$as_save_IFS
4149fffe5102Smrg
4150fffe5102Smrg  ;;
4151fffe5102Smrgesac
4152fffe5102Smrgfi
4153fffe5102SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4154fffe5102Smrgif test -n "$PKG_CONFIG"; then
4155fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4156fffe5102Smrg$as_echo "$PKG_CONFIG" >&6; }
4157fffe5102Smrgelse
4158fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159fffe5102Smrg$as_echo "no" >&6; }
4160fffe5102Smrgfi
4161fffe5102Smrg
4162fffe5102Smrg
4163fffe5102Smrgfi
4164fffe5102Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4165fffe5102Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4166fffe5102Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4167fffe5102Smrgset dummy pkg-config; ac_word=$2
4168fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4170fc51f767Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4171fffe5102Smrg  $as_echo_n "(cached) " >&6
4172fffe5102Smrgelse
4173fffe5102Smrg  case $ac_pt_PKG_CONFIG in
4174fffe5102Smrg  [\\/]* | ?:[\\/]*)
4175fffe5102Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4176fffe5102Smrg  ;;
4177fffe5102Smrg  *)
4178fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179fffe5102Smrgfor as_dir in $PATH
4180fffe5102Smrgdo
4181fffe5102Smrg  IFS=$as_save_IFS
4182fffe5102Smrg  test -z "$as_dir" && as_dir=.
4183fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4184fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185fffe5102Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4186fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187fffe5102Smrg    break 2
4188fffe5102Smrg  fi
4189fffe5102Smrgdone
4190fffe5102Smrg  done
4191fffe5102SmrgIFS=$as_save_IFS
419267f05d30Smrg
4193fffe5102Smrg  ;;
4194fffe5102Smrgesac
4195fffe5102Smrgfi
4196fffe5102Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
419767f05d30Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4198fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4199fffe5102Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4200fffe5102Smrgelse
4201fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202fffe5102Smrg$as_echo "no" >&6; }
4203fffe5102Smrgfi
4204fffe5102Smrg
4205fffe5102Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4206fffe5102Smrg    PKG_CONFIG=""
4207fffe5102Smrg  else
4208fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
4209fffe5102Smrgyes:)
4210fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212fffe5102Smrgac_tool_warned=yes ;;
4213fffe5102Smrgesac
4214fffe5102Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4215fffe5102Smrg  fi
4216fffe5102Smrgelse
4217fffe5102Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4218fffe5102Smrgfi
4219fffe5102Smrg
4220fffe5102Smrgfi
4221fffe5102Smrgif test -n "$PKG_CONFIG"; then
4222fffe5102Smrg	_pkg_min_version=0.9.0
4223fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4224fffe5102Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4225fffe5102Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4226fffe5102Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227fffe5102Smrg$as_echo "yes" >&6; }
4228fffe5102Smrg	else
4229fffe5102Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230fffe5102Smrg$as_echo "no" >&6; }
4231fffe5102Smrg		PKG_CONFIG=""
4232fffe5102Smrg	fi
4233fffe5102Smrg
4234fffe5102Smrgfi
4235fffe5102Smrg# Make sure we can run config.sub.
4236fffe5102Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4237fc51f767Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4238fffe5102Smrg
4239fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4240fffe5102Smrg$as_echo_n "checking build system type... " >&6; }
4241fc51f767Smrgif ${ac_cv_build+:} false; then :
4242fffe5102Smrg  $as_echo_n "(cached) " >&6
4243fffe5102Smrgelse
4244fffe5102Smrg  ac_build_alias=$build_alias
4245fffe5102Smrgtest "x$ac_build_alias" = x &&
4246fffe5102Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4247fffe5102Smrgtest "x$ac_build_alias" = x &&
4248fc51f767Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4249fffe5102Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4250fc51f767Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4251fffe5102Smrg
4252fffe5102Smrgfi
4253fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4254fffe5102Smrg$as_echo "$ac_cv_build" >&6; }
4255fffe5102Smrgcase $ac_cv_build in
4256fffe5102Smrg*-*-*) ;;
4257fc51f767Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4258fffe5102Smrgesac
4259fffe5102Smrgbuild=$ac_cv_build
4260fffe5102Smrgac_save_IFS=$IFS; IFS='-'
4261fffe5102Smrgset x $ac_cv_build
4262fffe5102Smrgshift
4263fffe5102Smrgbuild_cpu=$1
4264fffe5102Smrgbuild_vendor=$2
4265fffe5102Smrgshift; shift
4266fffe5102Smrg# Remember, the first character of IFS is used to create $*,
4267fffe5102Smrg# except with old shells:
4268fffe5102Smrgbuild_os=$*
4269fffe5102SmrgIFS=$ac_save_IFS
4270fffe5102Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4271fffe5102Smrg
4272fffe5102Smrg
4273fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4274fffe5102Smrg$as_echo_n "checking host system type... " >&6; }
4275fc51f767Smrgif ${ac_cv_host+:} false; then :
4276fffe5102Smrg  $as_echo_n "(cached) " >&6
4277fffe5102Smrgelse
4278fffe5102Smrg  if test "x$host_alias" = x; then
4279fffe5102Smrg  ac_cv_host=$ac_cv_build
4280fffe5102Smrgelse
4281fffe5102Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4282fc51f767Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4283fffe5102Smrgfi
4284fffe5102Smrg
4285fffe5102Smrgfi
4286fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4287fffe5102Smrg$as_echo "$ac_cv_host" >&6; }
4288fffe5102Smrgcase $ac_cv_host in
4289fffe5102Smrg*-*-*) ;;
4290fc51f767Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4291fffe5102Smrgesac
4292fffe5102Smrghost=$ac_cv_host
4293fffe5102Smrgac_save_IFS=$IFS; IFS='-'
4294fffe5102Smrgset x $ac_cv_host
4295fffe5102Smrgshift
4296fffe5102Smrghost_cpu=$1
4297fffe5102Smrghost_vendor=$2
4298fffe5102Smrgshift; shift
4299fffe5102Smrg# Remember, the first character of IFS is used to create $*,
4300fffe5102Smrg# except with old shells:
4301fffe5102Smrghost_os=$*
4302fffe5102SmrgIFS=$ac_save_IFS
4303fffe5102Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4304fffe5102Smrg
4305fffe5102Smrg
4306fc51f767Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4307fc51f767Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4308fc51f767Smrgif ${ac_cv_path_SED+:} false; then :
4309fc51f767Smrg  $as_echo_n "(cached) " >&6
4310fffe5102Smrgelse
4311fc51f767Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4312fc51f767Smrg     for ac_i in 1 2 3 4 5 6 7; do
4313fc51f767Smrg       ac_script="$ac_script$as_nl$ac_script"
4314fc51f767Smrg     done
4315fc51f767Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4316fc51f767Smrg     { ac_script=; unset ac_script;}
4317fc51f767Smrg     if test -z "$SED"; then
4318fc51f767Smrg  ac_path_SED_found=false
4319fc51f767Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4320fc51f767Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321fc51f767Smrgfor as_dir in $PATH
4322fc51f767Smrgdo
4323fc51f767Smrg  IFS=$as_save_IFS
4324fc51f767Smrg  test -z "$as_dir" && as_dir=.
4325fc51f767Smrg    for ac_prog in sed gsed; do
4326fc51f767Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4327fc51f767Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4328fc51f767Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4329fc51f767Smrg# Check for GNU ac_path_SED and select it if it is found.
4330fc51f767Smrg  # Check for GNU $ac_path_SED
4331fc51f767Smrgcase `"$ac_path_SED" --version 2>&1` in
4332fc51f767Smrg*GNU*)
4333fc51f767Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4334fc51f767Smrg*)
4335fc51f767Smrg  ac_count=0
4336fc51f767Smrg  $as_echo_n 0123456789 >"conftest.in"
4337fc51f767Smrg  while :
4338fc51f767Smrg  do
4339fc51f767Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4340fc51f767Smrg    mv "conftest.tmp" "conftest.in"
4341fc51f767Smrg    cp "conftest.in" "conftest.nl"
4342fc51f767Smrg    $as_echo '' >> "conftest.nl"
4343fc51f767Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344fc51f767Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345fc51f767Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4346fc51f767Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4347fc51f767Smrg      # Best one so far, save it but keep looking for a better one
4348fc51f767Smrg      ac_cv_path_SED="$ac_path_SED"
4349fc51f767Smrg      ac_path_SED_max=$ac_count
4350fffe5102Smrg    fi
4351fc51f767Smrg    # 10*(2^10) chars as input seems more than enough
4352fc51f767Smrg    test $ac_count -gt 10 && break
4353fc51f767Smrg  done
4354fc51f767Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355fffe5102Smrgesac
4356fffe5102Smrg
4357fc51f767Smrg      $ac_path_SED_found && break 3
4358fffe5102Smrg    done
4359fffe5102Smrg  done
4360fc51f767Smrg  done
4361fc51f767SmrgIFS=$as_save_IFS
4362fc51f767Smrg  if test -z "$ac_cv_path_SED"; then
4363fc51f767Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4364fc51f767Smrg  fi
436567f05d30Smrgelse
4366fc51f767Smrg  ac_cv_path_SED=$SED
436767f05d30Smrgfi
436867f05d30Smrg
4369fffe5102Smrgfi
4370fc51f767Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4371fc51f767Smrg$as_echo "$ac_cv_path_SED" >&6; }
4372fc51f767Smrg SED="$ac_cv_path_SED"
4373fc51f767Smrg  rm -f conftest.sed
4374fffe5102Smrg
4375fc51f767Smrg
4376fc51f767Smrg
4377fc51f767Smrg
4378fc51f767Smrg
4379fc51f767Smrgif  test "x$GCC" = xyes ; then
4380fc51f767Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4381fc51f767Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4382fc51f767Smrg-Wbad-function-cast -Wformat=2"
4383fc51f767Smrg    case `$CC -dumpversion` in
4384fc51f767Smrg    3.4.* | 4.*)
4385fc51f767Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4386fc51f767Smrg	;;
4387fc51f767Smrg    esac
438867f05d30Smrgelse
4389fc51f767Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4390fc51f767Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4391fc51f767Smrg  SUNCC="yes"
4392fc51f767Smrgelse
4393fc51f767Smrg  SUNCC="no"
439467f05d30Smrgfi
439567f05d30Smrg
4396fc51f767Smrg    if test "x$SUNCC" = "xyes"; then
4397fc51f767Smrg	CWARNFLAGS="-v"
4398fc51f767Smrg    fi
4399fc51f767Smrgfi
440067f05d30Smrg
4401fffe5102Smrg
4402fffe5102Smrg
4403fc51f767Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4404fffe5102Smrg
4405fffe5102Smrg
4406fffe5102Smrg
4407fc51f767Smrg# Check whether --enable-strict-compilation was given.
4408fc51f767Smrgif test "${enable_strict_compilation+set}" = set; then :
4409fc51f767Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
441067f05d30Smrgelse
4411fc51f767Smrg  STRICT_COMPILE=no
441267f05d30Smrgfi
4413fc51f767Smrg
4414fc51f767Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4415fc51f767Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4416fc51f767Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4417fc51f767Smrg  SUNCC="yes"
4418fc51f767Smrgelse
4419fc51f767Smrg  SUNCC="no"
442067f05d30Smrgfi
4421fc51f767Smrg
4422fc51f767Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4423fc51f767Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4424fc51f767Smrg  INTELCC="yes"
442567f05d30Smrgelse
4426fc51f767Smrg  INTELCC="no"
442767f05d30Smrgfi
4428fc51f767Smrg
4429fc51f767Smrg	if test "x$GCC" = xyes ; then
4430fc51f767Smrg		STRICT_CFLAGS="-pedantic -Werror"
4431fc51f767Smrg	elif test "x$SUNCC" = "xyes"; then
4432fc51f767Smrg		STRICT_CFLAGS="-errwarn"
4433fc51f767Smrg    elif test "x$INTELCC" = "xyes"; then
4434fc51f767Smrg		STRICT_CFLAGS="-Werror"
4435fc51f767Smrg	fi
443667f05d30Smrgfi
4437fc51f767SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
443867f05d30Smrg
443967f05d30Smrg
444067f05d30Smrg
444167f05d30Smrg
4442fc51f767Smrgcat >>confdefs.h <<_ACEOF
4443fc51f767Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4444fc51f767Smrg_ACEOF
4445fc51f767Smrg
4446fc51f767Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4447fc51f767Smrg	if test "x$PVM" = "x"; then
4448fc51f767Smrg		PVM="0"
4449fc51f767Smrg	fi
4450fc51f767Smrg
4451fc51f767Smrgcat >>confdefs.h <<_ACEOF
4452fc51f767Smrg#define PACKAGE_VERSION_MINOR $PVM
4453fc51f767Smrg_ACEOF
4454fc51f767Smrg
4455fc51f767Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4456fc51f767Smrg	if test "x$PVP" = "x"; then
4457fc51f767Smrg		PVP="0"
4458fc51f767Smrg	fi
4459fc51f767Smrg
4460fc51f767Smrgcat >>confdefs.h <<_ACEOF
4461fc51f767Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4462fc51f767Smrg_ACEOF
4463fc51f767Smrg
4464fc51f767Smrg
4465fc51f767Smrg
4466fc51f767SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4467fc51f767Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4468fc51f767Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4469fc51f767Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4470fc51f767Smrg
4471fc51f767Smrg
4472fc51f767Smrg
4473fc51f767Smrg
4474fc51f767Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4475fc51f767SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4476fc51f767Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4477fc51f767Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4478fc51f767Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4479fc51f767Smrg
4480fc51f767Smrg
4481fc51f767Smrg
4482fc51f767Smrg
4483fc51f767Smrg
4484fc51f767Smrg
4485fc51f767Smrgif test x$APP_MAN_SUFFIX = x    ; then
4486fc51f767Smrg    APP_MAN_SUFFIX=1
4487fc51f767Smrgfi
4488fc51f767Smrgif test x$APP_MAN_DIR = x    ; then
4489fc51f767Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
449067f05d30Smrgfi
449167f05d30Smrg
4492fc51f767Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4493fc51f767Smrg    LIB_MAN_SUFFIX=3
4494fc51f767Smrgfi
4495fc51f767Smrgif test x$LIB_MAN_DIR = x    ; then
4496fc51f767Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4497fc51f767Smrgfi
449867f05d30Smrg
4499fc51f767Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4500fc51f767Smrg    case $host_os in
4501fc51f767Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4502fc51f767Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4503fc51f767Smrg    esac
4504fc51f767Smrgfi
4505fc51f767Smrgif test x$FILE_MAN_DIR = x    ; then
4506fc51f767Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4507fc51f767Smrgfi
450867f05d30Smrg
4509fc51f767Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4510fc51f767Smrg    case $host_os in
4511fc51f767Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4512fc51f767Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4513fc51f767Smrg    esac
4514fc51f767Smrgfi
4515fc51f767Smrgif test x$MISC_MAN_DIR = x    ; then
4516fc51f767Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4517fc51f767Smrgfi
451867f05d30Smrg
4519fc51f767Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4520fc51f767Smrg    case $host_os in
4521fc51f767Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4522fc51f767Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4523fc51f767Smrg    esac
4524fc51f767Smrgfi
4525fc51f767Smrgif test x$DRIVER_MAN_DIR = x    ; then
4526fc51f767Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4527fc51f767Smrgfi
452867f05d30Smrg
4529fc51f767Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4530fc51f767Smrg    case $host_os in
4531fc51f767Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4532fc51f767Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4533fc51f767Smrg    esac
4534fc51f767Smrgfi
4535fc51f767Smrgif test x$ADMIN_MAN_DIR = x    ; then
4536fc51f767Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4537fc51f767Smrgfi
453867f05d30Smrg
4539fc51f767Smrg
4540fc51f767Smrg
4541fc51f767Smrg
4542fc51f767Smrg
4543fc51f767Smrg
4544fc51f767Smrg
4545fc51f767Smrg
4546fc51f767Smrg
4547fc51f767Smrg
4548fc51f767Smrg
4549fc51f767Smrg
4550fc51f767Smrg
4551fc51f767Smrg
4552fc51f767Smrg
4553fc51f767SmrgXORG_MAN_PAGE="X Version 11"
4554fc51f767Smrg
4555fc51f767SmrgMAN_SUBSTS="\
4556fc51f767Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4557fc51f767Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4558fc51f767Smrg	-e 's|__xservername__|Xorg|g' \
4559fc51f767Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4560fc51f767Smrg	-e 's|__projectroot__|\$(prefix)|g' \
4561fc51f767Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4562fc51f767Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4563fc51f767Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4564fc51f767Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4565fc51f767Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4566fc51f767Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4567fc51f767Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4568fc51f767Smrg
4569fc51f767Smrg
4570fc51f767Smrg
4571fc51f767Smrg# Check whether --enable-silent-rules was given.
4572fc51f767Smrgif test "${enable_silent_rules+set}" = set; then :
4573fc51f767Smrg  enableval=$enable_silent_rules;
4574fffe5102Smrgfi
4575fc51f767Smrg
4576fc51f767Smrgcase $enable_silent_rules in
4577fc51f767Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4578fc51f767Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4579fc51f767Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4580fc51f767Smrgesac
4581fc51f767SmrgAM_BACKSLASH='\'
4582fc51f767Smrg
458367f05d30Smrg
458467f05d30Smrg
4585fc51f767Smrgac_config_headers="$ac_config_headers config.h"
4586fc51f767Smrg
458767f05d30Smrg
458867f05d30Smrg
458967f05d30Smrgpkg_failed=no
4590fc51f767Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5
4591fc51f767Smrg$as_echo_n "checking for VIEWRES... " >&6; }
4592fffe5102Smrg
4593fc51f767Smrgif test -n "$VIEWRES_CFLAGS"; then
4594fc51f767Smrg    pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS"
4595fffe5102Smrg elif test -n "$PKG_CONFIG"; then
4596fffe5102Smrg    if test -n "$PKG_CONFIG" && \
4597fc51f767Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
4598fc51f767Smrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
459967f05d30Smrg  ac_status=$?
4600fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601fffe5102Smrg  test $ac_status = 0; }; then
4602fc51f767Smrg  pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt" 2>/dev/null`
460367f05d30Smrgelse
460467f05d30Smrg  pkg_failed=yes
460567f05d30Smrgfi
4606fffe5102Smrg else
4607fffe5102Smrg    pkg_failed=untried
460867f05d30Smrgfi
4609fc51f767Smrgif test -n "$VIEWRES_LIBS"; then
4610fc51f767Smrg    pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS"
4611fffe5102Smrg elif test -n "$PKG_CONFIG"; then
4612fffe5102Smrg    if test -n "$PKG_CONFIG" && \
4613fc51f767Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5
4614fc51f767Smrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5
461567f05d30Smrg  ac_status=$?
4616fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617fffe5102Smrg  test $ac_status = 0; }; then
4618fc51f767Smrg  pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt" 2>/dev/null`
461967f05d30Smrgelse
462067f05d30Smrg  pkg_failed=yes
462167f05d30Smrgfi
4622fffe5102Smrg else
4623fffe5102Smrg    pkg_failed=untried
462467f05d30Smrgfi
462567f05d30Smrg
462667f05d30Smrg
462767f05d30Smrg
462867f05d30Smrgif test $pkg_failed = yes; then
462967f05d30Smrg
463067f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
463167f05d30Smrg        _pkg_short_errors_supported=yes
463267f05d30Smrgelse
463367f05d30Smrg        _pkg_short_errors_supported=no
463467f05d30Smrgfi
463567f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
4636fc51f767Smrg	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt" 2>&1`
463767f05d30Smrg        else
4638fc51f767Smrg	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt" 2>&1`
463967f05d30Smrg        fi
464067f05d30Smrg	# Put the nasty error message in config.log where it belongs
4641fc51f767Smrg	echo "$VIEWRES_PKG_ERRORS" >&5
464267f05d30Smrg
4643fc51f767Smrg	as_fn_error $? "Package requirements (xaw7 xmu xt) were not met:
464467f05d30Smrg
4645fc51f767Smrg$VIEWRES_PKG_ERRORS
464667f05d30Smrg
464767f05d30SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
464867f05d30Smrginstalled software in a non-standard prefix.
464967f05d30Smrg
4650fc51f767SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS
4651fc51f767Smrgand VIEWRES_LIBS to avoid the need to call pkg-config.
465267f05d30SmrgSee the pkg-config man page for more details.
4653fffe5102Smrg" "$LINENO" 5
465467f05d30Smrgelif test $pkg_failed = untried; then
4655fffe5102Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657fc51f767Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
465867f05d30Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
465967f05d30Smrgpath to pkg-config.
466067f05d30Smrg
4661fc51f767SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS
4662fc51f767Smrgand VIEWRES_LIBS to avoid the need to call pkg-config.
466367f05d30SmrgSee the pkg-config man page for more details.
466467f05d30Smrg
4665fffe5102SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4666fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; }
466767f05d30Smrgelse
4668fc51f767Smrg	VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS
4669fc51f767Smrg	VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS
4670fffe5102Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4671fffe5102Smrg$as_echo "yes" >&6; }
467267f05d30Smrg	:
467367f05d30Smrgfi
4674fc51f767Smrg
4675fc51f767Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
467667f05d30Smrg
4677fffe5102Smrg# Check whether --with-appdefaultdir was given.
4678fffe5102Smrgif test "${with_appdefaultdir+set}" = set; then :
4679fffe5102Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
468067f05d30Smrgelse
4681fffe5102Smrg  appdefaultdir="${xt_appdefaultdir}"
468267f05d30Smrgfi
468367f05d30Smrg
468467f05d30Smrg
468567f05d30Smrg
468667f05d30Smrg
4687fffe5102Smrgac_config_files="$ac_config_files Makefile"
468867f05d30Smrg
468967f05d30Smrgcat >confcache <<\_ACEOF
469067f05d30Smrg# This file is a shell script that caches the results of configure
469167f05d30Smrg# tests run on this system so they can be shared between configure
469267f05d30Smrg# scripts and configure runs, see configure's option --config-cache.
469367f05d30Smrg# It is not useful on other systems.  If it contains results you don't
469467f05d30Smrg# want to keep, you may remove or edit it.
469567f05d30Smrg#
469667f05d30Smrg# config.status only pays attention to the cache file if you give it
469767f05d30Smrg# the --recheck option to rerun configure.
469867f05d30Smrg#
469967f05d30Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
470067f05d30Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
470167f05d30Smrg# following values.
470267f05d30Smrg
470367f05d30Smrg_ACEOF
470467f05d30Smrg
470567f05d30Smrg# The following way of writing the cache mishandles newlines in values,
470667f05d30Smrg# but we know of no workaround that is simple, portable, and efficient.
4707fffe5102Smrg# So, we kill variables containing newlines.
470867f05d30Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
470967f05d30Smrg# and sets the high bit in the cache file unless we assign to the vars.
4710fffe5102Smrg(
4711fffe5102Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4712fffe5102Smrg    eval ac_val=\$$ac_var
4713fffe5102Smrg    case $ac_val in #(
4714fffe5102Smrg    *${as_nl}*)
4715fffe5102Smrg      case $ac_var in #(
4716fffe5102Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4717fffe5102Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4718fffe5102Smrg      esac
4719fffe5102Smrg      case $ac_var in #(
4720fffe5102Smrg      _ | IFS | as_nl) ;; #(
4721fffe5102Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4722fffe5102Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
4723fffe5102Smrg      esac ;;
4724fffe5102Smrg    esac
4725fffe5102Smrg  done
4726fffe5102Smrg
472767f05d30Smrg  (set) 2>&1 |
4728fffe5102Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4729fffe5102Smrg    *${as_nl}ac_space=\ *)
4730fffe5102Smrg      # `set' does not quote correctly, so add quotes: double-quote
4731fffe5102Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
473267f05d30Smrg      sed -n \
473367f05d30Smrg	"s/'/'\\\\''/g;
473467f05d30Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4735fffe5102Smrg      ;; #(
473667f05d30Smrg    *)
473767f05d30Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4738fffe5102Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
473967f05d30Smrg      ;;
4740fffe5102Smrg    esac |
4741fffe5102Smrg    sort
4742fffe5102Smrg) |
474367f05d30Smrg  sed '
4744fffe5102Smrg     /^ac_cv_env_/b end
474567f05d30Smrg     t clear
4746fffe5102Smrg     :clear
474767f05d30Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
474867f05d30Smrg     t end
4749fffe5102Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4750fffe5102Smrg     :end' >>confcache
4751fffe5102Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4752fffe5102Smrg  if test -w "$cache_file"; then
4753fc51f767Smrg    if test "x$cache_file" != "x/dev/null"; then
4754fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4755fffe5102Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
4756fc51f767Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
4757fc51f767Smrg	cat confcache >"$cache_file"
4758fc51f767Smrg      else
4759fc51f767Smrg        case $cache_file in #(
4760fc51f767Smrg        */* | ?:*)
4761fc51f767Smrg	  mv -f confcache "$cache_file"$$ &&
4762fc51f767Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4763fc51f767Smrg        *)
4764fc51f767Smrg	  mv -f confcache "$cache_file" ;;
4765fc51f767Smrg	esac
4766fc51f767Smrg      fi
4767fc51f767Smrg    fi
476867f05d30Smrg  else
4769fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4770fffe5102Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
477167f05d30Smrg  fi
477267f05d30Smrgfi
477367f05d30Smrgrm -f confcache
477467f05d30Smrg
477567f05d30Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
477667f05d30Smrg# Let make expand exec_prefix.
477767f05d30Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
477867f05d30Smrg
477967f05d30SmrgDEFS=-DHAVE_CONFIG_H
478067f05d30Smrg
478167f05d30Smrgac_libobjs=
478267f05d30Smrgac_ltlibobjs=
4783fc51f767SmrgU=
478467f05d30Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
478567f05d30Smrg  # 1. Remove the extension, and $U if already installed.
4786fffe5102Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4787fffe5102Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4788fffe5102Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4789fffe5102Smrg  #    will be set to the directory where LIBOBJS objects are built.
4790fffe5102Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4791fffe5102Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
479267f05d30Smrgdone
479367f05d30SmrgLIBOBJS=$ac_libobjs
479467f05d30Smrg
479567f05d30SmrgLTLIBOBJS=$ac_ltlibobjs
479667f05d30Smrg
479767f05d30Smrg
4798fffe5102Smrg if test -n "$EXEEXT"; then
4799fffe5102Smrg  am__EXEEXT_TRUE=
4800fffe5102Smrg  am__EXEEXT_FALSE='#'
4801fffe5102Smrgelse
4802fffe5102Smrg  am__EXEEXT_TRUE='#'
4803fffe5102Smrg  am__EXEEXT_FALSE=
4804fffe5102Smrgfi
4805fffe5102Smrg
480667f05d30Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4807fc51f767Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4808fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
480967f05d30Smrgfi
481067f05d30Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4811fc51f767Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4812fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
481367f05d30Smrgfi
4814fffe5102Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4815fc51f767Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4816fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
481767f05d30Smrgfi
481867f05d30Smrg
4819fc51f767Smrg: "${CONFIG_STATUS=./config.status}"
4820fffe5102Smrgac_write_fail=0
482167f05d30Smrgac_clean_files_save=$ac_clean_files
482267f05d30Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4823fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4824fffe5102Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4825fffe5102Smrgas_write_fail=0
4826fffe5102Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
482767f05d30Smrg#! $SHELL
482867f05d30Smrg# Generated by $as_me.
482967f05d30Smrg# Run this file to recreate the current configuration.
483067f05d30Smrg# Compiler output produced by configure, useful for debugging
483167f05d30Smrg# configure, is in config.log if it exists.
483267f05d30Smrg
483367f05d30Smrgdebug=false
483467f05d30Smrgac_cs_recheck=false
483567f05d30Smrgac_cs_silent=false
483667f05d30Smrg
4837fffe5102SmrgSHELL=\${CONFIG_SHELL-$SHELL}
4838fffe5102Smrgexport SHELL
4839fffe5102Smrg_ASEOF
4840fffe5102Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4841fffe5102Smrg## -------------------- ##
4842fffe5102Smrg## M4sh Initialization. ##
4843fffe5102Smrg## -------------------- ##
4844fffe5102Smrg
4845fffe5102Smrg# Be more Bourne compatible
4846fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh
4847fffe5102Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
484867f05d30Smrg  emulate sh
484967f05d30Smrg  NULLCMD=:
4850fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
485167f05d30Smrg  # is contrary to our usage.  Disable this feature.
485267f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
4853fffe5102Smrg  setopt NO_GLOB_SUBST
4854fffe5102Smrgelse
4855fffe5102Smrg  case `(set -o) 2>/dev/null` in #(
4856fffe5102Smrg  *posix*) :
4857fffe5102Smrg    set -o posix ;; #(
4858fffe5102Smrg  *) :
4859fffe5102Smrg     ;;
4860fffe5102Smrgesac
486167f05d30Smrgfi
486267f05d30Smrg
4863fffe5102Smrg
4864fffe5102Smrgas_nl='
4865fffe5102Smrg'
4866fffe5102Smrgexport as_nl
4867fffe5102Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4868fffe5102Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4869fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4870fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4871fffe5102Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4872fffe5102Smrg# but without wasting forks for bash or zsh.
4873fffe5102Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4874fffe5102Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4875fffe5102Smrg  as_echo='print -r --'
4876fffe5102Smrg  as_echo_n='print -rn --'
4877fffe5102Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4878fffe5102Smrg  as_echo='printf %s\n'
4879fffe5102Smrg  as_echo_n='printf %s'
488067f05d30Smrgelse
4881fffe5102Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4882fffe5102Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4883fffe5102Smrg    as_echo_n='/usr/ucb/echo -n'
4884fffe5102Smrg  else
4885fffe5102Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4886fffe5102Smrg    as_echo_n_body='eval
4887fffe5102Smrg      arg=$1;
4888fffe5102Smrg      case $arg in #(
4889fffe5102Smrg      *"$as_nl"*)
4890fffe5102Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
4891fffe5102Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4892fffe5102Smrg      esac;
4893fffe5102Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4894fffe5102Smrg    '
4895fffe5102Smrg    export as_echo_n_body
4896fffe5102Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
4897fffe5102Smrg  fi
4898fffe5102Smrg  export as_echo_body
4899fffe5102Smrg  as_echo='sh -c $as_echo_body as_echo'
4900fffe5102Smrgfi
4901fffe5102Smrg
4902fffe5102Smrg# The user is always right.
4903fffe5102Smrgif test "${PATH_SEPARATOR+set}" != set; then
4904fffe5102Smrg  PATH_SEPARATOR=:
4905fffe5102Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4906fffe5102Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4907fffe5102Smrg      PATH_SEPARATOR=';'
4908fffe5102Smrg  }
490967f05d30Smrgfi
491067f05d30Smrg
491167f05d30Smrg
4912fffe5102Smrg# IFS
4913fffe5102Smrg# We need space, tab and new line, in precisely that order.  Quoting is
4914fffe5102Smrg# there to prevent editors from complaining about space-tab.
4915fffe5102Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4916fffe5102Smrg# splitting by setting IFS to empty value.)
4917fffe5102SmrgIFS=" ""	$as_nl"
4918fffe5102Smrg
4919fffe5102Smrg# Find who we are.  Look in the path if we contain no directory separator.
4920fc51f767Smrgas_myself=
4921fffe5102Smrgcase $0 in #((
4922fffe5102Smrg  *[\\/]* ) as_myself=$0 ;;
4923fffe5102Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924fffe5102Smrgfor as_dir in $PATH
4925fffe5102Smrgdo
4926fffe5102Smrg  IFS=$as_save_IFS
4927fffe5102Smrg  test -z "$as_dir" && as_dir=.
4928fffe5102Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4929fffe5102Smrg  done
4930fffe5102SmrgIFS=$as_save_IFS
4931fffe5102Smrg
4932fffe5102Smrg     ;;
4933fffe5102Smrgesac
4934fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
4935fffe5102Smrg# in which case we are not to be found in the path.
4936fffe5102Smrgif test "x$as_myself" = x; then
4937fffe5102Smrg  as_myself=$0
4938fffe5102Smrgfi
4939fffe5102Smrgif test ! -f "$as_myself"; then
4940fffe5102Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4941fffe5102Smrg  exit 1
4942fffe5102Smrgfi
4943fffe5102Smrg
4944fffe5102Smrg# Unset variables that we do not need and which cause bugs (e.g. in
4945fffe5102Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4946fffe5102Smrg# suppresses any "Segmentation fault" message there.  '((' could
4947fffe5102Smrg# trigger a bug in pdksh 5.2.14.
4948fffe5102Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
4949fffe5102Smrgdo eval test x\${$as_var+set} = xset \
4950fffe5102Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4951fffe5102Smrgdone
495267f05d30SmrgPS1='$ '
495367f05d30SmrgPS2='> '
495467f05d30SmrgPS4='+ '
495567f05d30Smrg
495667f05d30Smrg# NLS nuisances.
4957fffe5102SmrgLC_ALL=C
4958fffe5102Smrgexport LC_ALL
4959fffe5102SmrgLANGUAGE=C
4960fffe5102Smrgexport LANGUAGE
4961fffe5102Smrg
4962fffe5102Smrg# CDPATH.
4963fffe5102Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4964fffe5102Smrg
4965fffe5102Smrg
4966fc51f767Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4967fc51f767Smrg# ----------------------------------------
4968fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4969fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4970fc51f767Smrg# script with STATUS, using 1 if that was 0.
4971fffe5102Smrgas_fn_error ()
4972fffe5102Smrg{
4973fc51f767Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4974fc51f767Smrg  if test "$4"; then
4975fc51f767Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4976fc51f767Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
497767f05d30Smrg  fi
4978fc51f767Smrg  $as_echo "$as_me: error: $2" >&2
4979fffe5102Smrg  as_fn_exit $as_status
4980fffe5102Smrg} # as_fn_error
4981fffe5102Smrg
498267f05d30Smrg
4983fffe5102Smrg# as_fn_set_status STATUS
4984fffe5102Smrg# -----------------------
4985fffe5102Smrg# Set $? to STATUS, without forking.
4986fffe5102Smrgas_fn_set_status ()
4987fffe5102Smrg{
4988fffe5102Smrg  return $1
4989fffe5102Smrg} # as_fn_set_status
4990fffe5102Smrg
4991fffe5102Smrg# as_fn_exit STATUS
4992fffe5102Smrg# -----------------
4993fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4994fffe5102Smrgas_fn_exit ()
4995fffe5102Smrg{
4996fffe5102Smrg  set +e
4997fffe5102Smrg  as_fn_set_status $1
4998fffe5102Smrg  exit $1
4999fffe5102Smrg} # as_fn_exit
5000fffe5102Smrg
5001fffe5102Smrg# as_fn_unset VAR
5002fffe5102Smrg# ---------------
5003fffe5102Smrg# Portably unset VAR.
5004fffe5102Smrgas_fn_unset ()
5005fffe5102Smrg{
5006fffe5102Smrg  { eval $1=; unset $1;}
5007fffe5102Smrg}
5008fffe5102Smrgas_unset=as_fn_unset
5009fffe5102Smrg# as_fn_append VAR VALUE
5010fffe5102Smrg# ----------------------
5011fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5012fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over
5013fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive
5014fffe5102Smrg# implementations.
5015fffe5102Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5016fffe5102Smrg  eval 'as_fn_append ()
5017fffe5102Smrg  {
5018fffe5102Smrg    eval $1+=\$2
5019fffe5102Smrg  }'
5020fffe5102Smrgelse
5021fffe5102Smrg  as_fn_append ()
5022fffe5102Smrg  {
5023fffe5102Smrg    eval $1=\$$1\$2
5024fffe5102Smrg  }
5025fffe5102Smrgfi # as_fn_append
5026fffe5102Smrg
5027fffe5102Smrg# as_fn_arith ARG...
5028fffe5102Smrg# ------------------
5029fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5030fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5031fffe5102Smrg# must be portable across $(()) and expr.
5032fffe5102Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5033fffe5102Smrg  eval 'as_fn_arith ()
5034fffe5102Smrg  {
5035fffe5102Smrg    as_val=$(( $* ))
5036fffe5102Smrg  }'
5037fffe5102Smrgelse
5038fffe5102Smrg  as_fn_arith ()
5039fffe5102Smrg  {
5040fffe5102Smrg    as_val=`expr "$@" || test $? -eq 1`
5041fffe5102Smrg  }
5042fffe5102Smrgfi # as_fn_arith
5043fffe5102Smrg
5044fffe5102Smrg
5045fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5046fffe5102Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504767f05d30Smrg  as_expr=expr
504867f05d30Smrgelse
504967f05d30Smrg  as_expr=false
505067f05d30Smrgfi
505167f05d30Smrg
5052fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
505367f05d30Smrg  as_basename=basename
505467f05d30Smrgelse
505567f05d30Smrg  as_basename=false
505667f05d30Smrgfi
505767f05d30Smrg
5058fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5059fffe5102Smrg  as_dirname=dirname
5060fffe5102Smrgelse
5061fffe5102Smrg  as_dirname=false
5062fffe5102Smrgfi
506367f05d30Smrg
5064fffe5102Smrgas_me=`$as_basename -- "$0" ||
506567f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
506667f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
5067fffe5102Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5068fffe5102Smrg$as_echo X/"$0" |
5069fffe5102Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5070fffe5102Smrg	    s//\1/
5071fffe5102Smrg	    q
5072fffe5102Smrg	  }
5073fffe5102Smrg	  /^X\/\(\/\/\)$/{
5074fffe5102Smrg	    s//\1/
5075fffe5102Smrg	    q
5076fffe5102Smrg	  }
5077fffe5102Smrg	  /^X\/\(\/\).*/{
5078fffe5102Smrg	    s//\1/
5079fffe5102Smrg	    q
5080fffe5102Smrg	  }
5081fffe5102Smrg	  s/.*/./; q'`
508267f05d30Smrg
508367f05d30Smrg# Avoid depending upon Character Ranges.
508467f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
508567f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
508667f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
508767f05d30Smrgas_cr_digits='0123456789'
508867f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
508967f05d30Smrg
5090fffe5102SmrgECHO_C= ECHO_N= ECHO_T=
5091fffe5102Smrgcase `echo -n x` in #(((((
5092fffe5102Smrg-n*)
5093fffe5102Smrg  case `echo 'xy\c'` in
5094fffe5102Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5095fffe5102Smrg  xy)  ECHO_C='\c';;
5096fffe5102Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5097fffe5102Smrg       ECHO_T='	';;
5098fffe5102Smrg  esac;;
5099fffe5102Smrg*)
5100fffe5102Smrg  ECHO_N='-n';;
510167f05d30Smrgesac
510267f05d30Smrg
5103fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file
5104fffe5102Smrgif test -d conf$$.dir; then
5105fffe5102Smrg  rm -f conf$$.dir/conf$$.file
510667f05d30Smrgelse
5107fffe5102Smrg  rm -f conf$$.dir
5108fffe5102Smrg  mkdir conf$$.dir 2>/dev/null
510967f05d30Smrgfi
5110fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then
5111fffe5102Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
511267f05d30Smrg    as_ln_s='ln -s'
5113fffe5102Smrg    # ... but there are two gotchas:
5114fffe5102Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5115fffe5102Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5116fffe5102Smrg    # In both cases, we have to default to `cp -p'.
5117fffe5102Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5118fffe5102Smrg      as_ln_s='cp -p'
5119fffe5102Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5120fffe5102Smrg    as_ln_s=ln
5121fffe5102Smrg  else
5122fffe5102Smrg    as_ln_s='cp -p'
512367f05d30Smrg  fi
512467f05d30Smrgelse
512567f05d30Smrg  as_ln_s='cp -p'
512667f05d30Smrgfi
5127fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5128fffe5102Smrgrmdir conf$$.dir 2>/dev/null
5129fffe5102Smrg
5130fffe5102Smrg
5131fffe5102Smrg# as_fn_mkdir_p
5132fffe5102Smrg# -------------
5133fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary.
5134fffe5102Smrgas_fn_mkdir_p ()
5135fffe5102Smrg{
5136fffe5102Smrg
5137fffe5102Smrg  case $as_dir in #(
5138fffe5102Smrg  -*) as_dir=./$as_dir;;
5139fffe5102Smrg  esac
5140fffe5102Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5141fffe5102Smrg    as_dirs=
5142fffe5102Smrg    while :; do
5143fffe5102Smrg      case $as_dir in #(
5144fffe5102Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5145fffe5102Smrg      *) as_qdir=$as_dir;;
5146fffe5102Smrg      esac
5147fffe5102Smrg      as_dirs="'$as_qdir' $as_dirs"
5148fffe5102Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5149fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5150fffe5102Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5151fffe5102Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5152fffe5102Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5153fffe5102Smrg$as_echo X"$as_dir" |
5154fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5155fffe5102Smrg	    s//\1/
5156fffe5102Smrg	    q
5157fffe5102Smrg	  }
5158fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
5159fffe5102Smrg	    s//\1/
5160fffe5102Smrg	    q
5161fffe5102Smrg	  }
5162fffe5102Smrg	  /^X\(\/\/\)$/{
5163fffe5102Smrg	    s//\1/
5164fffe5102Smrg	    q
5165fffe5102Smrg	  }
5166fffe5102Smrg	  /^X\(\/\).*/{
5167fffe5102Smrg	    s//\1/
5168fffe5102Smrg	    q
5169fffe5102Smrg	  }
5170fffe5102Smrg	  s/.*/./; q'`
5171fffe5102Smrg      test -d "$as_dir" && break
5172fffe5102Smrg    done
5173fffe5102Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5174fc51f767Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
517567f05d30Smrg
5176fffe5102Smrg
5177fffe5102Smrg} # as_fn_mkdir_p
517867f05d30Smrgif mkdir -p . 2>/dev/null; then
5179fffe5102Smrg  as_mkdir_p='mkdir -p "$as_dir"'
518067f05d30Smrgelse
518167f05d30Smrg  test -d ./-p && rmdir ./-p
518267f05d30Smrg  as_mkdir_p=false
518367f05d30Smrgfi
5184fffe5102Smrg
5185fffe5102Smrgif test -x / >/dev/null 2>&1; then
5186fffe5102Smrg  as_test_x='test -x'
5187fffe5102Smrgelse
5188fffe5102Smrg  if ls -dL / >/dev/null 2>&1; then
5189fffe5102Smrg    as_ls_L_option=L
5190fffe5102Smrg  else
5191fffe5102Smrg    as_ls_L_option=
5192fffe5102Smrg  fi
5193fffe5102Smrg  as_test_x='
5194fffe5102Smrg    eval sh -c '\''
5195fffe5102Smrg      if test -d "$1"; then
5196fffe5102Smrg	test -d "$1/.";
5197fffe5102Smrg      else
5198fffe5102Smrg	case $1 in #(
5199fffe5102Smrg	-*)set "./$1";;
5200fffe5102Smrg	esac;
5201fffe5102Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5202fffe5102Smrg	???[sx]*):;;*)false;;esac;fi
5203fffe5102Smrg    '\'' sh
5204fffe5102Smrg  '
5205fffe5102Smrgfi
5206fffe5102Smrgas_executable_p=$as_test_x
520767f05d30Smrg
520867f05d30Smrg# Sed expression to map a string onto a valid CPP name.
520967f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521067f05d30Smrg
521167f05d30Smrg# Sed expression to map a string onto a valid variable name.
521267f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
521367f05d30Smrg
521467f05d30Smrg
521567f05d30Smrgexec 6>&1
5216fffe5102Smrg## ----------------------------------- ##
5217fffe5102Smrg## Main body of $CONFIG_STATUS script. ##
5218fffe5102Smrg## ----------------------------------- ##
5219fffe5102Smrg_ASEOF
5220fffe5102Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5221fffe5102Smrg
5222fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5223fffe5102Smrg# Save the log message, to keep $0 and so on meaningful, and to
522467f05d30Smrg# report actual input values of CONFIG_FILES etc. instead of their
5225fffe5102Smrg# values after options handling.
5226fffe5102Smrgac_log="
5227fc51f767SmrgThis file was extended by viewres $as_me 1.0.3, which was
5228fc51f767Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
522967f05d30Smrg
523067f05d30Smrg  CONFIG_FILES    = $CONFIG_FILES
523167f05d30Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
523267f05d30Smrg  CONFIG_LINKS    = $CONFIG_LINKS
523367f05d30Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
523467f05d30Smrg  $ $0 $@
523567f05d30Smrg
5236fffe5102Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5237fffe5102Smrg"
5238fffe5102Smrg
523967f05d30Smrg_ACEOF
524067f05d30Smrg
5241fffe5102Smrgcase $ac_config_files in *"
5242fffe5102Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5243fffe5102Smrgesac
524467f05d30Smrg
5245fffe5102Smrgcase $ac_config_headers in *"
5246fffe5102Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5247fffe5102Smrgesac
524867f05d30Smrg
524967f05d30Smrg
5250fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5251fffe5102Smrg# Files that config.status was made for.
5252fffe5102Smrgconfig_files="$ac_config_files"
5253fffe5102Smrgconfig_headers="$ac_config_headers"
5254fffe5102Smrgconfig_commands="$ac_config_commands"
525567f05d30Smrg
5256fffe5102Smrg_ACEOF
525767f05d30Smrg
5258fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
525967f05d30Smrgac_cs_usage="\
5260fffe5102Smrg\`$as_me' instantiates files and other configuration actions
5261fffe5102Smrgfrom templates according to the current configuration.  Unless the files
5262fffe5102Smrgand actions are specified as TAGs, all are instantiated by default.
526367f05d30Smrg
5264fffe5102SmrgUsage: $0 [OPTION]... [TAG]...
526567f05d30Smrg
526667f05d30Smrg  -h, --help       print this help, then exit
5267fffe5102Smrg  -V, --version    print version number and configuration settings, then exit
5268fffe5102Smrg      --config     print configuration, then exit
5269fffe5102Smrg  -q, --quiet, --silent
5270fffe5102Smrg                   do not print progress messages
527167f05d30Smrg  -d, --debug      don't remove temporary files
527267f05d30Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5273fffe5102Smrg      --file=FILE[:TEMPLATE]
5274fffe5102Smrg                   instantiate the configuration file FILE
5275fffe5102Smrg      --header=FILE[:TEMPLATE]
5276fffe5102Smrg                   instantiate the configuration header FILE
527767f05d30Smrg
527867f05d30SmrgConfiguration files:
527967f05d30Smrg$config_files
528067f05d30Smrg
528167f05d30SmrgConfiguration headers:
528267f05d30Smrg$config_headers
528367f05d30Smrg
528467f05d30SmrgConfiguration commands:
528567f05d30Smrg$config_commands
528667f05d30Smrg
5287fffe5102SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
528867f05d30Smrg
5289fffe5102Smrg_ACEOF
5290fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5291fffe5102Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
529267f05d30Smrgac_cs_version="\\
5293fc51f767Smrgviewres config.status 1.0.3
5294fc51f767Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5295fffe5102Smrg  with options \\"\$ac_cs_config\\"
529667f05d30Smrg
5297fc51f767SmrgCopyright (C) 2010 Free Software Foundation, Inc.
529867f05d30SmrgThis config.status script is free software; the Free Software Foundation
529967f05d30Smrggives unlimited permission to copy, distribute and modify it."
5300fffe5102Smrg
5301fffe5102Smrgac_pwd='$ac_pwd'
5302fffe5102Smrgsrcdir='$srcdir'
5303fffe5102SmrgINSTALL='$INSTALL'
5304fffe5102SmrgMKDIR_P='$MKDIR_P'
5305fffe5102SmrgAWK='$AWK'
5306fffe5102Smrgtest -n "\$AWK" || AWK=awk
530767f05d30Smrg_ACEOF
530867f05d30Smrg
5309fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5310fffe5102Smrg# The default lists apply if the user does not specify any file.
531167f05d30Smrgac_need_defaults=:
531267f05d30Smrgwhile test $# != 0
531367f05d30Smrgdo
531467f05d30Smrg  case $1 in
5315fc51f767Smrg  --*=?*)
5316fffe5102Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5317fffe5102Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
531867f05d30Smrg    ac_shift=:
531967f05d30Smrg    ;;
5320fc51f767Smrg  --*=)
5321fc51f767Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5322fc51f767Smrg    ac_optarg=
5323fc51f767Smrg    ac_shift=:
5324fc51f767Smrg    ;;
5325fffe5102Smrg  *)
532667f05d30Smrg    ac_option=$1
532767f05d30Smrg    ac_optarg=$2
532867f05d30Smrg    ac_shift=shift
532967f05d30Smrg    ;;
533067f05d30Smrg  esac
533167f05d30Smrg
533267f05d30Smrg  case $ac_option in
533367f05d30Smrg  # Handling of the options.
533467f05d30Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
533567f05d30Smrg    ac_cs_recheck=: ;;
5336fffe5102Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5337fffe5102Smrg    $as_echo "$ac_cs_version"; exit ;;
5338fffe5102Smrg  --config | --confi | --conf | --con | --co | --c )
5339fffe5102Smrg    $as_echo "$ac_cs_config"; exit ;;
5340fffe5102Smrg  --debug | --debu | --deb | --de | --d | -d )
534167f05d30Smrg    debug=: ;;
534267f05d30Smrg  --file | --fil | --fi | --f )
534367f05d30Smrg    $ac_shift
5344fffe5102Smrg    case $ac_optarg in
5345fffe5102Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5346fc51f767Smrg    '') as_fn_error $? "missing file argument" ;;
5347fffe5102Smrg    esac
5348fffe5102Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
534967f05d30Smrg    ac_need_defaults=false;;
535067f05d30Smrg  --header | --heade | --head | --hea )
535167f05d30Smrg    $ac_shift
5352fffe5102Smrg    case $ac_optarg in
5353fffe5102Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5354fffe5102Smrg    esac
5355fffe5102Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
535667f05d30Smrg    ac_need_defaults=false;;
5357fffe5102Smrg  --he | --h)
5358fffe5102Smrg    # Conflict between --help and --header
5359fc51f767Smrg    as_fn_error $? "ambiguous option: \`$1'
5360fffe5102SmrgTry \`$0 --help' for more information.";;
5361fffe5102Smrg  --help | --hel | -h )
5362fffe5102Smrg    $as_echo "$ac_cs_usage"; exit ;;
536367f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536467f05d30Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
536567f05d30Smrg    ac_cs_silent=: ;;
536667f05d30Smrg
536767f05d30Smrg  # This is an error.
5368fc51f767Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5369fffe5102SmrgTry \`$0 --help' for more information." ;;
537067f05d30Smrg
5371fffe5102Smrg  *) as_fn_append ac_config_targets " $1"
5372fffe5102Smrg     ac_need_defaults=false ;;
537367f05d30Smrg
537467f05d30Smrg  esac
537567f05d30Smrg  shift
537667f05d30Smrgdone
537767f05d30Smrg
537867f05d30Smrgac_configure_extra_args=
537967f05d30Smrg
538067f05d30Smrgif $ac_cs_silent; then
538167f05d30Smrg  exec 6>/dev/null
538267f05d30Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
538367f05d30Smrgfi
538467f05d30Smrg
538567f05d30Smrg_ACEOF
5386fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
538767f05d30Smrgif \$ac_cs_recheck; then
5388fffe5102Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5389fffe5102Smrg  shift
5390fffe5102Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5391fffe5102Smrg  CONFIG_SHELL='$SHELL'
5392fffe5102Smrg  export CONFIG_SHELL
5393fffe5102Smrg  exec "\$@"
539467f05d30Smrgfi
539567f05d30Smrg
539667f05d30Smrg_ACEOF
5397fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5398fffe5102Smrgexec 5>>config.log
5399fffe5102Smrg{
5400fffe5102Smrg  echo
5401fffe5102Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5402fffe5102Smrg## Running $as_me. ##
5403fffe5102Smrg_ASBOX
5404fffe5102Smrg  $as_echo "$ac_log"
5405fffe5102Smrg} >&5
540667f05d30Smrg
5407fffe5102Smrg_ACEOF
5408fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
540967f05d30Smrg#
5410fffe5102Smrg# INIT-COMMANDS
541167f05d30Smrg#
541267f05d30SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
541367f05d30Smrg
541467f05d30Smrg_ACEOF
541567f05d30Smrg
5416fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
541767f05d30Smrg
5418fffe5102Smrg# Handling of arguments.
541967f05d30Smrgfor ac_config_target in $ac_config_targets
542067f05d30Smrgdo
5421fffe5102Smrg  case $ac_config_target in
5422fffe5102Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5423fffe5102Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5424fffe5102Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5425fffe5102Smrg
5426fc51f767Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
542767f05d30Smrg  esac
542867f05d30Smrgdone
542967f05d30Smrg
5430fffe5102Smrg
543167f05d30Smrg# If the user did not use the arguments to specify the items to instantiate,
543267f05d30Smrg# then the envvar interface is used.  Set only those that are not.
543367f05d30Smrg# We use the long form for the default assignment because of an extremely
543467f05d30Smrg# bizarre bug on SunOS 4.1.3.
543567f05d30Smrgif $ac_need_defaults; then
543667f05d30Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
543767f05d30Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
543867f05d30Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
543967f05d30Smrgfi
544067f05d30Smrg
544167f05d30Smrg# Have a temporary directory for convenience.  Make it in the build tree
5442fffe5102Smrg# simply because there is no reason against having it here, and in addition,
544367f05d30Smrg# creating and moving files from /tmp can sometimes cause problems.
5444fffe5102Smrg# Hook for its removal unless debugging.
5445fffe5102Smrg# Note that there is a small window in which the directory will not be cleaned:
5446fffe5102Smrg# after its creation but before its name has been assigned to `$tmp'.
544767f05d30Smrg$debug ||
544867f05d30Smrg{
5449fc51f767Smrg  tmp= ac_tmp=
5450fffe5102Smrg  trap 'exit_status=$?
5451fc51f767Smrg  : "${ac_tmp:=$tmp}"
5452fc51f767Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5453fffe5102Smrg' 0
5454fffe5102Smrg  trap 'as_fn_exit 1' 1 2 13 15
545567f05d30Smrg}
545667f05d30Smrg# Create a (secure) tmp directory for tmp files.
545767f05d30Smrg
545867f05d30Smrg{
5459fffe5102Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5460fc51f767Smrg  test -d "$tmp"
546167f05d30Smrg}  ||
546267f05d30Smrg{
5463fffe5102Smrg  tmp=./conf$$-$RANDOM
5464fffe5102Smrg  (umask 077 && mkdir "$tmp")
5465fc51f767Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5466fc51f767Smrgac_tmp=$tmp
5467fffe5102Smrg
5468fffe5102Smrg# Set up the scripts for CONFIG_FILES section.
5469fffe5102Smrg# No need to generate them if there are no CONFIG_FILES.
5470fffe5102Smrg# This happens for instance with `./config.status config.h'.
5471fffe5102Smrgif test -n "$CONFIG_FILES"; then
5472fffe5102Smrg
5473fffe5102Smrg
5474fffe5102Smrgac_cr=`echo X | tr X '\015'`
5475fffe5102Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5476fffe5102Smrg# But we know of no other shell where ac_cr would be empty at this
5477fffe5102Smrg# point, so we can use a bashism as a fallback.
5478fffe5102Smrgif test "x$ac_cr" = x; then
5479fffe5102Smrg  eval ac_cr=\$\'\\r\'
5480fffe5102Smrgfi
5481fffe5102Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5482fffe5102Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5483fc51f767Smrg  ac_cs_awk_cr='\\r'
5484fffe5102Smrgelse
5485fffe5102Smrg  ac_cs_awk_cr=$ac_cr
5486fffe5102Smrgfi
5487fffe5102Smrg
5488fc51f767Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5489fffe5102Smrg_ACEOF
5490fffe5102Smrg
5491fffe5102Smrg
549267f05d30Smrg{
5493fffe5102Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5494fffe5102Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5495fffe5102Smrg  echo "_ACEOF"
5496fffe5102Smrg} >conf$$subs.sh ||
5497fc51f767Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5498fc51f767Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5499fffe5102Smrgac_delim='%!_!# '
5500fffe5102Smrgfor ac_last_try in false false false false false :; do
5501fffe5102Smrg  . ./conf$$subs.sh ||
5502fc51f767Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5503fffe5102Smrg
5504fffe5102Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5505fffe5102Smrg  if test $ac_delim_n = $ac_delim_num; then
5506fffe5102Smrg    break
5507fffe5102Smrg  elif $ac_last_try; then
5508fc51f767Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5509fffe5102Smrg  else
5510fffe5102Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5511fffe5102Smrg  fi
5512fffe5102Smrgdone
5513fffe5102Smrgrm -f conf$$subs.sh
551467f05d30Smrg
5515fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5516fc51f767Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
551767f05d30Smrg_ACEOF
5518fffe5102Smrgsed -n '
5519fffe5102Smrgh
5520fffe5102Smrgs/^/S["/; s/!.*/"]=/
5521fffe5102Smrgp
5522fffe5102Smrgg
5523fffe5102Smrgs/^[^!]*!//
5524fffe5102Smrg:repl
5525fffe5102Smrgt repl
5526fffe5102Smrgs/'"$ac_delim"'$//
5527fffe5102Smrgt delim
5528fffe5102Smrg:nl
5529fffe5102Smrgh
5530fffe5102Smrgs/\(.\{148\}\)..*/\1/
5531fffe5102Smrgt more1
5532fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5533fffe5102Smrgp
5534fffe5102Smrgn
5535fffe5102Smrgb repl
5536fffe5102Smrg:more1
5537fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5538fffe5102Smrgp
5539fffe5102Smrgg
5540fffe5102Smrgs/.\{148\}//
5541fffe5102Smrgt nl
5542fffe5102Smrg:delim
5543fffe5102Smrgh
5544fffe5102Smrgs/\(.\{148\}\)..*/\1/
5545fffe5102Smrgt more2
5546fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5547fffe5102Smrgp
5548fffe5102Smrgb
5549fffe5102Smrg:more2
5550fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5551fffe5102Smrgp
5552fffe5102Smrgg
5553fffe5102Smrgs/.\{148\}//
5554fffe5102Smrgt delim
5555fffe5102Smrg' <conf$$subs.awk | sed '
5556fffe5102Smrg/^[^""]/{
5557fffe5102Smrg  N
5558fffe5102Smrg  s/\n//
5559fffe5102Smrg}
5560fffe5102Smrg' >>$CONFIG_STATUS || ac_write_fail=1
5561fffe5102Smrgrm -f conf$$subs.awk
5562fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5563fffe5102Smrg_ACAWK
5564fc51f767Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5565fffe5102Smrg  for (key in S) S_is_set[key] = 1
5566fffe5102Smrg  FS = ""
556767f05d30Smrg
5568fffe5102Smrg}
5569fffe5102Smrg{
5570fffe5102Smrg  line = $ 0
5571fffe5102Smrg  nfields = split(line, field, "@")
5572fffe5102Smrg  substed = 0
5573fffe5102Smrg  len = length(field[1])
5574fffe5102Smrg  for (i = 2; i < nfields; i++) {
5575fffe5102Smrg    key = field[i]
5576fffe5102Smrg    keylen = length(key)
5577fffe5102Smrg    if (S_is_set[key]) {
5578fffe5102Smrg      value = S[key]
5579fffe5102Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5580fffe5102Smrg      len += length(value) + length(field[++i])
5581fffe5102Smrg      substed = 1
5582fffe5102Smrg    } else
5583fffe5102Smrg      len += 1 + keylen
5584fffe5102Smrg  }
5585fffe5102Smrg
5586fffe5102Smrg  print line
5587fffe5102Smrg}
558867f05d30Smrg
5589fffe5102Smrg_ACAWK
5590fffe5102Smrg_ACEOF
5591fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5592fffe5102Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5593fffe5102Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5594fffe5102Smrgelse
5595fffe5102Smrg  cat
5596fc51f767Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5597fc51f767Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5598fffe5102Smrg_ACEOF
5599fffe5102Smrg
5600fc51f767Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5601fc51f767Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5602fffe5102Smrg# trailing colons and then remove the whole line if VPATH becomes empty
5603fffe5102Smrg# (actually we leave an empty line to preserve line numbers).
5604fffe5102Smrgif test "x$srcdir" = x.; then
5605fc51f767Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5606fc51f767Smrgh
5607fc51f767Smrgs///
5608fc51f767Smrgs/^/:/
5609fc51f767Smrgs/[	 ]*$/:/
5610fc51f767Smrgs/:\$(srcdir):/:/g
5611fc51f767Smrgs/:\${srcdir}:/:/g
5612fc51f767Smrgs/:@srcdir@:/:/g
5613fc51f767Smrgs/^:*//
5614fffe5102Smrgs/:*$//
5615fc51f767Smrgx
5616fc51f767Smrgs/\(=[	 ]*\).*/\1/
5617fc51f767SmrgG
5618fc51f767Smrgs/\n//
5619fffe5102Smrgs/^[^=]*=[	 ]*$//
5620fffe5102Smrg}'
5621fffe5102Smrgfi
562267f05d30Smrg
5623fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5624fffe5102Smrgfi # test -n "$CONFIG_FILES"
562567f05d30Smrg
5626fffe5102Smrg# Set up the scripts for CONFIG_HEADERS section.
5627fffe5102Smrg# No need to generate them if there are no CONFIG_HEADERS.
5628fffe5102Smrg# This happens for instance with `./config.status Makefile'.
5629fffe5102Smrgif test -n "$CONFIG_HEADERS"; then
5630fc51f767Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5631fffe5102SmrgBEGIN {
563267f05d30Smrg_ACEOF
563367f05d30Smrg
5634fffe5102Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5635fffe5102Smrg# here-document in config.status, that substitutes the proper values into
5636fffe5102Smrg# config.h.in to produce config.h.
5637fffe5102Smrg
5638fffe5102Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
5639fffe5102Smrg# handling of long lines.
5640fffe5102Smrgac_delim='%!_!# '
5641fffe5102Smrgfor ac_last_try in false false :; do
5642fc51f767Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5643fc51f767Smrg  if test -z "$ac_tt"; then
5644fffe5102Smrg    break
5645fffe5102Smrg  elif $ac_last_try; then
5646fc51f767Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5647fffe5102Smrg  else
5648fffe5102Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
564967f05d30Smrg  fi
5650fffe5102Smrgdone
565167f05d30Smrg
5652fffe5102Smrg# For the awk script, D is an array of macro values keyed by name,
5653fffe5102Smrg# likewise P contains macro parameters if any.  Preserve backslash
5654fffe5102Smrg# newline sequences.
5655fffe5102Smrg
5656fffe5102Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5657fffe5102Smrgsed -n '
5658fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g
5659fffe5102Smrgt rset
5660fffe5102Smrg:rset
5661fffe5102Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5662fffe5102Smrgt def
5663fffe5102Smrgd
5664fffe5102Smrg:def
5665fffe5102Smrgs/\\$//
5666fffe5102Smrgt bsnl
5667fffe5102Smrgs/["\\]/\\&/g
5668fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5669fffe5102SmrgD["\1"]=" \3"/p
5670fffe5102Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5671fffe5102Smrgd
5672fffe5102Smrg:bsnl
5673fffe5102Smrgs/["\\]/\\&/g
5674fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5675fffe5102SmrgD["\1"]=" \3\\\\\\n"\\/p
5676fffe5102Smrgt cont
5677fffe5102Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5678fffe5102Smrgt cont
5679fffe5102Smrgd
5680fffe5102Smrg:cont
5681fffe5102Smrgn
5682fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g
5683fffe5102Smrgt clear
5684fffe5102Smrg:clear
5685fffe5102Smrgs/\\$//
5686fffe5102Smrgt bsnlc
5687fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
5688fffe5102Smrgd
5689fffe5102Smrg:bsnlc
5690fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5691fffe5102Smrgb cont
5692fffe5102Smrg' <confdefs.h | sed '
5693fffe5102Smrgs/'"$ac_delim"'/"\\\
5694fffe5102Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
5695fffe5102Smrg
5696fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5697fffe5102Smrg  for (key in D) D_is_set[key] = 1
5698fffe5102Smrg  FS = ""
5699fffe5102Smrg}
5700fffe5102Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5701fffe5102Smrg  line = \$ 0
5702fffe5102Smrg  split(line, arg, " ")
5703fffe5102Smrg  if (arg[1] == "#") {
5704fffe5102Smrg    defundef = arg[2]
5705fffe5102Smrg    mac1 = arg[3]
5706fffe5102Smrg  } else {
5707fffe5102Smrg    defundef = substr(arg[1], 2)
5708fffe5102Smrg    mac1 = arg[2]
5709fffe5102Smrg  }
5710fffe5102Smrg  split(mac1, mac2, "(") #)
5711fffe5102Smrg  macro = mac2[1]
5712fffe5102Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
5713fffe5102Smrg  if (D_is_set[macro]) {
5714fffe5102Smrg    # Preserve the white space surrounding the "#".
5715fffe5102Smrg    print prefix "define", macro P[macro] D[macro]
5716fffe5102Smrg    next
5717fffe5102Smrg  } else {
5718fffe5102Smrg    # Replace #undef with comments.  This is necessary, for example,
5719fffe5102Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
5720fffe5102Smrg    # on some systems where configure will not decide to define it.
5721fffe5102Smrg    if (defundef == "undef") {
5722fffe5102Smrg      print "/*", prefix defundef, macro, "*/"
5723fffe5102Smrg      next
5724fffe5102Smrg    }
5725fffe5102Smrg  }
5726fffe5102Smrg}
5727fffe5102Smrg{ print }
5728fffe5102Smrg_ACAWK
572967f05d30Smrg_ACEOF
5730fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5731fc51f767Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5732fffe5102Smrgfi # test -n "$CONFIG_HEADERS"
5733fffe5102Smrg
5734fffe5102Smrg
5735fffe5102Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5736fffe5102Smrgshift
5737fffe5102Smrgfor ac_tag
5738fffe5102Smrgdo
5739fffe5102Smrg  case $ac_tag in
5740fffe5102Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5741fffe5102Smrg  esac
5742fffe5102Smrg  case $ac_mode$ac_tag in
5743fffe5102Smrg  :[FHL]*:*);;
5744fc51f767Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5745fffe5102Smrg  :[FH]-) ac_tag=-:-;;
5746fffe5102Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5747fffe5102Smrg  esac
5748fffe5102Smrg  ac_save_IFS=$IFS
5749fffe5102Smrg  IFS=:
5750fffe5102Smrg  set x $ac_tag
5751fffe5102Smrg  IFS=$ac_save_IFS
5752fffe5102Smrg  shift
5753fffe5102Smrg  ac_file=$1
5754fffe5102Smrg  shift
5755fffe5102Smrg
5756fffe5102Smrg  case $ac_mode in
5757fffe5102Smrg  :L) ac_source=$1;;
5758fffe5102Smrg  :[FH])
5759fffe5102Smrg    ac_file_inputs=
5760fffe5102Smrg    for ac_f
5761fffe5102Smrg    do
5762fffe5102Smrg      case $ac_f in
5763fc51f767Smrg      -) ac_f="$ac_tmp/stdin";;
5764fffe5102Smrg      *) # Look for the file first in the build tree, then in the source tree
5765fffe5102Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5766fffe5102Smrg	 # because $ac_f cannot contain `:'.
5767fffe5102Smrg	 test -f "$ac_f" ||
5768fffe5102Smrg	   case $ac_f in
5769fffe5102Smrg	   [\\/$]*) false;;
5770fffe5102Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5771fffe5102Smrg	   esac ||
5772fc51f767Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5773fffe5102Smrg      esac
5774fffe5102Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5775fffe5102Smrg      as_fn_append ac_file_inputs " '$ac_f'"
5776fffe5102Smrg    done
5777fffe5102Smrg
5778fffe5102Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5779fffe5102Smrg    # use $as_me), people would be surprised to read:
5780fffe5102Smrg    #    /* config.h.  Generated by config.status.  */
5781fffe5102Smrg    configure_input='Generated from '`
5782fffe5102Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5783fffe5102Smrg	`' by configure.'
5784fffe5102Smrg    if test x"$ac_file" != x-; then
5785fffe5102Smrg      configure_input="$ac_file.  $configure_input"
5786fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5787fffe5102Smrg$as_echo "$as_me: creating $ac_file" >&6;}
5788fffe5102Smrg    fi
5789fffe5102Smrg    # Neutralize special characters interpreted by sed in replacement strings.
5790fffe5102Smrg    case $configure_input in #(
5791fffe5102Smrg    *\&* | *\|* | *\\* )
5792fffe5102Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
5793fffe5102Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5794fffe5102Smrg    *) ac_sed_conf_input=$configure_input;;
5795fffe5102Smrg    esac
5796fffe5102Smrg
5797fffe5102Smrg    case $ac_tag in
5798fc51f767Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5799fc51f767Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5800fffe5102Smrg    esac
5801fffe5102Smrg    ;;
580267f05d30Smrg  esac
580367f05d30Smrg
5804fffe5102Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
580567f05d30Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580667f05d30Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
580767f05d30Smrg	 X"$ac_file" : 'X\(//\)$' \| \
5808fffe5102Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5809fffe5102Smrg$as_echo X"$ac_file" |
5810fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5811fffe5102Smrg	    s//\1/
5812fffe5102Smrg	    q
5813fffe5102Smrg	  }
5814fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
5815fffe5102Smrg	    s//\1/
5816fffe5102Smrg	    q
5817fffe5102Smrg	  }
5818fffe5102Smrg	  /^X\(\/\/\)$/{
5819fffe5102Smrg	    s//\1/
5820fffe5102Smrg	    q
5821fffe5102Smrg	  }
5822fffe5102Smrg	  /^X\(\/\).*/{
5823fffe5102Smrg	    s//\1/
5824fffe5102Smrg	    q
5825fffe5102Smrg	  }
5826fffe5102Smrg	  s/.*/./; q'`
5827fffe5102Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
582867f05d30Smrg  ac_builddir=.
582967f05d30Smrg
5830fffe5102Smrgcase "$ac_dir" in
5831fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5832fffe5102Smrg*)
5833fffe5102Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5834fffe5102Smrg  # A ".." for each directory in $ac_dir_suffix.
5835fffe5102Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5836fffe5102Smrg  case $ac_top_builddir_sub in
5837fffe5102Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5838fffe5102Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5839fffe5102Smrg  esac ;;
5840fffe5102Smrgesac
5841fffe5102Smrgac_abs_top_builddir=$ac_pwd
5842fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5843fffe5102Smrg# for backward compatibility:
5844fffe5102Smrgac_top_builddir=$ac_top_build_prefix
584567f05d30Smrg
584667f05d30Smrgcase $srcdir in
5847fffe5102Smrg  .)  # We are building in place.
584867f05d30Smrg    ac_srcdir=.
5849fffe5102Smrg    ac_top_srcdir=$ac_top_builddir_sub
5850fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd ;;
5851fffe5102Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
585267f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
5853fffe5102Smrg    ac_top_srcdir=$srcdir
5854fffe5102Smrg    ac_abs_top_srcdir=$srcdir ;;
5855fffe5102Smrg  *) # Relative name.
5856fffe5102Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5857fffe5102Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5858fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
585967f05d30Smrgesac
5860fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
586167f05d30Smrg
586267f05d30Smrg
5863fffe5102Smrg  case $ac_mode in
5864fffe5102Smrg  :F)
5865fffe5102Smrg  #
5866fffe5102Smrg  # CONFIG_FILE
5867fffe5102Smrg  #
586867f05d30Smrg
586967f05d30Smrg  case $INSTALL in
587067f05d30Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5871fffe5102Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5872fffe5102Smrg  esac
5873fffe5102Smrg  ac_MKDIR_P=$MKDIR_P
5874fffe5102Smrg  case $MKDIR_P in
5875fffe5102Smrg  [\\/$]* | ?:[\\/]* ) ;;
5876fffe5102Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
587767f05d30Smrg  esac
5878fffe5102Smrg_ACEOF
587967f05d30Smrg
5880fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5881fffe5102Smrg# If the template does not know about datarootdir, expand it.
5882fffe5102Smrg# FIXME: This hack should be removed a few years after 2.60.
5883fffe5102Smrgac_datarootdir_hack=; ac_datarootdir_seen=
5884fffe5102Smrgac_sed_dataroot='
5885fffe5102Smrg/datarootdir/ {
5886fffe5102Smrg  p
5887fffe5102Smrg  q
5888fffe5102Smrg}
5889fffe5102Smrg/@datadir@/p
5890fffe5102Smrg/@docdir@/p
5891fffe5102Smrg/@infodir@/p
5892fffe5102Smrg/@localedir@/p
5893fffe5102Smrg/@mandir@/p'
5894fffe5102Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5895fffe5102Smrg*datarootdir*) ac_datarootdir_seen=yes;;
5896fffe5102Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5897fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5898fffe5102Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5899fffe5102Smrg_ACEOF
5900fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5901fffe5102Smrg  ac_datarootdir_hack='
5902fffe5102Smrg  s&@datadir@&$datadir&g
5903fffe5102Smrg  s&@docdir@&$docdir&g
5904fffe5102Smrg  s&@infodir@&$infodir&g
5905fffe5102Smrg  s&@localedir@&$localedir&g
5906fffe5102Smrg  s&@mandir@&$mandir&g
5907fffe5102Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
5908fffe5102Smrgesac
590967f05d30Smrg_ACEOF
5910fffe5102Smrg
5911fffe5102Smrg# Neutralize VPATH when `$srcdir' = `.'.
5912fffe5102Smrg# Shell code in configure.ac might set extrasub.
5913fffe5102Smrg# FIXME: do we really want to maintain this feature?
5914fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5915fffe5102Smrgac_sed_extra="$ac_vpsub
591667f05d30Smrg$extrasub
591767f05d30Smrg_ACEOF
5918fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
591967f05d30Smrg:t
592067f05d30Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5921fffe5102Smrgs|@configure_input@|$ac_sed_conf_input|;t t
5922fffe5102Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
5923fffe5102Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
5924fffe5102Smrgs&@srcdir@&$ac_srcdir&;t t
5925fffe5102Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
5926fffe5102Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
5927fffe5102Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5928fffe5102Smrgs&@builddir@&$ac_builddir&;t t
5929fffe5102Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
5930fffe5102Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5931fffe5102Smrgs&@INSTALL@&$ac_INSTALL&;t t
5932fffe5102Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
5933fffe5102Smrg$ac_datarootdir_hack
5934fffe5102Smrg"
5935fc51f767Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5936fc51f767Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5937fffe5102Smrg
5938fffe5102Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5939fc51f767Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5940fc51f767Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5941fc51f767Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5942fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5943fc51f767Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
5944fffe5102Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5945fc51f767Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
5946fffe5102Smrg
5947fc51f767Smrg  rm -f "$ac_tmp/stdin"
594867f05d30Smrg  case $ac_file in
5949fc51f767Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5950fc51f767Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5951fffe5102Smrg  esac \
5952fc51f767Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5953fffe5102Smrg ;;
5954fffe5102Smrg  :H)
5955fffe5102Smrg  #
5956fffe5102Smrg  # CONFIG_HEADER
5957fffe5102Smrg  #
595867f05d30Smrg  if test x"$ac_file" != x-; then
5959fffe5102Smrg    {
5960fffe5102Smrg      $as_echo "/* $configure_input  */" \
5961fc51f767Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5962fc51f767Smrg    } >"$ac_tmp/config.h" \
5963fc51f767Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5964fc51f767Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5965fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5966fffe5102Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
596767f05d30Smrg    else
5968fffe5102Smrg      rm -f "$ac_file"
5969fc51f767Smrg      mv "$ac_tmp/config.h" "$ac_file" \
5970fc51f767Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
597167f05d30Smrg    fi
597267f05d30Smrg  else
5973fffe5102Smrg    $as_echo "/* $configure_input  */" \
5974fc51f767Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5975fc51f767Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
597667f05d30Smrg  fi
5977fffe5102Smrg# Compute "$ac_file"'s index in $config_headers.
5978fffe5102Smrg_am_arg="$ac_file"
597967f05d30Smrg_am_stamp_count=1
598067f05d30Smrgfor _am_header in $config_headers :; do
598167f05d30Smrg  case $_am_header in
5982fffe5102Smrg    $_am_arg | $_am_arg:* )
598367f05d30Smrg      break ;;
598467f05d30Smrg    * )
598567f05d30Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
598667f05d30Smrg  esac
598767f05d30Smrgdone
5988fffe5102Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5989fffe5102Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5990fffe5102Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
5991fffe5102Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
5992fffe5102Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5993fffe5102Smrg$as_echo X"$_am_arg" |
5994fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5995fffe5102Smrg	    s//\1/
5996fffe5102Smrg	    q
5997fffe5102Smrg	  }
5998fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
5999fffe5102Smrg	    s//\1/
6000fffe5102Smrg	    q
6001fffe5102Smrg	  }
6002fffe5102Smrg	  /^X\(\/\/\)$/{
6003fffe5102Smrg	    s//\1/
6004fffe5102Smrg	    q
6005fffe5102Smrg	  }
6006fffe5102Smrg	  /^X\(\/\).*/{
6007fffe5102Smrg	    s//\1/
6008fffe5102Smrg	    q
6009fffe5102Smrg	  }
6010fffe5102Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6011fffe5102Smrg ;;
601267f05d30Smrg
6013fffe5102Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6014fffe5102Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6015fffe5102Smrg ;;
6016fffe5102Smrg  esac
601767f05d30Smrg
601867f05d30Smrg
6019fffe5102Smrg  case $ac_file$ac_mode in
6020fffe5102Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6021fffe5102Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6022fffe5102Smrg  # are listed without --file.  Let's play safe and only enable the eval
6023fffe5102Smrg  # if we detect the quoting.
6024fffe5102Smrg  case $CONFIG_FILES in
6025fffe5102Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6026fffe5102Smrg  *)   set x $CONFIG_FILES ;;
6027fffe5102Smrg  esac
6028fffe5102Smrg  shift
6029fffe5102Smrg  for mf
6030fffe5102Smrg  do
6031fffe5102Smrg    # Strip MF so we end up with the name of the file.
6032fffe5102Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6033fffe5102Smrg    # Check whether this is an Automake generated Makefile or not.
6034fffe5102Smrg    # We used to match only the files named `Makefile.in', but
6035fffe5102Smrg    # some people rename them; so instead we look at the file content.
6036fffe5102Smrg    # Grep'ing the first line is not enough: some people post-process
6037fffe5102Smrg    # each Makefile.in and add a new line on top of each file to say so.
6038fffe5102Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6039fffe5102Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6040fffe5102Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6041fffe5102Smrg      dirpart=`$as_dirname -- "$mf" ||
604267f05d30Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
604367f05d30Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
604467f05d30Smrg	 X"$mf" : 'X\(//\)$' \| \
6045fffe5102Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6046fffe5102Smrg$as_echo X"$mf" |
6047fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6048fffe5102Smrg	    s//\1/
6049fffe5102Smrg	    q
6050fffe5102Smrg	  }
6051fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6052fffe5102Smrg	    s//\1/
6053fffe5102Smrg	    q
6054fffe5102Smrg	  }
6055fffe5102Smrg	  /^X\(\/\/\)$/{
6056fffe5102Smrg	    s//\1/
6057fffe5102Smrg	    q
6058fffe5102Smrg	  }
6059fffe5102Smrg	  /^X\(\/\).*/{
6060fffe5102Smrg	    s//\1/
6061fffe5102Smrg	    q
6062fffe5102Smrg	  }
6063fffe5102Smrg	  s/.*/./; q'`
6064fffe5102Smrg    else
6065fffe5102Smrg      continue
6066fffe5102Smrg    fi
6067fffe5102Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6068fffe5102Smrg    # from the Makefile without running `make'.
6069fffe5102Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6070fffe5102Smrg    test -z "$DEPDIR" && continue
6071fffe5102Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6072fffe5102Smrg    test -z "am__include" && continue
6073fffe5102Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6074fffe5102Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6075fffe5102Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6076fffe5102Smrg    # Find all dependency output files, they are included files with
6077fffe5102Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6078fffe5102Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6079fffe5102Smrg    # expansion.
6080fffe5102Smrg    for file in `sed -n "
6081fffe5102Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6082fffe5102Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6083fffe5102Smrg      # Make sure the directory exists.
6084fffe5102Smrg      test -f "$dirpart/$file" && continue
6085fffe5102Smrg      fdir=`$as_dirname -- "$file" ||
608667f05d30Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
608767f05d30Smrg	 X"$file" : 'X\(//\)[^/]' \| \
608867f05d30Smrg	 X"$file" : 'X\(//\)$' \| \
6089fffe5102Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6090fffe5102Smrg$as_echo X"$file" |
6091fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6092fffe5102Smrg	    s//\1/
6093fffe5102Smrg	    q
6094fffe5102Smrg	  }
6095fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6096fffe5102Smrg	    s//\1/
6097fffe5102Smrg	    q
6098fffe5102Smrg	  }
6099fffe5102Smrg	  /^X\(\/\/\)$/{
6100fffe5102Smrg	    s//\1/
6101fffe5102Smrg	    q
6102fffe5102Smrg	  }
6103fffe5102Smrg	  /^X\(\/\).*/{
6104fffe5102Smrg	    s//\1/
6105fffe5102Smrg	    q
6106fffe5102Smrg	  }
6107fffe5102Smrg	  s/.*/./; q'`
6108fffe5102Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6109fffe5102Smrg      # echo "creating $dirpart/$file"
6110fffe5102Smrg      echo '# dummy' > "$dirpart/$file"
611167f05d30Smrg    done
611267f05d30Smrg  done
6113fffe5102Smrg}
611467f05d30Smrg ;;
6115fffe5102Smrg
611667f05d30Smrg  esac
6117fffe5102Smrgdone # for ac_tag
611867f05d30Smrg
611967f05d30Smrg
6120fffe5102Smrgas_fn_exit 0
612167f05d30Smrg_ACEOF
612267f05d30Smrgac_clean_files=$ac_clean_files_save
612367f05d30Smrg
6124fffe5102Smrgtest $ac_write_fail = 0 ||
6125fc51f767Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6126fffe5102Smrg
612767f05d30Smrg
612867f05d30Smrg# configure is writing to config.log, and then calls config.status.
612967f05d30Smrg# config.status does its own redirection, appending to config.log.
613067f05d30Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
613167f05d30Smrg# by configure, so config.status won't be able to write to it; its
613267f05d30Smrg# output is simply discarded.  So we exec the FD to /dev/null,
613367f05d30Smrg# effectively closing config.log, so it can be properly (re)opened and
613467f05d30Smrg# appended to by config.status.  When coming back to configure, we
613567f05d30Smrg# need to make the FD available again.
613667f05d30Smrgif test "$no_create" != yes; then
613767f05d30Smrg  ac_cs_success=:
613867f05d30Smrg  ac_config_status_args=
613967f05d30Smrg  test "$silent" = yes &&
614067f05d30Smrg    ac_config_status_args="$ac_config_status_args --quiet"
614167f05d30Smrg  exec 5>/dev/null
614267f05d30Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
614367f05d30Smrg  exec 5>>config.log
614467f05d30Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
614567f05d30Smrg  # would make configure fail if this is the last instruction.
6146fc51f767Smrg  $ac_cs_success || as_fn_exit 1
6147fffe5102Smrgfi
6148fffe5102Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6149fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6150fffe5102Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
615167f05d30Smrgfi
615267f05d30Smrg
6153