configure revision b66d1acb
14fb28925Smrg#! /bin/sh
24fb28925Smrg# Guess values for system-dependent variables and create Makefiles.
3b66d1acbSmrg# Generated by GNU Autoconf 2.63 for xkill 1.0.2.
44fb28925Smrg#
54fb28925Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
64fb28925Smrg#
7b66d1acbSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8b66d1acbSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
94fb28925Smrg# This configure script is free software; the Free Software Foundation
104fb28925Smrg# gives unlimited permission to copy, distribute and modify it.
114fb28925Smrg## --------------------- ##
124fb28925Smrg## M4sh Initialization.  ##
134fb28925Smrg## --------------------- ##
144fb28925Smrg
15b66d1acbSmrg# Be more Bourne compatible
16b66d1acbSmrgDUALCASE=1; export DUALCASE # for MKS sh
174fb28925Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184fb28925Smrg  emulate sh
194fb28925Smrg  NULLCMD=:
20b66d1acbSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
214fb28925Smrg  # is contrary to our usage.  Disable this feature.
224fb28925Smrg  alias -g '${1+"$@"}'='"$@"'
23b66d1acbSmrg  setopt NO_GLOB_SUBST
24b66d1acbSmrgelse
25b66d1acbSmrg  case `(set -o) 2>/dev/null` in
26b66d1acbSmrg  *posix*) set -o posix ;;
27b66d1acbSmrgesac
28b66d1acbSmrg
29b66d1acbSmrgfi
30b66d1acbSmrg
31b66d1acbSmrg
32b66d1acbSmrg
33b66d1acbSmrg
34b66d1acbSmrg# PATH needs CR
35b66d1acbSmrg# Avoid depending upon Character Ranges.
36b66d1acbSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
37b66d1acbSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38b66d1acbSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
39b66d1acbSmrgas_cr_digits='0123456789'
40b66d1acbSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
41b66d1acbSmrg
42b66d1acbSmrgas_nl='
43b66d1acbSmrg'
44b66d1acbSmrgexport as_nl
45b66d1acbSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
46b66d1acbSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47b66d1acbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48b66d1acbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49b66d1acbSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50b66d1acbSmrg  as_echo='printf %s\n'
51b66d1acbSmrg  as_echo_n='printf %s'
52b66d1acbSmrgelse
53b66d1acbSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54b66d1acbSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55b66d1acbSmrg    as_echo_n='/usr/ucb/echo -n'
56b66d1acbSmrg  else
57b66d1acbSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58b66d1acbSmrg    as_echo_n_body='eval
59b66d1acbSmrg      arg=$1;
60b66d1acbSmrg      case $arg in
61b66d1acbSmrg      *"$as_nl"*)
62b66d1acbSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63b66d1acbSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64b66d1acbSmrg      esac;
65b66d1acbSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66b66d1acbSmrg    '
67b66d1acbSmrg    export as_echo_n_body
68b66d1acbSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69b66d1acbSmrg  fi
70b66d1acbSmrg  export as_echo_body
71b66d1acbSmrg  as_echo='sh -c $as_echo_body as_echo'
72b66d1acbSmrgfi
73b66d1acbSmrg
74b66d1acbSmrg# The user is always right.
75b66d1acbSmrgif test "${PATH_SEPARATOR+set}" != set; then
76b66d1acbSmrg  PATH_SEPARATOR=:
77b66d1acbSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78b66d1acbSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79b66d1acbSmrg      PATH_SEPARATOR=';'
80b66d1acbSmrg  }
814fb28925Smrgfi
824fb28925Smrg
834fb28925Smrg# Support unset when possible.
844fb28925Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
854fb28925Smrg  as_unset=unset
864fb28925Smrgelse
874fb28925Smrg  as_unset=false
884fb28925Smrgfi
894fb28925Smrg
904fb28925Smrg
91b66d1acbSmrg# IFS
92b66d1acbSmrg# We need space, tab and new line, in precisely that order.  Quoting is
93b66d1acbSmrg# there to prevent editors from complaining about space-tab.
94b66d1acbSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95b66d1acbSmrg# splitting by setting IFS to empty value.)
96b66d1acbSmrgIFS=" ""	$as_nl"
97b66d1acbSmrg
98b66d1acbSmrg# Find who we are.  Look in the path if we contain no directory separator.
99b66d1acbSmrgcase $0 in
100b66d1acbSmrg  *[\\/]* ) as_myself=$0 ;;
101b66d1acbSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102b66d1acbSmrgfor as_dir in $PATH
103b66d1acbSmrgdo
104b66d1acbSmrg  IFS=$as_save_IFS
105b66d1acbSmrg  test -z "$as_dir" && as_dir=.
106b66d1acbSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107b66d1acbSmrgdone
108b66d1acbSmrgIFS=$as_save_IFS
109b66d1acbSmrg
110b66d1acbSmrg     ;;
111b66d1acbSmrgesac
112b66d1acbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
113b66d1acbSmrg# in which case we are not to be found in the path.
114b66d1acbSmrgif test "x$as_myself" = x; then
115b66d1acbSmrg  as_myself=$0
116b66d1acbSmrgfi
117b66d1acbSmrgif test ! -f "$as_myself"; then
118b66d1acbSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119b66d1acbSmrg  { (exit 1); exit 1; }
120b66d1acbSmrgfi
121b66d1acbSmrg
1224fb28925Smrg# Work around bugs in pre-3.0 UWIN ksh.
123b66d1acbSmrgfor as_var in ENV MAIL MAILPATH
124b66d1acbSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125b66d1acbSmrgdone
1264fb28925SmrgPS1='$ '
1274fb28925SmrgPS2='> '
1284fb28925SmrgPS4='+ '
1294fb28925Smrg
1304fb28925Smrg# NLS nuisances.
131b66d1acbSmrgLC_ALL=C
132b66d1acbSmrgexport LC_ALL
133b66d1acbSmrgLANGUAGE=C
134b66d1acbSmrgexport LANGUAGE
1354fb28925Smrg
1364fb28925Smrg# Required to use basename.
137b66d1acbSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
138b66d1acbSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1394fb28925Smrg  as_expr=expr
1404fb28925Smrgelse
1414fb28925Smrg  as_expr=false
1424fb28925Smrgfi
1434fb28925Smrg
144b66d1acbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1454fb28925Smrg  as_basename=basename
1464fb28925Smrgelse
1474fb28925Smrg  as_basename=false
1484fb28925Smrgfi
1494fb28925Smrg
1504fb28925Smrg
1514fb28925Smrg# Name of the executable.
152b66d1acbSmrgas_me=`$as_basename -- "$0" ||
1534fb28925Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1544fb28925Smrg	 X"$0" : 'X\(//\)$' \| \
155b66d1acbSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156b66d1acbSmrg$as_echo X/"$0" |
157b66d1acbSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
158b66d1acbSmrg	    s//\1/
159b66d1acbSmrg	    q
160b66d1acbSmrg	  }
161b66d1acbSmrg	  /^X\/\(\/\/\)$/{
162b66d1acbSmrg	    s//\1/
163b66d1acbSmrg	    q
164b66d1acbSmrg	  }
165b66d1acbSmrg	  /^X\/\(\/\).*/{
166b66d1acbSmrg	    s//\1/
167b66d1acbSmrg	    q
168b66d1acbSmrg	  }
169b66d1acbSmrg	  s/.*/./; q'`
1704fb28925Smrg
171b66d1acbSmrg# CDPATH.
172b66d1acbSmrg$as_unset CDPATH
1734fb28925Smrg
1744fb28925Smrg
175b66d1acbSmrgif test "x$CONFIG_SHELL" = x; then
176b66d1acbSmrg  if (eval ":") 2>/dev/null; then
177b66d1acbSmrg  as_have_required=yes
178b66d1acbSmrgelse
179b66d1acbSmrg  as_have_required=no
1804fb28925Smrgfi
1814fb28925Smrg
182b66d1acbSmrg  if test $as_have_required = yes &&	 (eval ":
183b66d1acbSmrg(as_func_return () {
184b66d1acbSmrg  (exit \$1)
185b66d1acbSmrg}
186b66d1acbSmrgas_func_success () {
187b66d1acbSmrg  as_func_return 0
188b66d1acbSmrg}
189b66d1acbSmrgas_func_failure () {
190b66d1acbSmrg  as_func_return 1
191b66d1acbSmrg}
192b66d1acbSmrgas_func_ret_success () {
193b66d1acbSmrg  return 0
194b66d1acbSmrg}
195b66d1acbSmrgas_func_ret_failure () {
196b66d1acbSmrg  return 1
197b66d1acbSmrg}
1984fb28925Smrg
199b66d1acbSmrgexitcode=0
200b66d1acbSmrgif as_func_success; then
201b66d1acbSmrg  :
202b66d1acbSmrgelse
203b66d1acbSmrg  exitcode=1
204b66d1acbSmrg  echo as_func_success failed.
205b66d1acbSmrgfi
2064fb28925Smrg
207b66d1acbSmrgif as_func_failure; then
208b66d1acbSmrg  exitcode=1
209b66d1acbSmrg  echo as_func_failure succeeded.
210b66d1acbSmrgfi
211b66d1acbSmrg
212b66d1acbSmrgif as_func_ret_success; then
213b66d1acbSmrg  :
214b66d1acbSmrgelse
215b66d1acbSmrg  exitcode=1
216b66d1acbSmrg  echo as_func_ret_success failed.
217b66d1acbSmrgfi
218b66d1acbSmrg
219b66d1acbSmrgif as_func_ret_failure; then
220b66d1acbSmrg  exitcode=1
221b66d1acbSmrg  echo as_func_ret_failure succeeded.
222b66d1acbSmrgfi
223b66d1acbSmrg
224b66d1acbSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225b66d1acbSmrg  :
226b66d1acbSmrgelse
227b66d1acbSmrg  exitcode=1
228b66d1acbSmrg  echo positional parameters were not saved.
229b66d1acbSmrgfi
230b66d1acbSmrg
231b66d1acbSmrgtest \$exitcode = 0) || { (exit 1); exit 1; }
232b66d1acbSmrg
233b66d1acbSmrg(
234b66d1acbSmrg  as_lineno_1=\$LINENO
235b66d1acbSmrg  as_lineno_2=\$LINENO
236b66d1acbSmrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237b66d1acbSmrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238b66d1acbSmrg") 2> /dev/null; then
239b66d1acbSmrg  :
240b66d1acbSmrgelse
241b66d1acbSmrg  as_candidate_shells=
2424fb28925Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434fb28925Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2444fb28925Smrgdo
2454fb28925Smrg  IFS=$as_save_IFS
2464fb28925Smrg  test -z "$as_dir" && as_dir=.
247b66d1acbSmrg  case $as_dir in
2484fb28925Smrg	 /*)
249b66d1acbSmrg	   for as_base in sh bash ksh sh5; do
250b66d1acbSmrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251b66d1acbSmrg	   done;;
252b66d1acbSmrg       esac
253b66d1acbSmrgdone
254b66d1acbSmrgIFS=$as_save_IFS
255b66d1acbSmrg
256b66d1acbSmrg
257b66d1acbSmrg      for as_shell in $as_candidate_shells $SHELL; do
258b66d1acbSmrg	 # Try only shells that exist, to save several forks.
259b66d1acbSmrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260b66d1acbSmrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261b66d1acbSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262b66d1acbSmrg  emulate sh
263b66d1acbSmrg  NULLCMD=:
264b66d1acbSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265b66d1acbSmrg  # is contrary to our usage.  Disable this feature.
266b66d1acbSmrg  alias -g '${1+"$@"}'='"$@"'
267b66d1acbSmrg  setopt NO_GLOB_SUBST
268b66d1acbSmrgelse
269b66d1acbSmrg  case `(set -o) 2>/dev/null` in
270b66d1acbSmrg  *posix*) set -o posix ;;
271b66d1acbSmrgesac
272b66d1acbSmrg
273b66d1acbSmrgfi
274b66d1acbSmrg
275b66d1acbSmrg
276b66d1acbSmrg:
277b66d1acbSmrg_ASEOF
278b66d1acbSmrg}; then
279b66d1acbSmrg  CONFIG_SHELL=$as_shell
280b66d1acbSmrg	       as_have_required=yes
281b66d1acbSmrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282b66d1acbSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283b66d1acbSmrg  emulate sh
284b66d1acbSmrg  NULLCMD=:
285b66d1acbSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286b66d1acbSmrg  # is contrary to our usage.  Disable this feature.
287b66d1acbSmrg  alias -g '${1+"$@"}'='"$@"'
288b66d1acbSmrg  setopt NO_GLOB_SUBST
289b66d1acbSmrgelse
290b66d1acbSmrg  case `(set -o) 2>/dev/null` in
291b66d1acbSmrg  *posix*) set -o posix ;;
292b66d1acbSmrgesac
293b66d1acbSmrg
294b66d1acbSmrgfi
295b66d1acbSmrg
296b66d1acbSmrg
297b66d1acbSmrg:
298b66d1acbSmrg(as_func_return () {
299b66d1acbSmrg  (exit $1)
300b66d1acbSmrg}
301b66d1acbSmrgas_func_success () {
302b66d1acbSmrg  as_func_return 0
303b66d1acbSmrg}
304b66d1acbSmrgas_func_failure () {
305b66d1acbSmrg  as_func_return 1
306b66d1acbSmrg}
307b66d1acbSmrgas_func_ret_success () {
308b66d1acbSmrg  return 0
309b66d1acbSmrg}
310b66d1acbSmrgas_func_ret_failure () {
311b66d1acbSmrg  return 1
312b66d1acbSmrg}
313b66d1acbSmrg
314b66d1acbSmrgexitcode=0
315b66d1acbSmrgif as_func_success; then
316b66d1acbSmrg  :
317b66d1acbSmrgelse
318b66d1acbSmrg  exitcode=1
319b66d1acbSmrg  echo as_func_success failed.
320b66d1acbSmrgfi
321b66d1acbSmrg
322b66d1acbSmrgif as_func_failure; then
323b66d1acbSmrg  exitcode=1
324b66d1acbSmrg  echo as_func_failure succeeded.
325b66d1acbSmrgfi
326b66d1acbSmrg
327b66d1acbSmrgif as_func_ret_success; then
328b66d1acbSmrg  :
329b66d1acbSmrgelse
330b66d1acbSmrg  exitcode=1
331b66d1acbSmrg  echo as_func_ret_success failed.
332b66d1acbSmrgfi
333b66d1acbSmrg
334b66d1acbSmrgif as_func_ret_failure; then
335b66d1acbSmrg  exitcode=1
336b66d1acbSmrg  echo as_func_ret_failure succeeded.
337b66d1acbSmrgfi
338b66d1acbSmrg
339b66d1acbSmrgif ( set x; as_func_ret_success y && test x = "$1" ); then
340b66d1acbSmrg  :
341b66d1acbSmrgelse
342b66d1acbSmrg  exitcode=1
343b66d1acbSmrg  echo positional parameters were not saved.
344b66d1acbSmrgfi
345b66d1acbSmrg
346b66d1acbSmrgtest $exitcode = 0) || { (exit 1); exit 1; }
347b66d1acbSmrg
348b66d1acbSmrg(
3494fb28925Smrg  as_lineno_1=$LINENO
3504fb28925Smrg  as_lineno_2=$LINENO
3514fb28925Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
352b66d1acbSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353b66d1acbSmrg
354b66d1acbSmrg_ASEOF
355b66d1acbSmrg}; then
356b66d1acbSmrg  break
357b66d1acbSmrgfi
358b66d1acbSmrg
359b66d1acbSmrgfi
360b66d1acbSmrg
361b66d1acbSmrg      done
362b66d1acbSmrg
363b66d1acbSmrg      if test "x$CONFIG_SHELL" != x; then
364b66d1acbSmrg  for as_var in BASH_ENV ENV
365b66d1acbSmrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366b66d1acbSmrg	done
367b66d1acbSmrg	export CONFIG_SHELL
368b66d1acbSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369b66d1acbSmrgfi
370b66d1acbSmrg
371b66d1acbSmrg
372b66d1acbSmrg    if test $as_have_required = no; then
373b66d1acbSmrg  echo This script requires a shell more modern than all the
374b66d1acbSmrg      echo shells that I found on your system.  Please install a
375b66d1acbSmrg      echo modern shell, or manually run the script under such a
376b66d1acbSmrg      echo shell if you do have one.
377b66d1acbSmrg      { (exit 1); exit 1; }
378b66d1acbSmrgfi
379b66d1acbSmrg
380b66d1acbSmrg
381b66d1acbSmrgfi
382b66d1acbSmrg
383b66d1acbSmrgfi
384b66d1acbSmrg
385b66d1acbSmrg
386b66d1acbSmrg
387b66d1acbSmrg(eval "as_func_return () {
388b66d1acbSmrg  (exit \$1)
389b66d1acbSmrg}
390b66d1acbSmrgas_func_success () {
391b66d1acbSmrg  as_func_return 0
392b66d1acbSmrg}
393b66d1acbSmrgas_func_failure () {
394b66d1acbSmrg  as_func_return 1
395b66d1acbSmrg}
396b66d1acbSmrgas_func_ret_success () {
397b66d1acbSmrg  return 0
398b66d1acbSmrg}
399b66d1acbSmrgas_func_ret_failure () {
400b66d1acbSmrg  return 1
401b66d1acbSmrg}
402b66d1acbSmrg
403b66d1acbSmrgexitcode=0
404b66d1acbSmrgif as_func_success; then
405b66d1acbSmrg  :
406b66d1acbSmrgelse
407b66d1acbSmrg  exitcode=1
408b66d1acbSmrg  echo as_func_success failed.
409b66d1acbSmrgfi
410b66d1acbSmrg
411b66d1acbSmrgif as_func_failure; then
412b66d1acbSmrg  exitcode=1
413b66d1acbSmrg  echo as_func_failure succeeded.
414b66d1acbSmrgfi
415b66d1acbSmrg
416b66d1acbSmrgif as_func_ret_success; then
417b66d1acbSmrg  :
418b66d1acbSmrgelse
419b66d1acbSmrg  exitcode=1
420b66d1acbSmrg  echo as_func_ret_success failed.
421b66d1acbSmrgfi
422b66d1acbSmrg
423b66d1acbSmrgif as_func_ret_failure; then
424b66d1acbSmrg  exitcode=1
425b66d1acbSmrg  echo as_func_ret_failure succeeded.
426b66d1acbSmrgfi
427b66d1acbSmrg
428b66d1acbSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429b66d1acbSmrg  :
430b66d1acbSmrgelse
431b66d1acbSmrg  exitcode=1
432b66d1acbSmrg  echo positional parameters were not saved.
433b66d1acbSmrgfi
434b66d1acbSmrg
435b66d1acbSmrgtest \$exitcode = 0") || {
436b66d1acbSmrg  echo No shell found that supports shell functions.
437b66d1acbSmrg  echo Please tell bug-autoconf@gnu.org about your system,
438b66d1acbSmrg  echo including any error possibly output before this message.
439b66d1acbSmrg  echo This can help us improve future autoconf versions.
440b66d1acbSmrg  echo Configuration will now proceed without shell functions.
441b66d1acbSmrg}
442b66d1acbSmrg
443b66d1acbSmrg
444b66d1acbSmrg
445b66d1acbSmrg  as_lineno_1=$LINENO
446b66d1acbSmrg  as_lineno_2=$LINENO
447b66d1acbSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
448b66d1acbSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4494fb28925Smrg
4504fb28925Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4514fb28925Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
452b66d1acbSmrg  # line-number line after each line using $LINENO; the second 'sed'
453b66d1acbSmrg  # does the real work.  The second script uses 'N' to pair each
454b66d1acbSmrg  # line-number line with the line containing $LINENO, and appends
455b66d1acbSmrg  # trailing '-' during substitution so that $LINENO is not a special
456b66d1acbSmrg  # case at line end.
4574fb28925Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458b66d1acbSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459b66d1acbSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
460b66d1acbSmrg  sed -n '
461b66d1acbSmrg    p
462b66d1acbSmrg    /[$]LINENO/=
463b66d1acbSmrg  ' <$as_myself |
4644fb28925Smrg    sed '
465b66d1acbSmrg      s/[$]LINENO.*/&-/
466b66d1acbSmrg      t lineno
467b66d1acbSmrg      b
468b66d1acbSmrg      :lineno
4694fb28925Smrg      N
470b66d1acbSmrg      :loop
471b66d1acbSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4724fb28925Smrg      t loop
473b66d1acbSmrg      s/-\n.*//
4744fb28925Smrg    ' >$as_me.lineno &&
475b66d1acbSmrg  chmod +x "$as_me.lineno" ||
476b66d1acbSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4774fb28925Smrg   { (exit 1); exit 1; }; }
4784fb28925Smrg
4794fb28925Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4804fb28925Smrg  # (the dirname of $[0] is not the place where we might find the
481b66d1acbSmrg  # original and so on.  Autoconf is especially sensitive to this).
482b66d1acbSmrg  . "./$as_me.lineno"
4834fb28925Smrg  # Exit status is that of the last command.
4844fb28925Smrg  exit
4854fb28925Smrg}
4864fb28925Smrg
4874fb28925Smrg
488b66d1acbSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489b66d1acbSmrg  as_dirname=dirname
490b66d1acbSmrgelse
491b66d1acbSmrg  as_dirname=false
492b66d1acbSmrgfi
4934fb28925Smrg
494b66d1acbSmrgECHO_C= ECHO_N= ECHO_T=
495b66d1acbSmrgcase `echo -n x` in
496b66d1acbSmrg-n*)
497b66d1acbSmrg  case `echo 'x\c'` in
498b66d1acbSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499b66d1acbSmrg  *)   ECHO_C='\c';;
500b66d1acbSmrg  esac;;
501b66d1acbSmrg*)
502b66d1acbSmrg  ECHO_N='-n';;
503b66d1acbSmrgesac
504b66d1acbSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
505b66d1acbSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5064fb28925Smrg  as_expr=expr
5074fb28925Smrgelse
5084fb28925Smrg  as_expr=false
5094fb28925Smrgfi
5104fb28925Smrg
5114fb28925Smrgrm -f conf$$ conf$$.exe conf$$.file
512b66d1acbSmrgif test -d conf$$.dir; then
513b66d1acbSmrg  rm -f conf$$.dir/conf$$.file
514b66d1acbSmrgelse
515b66d1acbSmrg  rm -f conf$$.dir
516b66d1acbSmrg  mkdir conf$$.dir 2>/dev/null
517b66d1acbSmrgfi
518b66d1acbSmrgif (echo >conf$$.file) 2>/dev/null; then
519b66d1acbSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5204fb28925Smrg    as_ln_s='ln -s'
521b66d1acbSmrg    # ... but there are two gotchas:
522b66d1acbSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523b66d1acbSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524b66d1acbSmrg    # In both cases, we have to default to `cp -p'.
525b66d1acbSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526b66d1acbSmrg      as_ln_s='cp -p'
527b66d1acbSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
528b66d1acbSmrg    as_ln_s=ln
529b66d1acbSmrg  else
530b66d1acbSmrg    as_ln_s='cp -p'
5314fb28925Smrg  fi
5324fb28925Smrgelse
5334fb28925Smrg  as_ln_s='cp -p'
5344fb28925Smrgfi
535b66d1acbSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536b66d1acbSmrgrmdir conf$$.dir 2>/dev/null
5374fb28925Smrg
5384fb28925Smrgif mkdir -p . 2>/dev/null; then
5394fb28925Smrg  as_mkdir_p=:
5404fb28925Smrgelse
5414fb28925Smrg  test -d ./-p && rmdir ./-p
5424fb28925Smrg  as_mkdir_p=false
5434fb28925Smrgfi
5444fb28925Smrg
545b66d1acbSmrgif test -x / >/dev/null 2>&1; then
546b66d1acbSmrg  as_test_x='test -x'
547b66d1acbSmrgelse
548b66d1acbSmrg  if ls -dL / >/dev/null 2>&1; then
549b66d1acbSmrg    as_ls_L_option=L
550b66d1acbSmrg  else
551b66d1acbSmrg    as_ls_L_option=
552b66d1acbSmrg  fi
553b66d1acbSmrg  as_test_x='
554b66d1acbSmrg    eval sh -c '\''
555b66d1acbSmrg      if test -d "$1"; then
556b66d1acbSmrg	test -d "$1/.";
557b66d1acbSmrg      else
558b66d1acbSmrg	case $1 in
559b66d1acbSmrg	-*)set "./$1";;
560b66d1acbSmrg	esac;
561b66d1acbSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562b66d1acbSmrg	???[sx]*):;;*)false;;esac;fi
563b66d1acbSmrg    '\'' sh
564b66d1acbSmrg  '
565b66d1acbSmrgfi
566b66d1acbSmrgas_executable_p=$as_test_x
5674fb28925Smrg
5684fb28925Smrg# Sed expression to map a string onto a valid CPP name.
5694fb28925Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5704fb28925Smrg
5714fb28925Smrg# Sed expression to map a string onto a valid variable name.
5724fb28925Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5734fb28925Smrg
5744fb28925Smrg
5754fb28925Smrg
576b66d1acbSmrgexec 7<&0 </dev/null 6>&1
5774fb28925Smrg
5784fb28925Smrg# Name of the host.
5794fb28925Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5804fb28925Smrg# so uname gets run too.
5814fb28925Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5824fb28925Smrg
5834fb28925Smrg#
5844fb28925Smrg# Initializations.
5854fb28925Smrg#
5864fb28925Smrgac_default_prefix=/usr/local
587b66d1acbSmrgac_clean_files=
5884fb28925Smrgac_config_libobj_dir=.
589b66d1acbSmrgLIBOBJS=
5904fb28925Smrgcross_compiling=no
5914fb28925Smrgsubdirs=
5924fb28925SmrgMFLAGS=
5934fb28925SmrgMAKEFLAGS=
5944fb28925SmrgSHELL=${CONFIG_SHELL-/bin/sh}
5954fb28925Smrg
5964fb28925Smrg# Identity of this package.
5974fb28925SmrgPACKAGE_NAME='xkill'
5984fb28925SmrgPACKAGE_TARNAME='xkill'
599b66d1acbSmrgPACKAGE_VERSION='1.0.2'
600b66d1acbSmrgPACKAGE_STRING='xkill 1.0.2'
6014fb28925SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6024fb28925Smrg
603b66d1acbSmrg# Factoring default headers for most tests.
604b66d1acbSmrgac_includes_default="\
605b66d1acbSmrg#include <stdio.h>
606b66d1acbSmrg#ifdef HAVE_SYS_TYPES_H
607b66d1acbSmrg# include <sys/types.h>
608b66d1acbSmrg#endif
609b66d1acbSmrg#ifdef HAVE_SYS_STAT_H
610b66d1acbSmrg# include <sys/stat.h>
611b66d1acbSmrg#endif
612b66d1acbSmrg#ifdef STDC_HEADERS
613b66d1acbSmrg# include <stdlib.h>
614b66d1acbSmrg# include <stddef.h>
615b66d1acbSmrg#else
616b66d1acbSmrg# ifdef HAVE_STDLIB_H
617b66d1acbSmrg#  include <stdlib.h>
618b66d1acbSmrg# endif
619b66d1acbSmrg#endif
620b66d1acbSmrg#ifdef HAVE_STRING_H
621b66d1acbSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622b66d1acbSmrg#  include <memory.h>
623b66d1acbSmrg# endif
624b66d1acbSmrg# include <string.h>
625b66d1acbSmrg#endif
626b66d1acbSmrg#ifdef HAVE_STRINGS_H
627b66d1acbSmrg# include <strings.h>
628b66d1acbSmrg#endif
629b66d1acbSmrg#ifdef HAVE_INTTYPES_H
630b66d1acbSmrg# include <inttypes.h>
631b66d1acbSmrg#endif
632b66d1acbSmrg#ifdef HAVE_STDINT_H
633b66d1acbSmrg# include <stdint.h>
634b66d1acbSmrg#endif
635b66d1acbSmrg#ifdef HAVE_UNISTD_H
636b66d1acbSmrg# include <unistd.h>
637b66d1acbSmrg#endif"
638b66d1acbSmrg
639b66d1acbSmrgac_subst_vars='am__EXEEXT_FALSE
640b66d1acbSmrgam__EXEEXT_TRUE
641b66d1acbSmrgLTLIBOBJS
642b66d1acbSmrgLIBOBJS
643b66d1acbSmrgXKILL_LIBS
644b66d1acbSmrgXKILL_CFLAGS
645b66d1acbSmrgPKG_CONFIG
646b66d1acbSmrgADMIN_MAN_DIR
647b66d1acbSmrgDRIVER_MAN_DIR
648b66d1acbSmrgMISC_MAN_DIR
649b66d1acbSmrgFILE_MAN_DIR
650b66d1acbSmrgLIB_MAN_DIR
651b66d1acbSmrgAPP_MAN_DIR
652b66d1acbSmrgADMIN_MAN_SUFFIX
653b66d1acbSmrgDRIVER_MAN_SUFFIX
654b66d1acbSmrgMISC_MAN_SUFFIX
655b66d1acbSmrgFILE_MAN_SUFFIX
656b66d1acbSmrgLIB_MAN_SUFFIX
657b66d1acbSmrgAPP_MAN_SUFFIX
658b66d1acbSmrghost_os
659b66d1acbSmrghost_vendor
660b66d1acbSmrghost_cpu
661b66d1acbSmrghost
662b66d1acbSmrgbuild_os
663b66d1acbSmrgbuild_vendor
664b66d1acbSmrgbuild_cpu
665b66d1acbSmrgbuild
666b66d1acbSmrgdistcleancheck_listfiles
667b66d1acbSmrgCHANGELOG_CMD
668b66d1acbSmrgAM_BACKSLASH
669b66d1acbSmrgAM_DEFAULT_VERBOSITY
670b66d1acbSmrgCWARNFLAGS
671b66d1acbSmrgEGREP
672b66d1acbSmrgGREP
673b66d1acbSmrgCPP
674b66d1acbSmrgam__fastdepCC_FALSE
675b66d1acbSmrgam__fastdepCC_TRUE
676b66d1acbSmrgCCDEPMODE
677b66d1acbSmrgAMDEPBACKSLASH
678b66d1acbSmrgAMDEP_FALSE
679b66d1acbSmrgAMDEP_TRUE
680b66d1acbSmrgam__quote
681b66d1acbSmrgam__include
682b66d1acbSmrgDEPDIR
683b66d1acbSmrgOBJEXT
684b66d1acbSmrgEXEEXT
685b66d1acbSmrgac_ct_CC
686b66d1acbSmrgCPPFLAGS
687b66d1acbSmrgLDFLAGS
688b66d1acbSmrgCFLAGS
689b66d1acbSmrgCC
690b66d1acbSmrgMAINT
691b66d1acbSmrgMAINTAINER_MODE_FALSE
692b66d1acbSmrgMAINTAINER_MODE_TRUE
693b66d1acbSmrgam__untar
694b66d1acbSmrgam__tar
695b66d1acbSmrgAMTAR
696b66d1acbSmrgam__leading_dot
697b66d1acbSmrgSET_MAKE
698b66d1acbSmrgAWK
699b66d1acbSmrgmkdir_p
700b66d1acbSmrgMKDIR_P
701b66d1acbSmrgINSTALL_STRIP_PROGRAM
702b66d1acbSmrgSTRIP
703b66d1acbSmrginstall_sh
704b66d1acbSmrgMAKEINFO
705b66d1acbSmrgAUTOHEADER
706b66d1acbSmrgAUTOMAKE
707b66d1acbSmrgAUTOCONF
708b66d1acbSmrgACLOCAL
709b66d1acbSmrgVERSION
710b66d1acbSmrgPACKAGE
711b66d1acbSmrgCYGPATH_W
712b66d1acbSmrgam__isrc
713b66d1acbSmrgINSTALL_DATA
714b66d1acbSmrgINSTALL_SCRIPT
715b66d1acbSmrgINSTALL_PROGRAM
716b66d1acbSmrgtarget_alias
717b66d1acbSmrghost_alias
718b66d1acbSmrgbuild_alias
719b66d1acbSmrgLIBS
720b66d1acbSmrgECHO_T
721b66d1acbSmrgECHO_N
722b66d1acbSmrgECHO_C
723b66d1acbSmrgDEFS
724b66d1acbSmrgmandir
725b66d1acbSmrglocaledir
726b66d1acbSmrglibdir
727b66d1acbSmrgpsdir
728b66d1acbSmrgpdfdir
729b66d1acbSmrgdvidir
730b66d1acbSmrghtmldir
731b66d1acbSmrginfodir
732b66d1acbSmrgdocdir
733b66d1acbSmrgoldincludedir
734b66d1acbSmrgincludedir
735b66d1acbSmrglocalstatedir
736b66d1acbSmrgsharedstatedir
737b66d1acbSmrgsysconfdir
738b66d1acbSmrgdatadir
739b66d1acbSmrgdatarootdir
740b66d1acbSmrglibexecdir
741b66d1acbSmrgsbindir
742b66d1acbSmrgbindir
743b66d1acbSmrgprogram_transform_name
744b66d1acbSmrgprefix
745b66d1acbSmrgexec_prefix
746b66d1acbSmrgPACKAGE_BUGREPORT
747b66d1acbSmrgPACKAGE_STRING
748b66d1acbSmrgPACKAGE_VERSION
749b66d1acbSmrgPACKAGE_TARNAME
750b66d1acbSmrgPACKAGE_NAME
751b66d1acbSmrgPATH_SEPARATOR
752b66d1acbSmrgSHELL'
7534fb28925Smrgac_subst_files=''
754b66d1acbSmrgac_user_opts='
755b66d1acbSmrgenable_option_checking
756b66d1acbSmrgenable_maintainer_mode
757b66d1acbSmrgenable_dependency_tracking
758b66d1acbSmrgenable_silent_rules
759b66d1acbSmrgenable_strict_compilation
760b66d1acbSmrgwith_release_version
761b66d1acbSmrg'
762b66d1acbSmrg      ac_precious_vars='build_alias
763b66d1acbSmrghost_alias
764b66d1acbSmrgtarget_alias
765b66d1acbSmrgCC
766b66d1acbSmrgCFLAGS
767b66d1acbSmrgLDFLAGS
768b66d1acbSmrgLIBS
769b66d1acbSmrgCPPFLAGS
770b66d1acbSmrgCPP
771b66d1acbSmrgPKG_CONFIG
772b66d1acbSmrgXKILL_CFLAGS
773b66d1acbSmrgXKILL_LIBS'
774b66d1acbSmrg
7754fb28925Smrg
7764fb28925Smrg# Initialize some variables set by options.
7774fb28925Smrgac_init_help=
7784fb28925Smrgac_init_version=false
779b66d1acbSmrgac_unrecognized_opts=
780b66d1acbSmrgac_unrecognized_sep=
7814fb28925Smrg# The variables have the same names as the options, with
7824fb28925Smrg# dashes changed to underlines.
7834fb28925Smrgcache_file=/dev/null
7844fb28925Smrgexec_prefix=NONE
7854fb28925Smrgno_create=
7864fb28925Smrgno_recursion=
7874fb28925Smrgprefix=NONE
7884fb28925Smrgprogram_prefix=NONE
7894fb28925Smrgprogram_suffix=NONE
7904fb28925Smrgprogram_transform_name=s,x,x,
7914fb28925Smrgsilent=
7924fb28925Smrgsite=
7934fb28925Smrgsrcdir=
7944fb28925Smrgverbose=
7954fb28925Smrgx_includes=NONE
7964fb28925Smrgx_libraries=NONE
7974fb28925Smrg
7984fb28925Smrg# Installation directory options.
7994fb28925Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8004fb28925Smrg# and all the variables that are supposed to be based on exec_prefix
8014fb28925Smrg# by default will actually change.
8024fb28925Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
803b66d1acbSmrg# (The list follows the same order as the GNU Coding Standards.)
8044fb28925Smrgbindir='${exec_prefix}/bin'
8054fb28925Smrgsbindir='${exec_prefix}/sbin'
8064fb28925Smrglibexecdir='${exec_prefix}/libexec'
807b66d1acbSmrgdatarootdir='${prefix}/share'
808b66d1acbSmrgdatadir='${datarootdir}'
8094fb28925Smrgsysconfdir='${prefix}/etc'
8104fb28925Smrgsharedstatedir='${prefix}/com'
8114fb28925Smrglocalstatedir='${prefix}/var'
8124fb28925Smrgincludedir='${prefix}/include'
8134fb28925Smrgoldincludedir='/usr/include'
814b66d1acbSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815b66d1acbSmrginfodir='${datarootdir}/info'
816b66d1acbSmrghtmldir='${docdir}'
817b66d1acbSmrgdvidir='${docdir}'
818b66d1acbSmrgpdfdir='${docdir}'
819b66d1acbSmrgpsdir='${docdir}'
820b66d1acbSmrglibdir='${exec_prefix}/lib'
821b66d1acbSmrglocaledir='${datarootdir}/locale'
822b66d1acbSmrgmandir='${datarootdir}/man'
8234fb28925Smrg
8244fb28925Smrgac_prev=
825b66d1acbSmrgac_dashdash=
8264fb28925Smrgfor ac_option
8274fb28925Smrgdo
8284fb28925Smrg  # If the previous option needs an argument, assign it.
8294fb28925Smrg  if test -n "$ac_prev"; then
830b66d1acbSmrg    eval $ac_prev=\$ac_option
8314fb28925Smrg    ac_prev=
8324fb28925Smrg    continue
8334fb28925Smrg  fi
8344fb28925Smrg
835b66d1acbSmrg  case $ac_option in
836b66d1acbSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837b66d1acbSmrg  *)	ac_optarg=yes ;;
838b66d1acbSmrg  esac
8394fb28925Smrg
8404fb28925Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8414fb28925Smrg
842b66d1acbSmrg  case $ac_dashdash$ac_option in
843b66d1acbSmrg  --)
844b66d1acbSmrg    ac_dashdash=yes ;;
8454fb28925Smrg
8464fb28925Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8474fb28925Smrg    ac_prev=bindir ;;
8484fb28925Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8494fb28925Smrg    bindir=$ac_optarg ;;
8504fb28925Smrg
8514fb28925Smrg  -build | --build | --buil | --bui | --bu)
8524fb28925Smrg    ac_prev=build_alias ;;
8534fb28925Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8544fb28925Smrg    build_alias=$ac_optarg ;;
8554fb28925Smrg
8564fb28925Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8574fb28925Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8584fb28925Smrg    ac_prev=cache_file ;;
8594fb28925Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8604fb28925Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8614fb28925Smrg    cache_file=$ac_optarg ;;
8624fb28925Smrg
8634fb28925Smrg  --config-cache | -C)
8644fb28925Smrg    cache_file=config.cache ;;
8654fb28925Smrg
866b66d1acbSmrg  -datadir | --datadir | --datadi | --datad)
8674fb28925Smrg    ac_prev=datadir ;;
868b66d1acbSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8694fb28925Smrg    datadir=$ac_optarg ;;
8704fb28925Smrg
871b66d1acbSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872b66d1acbSmrg  | --dataroo | --dataro | --datar)
873b66d1acbSmrg    ac_prev=datarootdir ;;
874b66d1acbSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875b66d1acbSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876b66d1acbSmrg    datarootdir=$ac_optarg ;;
877b66d1acbSmrg
8784fb28925Smrg  -disable-* | --disable-*)
879b66d1acbSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8804fb28925Smrg    # Reject names that are not valid shell variable names.
881b66d1acbSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882b66d1acbSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8834fb28925Smrg   { (exit 1); exit 1; }; }
884b66d1acbSmrg    ac_useropt_orig=$ac_useropt
885b66d1acbSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886b66d1acbSmrg    case $ac_user_opts in
887b66d1acbSmrg      *"
888b66d1acbSmrg"enable_$ac_useropt"
889b66d1acbSmrg"*) ;;
890b66d1acbSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891b66d1acbSmrg	 ac_unrecognized_sep=', ';;
892b66d1acbSmrg    esac
893b66d1acbSmrg    eval enable_$ac_useropt=no ;;
894b66d1acbSmrg
895b66d1acbSmrg  -docdir | --docdir | --docdi | --doc | --do)
896b66d1acbSmrg    ac_prev=docdir ;;
897b66d1acbSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898b66d1acbSmrg    docdir=$ac_optarg ;;
899b66d1acbSmrg
900b66d1acbSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901b66d1acbSmrg    ac_prev=dvidir ;;
902b66d1acbSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903b66d1acbSmrg    dvidir=$ac_optarg ;;
9044fb28925Smrg
9054fb28925Smrg  -enable-* | --enable-*)
906b66d1acbSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9074fb28925Smrg    # Reject names that are not valid shell variable names.
908b66d1acbSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909b66d1acbSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9104fb28925Smrg   { (exit 1); exit 1; }; }
911b66d1acbSmrg    ac_useropt_orig=$ac_useropt
912b66d1acbSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913b66d1acbSmrg    case $ac_user_opts in
914b66d1acbSmrg      *"
915b66d1acbSmrg"enable_$ac_useropt"
916b66d1acbSmrg"*) ;;
917b66d1acbSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918b66d1acbSmrg	 ac_unrecognized_sep=', ';;
9194fb28925Smrg    esac
920b66d1acbSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9214fb28925Smrg
9224fb28925Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9234fb28925Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9244fb28925Smrg  | --exec | --exe | --ex)
9254fb28925Smrg    ac_prev=exec_prefix ;;
9264fb28925Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9274fb28925Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9284fb28925Smrg  | --exec=* | --exe=* | --ex=*)
9294fb28925Smrg    exec_prefix=$ac_optarg ;;
9304fb28925Smrg
9314fb28925Smrg  -gas | --gas | --ga | --g)
9324fb28925Smrg    # Obsolete; use --with-gas.
9334fb28925Smrg    with_gas=yes ;;
9344fb28925Smrg
9354fb28925Smrg  -help | --help | --hel | --he | -h)
9364fb28925Smrg    ac_init_help=long ;;
9374fb28925Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9384fb28925Smrg    ac_init_help=recursive ;;
9394fb28925Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9404fb28925Smrg    ac_init_help=short ;;
9414fb28925Smrg
9424fb28925Smrg  -host | --host | --hos | --ho)
9434fb28925Smrg    ac_prev=host_alias ;;
9444fb28925Smrg  -host=* | --host=* | --hos=* | --ho=*)
9454fb28925Smrg    host_alias=$ac_optarg ;;
9464fb28925Smrg
947b66d1acbSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948b66d1acbSmrg    ac_prev=htmldir ;;
949b66d1acbSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950b66d1acbSmrg  | --ht=*)
951b66d1acbSmrg    htmldir=$ac_optarg ;;
952b66d1acbSmrg
9534fb28925Smrg  -includedir | --includedir | --includedi | --included | --include \
9544fb28925Smrg  | --includ | --inclu | --incl | --inc)
9554fb28925Smrg    ac_prev=includedir ;;
9564fb28925Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9574fb28925Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9584fb28925Smrg    includedir=$ac_optarg ;;
9594fb28925Smrg
9604fb28925Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9614fb28925Smrg    ac_prev=infodir ;;
9624fb28925Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9634fb28925Smrg    infodir=$ac_optarg ;;
9644fb28925Smrg
9654fb28925Smrg  -libdir | --libdir | --libdi | --libd)
9664fb28925Smrg    ac_prev=libdir ;;
9674fb28925Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9684fb28925Smrg    libdir=$ac_optarg ;;
9694fb28925Smrg
9704fb28925Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9714fb28925Smrg  | --libexe | --libex | --libe)
9724fb28925Smrg    ac_prev=libexecdir ;;
9734fb28925Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9744fb28925Smrg  | --libexe=* | --libex=* | --libe=*)
9754fb28925Smrg    libexecdir=$ac_optarg ;;
9764fb28925Smrg
977b66d1acbSmrg  -localedir | --localedir | --localedi | --localed | --locale)
978b66d1acbSmrg    ac_prev=localedir ;;
979b66d1acbSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980b66d1acbSmrg    localedir=$ac_optarg ;;
981b66d1acbSmrg
9824fb28925Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
983b66d1acbSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9844fb28925Smrg    ac_prev=localstatedir ;;
9854fb28925Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986b66d1acbSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9874fb28925Smrg    localstatedir=$ac_optarg ;;
9884fb28925Smrg
9894fb28925Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9904fb28925Smrg    ac_prev=mandir ;;
9914fb28925Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9924fb28925Smrg    mandir=$ac_optarg ;;
9934fb28925Smrg
9944fb28925Smrg  -nfp | --nfp | --nf)
9954fb28925Smrg    # Obsolete; use --without-fp.
9964fb28925Smrg    with_fp=no ;;
9974fb28925Smrg
9984fb28925Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9994fb28925Smrg  | --no-cr | --no-c | -n)
10004fb28925Smrg    no_create=yes ;;
10014fb28925Smrg
10024fb28925Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10034fb28925Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10044fb28925Smrg    no_recursion=yes ;;
10054fb28925Smrg
10064fb28925Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10074fb28925Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10084fb28925Smrg  | --oldin | --oldi | --old | --ol | --o)
10094fb28925Smrg    ac_prev=oldincludedir ;;
10104fb28925Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10114fb28925Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10124fb28925Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10134fb28925Smrg    oldincludedir=$ac_optarg ;;
10144fb28925Smrg
10154fb28925Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10164fb28925Smrg    ac_prev=prefix ;;
10174fb28925Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10184fb28925Smrg    prefix=$ac_optarg ;;
10194fb28925Smrg
10204fb28925Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10214fb28925Smrg  | --program-pre | --program-pr | --program-p)
10224fb28925Smrg    ac_prev=program_prefix ;;
10234fb28925Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10244fb28925Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10254fb28925Smrg    program_prefix=$ac_optarg ;;
10264fb28925Smrg
10274fb28925Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10284fb28925Smrg  | --program-suf | --program-su | --program-s)
10294fb28925Smrg    ac_prev=program_suffix ;;
10304fb28925Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10314fb28925Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10324fb28925Smrg    program_suffix=$ac_optarg ;;
10334fb28925Smrg
10344fb28925Smrg  -program-transform-name | --program-transform-name \
10354fb28925Smrg  | --program-transform-nam | --program-transform-na \
10364fb28925Smrg  | --program-transform-n | --program-transform- \
10374fb28925Smrg  | --program-transform | --program-transfor \
10384fb28925Smrg  | --program-transfo | --program-transf \
10394fb28925Smrg  | --program-trans | --program-tran \
10404fb28925Smrg  | --progr-tra | --program-tr | --program-t)
10414fb28925Smrg    ac_prev=program_transform_name ;;
10424fb28925Smrg  -program-transform-name=* | --program-transform-name=* \
10434fb28925Smrg  | --program-transform-nam=* | --program-transform-na=* \
10444fb28925Smrg  | --program-transform-n=* | --program-transform-=* \
10454fb28925Smrg  | --program-transform=* | --program-transfor=* \
10464fb28925Smrg  | --program-transfo=* | --program-transf=* \
10474fb28925Smrg  | --program-trans=* | --program-tran=* \
10484fb28925Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10494fb28925Smrg    program_transform_name=$ac_optarg ;;
10504fb28925Smrg
1051b66d1acbSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052b66d1acbSmrg    ac_prev=pdfdir ;;
1053b66d1acbSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054b66d1acbSmrg    pdfdir=$ac_optarg ;;
1055b66d1acbSmrg
1056b66d1acbSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1057b66d1acbSmrg    ac_prev=psdir ;;
1058b66d1acbSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059b66d1acbSmrg    psdir=$ac_optarg ;;
1060b66d1acbSmrg
10614fb28925Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10624fb28925Smrg  | -silent | --silent | --silen | --sile | --sil)
10634fb28925Smrg    silent=yes ;;
10644fb28925Smrg
10654fb28925Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10664fb28925Smrg    ac_prev=sbindir ;;
10674fb28925Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10684fb28925Smrg  | --sbi=* | --sb=*)
10694fb28925Smrg    sbindir=$ac_optarg ;;
10704fb28925Smrg
10714fb28925Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10724fb28925Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10734fb28925Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10744fb28925Smrg  | --sha | --sh)
10754fb28925Smrg    ac_prev=sharedstatedir ;;
10764fb28925Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10774fb28925Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10784fb28925Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10794fb28925Smrg  | --sha=* | --sh=*)
10804fb28925Smrg    sharedstatedir=$ac_optarg ;;
10814fb28925Smrg
10824fb28925Smrg  -site | --site | --sit)
10834fb28925Smrg    ac_prev=site ;;
10844fb28925Smrg  -site=* | --site=* | --sit=*)
10854fb28925Smrg    site=$ac_optarg ;;
10864fb28925Smrg
10874fb28925Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10884fb28925Smrg    ac_prev=srcdir ;;
10894fb28925Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10904fb28925Smrg    srcdir=$ac_optarg ;;
10914fb28925Smrg
10924fb28925Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10934fb28925Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10944fb28925Smrg    ac_prev=sysconfdir ;;
10954fb28925Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10964fb28925Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10974fb28925Smrg    sysconfdir=$ac_optarg ;;
10984fb28925Smrg
10994fb28925Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11004fb28925Smrg    ac_prev=target_alias ;;
11014fb28925Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11024fb28925Smrg    target_alias=$ac_optarg ;;
11034fb28925Smrg
11044fb28925Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11054fb28925Smrg    verbose=yes ;;
11064fb28925Smrg
11074fb28925Smrg  -version | --version | --versio | --versi | --vers | -V)
11084fb28925Smrg    ac_init_version=: ;;
11094fb28925Smrg
11104fb28925Smrg  -with-* | --with-*)
1111b66d1acbSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11124fb28925Smrg    # Reject names that are not valid shell variable names.
1113b66d1acbSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114b66d1acbSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11154fb28925Smrg   { (exit 1); exit 1; }; }
1116b66d1acbSmrg    ac_useropt_orig=$ac_useropt
1117b66d1acbSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118b66d1acbSmrg    case $ac_user_opts in
1119b66d1acbSmrg      *"
1120b66d1acbSmrg"with_$ac_useropt"
1121b66d1acbSmrg"*) ;;
1122b66d1acbSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123b66d1acbSmrg	 ac_unrecognized_sep=', ';;
11244fb28925Smrg    esac
1125b66d1acbSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11264fb28925Smrg
11274fb28925Smrg  -without-* | --without-*)
1128b66d1acbSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11294fb28925Smrg    # Reject names that are not valid shell variable names.
1130b66d1acbSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131b66d1acbSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11324fb28925Smrg   { (exit 1); exit 1; }; }
1133b66d1acbSmrg    ac_useropt_orig=$ac_useropt
1134b66d1acbSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135b66d1acbSmrg    case $ac_user_opts in
1136b66d1acbSmrg      *"
1137b66d1acbSmrg"with_$ac_useropt"
1138b66d1acbSmrg"*) ;;
1139b66d1acbSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140b66d1acbSmrg	 ac_unrecognized_sep=', ';;
1141b66d1acbSmrg    esac
1142b66d1acbSmrg    eval with_$ac_useropt=no ;;
11434fb28925Smrg
11444fb28925Smrg  --x)
11454fb28925Smrg    # Obsolete; use --with-x.
11464fb28925Smrg    with_x=yes ;;
11474fb28925Smrg
11484fb28925Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11494fb28925Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11504fb28925Smrg    ac_prev=x_includes ;;
11514fb28925Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11524fb28925Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11534fb28925Smrg    x_includes=$ac_optarg ;;
11544fb28925Smrg
11554fb28925Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11564fb28925Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11574fb28925Smrg    ac_prev=x_libraries ;;
11584fb28925Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11594fb28925Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11604fb28925Smrg    x_libraries=$ac_optarg ;;
11614fb28925Smrg
1162b66d1acbSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11634fb28925SmrgTry \`$0 --help' for more information." >&2
11644fb28925Smrg   { (exit 1); exit 1; }; }
11654fb28925Smrg    ;;
11664fb28925Smrg
11674fb28925Smrg  *=*)
11684fb28925Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11694fb28925Smrg    # Reject names that are not valid shell variable names.
11704fb28925Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1171b66d1acbSmrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11724fb28925Smrg   { (exit 1); exit 1; }; }
1173b66d1acbSmrg    eval $ac_envvar=\$ac_optarg
11744fb28925Smrg    export $ac_envvar ;;
11754fb28925Smrg
11764fb28925Smrg  *)
11774fb28925Smrg    # FIXME: should be removed in autoconf 3.0.
1178b66d1acbSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11794fb28925Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180b66d1acbSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11814fb28925Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11824fb28925Smrg    ;;
11834fb28925Smrg
11844fb28925Smrg  esac
11854fb28925Smrgdone
11864fb28925Smrg
11874fb28925Smrgif test -n "$ac_prev"; then
11884fb28925Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189b66d1acbSmrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
11904fb28925Smrg   { (exit 1); exit 1; }; }
11914fb28925Smrgfi
11924fb28925Smrg
1193b66d1acbSmrgif test -n "$ac_unrecognized_opts"; then
1194b66d1acbSmrg  case $enable_option_checking in
1195b66d1acbSmrg    no) ;;
1196b66d1acbSmrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1197b66d1acbSmrg   { (exit 1); exit 1; }; } ;;
1198b66d1acbSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11994fb28925Smrg  esac
1200b66d1acbSmrgfi
12014fb28925Smrg
1202b66d1acbSmrg# Check all directory arguments for consistency.
1203b66d1acbSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204b66d1acbSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1205b66d1acbSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206b66d1acbSmrg		libdir localedir mandir
12074fb28925Smrgdo
1208b66d1acbSmrg  eval ac_val=\$$ac_var
1209b66d1acbSmrg  # Remove trailing slashes.
12104fb28925Smrg  case $ac_val in
1211b66d1acbSmrg    */ )
1212b66d1acbSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213b66d1acbSmrg      eval $ac_var=\$ac_val;;
1214b66d1acbSmrg  esac
1215b66d1acbSmrg  # Be sure to have absolute directory names.
1216b66d1acbSmrg  case $ac_val in
1217b66d1acbSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1218b66d1acbSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12194fb28925Smrg  esac
1220b66d1acbSmrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221b66d1acbSmrg   { (exit 1); exit 1; }; }
12224fb28925Smrgdone
12234fb28925Smrg
12244fb28925Smrg# There might be people who depend on the old broken behavior: `$host'
12254fb28925Smrg# used to hold the argument of --host etc.
12264fb28925Smrg# FIXME: To remove some day.
12274fb28925Smrgbuild=$build_alias
12284fb28925Smrghost=$host_alias
12294fb28925Smrgtarget=$target_alias
12304fb28925Smrg
12314fb28925Smrg# FIXME: To remove some day.
12324fb28925Smrgif test "x$host_alias" != x; then
12334fb28925Smrg  if test "x$build_alias" = x; then
12344fb28925Smrg    cross_compiling=maybe
1235b66d1acbSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12364fb28925Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
12374fb28925Smrg  elif test "x$build_alias" != "x$host_alias"; then
12384fb28925Smrg    cross_compiling=yes
12394fb28925Smrg  fi
12404fb28925Smrgfi
12414fb28925Smrg
12424fb28925Smrgac_tool_prefix=
12434fb28925Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12444fb28925Smrg
12454fb28925Smrgtest "$silent" = yes && exec 6>/dev/null
12464fb28925Smrg
12474fb28925Smrg
1248b66d1acbSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1249b66d1acbSmrgac_ls_di=`ls -di .` &&
1250b66d1acbSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251b66d1acbSmrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1252b66d1acbSmrg   { (exit 1); exit 1; }; }
1253b66d1acbSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254b66d1acbSmrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1255b66d1acbSmrg   { (exit 1); exit 1; }; }
1256b66d1acbSmrg
1257b66d1acbSmrg
1258b66d1acbSmrg# Find the source files, if location was not specified.
1259b66d1acbSmrgif test -z "$srcdir"; then
12604fb28925Smrg  ac_srcdir_defaulted=yes
1261b66d1acbSmrg  # Try the directory containing this script, then the parent directory.
1262b66d1acbSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1263b66d1acbSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264b66d1acbSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265b66d1acbSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1266b66d1acbSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267b66d1acbSmrg$as_echo X"$as_myself" |
1268b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269b66d1acbSmrg	    s//\1/
1270b66d1acbSmrg	    q
1271b66d1acbSmrg	  }
1272b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
1273b66d1acbSmrg	    s//\1/
1274b66d1acbSmrg	    q
1275b66d1acbSmrg	  }
1276b66d1acbSmrg	  /^X\(\/\/\)$/{
1277b66d1acbSmrg	    s//\1/
1278b66d1acbSmrg	    q
1279b66d1acbSmrg	  }
1280b66d1acbSmrg	  /^X\(\/\).*/{
1281b66d1acbSmrg	    s//\1/
1282b66d1acbSmrg	    q
1283b66d1acbSmrg	  }
1284b66d1acbSmrg	  s/.*/./; q'`
12854fb28925Smrg  srcdir=$ac_confdir
1286b66d1acbSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12874fb28925Smrg    srcdir=..
12884fb28925Smrg  fi
12894fb28925Smrgelse
12904fb28925Smrg  ac_srcdir_defaulted=no
12914fb28925Smrgfi
1292b66d1acbSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1293b66d1acbSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294b66d1acbSmrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
12954fb28925Smrg   { (exit 1); exit 1; }; }
12964fb28925Smrgfi
1297b66d1acbSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298b66d1acbSmrgac_abs_confdir=`(
1299b66d1acbSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13004fb28925Smrg   { (exit 1); exit 1; }; }
1301b66d1acbSmrg	pwd)`
1302b66d1acbSmrg# When building in place, set srcdir=.
1303b66d1acbSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1304b66d1acbSmrg  srcdir=.
1305b66d1acbSmrgfi
1306b66d1acbSmrg# Remove unnecessary trailing slashes from srcdir.
1307b66d1acbSmrg# Double slashes in file names in object file debugging info
1308b66d1acbSmrg# mess up M-x gdb in Emacs.
1309b66d1acbSmrgcase $srcdir in
1310b66d1acbSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311b66d1acbSmrgesac
1312b66d1acbSmrgfor ac_var in $ac_precious_vars; do
1313b66d1acbSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314b66d1acbSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1315b66d1acbSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316b66d1acbSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317b66d1acbSmrgdone
13184fb28925Smrg
13194fb28925Smrg#
13204fb28925Smrg# Report the --help message.
13214fb28925Smrg#
13224fb28925Smrgif test "$ac_init_help" = "long"; then
13234fb28925Smrg  # Omit some internal or obsolete options to make the list less imposing.
13244fb28925Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13254fb28925Smrg  cat <<_ACEOF
1326b66d1acbSmrg\`configure' configures xkill 1.0.2 to adapt to many kinds of systems.
13274fb28925Smrg
13284fb28925SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13294fb28925Smrg
13304fb28925SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13314fb28925SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13324fb28925Smrg
13334fb28925SmrgDefaults for the options are specified in brackets.
13344fb28925Smrg
13354fb28925SmrgConfiguration:
13364fb28925Smrg  -h, --help              display this help and exit
13374fb28925Smrg      --help=short        display options specific to this package
13384fb28925Smrg      --help=recursive    display the short help of all the included packages
13394fb28925Smrg  -V, --version           display version information and exit
13404fb28925Smrg  -q, --quiet, --silent   do not print \`checking...' messages
13414fb28925Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13424fb28925Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13434fb28925Smrg  -n, --no-create         do not create output files
13444fb28925Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13454fb28925Smrg
13464fb28925SmrgInstallation directories:
13474fb28925Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1348b66d1acbSmrg                          [$ac_default_prefix]
13494fb28925Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350b66d1acbSmrg                          [PREFIX]
13514fb28925Smrg
13524fb28925SmrgBy default, \`make install' will install all the files in
13534fb28925Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13544fb28925Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13554fb28925Smrgfor instance \`--prefix=\$HOME'.
13564fb28925Smrg
13574fb28925SmrgFor better control, use the options below.
13584fb28925Smrg
13594fb28925SmrgFine tuning of the installation directories:
1360b66d1acbSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1361b66d1acbSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362b66d1acbSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363b66d1acbSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364b66d1acbSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365b66d1acbSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366b66d1acbSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1367b66d1acbSmrg  --includedir=DIR        C header files [PREFIX/include]
1368b66d1acbSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369b66d1acbSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370b66d1acbSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371b66d1acbSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372b66d1acbSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373b66d1acbSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374b66d1acbSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkill]
1375b66d1acbSmrg  --htmldir=DIR           html documentation [DOCDIR]
1376b66d1acbSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1377b66d1acbSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1378b66d1acbSmrg  --psdir=DIR             ps documentation [DOCDIR]
13794fb28925Smrg_ACEOF
13804fb28925Smrg
13814fb28925Smrg  cat <<\_ACEOF
13824fb28925Smrg
13834fb28925SmrgProgram names:
13844fb28925Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13854fb28925Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13864fb28925Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13874fb28925Smrg
13884fb28925SmrgSystem types:
13894fb28925Smrg  --build=BUILD     configure for building on BUILD [guessed]
13904fb28925Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13914fb28925Smrg_ACEOF
13924fb28925Smrgfi
13934fb28925Smrg
13944fb28925Smrgif test -n "$ac_init_help"; then
13954fb28925Smrg  case $ac_init_help in
1396b66d1acbSmrg     short | recursive ) echo "Configuration of xkill 1.0.2:";;
13974fb28925Smrg   esac
13984fb28925Smrg  cat <<\_ACEOF
13994fb28925Smrg
14004fb28925SmrgOptional Features:
1401b66d1acbSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14024fb28925Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14034fb28925Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404b66d1acbSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1405b66d1acbSmrg			  (and sometimes confusing) to the casual installer
1406b66d1acbSmrg  --disable-dependency-tracking  speeds up one-time build
1407b66d1acbSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1408b66d1acbSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1409b66d1acbSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1410b66d1acbSmrg  --enable-strict-compilation
1411b66d1acbSmrg                          Enable all warnings from compiler and make them
1412b66d1acbSmrg                          errors (default: disabled)
14134fb28925Smrg
14144fb28925SmrgOptional Packages:
14154fb28925Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14164fb28925Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14174fb28925Smrg  --with-release-version=STRING
14184fb28925Smrg                          Use release version string in package name
14194fb28925Smrg
14204fb28925SmrgSome influential environment variables:
14214fb28925Smrg  CC          C compiler command
14224fb28925Smrg  CFLAGS      C compiler flags
14234fb28925Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14244fb28925Smrg              nonstandard directory <lib dir>
1425b66d1acbSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1426b66d1acbSmrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1427b66d1acbSmrg              you have headers in a nonstandard directory <include dir>
1428b66d1acbSmrg  CPP         C preprocessor
14294fb28925Smrg  PKG_CONFIG  path to pkg-config utility
14304fb28925Smrg  XKILL_CFLAGS
14314fb28925Smrg              C compiler flags for XKILL, overriding pkg-config
14324fb28925Smrg  XKILL_LIBS  linker flags for XKILL, overriding pkg-config
14334fb28925Smrg
14344fb28925SmrgUse these variables to override the choices made by `configure' or to help
14354fb28925Smrgit to find libraries and programs with nonstandard names/locations.
14364fb28925Smrg
14374fb28925SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14384fb28925Smrg_ACEOF
1439b66d1acbSmrgac_status=$?
14404fb28925Smrgfi
14414fb28925Smrg
14424fb28925Smrgif test "$ac_init_help" = "recursive"; then
14434fb28925Smrg  # If there are subdirs, report their specific --help.
14444fb28925Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445b66d1acbSmrg    test -d "$ac_dir" ||
1446b66d1acbSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447b66d1acbSmrg      continue
14484fb28925Smrg    ac_builddir=.
14494fb28925Smrg
1450b66d1acbSmrgcase "$ac_dir" in
1451b66d1acbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452b66d1acbSmrg*)
1453b66d1acbSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454b66d1acbSmrg  # A ".." for each directory in $ac_dir_suffix.
1455b66d1acbSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456b66d1acbSmrg  case $ac_top_builddir_sub in
1457b66d1acbSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458b66d1acbSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459b66d1acbSmrg  esac ;;
1460b66d1acbSmrgesac
1461b66d1acbSmrgac_abs_top_builddir=$ac_pwd
1462b66d1acbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1463b66d1acbSmrg# for backward compatibility:
1464b66d1acbSmrgac_top_builddir=$ac_top_build_prefix
14654fb28925Smrg
14664fb28925Smrgcase $srcdir in
1467b66d1acbSmrg  .)  # We are building in place.
14684fb28925Smrg    ac_srcdir=.
1469b66d1acbSmrg    ac_top_srcdir=$ac_top_builddir_sub
1470b66d1acbSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1471b66d1acbSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14724fb28925Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1473b66d1acbSmrg    ac_top_srcdir=$srcdir
1474b66d1acbSmrg    ac_abs_top_srcdir=$srcdir ;;
1475b66d1acbSmrg  *) # Relative name.
1476b66d1acbSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477b66d1acbSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1478b66d1acbSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14794fb28925Smrgesac
1480b66d1acbSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481b66d1acbSmrg
1482b66d1acbSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1483b66d1acbSmrg    # Check for guested configure.
1484b66d1acbSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1485b66d1acbSmrg      echo &&
1486b66d1acbSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487b66d1acbSmrg    elif test -f "$ac_srcdir/configure"; then
1488b66d1acbSmrg      echo &&
1489b66d1acbSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14904fb28925Smrg    else
1491b66d1acbSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492b66d1acbSmrg    fi || ac_status=$?
1493b66d1acbSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14944fb28925Smrg  done
14954fb28925Smrgfi
14964fb28925Smrg
1497b66d1acbSmrgtest -n "$ac_init_help" && exit $ac_status
14984fb28925Smrgif $ac_init_version; then
14994fb28925Smrg  cat <<\_ACEOF
1500b66d1acbSmrgxkill configure 1.0.2
1501b66d1acbSmrggenerated by GNU Autoconf 2.63
15024fb28925Smrg
1503b66d1acbSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1504b66d1acbSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15054fb28925SmrgThis configure script is free software; the Free Software Foundation
15064fb28925Smrggives unlimited permission to copy, distribute and modify it.
15074fb28925Smrg_ACEOF
1508b66d1acbSmrg  exit
15094fb28925Smrgfi
1510b66d1acbSmrgcat >config.log <<_ACEOF
15114fb28925SmrgThis file contains any messages produced by compilers while
15124fb28925Smrgrunning configure, to aid debugging if configure makes a mistake.
15134fb28925Smrg
1514b66d1acbSmrgIt was created by xkill $as_me 1.0.2, which was
1515b66d1acbSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
15164fb28925Smrg
15174fb28925Smrg  $ $0 $@
15184fb28925Smrg
15194fb28925Smrg_ACEOF
1520b66d1acbSmrgexec 5>>config.log
15214fb28925Smrg{
15224fb28925Smrgcat <<_ASUNAME
15234fb28925Smrg## --------- ##
15244fb28925Smrg## Platform. ##
15254fb28925Smrg## --------- ##
15264fb28925Smrg
15274fb28925Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15284fb28925Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15294fb28925Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15304fb28925Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15314fb28925Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15324fb28925Smrg
15334fb28925Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15344fb28925Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15354fb28925Smrg
15364fb28925Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15374fb28925Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15384fb28925Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1539b66d1acbSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15404fb28925Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15414fb28925Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15424fb28925Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15434fb28925Smrg
15444fb28925Smrg_ASUNAME
15454fb28925Smrg
15464fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15474fb28925Smrgfor as_dir in $PATH
15484fb28925Smrgdo
15494fb28925Smrg  IFS=$as_save_IFS
15504fb28925Smrg  test -z "$as_dir" && as_dir=.
1551b66d1acbSmrg  $as_echo "PATH: $as_dir"
15524fb28925Smrgdone
1553b66d1acbSmrgIFS=$as_save_IFS
15544fb28925Smrg
15554fb28925Smrg} >&5
15564fb28925Smrg
15574fb28925Smrgcat >&5 <<_ACEOF
15584fb28925Smrg
15594fb28925Smrg
15604fb28925Smrg## ----------- ##
15614fb28925Smrg## Core tests. ##
15624fb28925Smrg## ----------- ##
15634fb28925Smrg
15644fb28925Smrg_ACEOF
15654fb28925Smrg
15664fb28925Smrg
15674fb28925Smrg# Keep a trace of the command line.
15684fb28925Smrg# Strip out --no-create and --no-recursion so they do not pile up.
15694fb28925Smrg# Strip out --silent because we don't want to record it for future runs.
15704fb28925Smrg# Also quote any args containing shell meta-characters.
15714fb28925Smrg# Make two passes to allow for proper duplicate-argument suppression.
15724fb28925Smrgac_configure_args=
15734fb28925Smrgac_configure_args0=
15744fb28925Smrgac_configure_args1=
15754fb28925Smrgac_must_keep_next=false
15764fb28925Smrgfor ac_pass in 1 2
15774fb28925Smrgdo
15784fb28925Smrg  for ac_arg
15794fb28925Smrg  do
15804fb28925Smrg    case $ac_arg in
15814fb28925Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
15824fb28925Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15834fb28925Smrg    | -silent | --silent | --silen | --sile | --sil)
15844fb28925Smrg      continue ;;
1585b66d1acbSmrg    *\'*)
1586b66d1acbSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15874fb28925Smrg    esac
15884fb28925Smrg    case $ac_pass in
15894fb28925Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
15904fb28925Smrg    2)
15914fb28925Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
15924fb28925Smrg      if test $ac_must_keep_next = true; then
15934fb28925Smrg	ac_must_keep_next=false # Got value, back to normal.
15944fb28925Smrg      else
15954fb28925Smrg	case $ac_arg in
15964fb28925Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
15974fb28925Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
15984fb28925Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
15994fb28925Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16004fb28925Smrg	    case "$ac_configure_args0 " in
16014fb28925Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16024fb28925Smrg	    esac
16034fb28925Smrg	    ;;
16044fb28925Smrg	  -* ) ac_must_keep_next=true ;;
16054fb28925Smrg	esac
16064fb28925Smrg      fi
1607b66d1acbSmrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16084fb28925Smrg      ;;
16094fb28925Smrg    esac
16104fb28925Smrg  done
16114fb28925Smrgdone
16124fb28925Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16134fb28925Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16144fb28925Smrg
16154fb28925Smrg# When interrupted or exit'd, cleanup temporary files, and complete
16164fb28925Smrg# config.log.  We remove comments because anyway the quotes in there
16174fb28925Smrg# would cause problems or look ugly.
1618b66d1acbSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1619b66d1acbSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16204fb28925Smrgtrap 'exit_status=$?
16214fb28925Smrg  # Save into config.log some information that might help in debugging.
16224fb28925Smrg  {
16234fb28925Smrg    echo
16244fb28925Smrg
16254fb28925Smrg    cat <<\_ASBOX
16264fb28925Smrg## ---------------- ##
16274fb28925Smrg## Cache variables. ##
16284fb28925Smrg## ---------------- ##
16294fb28925Smrg_ASBOX
16304fb28925Smrg    echo
16314fb28925Smrg    # The following way of writing the cache mishandles newlines in values,
1632b66d1acbSmrg(
1633b66d1acbSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1634b66d1acbSmrg    eval ac_val=\$$ac_var
1635b66d1acbSmrg    case $ac_val in #(
1636b66d1acbSmrg    *${as_nl}*)
1637b66d1acbSmrg      case $ac_var in #(
1638b66d1acbSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1639b66d1acbSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1640b66d1acbSmrg      esac
1641b66d1acbSmrg      case $ac_var in #(
1642b66d1acbSmrg      _ | IFS | as_nl) ;; #(
1643b66d1acbSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1644b66d1acbSmrg      *) $as_unset $ac_var ;;
1645b66d1acbSmrg      esac ;;
1646b66d1acbSmrg    esac
1647b66d1acbSmrg  done
16484fb28925Smrg  (set) 2>&1 |
1649b66d1acbSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1650b66d1acbSmrg    *${as_nl}ac_space=\ *)
16514fb28925Smrg      sed -n \
1652b66d1acbSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1653b66d1acbSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1654b66d1acbSmrg      ;; #(
16554fb28925Smrg    *)
1656b66d1acbSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16574fb28925Smrg      ;;
1658b66d1acbSmrg    esac |
1659b66d1acbSmrg    sort
1660b66d1acbSmrg)
16614fb28925Smrg    echo
16624fb28925Smrg
16634fb28925Smrg    cat <<\_ASBOX
16644fb28925Smrg## ----------------- ##
16654fb28925Smrg## Output variables. ##
16664fb28925Smrg## ----------------- ##
16674fb28925Smrg_ASBOX
16684fb28925Smrg    echo
16694fb28925Smrg    for ac_var in $ac_subst_vars
16704fb28925Smrg    do
1671b66d1acbSmrg      eval ac_val=\$$ac_var
1672b66d1acbSmrg      case $ac_val in
1673b66d1acbSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1674b66d1acbSmrg      esac
1675b66d1acbSmrg      $as_echo "$ac_var='\''$ac_val'\''"
16764fb28925Smrg    done | sort
16774fb28925Smrg    echo
16784fb28925Smrg
16794fb28925Smrg    if test -n "$ac_subst_files"; then
16804fb28925Smrg      cat <<\_ASBOX
1681b66d1acbSmrg## ------------------- ##
1682b66d1acbSmrg## File substitutions. ##
1683b66d1acbSmrg## ------------------- ##
16844fb28925Smrg_ASBOX
16854fb28925Smrg      echo
16864fb28925Smrg      for ac_var in $ac_subst_files
16874fb28925Smrg      do
1688b66d1acbSmrg	eval ac_val=\$$ac_var
1689b66d1acbSmrg	case $ac_val in
1690b66d1acbSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1691b66d1acbSmrg	esac
1692b66d1acbSmrg	$as_echo "$ac_var='\''$ac_val'\''"
16934fb28925Smrg      done | sort
16944fb28925Smrg      echo
16954fb28925Smrg    fi
16964fb28925Smrg
16974fb28925Smrg    if test -s confdefs.h; then
16984fb28925Smrg      cat <<\_ASBOX
16994fb28925Smrg## ----------- ##
17004fb28925Smrg## confdefs.h. ##
17014fb28925Smrg## ----------- ##
17024fb28925Smrg_ASBOX
17034fb28925Smrg      echo
1704b66d1acbSmrg      cat confdefs.h
17054fb28925Smrg      echo
17064fb28925Smrg    fi
17074fb28925Smrg    test "$ac_signal" != 0 &&
1708b66d1acbSmrg      $as_echo "$as_me: caught signal $ac_signal"
1709b66d1acbSmrg    $as_echo "$as_me: exit $exit_status"
17104fb28925Smrg  } >&5
1711b66d1acbSmrg  rm -f core *.core core.conftest.* &&
1712b66d1acbSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17134fb28925Smrg    exit $exit_status
1714b66d1acbSmrg' 0
17154fb28925Smrgfor ac_signal in 1 2 13 15; do
17164fb28925Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17174fb28925Smrgdone
17184fb28925Smrgac_signal=0
17194fb28925Smrg
17204fb28925Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1721b66d1acbSmrgrm -f -r conftest* confdefs.h
17224fb28925Smrg
17234fb28925Smrg# Predefined preprocessor variables.
17244fb28925Smrg
17254fb28925Smrgcat >>confdefs.h <<_ACEOF
17264fb28925Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
17274fb28925Smrg_ACEOF
17284fb28925Smrg
17294fb28925Smrg
17304fb28925Smrgcat >>confdefs.h <<_ACEOF
17314fb28925Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17324fb28925Smrg_ACEOF
17334fb28925Smrg
17344fb28925Smrg
17354fb28925Smrgcat >>confdefs.h <<_ACEOF
17364fb28925Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17374fb28925Smrg_ACEOF
17384fb28925Smrg
17394fb28925Smrg
17404fb28925Smrgcat >>confdefs.h <<_ACEOF
17414fb28925Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
17424fb28925Smrg_ACEOF
17434fb28925Smrg
17444fb28925Smrg
17454fb28925Smrgcat >>confdefs.h <<_ACEOF
17464fb28925Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17474fb28925Smrg_ACEOF
17484fb28925Smrg
17494fb28925Smrg
17504fb28925Smrg# Let the site file select an alternate cache file if it wants to.
1751b66d1acbSmrg# Prefer an explicitly selected file to automatically selected ones.
1752b66d1acbSmrgac_site_file1=NONE
1753b66d1acbSmrgac_site_file2=NONE
1754b66d1acbSmrgif test -n "$CONFIG_SITE"; then
1755b66d1acbSmrg  ac_site_file1=$CONFIG_SITE
1756b66d1acbSmrgelif test "x$prefix" != xNONE; then
1757b66d1acbSmrg  ac_site_file1=$prefix/share/config.site
1758b66d1acbSmrg  ac_site_file2=$prefix/etc/config.site
1759b66d1acbSmrgelse
1760b66d1acbSmrg  ac_site_file1=$ac_default_prefix/share/config.site
1761b66d1acbSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
17624fb28925Smrgfi
1763b66d1acbSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1764b66d1acbSmrgdo
1765b66d1acbSmrg  test "x$ac_site_file" = xNONE && continue
17664fb28925Smrg  if test -r "$ac_site_file"; then
1767b66d1acbSmrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768b66d1acbSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17694fb28925Smrg    sed 's/^/| /' "$ac_site_file" >&5
17704fb28925Smrg    . "$ac_site_file"
17714fb28925Smrg  fi
17724fb28925Smrgdone
17734fb28925Smrg
17744fb28925Smrgif test -r "$cache_file"; then
17754fb28925Smrg  # Some versions of bash will fail to source /dev/null (special
17764fb28925Smrg  # files actually), so we avoid doing that.
17774fb28925Smrg  if test -f "$cache_file"; then
1778b66d1acbSmrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779b66d1acbSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
17804fb28925Smrg    case $cache_file in
1781b66d1acbSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782b66d1acbSmrg      *)                      . "./$cache_file";;
17834fb28925Smrg    esac
17844fb28925Smrg  fi
17854fb28925Smrgelse
1786b66d1acbSmrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787b66d1acbSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
17884fb28925Smrg  >$cache_file
17894fb28925Smrgfi
17904fb28925Smrg
17914fb28925Smrg# Check that the precious variables saved in the cache have kept the same
17924fb28925Smrg# value.
17934fb28925Smrgac_cache_corrupted=false
1794b66d1acbSmrgfor ac_var in $ac_precious_vars; do
17954fb28925Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
17964fb28925Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1797b66d1acbSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798b66d1acbSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
17994fb28925Smrg  case $ac_old_set,$ac_new_set in
18004fb28925Smrg    set,)
1801b66d1acbSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802b66d1acbSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18034fb28925Smrg      ac_cache_corrupted=: ;;
18044fb28925Smrg    ,set)
1805b66d1acbSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806b66d1acbSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18074fb28925Smrg      ac_cache_corrupted=: ;;
18084fb28925Smrg    ,);;
18094fb28925Smrg    *)
18104fb28925Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1811b66d1acbSmrg	# differences in whitespace do not lead to failure.
1812b66d1acbSmrg	ac_old_val_w=`echo x $ac_old_val`
1813b66d1acbSmrg	ac_new_val_w=`echo x $ac_new_val`
1814b66d1acbSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1815b66d1acbSmrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1816b66d1acbSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1817b66d1acbSmrg	  ac_cache_corrupted=:
1818b66d1acbSmrg	else
1819b66d1acbSmrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1820b66d1acbSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1821b66d1acbSmrg	  eval $ac_var=\$ac_old_val
1822b66d1acbSmrg	fi
1823b66d1acbSmrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1824b66d1acbSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1825b66d1acbSmrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1826b66d1acbSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18274fb28925Smrg      fi;;
18284fb28925Smrg  esac
18294fb28925Smrg  # Pass precious variables to config.status.
18304fb28925Smrg  if test "$ac_new_set" = set; then
18314fb28925Smrg    case $ac_new_val in
1832b66d1acbSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18334fb28925Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
18344fb28925Smrg    esac
18354fb28925Smrg    case " $ac_configure_args " in
18364fb28925Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18374fb28925Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18384fb28925Smrg    esac
18394fb28925Smrg  fi
18404fb28925Smrgdone
18414fb28925Smrgif $ac_cache_corrupted; then
1842b66d1acbSmrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1843b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1844b66d1acbSmrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845b66d1acbSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847b66d1acbSmrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18484fb28925Smrg   { (exit 1); exit 1; }; }
18494fb28925Smrgfi
18504fb28925Smrg
18514fb28925Smrg
18524fb28925Smrg
18534fb28925Smrg
18544fb28925Smrg
18554fb28925Smrg
18564fb28925Smrg
18574fb28925Smrg
18584fb28925Smrg
18594fb28925Smrg
18604fb28925Smrg
18614fb28925Smrg
18624fb28925Smrg
18634fb28925Smrg
18644fb28925Smrg
18654fb28925Smrg
18664fb28925Smrg
18674fb28925Smrg
18684fb28925Smrg
18694fb28925Smrg
18704fb28925Smrg
18714fb28925Smrg
18724fb28925Smrg
18734fb28925Smrg
18744fb28925Smrg
1875b66d1acbSmrgac_ext=c
1876b66d1acbSmrgac_cpp='$CPP $CPPFLAGS'
1877b66d1acbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878b66d1acbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879b66d1acbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
18804fb28925Smrg
18814fb28925Smrg
1882b66d1acbSmrgam__api_version='1.11'
18834fb28925Smrg
18844fb28925Smrgac_aux_dir=
1885b66d1acbSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1886b66d1acbSmrg  if test -f "$ac_dir/install-sh"; then
18874fb28925Smrg    ac_aux_dir=$ac_dir
18884fb28925Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
18894fb28925Smrg    break
1890b66d1acbSmrg  elif test -f "$ac_dir/install.sh"; then
18914fb28925Smrg    ac_aux_dir=$ac_dir
18924fb28925Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
18934fb28925Smrg    break
1894b66d1acbSmrg  elif test -f "$ac_dir/shtool"; then
18954fb28925Smrg    ac_aux_dir=$ac_dir
18964fb28925Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
18974fb28925Smrg    break
18984fb28925Smrg  fi
18994fb28925Smrgdone
19004fb28925Smrgif test -z "$ac_aux_dir"; then
1901b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1902b66d1acbSmrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19034fb28925Smrg   { (exit 1); exit 1; }; }
19044fb28925Smrgfi
1905b66d1acbSmrg
1906b66d1acbSmrg# These three variables are undocumented and unsupported,
1907b66d1acbSmrg# and are intended to be withdrawn in a future Autoconf release.
1908b66d1acbSmrg# They can cause serious problems if a builder's source tree is in a directory
1909b66d1acbSmrg# whose full name contains unusual characters.
1910b66d1acbSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1911b66d1acbSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1912b66d1acbSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1913b66d1acbSmrg
19144fb28925Smrg
19154fb28925Smrg# Find a good install program.  We prefer a C program (faster),
19164fb28925Smrg# so one script is as good as another.  But avoid the broken or
19174fb28925Smrg# incompatible versions:
19184fb28925Smrg# SysV /etc/install, /usr/sbin/install
19194fb28925Smrg# SunOS /usr/etc/install
19204fb28925Smrg# IRIX /sbin/install
19214fb28925Smrg# AIX /bin/install
19224fb28925Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19234fb28925Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19244fb28925Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19254fb28925Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19264fb28925Smrg# OS/2's system install, which has a completely different semantic
19274fb28925Smrg# ./install, which can be erroneously created by make from ./install.sh.
1928b66d1acbSmrg# Reject install programs that cannot install multiple files.
1929b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1930b66d1acbSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19314fb28925Smrgif test -z "$INSTALL"; then
19324fb28925Smrgif test "${ac_cv_path_install+set}" = set; then
1933b66d1acbSmrg  $as_echo_n "(cached) " >&6
19344fb28925Smrgelse
19354fb28925Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19364fb28925Smrgfor as_dir in $PATH
19374fb28925Smrgdo
19384fb28925Smrg  IFS=$as_save_IFS
19394fb28925Smrg  test -z "$as_dir" && as_dir=.
19404fb28925Smrg  # Account for people who put trailing slashes in PATH elements.
19414fb28925Smrgcase $as_dir/ in
19424fb28925Smrg  ./ | .// | /cC/* | \
19434fb28925Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19444fb28925Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19454fb28925Smrg  /usr/ucb/* ) ;;
19464fb28925Smrg  *)
19474fb28925Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19484fb28925Smrg    # Don't use installbsd from OSF since it installs stuff as root
19494fb28925Smrg    # by default.
19504fb28925Smrg    for ac_prog in ginstall scoinst install; do
19514fb28925Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
1952b66d1acbSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19534fb28925Smrg	  if test $ac_prog = install &&
19544fb28925Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19554fb28925Smrg	    # AIX install.  It has an incompatible calling convention.
19564fb28925Smrg	    :
19574fb28925Smrg	  elif test $ac_prog = install &&
19584fb28925Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19594fb28925Smrg	    # program-specific install script used by HP pwplus--don't use.
19604fb28925Smrg	    :
19614fb28925Smrg	  else
1962b66d1acbSmrg	    rm -rf conftest.one conftest.two conftest.dir
1963b66d1acbSmrg	    echo one > conftest.one
1964b66d1acbSmrg	    echo two > conftest.two
1965b66d1acbSmrg	    mkdir conftest.dir
1966b66d1acbSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1967b66d1acbSmrg	      test -s conftest.one && test -s conftest.two &&
1968b66d1acbSmrg	      test -s conftest.dir/conftest.one &&
1969b66d1acbSmrg	      test -s conftest.dir/conftest.two
1970b66d1acbSmrg	    then
1971b66d1acbSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1972b66d1acbSmrg	      break 3
1973b66d1acbSmrg	    fi
19744fb28925Smrg	  fi
19754fb28925Smrg	fi
19764fb28925Smrg      done
19774fb28925Smrg    done
19784fb28925Smrg    ;;
19794fb28925Smrgesac
1980b66d1acbSmrg
19814fb28925Smrgdone
1982b66d1acbSmrgIFS=$as_save_IFS
19834fb28925Smrg
1984b66d1acbSmrgrm -rf conftest.one conftest.two conftest.dir
19854fb28925Smrg
19864fb28925Smrgfi
19874fb28925Smrg  if test "${ac_cv_path_install+set}" = set; then
19884fb28925Smrg    INSTALL=$ac_cv_path_install
19894fb28925Smrg  else
1990b66d1acbSmrg    # As a last resort, use the slow shell script.  Don't cache a
1991b66d1acbSmrg    # value for INSTALL within a source directory, because that will
19924fb28925Smrg    # break other packages using the cache if that directory is
1993b66d1acbSmrg    # removed, or if the value is a relative name.
19944fb28925Smrg    INSTALL=$ac_install_sh
19954fb28925Smrg  fi
19964fb28925Smrgfi
1997b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1998b66d1acbSmrg$as_echo "$INSTALL" >&6; }
19994fb28925Smrg
20004fb28925Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20014fb28925Smrg# It thinks the first close brace ends the variable substitution.
20024fb28925Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20034fb28925Smrg
20044fb28925Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20054fb28925Smrg
20064fb28925Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20074fb28925Smrg
2008b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2009b66d1acbSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
20104fb28925Smrg# Just in case
20114fb28925Smrgsleep 1
20124fb28925Smrgecho timestamp > conftest.file
2013b66d1acbSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2014b66d1acbSmrg# name.  Accept space and tab only in the latter.
2015b66d1acbSmrgam_lf='
2016b66d1acbSmrg'
2017b66d1acbSmrgcase `pwd` in
2018b66d1acbSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2019b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2020b66d1acbSmrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2021b66d1acbSmrg   { (exit 1); exit 1; }; };;
2022b66d1acbSmrgesac
2023b66d1acbSmrgcase $srcdir in
2024b66d1acbSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2025b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2026b66d1acbSmrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2027b66d1acbSmrg   { (exit 1); exit 1; }; };;
2028b66d1acbSmrgesac
2029b66d1acbSmrg
20304fb28925Smrg# Do `set' in a subshell so we don't clobber the current shell's
20314fb28925Smrg# arguments.  Must try -L first in case configure is actually a
20324fb28925Smrg# symlink; some systems play weird games with the mod time of symlinks
20334fb28925Smrg# (eg FreeBSD returns the mod time of the symlink's containing
20344fb28925Smrg# directory).
20354fb28925Smrgif (
2036b66d1acbSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20374fb28925Smrg   if test "$*" = "X"; then
20384fb28925Smrg      # -L didn't work.
2039b66d1acbSmrg      set X `ls -t "$srcdir/configure" conftest.file`
20404fb28925Smrg   fi
20414fb28925Smrg   rm -f conftest.file
20424fb28925Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
20434fb28925Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20444fb28925Smrg
20454fb28925Smrg      # If neither matched, then we have a broken ls.  This can happen
20464fb28925Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20474fb28925Smrg      # broken ls alias from the environment.  This has actually
20484fb28925Smrg      # happened.  Such a system could not be considered "sane".
2049b66d1acbSmrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20504fb28925Smrgalias in your environment" >&5
2051b66d1acbSmrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20524fb28925Smrgalias in your environment" >&2;}
20534fb28925Smrg   { (exit 1); exit 1; }; }
20544fb28925Smrg   fi
20554fb28925Smrg
20564fb28925Smrg   test "$2" = conftest.file
20574fb28925Smrg   )
20584fb28925Smrgthen
20594fb28925Smrg   # Ok.
20604fb28925Smrg   :
20614fb28925Smrgelse
2062b66d1acbSmrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20634fb28925SmrgCheck your system clock" >&5
2064b66d1acbSmrg$as_echo "$as_me: error: newly created file is older than distributed files!
20654fb28925SmrgCheck your system clock" >&2;}
20664fb28925Smrg   { (exit 1); exit 1; }; }
20674fb28925Smrgfi
2068b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2069b66d1acbSmrg$as_echo "yes" >&6; }
20704fb28925Smrgtest "$program_prefix" != NONE &&
2071b66d1acbSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20724fb28925Smrg# Use a double $ so make ignores it.
20734fb28925Smrgtest "$program_suffix" != NONE &&
2074b66d1acbSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2075b66d1acbSmrg# Double any \ or $.
20764fb28925Smrg# By default was `s,x,x', remove it if useless.
2077b66d1acbSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2078b66d1acbSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
20794fb28925Smrg
20804fb28925Smrg# expand $ac_aux_dir to an absolute path
20814fb28925Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
20824fb28925Smrg
2083b66d1acbSmrgif test x"${MISSING+set}" != xset; then
2084b66d1acbSmrg  case $am_aux_dir in
2085b66d1acbSmrg  *\ * | *\	*)
2086b66d1acbSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2087b66d1acbSmrg  *)
2088b66d1acbSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2089b66d1acbSmrg  esac
2090b66d1acbSmrgfi
20914fb28925Smrg# Use eval to expand $SHELL
20924fb28925Smrgif eval "$MISSING --run true"; then
20934fb28925Smrg  am_missing_run="$MISSING --run "
20944fb28925Smrgelse
20954fb28925Smrg  am_missing_run=
2096b66d1acbSmrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2097b66d1acbSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2098b66d1acbSmrgfi
2099b66d1acbSmrg
2100b66d1acbSmrgif test x"${install_sh}" != xset; then
2101b66d1acbSmrg  case $am_aux_dir in
2102b66d1acbSmrg  *\ * | *\	*)
2103b66d1acbSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2104b66d1acbSmrg  *)
2105b66d1acbSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2106b66d1acbSmrg  esac
2107b66d1acbSmrgfi
2108b66d1acbSmrg
2109b66d1acbSmrg# Installed binaries are usually stripped using `strip' when the user
2110b66d1acbSmrg# run `make install-strip'.  However `strip' might not be the right
2111b66d1acbSmrg# tool to use in cross-compilation environments, therefore Automake
2112b66d1acbSmrg# will honor the `STRIP' environment variable to overrule this program.
2113b66d1acbSmrgif test "$cross_compiling" != no; then
2114b66d1acbSmrg  if test -n "$ac_tool_prefix"; then
2115b66d1acbSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116b66d1acbSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2117b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2118b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
2119b66d1acbSmrgif test "${ac_cv_prog_STRIP+set}" = set; then
2120b66d1acbSmrg  $as_echo_n "(cached) " >&6
2121b66d1acbSmrgelse
2122b66d1acbSmrg  if test -n "$STRIP"; then
2123b66d1acbSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124b66d1acbSmrgelse
2125b66d1acbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126b66d1acbSmrgfor as_dir in $PATH
2127b66d1acbSmrgdo
2128b66d1acbSmrg  IFS=$as_save_IFS
2129b66d1acbSmrg  test -z "$as_dir" && as_dir=.
2130b66d1acbSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
2131b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2132b66d1acbSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134b66d1acbSmrg    break 2
2135b66d1acbSmrg  fi
2136b66d1acbSmrgdone
2137b66d1acbSmrgdone
2138b66d1acbSmrgIFS=$as_save_IFS
2139b66d1acbSmrg
2140b66d1acbSmrgfi
2141b66d1acbSmrgfi
2142b66d1acbSmrgSTRIP=$ac_cv_prog_STRIP
2143b66d1acbSmrgif test -n "$STRIP"; then
2144b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2145b66d1acbSmrg$as_echo "$STRIP" >&6; }
2146b66d1acbSmrgelse
2147b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2148b66d1acbSmrg$as_echo "no" >&6; }
2149b66d1acbSmrgfi
2150b66d1acbSmrg
2151b66d1acbSmrg
2152b66d1acbSmrgfi
2153b66d1acbSmrgif test -z "$ac_cv_prog_STRIP"; then
2154b66d1acbSmrg  ac_ct_STRIP=$STRIP
2155b66d1acbSmrg  # Extract the first word of "strip", so it can be a program name with args.
2156b66d1acbSmrgset dummy strip; ac_word=$2
2157b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2158b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
2159b66d1acbSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2160b66d1acbSmrg  $as_echo_n "(cached) " >&6
2161b66d1acbSmrgelse
2162b66d1acbSmrg  if test -n "$ac_ct_STRIP"; then
2163b66d1acbSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2164b66d1acbSmrgelse
2165b66d1acbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166b66d1acbSmrgfor as_dir in $PATH
2167b66d1acbSmrgdo
2168b66d1acbSmrg  IFS=$as_save_IFS
2169b66d1acbSmrg  test -z "$as_dir" && as_dir=.
2170b66d1acbSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
2171b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172b66d1acbSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2173b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174b66d1acbSmrg    break 2
2175b66d1acbSmrg  fi
2176b66d1acbSmrgdone
2177b66d1acbSmrgdone
2178b66d1acbSmrgIFS=$as_save_IFS
2179b66d1acbSmrg
2180b66d1acbSmrgfi
2181b66d1acbSmrgfi
2182b66d1acbSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2183b66d1acbSmrgif test -n "$ac_ct_STRIP"; then
2184b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2185b66d1acbSmrg$as_echo "$ac_ct_STRIP" >&6; }
2186b66d1acbSmrgelse
2187b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2188b66d1acbSmrg$as_echo "no" >&6; }
2189b66d1acbSmrgfi
2190b66d1acbSmrg
2191b66d1acbSmrg  if test "x$ac_ct_STRIP" = x; then
2192b66d1acbSmrg    STRIP=":"
2193b66d1acbSmrg  else
2194b66d1acbSmrg    case $cross_compiling:$ac_tool_warned in
2195b66d1acbSmrgyes:)
2196b66d1acbSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2197b66d1acbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2198b66d1acbSmrgac_tool_warned=yes ;;
2199b66d1acbSmrgesac
2200b66d1acbSmrg    STRIP=$ac_ct_STRIP
2201b66d1acbSmrg  fi
2202b66d1acbSmrgelse
2203b66d1acbSmrg  STRIP="$ac_cv_prog_STRIP"
2204b66d1acbSmrgfi
2205b66d1acbSmrg
2206b66d1acbSmrgfi
2207b66d1acbSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2208b66d1acbSmrg
2209b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2210b66d1acbSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2211b66d1acbSmrgif test -z "$MKDIR_P"; then
2212b66d1acbSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2213b66d1acbSmrg  $as_echo_n "(cached) " >&6
2214b66d1acbSmrgelse
2215b66d1acbSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216b66d1acbSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2217b66d1acbSmrgdo
2218b66d1acbSmrg  IFS=$as_save_IFS
2219b66d1acbSmrg  test -z "$as_dir" && as_dir=.
2220b66d1acbSmrg  for ac_prog in mkdir gmkdir; do
2221b66d1acbSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2222b66d1acbSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2223b66d1acbSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2224b66d1acbSmrg	     'mkdir (GNU coreutils) '* | \
2225b66d1acbSmrg	     'mkdir (coreutils) '* | \
2226b66d1acbSmrg	     'mkdir (fileutils) '4.1*)
2227b66d1acbSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2228b66d1acbSmrg	       break 3;;
2229b66d1acbSmrg	   esac
2230b66d1acbSmrg	 done
2231b66d1acbSmrg       done
2232b66d1acbSmrgdone
2233b66d1acbSmrgIFS=$as_save_IFS
2234b66d1acbSmrg
2235b66d1acbSmrgfi
2236b66d1acbSmrg
2237b66d1acbSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2238b66d1acbSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2239b66d1acbSmrg  else
2240b66d1acbSmrg    # As a last resort, use the slow shell script.  Don't cache a
2241b66d1acbSmrg    # value for MKDIR_P within a source directory, because that will
2242b66d1acbSmrg    # break other packages using the cache if that directory is
2243b66d1acbSmrg    # removed, or if the value is a relative name.
2244b66d1acbSmrg    test -d ./--version && rmdir ./--version
2245b66d1acbSmrg    MKDIR_P="$ac_install_sh -d"
2246b66d1acbSmrg  fi
22474fb28925Smrgfi
2248b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2249b66d1acbSmrg$as_echo "$MKDIR_P" >&6; }
2250b66d1acbSmrg
2251b66d1acbSmrgmkdir_p="$MKDIR_P"
2252b66d1acbSmrgcase $mkdir_p in
2253b66d1acbSmrg  [\\/$]* | ?:[\\/]*) ;;
2254b66d1acbSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2255b66d1acbSmrgesac
22564fb28925Smrg
22574fb28925Smrgfor ac_prog in gawk mawk nawk awk
22584fb28925Smrgdo
22594fb28925Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22604fb28925Smrgset dummy $ac_prog; ac_word=$2
2261b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
22634fb28925Smrgif test "${ac_cv_prog_AWK+set}" = set; then
2264b66d1acbSmrg  $as_echo_n "(cached) " >&6
22654fb28925Smrgelse
22664fb28925Smrg  if test -n "$AWK"; then
22674fb28925Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22684fb28925Smrgelse
22694fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704fb28925Smrgfor as_dir in $PATH
22714fb28925Smrgdo
22724fb28925Smrg  IFS=$as_save_IFS
22734fb28925Smrg  test -z "$as_dir" && as_dir=.
22744fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2275b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22764fb28925Smrg    ac_cv_prog_AWK="$ac_prog"
2277b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22784fb28925Smrg    break 2
22794fb28925Smrg  fi
22804fb28925Smrgdone
22814fb28925Smrgdone
2282b66d1acbSmrgIFS=$as_save_IFS
22834fb28925Smrg
22844fb28925Smrgfi
22854fb28925Smrgfi
22864fb28925SmrgAWK=$ac_cv_prog_AWK
22874fb28925Smrgif test -n "$AWK"; then
2288b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2289b66d1acbSmrg$as_echo "$AWK" >&6; }
22904fb28925Smrgelse
2291b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2292b66d1acbSmrg$as_echo "no" >&6; }
22934fb28925Smrgfi
22944fb28925Smrg
2295b66d1acbSmrg
22964fb28925Smrg  test -n "$AWK" && break
22974fb28925Smrgdone
22984fb28925Smrg
2299b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2300b66d1acbSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2301b66d1acbSmrgset x ${MAKE-make}
2302b66d1acbSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2303b66d1acbSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2304b66d1acbSmrg  $as_echo_n "(cached) " >&6
23054fb28925Smrgelse
23064fb28925Smrg  cat >conftest.make <<\_ACEOF
2307b66d1acbSmrgSHELL = /bin/sh
23084fb28925Smrgall:
2309b66d1acbSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23104fb28925Smrg_ACEOF
23114fb28925Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2312b66d1acbSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2313b66d1acbSmrg  *@@@%%%=?*=@@@%%%*)
2314b66d1acbSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2315b66d1acbSmrg  *)
2316b66d1acbSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2317b66d1acbSmrgesac
23184fb28925Smrgrm -f conftest.make
23194fb28925Smrgfi
2320b66d1acbSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2321b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
2322b66d1acbSmrg$as_echo "yes" >&6; }
23234fb28925Smrg  SET_MAKE=
23244fb28925Smrgelse
2325b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2326b66d1acbSmrg$as_echo "no" >&6; }
23274fb28925Smrg  SET_MAKE="MAKE=${MAKE-make}"
23284fb28925Smrgfi
23294fb28925Smrg
23304fb28925Smrgrm -rf .tst 2>/dev/null
23314fb28925Smrgmkdir .tst 2>/dev/null
23324fb28925Smrgif test -d .tst; then
23334fb28925Smrg  am__leading_dot=.
23344fb28925Smrgelse
23354fb28925Smrg  am__leading_dot=_
23364fb28925Smrgfi
23374fb28925Smrgrmdir .tst 2>/dev/null
23384fb28925Smrg
2339b66d1acbSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2340b66d1acbSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2341b66d1acbSmrg  # is not polluted with repeated "-I."
2342b66d1acbSmrg  am__isrc=' -I$(srcdir)'
2343b66d1acbSmrg  # test to see if srcdir already configured
2344b66d1acbSmrg  if test -f $srcdir/config.status; then
2345b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2346b66d1acbSmrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23474fb28925Smrg   { (exit 1); exit 1; }; }
2348b66d1acbSmrg  fi
23494fb28925Smrgfi
23504fb28925Smrg
23514fb28925Smrg# test whether we have cygpath
23524fb28925Smrgif test -z "$CYGPATH_W"; then
23534fb28925Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23544fb28925Smrg    CYGPATH_W='cygpath -w'
23554fb28925Smrg  else
23564fb28925Smrg    CYGPATH_W=echo
23574fb28925Smrg  fi
23584fb28925Smrgfi
23594fb28925Smrg
23604fb28925Smrg
23614fb28925Smrg# Define the identity of the package.
23624fb28925Smrg PACKAGE='xkill'
2363b66d1acbSmrg VERSION='1.0.2'
23644fb28925Smrg
23654fb28925Smrg
23664fb28925Smrgcat >>confdefs.h <<_ACEOF
23674fb28925Smrg#define PACKAGE "$PACKAGE"
23684fb28925Smrg_ACEOF
23694fb28925Smrg
23704fb28925Smrg
23714fb28925Smrgcat >>confdefs.h <<_ACEOF
23724fb28925Smrg#define VERSION "$VERSION"
23734fb28925Smrg_ACEOF
23744fb28925Smrg
23754fb28925Smrg# Some tools Automake needs.
23764fb28925Smrg
23774fb28925SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23784fb28925Smrg
23794fb28925Smrg
23804fb28925SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23814fb28925Smrg
23824fb28925Smrg
23834fb28925SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23844fb28925Smrg
23854fb28925Smrg
23864fb28925SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23874fb28925Smrg
23884fb28925Smrg
23894fb28925SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23904fb28925Smrg
2391b66d1acbSmrg# We need awk for the "check" target.  The system "awk" is bad on
2392b66d1acbSmrg# some platforms.
2393b66d1acbSmrg# Always define AMTAR for backward compatibility.
23944fb28925Smrg
23954fb28925SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
23964fb28925Smrg
2397b66d1acbSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
23984fb28925Smrg
23994fb28925Smrg
24004fb28925Smrg
24014fb28925Smrg
24024fb28925Smrg
24034fb28925Smrg
2404b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2405b66d1acbSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2406b66d1acbSmrg    # Check whether --enable-maintainer-mode was given.
24074fb28925Smrgif test "${enable_maintainer_mode+set}" = set; then
2408b66d1acbSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24094fb28925Smrgelse
24104fb28925Smrg  USE_MAINTAINER_MODE=no
2411b66d1acbSmrgfi
24124fb28925Smrg
2413b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2414b66d1acbSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2415b66d1acbSmrg   if test $USE_MAINTAINER_MODE = yes; then
24164fb28925Smrg  MAINTAINER_MODE_TRUE=
24174fb28925Smrg  MAINTAINER_MODE_FALSE='#'
24184fb28925Smrgelse
24194fb28925Smrg  MAINTAINER_MODE_TRUE='#'
24204fb28925Smrg  MAINTAINER_MODE_FALSE=
24214fb28925Smrgfi
24224fb28925Smrg
24234fb28925Smrg  MAINT=$MAINTAINER_MODE_TRUE
24244fb28925Smrg
24254fb28925Smrg
24264fb28925Smrg
2427b66d1acbSmrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
24284fb28925Smrg
24294fb28925Smrg
2430b66d1acbSmrg
2431b66d1acbSmrg
2432b66d1acbSmrg
2433b66d1acbSmrg
2434b66d1acbSmrg
2435b66d1acbSmrg
2436b66d1acbSmrg
2437b66d1acbSmrg
2438b66d1acbSmrg
2439b66d1acbSmrg
2440b66d1acbSmrgac_config_headers="$ac_config_headers config.h"
2441b66d1acbSmrg
2442b66d1acbSmrg
2443b66d1acbSmrgac_ext=c
2444b66d1acbSmrgac_cpp='$CPP $CPPFLAGS'
2445b66d1acbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24464fb28925Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24474fb28925Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24484fb28925Smrgif test -n "$ac_tool_prefix"; then
24494fb28925Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24504fb28925Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2451b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2452b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
24534fb28925Smrgif test "${ac_cv_prog_CC+set}" = set; then
2454b66d1acbSmrg  $as_echo_n "(cached) " >&6
24554fb28925Smrgelse
24564fb28925Smrg  if test -n "$CC"; then
24574fb28925Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24584fb28925Smrgelse
24594fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604fb28925Smrgfor as_dir in $PATH
24614fb28925Smrgdo
24624fb28925Smrg  IFS=$as_save_IFS
24634fb28925Smrg  test -z "$as_dir" && as_dir=.
24644fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2465b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24664fb28925Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2467b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24684fb28925Smrg    break 2
24694fb28925Smrg  fi
24704fb28925Smrgdone
24714fb28925Smrgdone
2472b66d1acbSmrgIFS=$as_save_IFS
24734fb28925Smrg
24744fb28925Smrgfi
24754fb28925Smrgfi
24764fb28925SmrgCC=$ac_cv_prog_CC
24774fb28925Smrgif test -n "$CC"; then
2478b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2479b66d1acbSmrg$as_echo "$CC" >&6; }
24804fb28925Smrgelse
2481b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2482b66d1acbSmrg$as_echo "no" >&6; }
24834fb28925Smrgfi
24844fb28925Smrg
2485b66d1acbSmrg
24864fb28925Smrgfi
24874fb28925Smrgif test -z "$ac_cv_prog_CC"; then
24884fb28925Smrg  ac_ct_CC=$CC
24894fb28925Smrg  # Extract the first word of "gcc", so it can be a program name with args.
24904fb28925Smrgset dummy gcc; ac_word=$2
2491b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
24934fb28925Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2494b66d1acbSmrg  $as_echo_n "(cached) " >&6
24954fb28925Smrgelse
24964fb28925Smrg  if test -n "$ac_ct_CC"; then
24974fb28925Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24984fb28925Smrgelse
24994fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25004fb28925Smrgfor as_dir in $PATH
25014fb28925Smrgdo
25024fb28925Smrg  IFS=$as_save_IFS
25034fb28925Smrg  test -z "$as_dir" && as_dir=.
25044fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2505b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25064fb28925Smrg    ac_cv_prog_ac_ct_CC="gcc"
2507b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25084fb28925Smrg    break 2
25094fb28925Smrg  fi
25104fb28925Smrgdone
25114fb28925Smrgdone
2512b66d1acbSmrgIFS=$as_save_IFS
25134fb28925Smrg
25144fb28925Smrgfi
25154fb28925Smrgfi
25164fb28925Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25174fb28925Smrgif test -n "$ac_ct_CC"; then
2518b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2519b66d1acbSmrg$as_echo "$ac_ct_CC" >&6; }
25204fb28925Smrgelse
2521b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2522b66d1acbSmrg$as_echo "no" >&6; }
25234fb28925Smrgfi
25244fb28925Smrg
2525b66d1acbSmrg  if test "x$ac_ct_CC" = x; then
2526b66d1acbSmrg    CC=""
2527b66d1acbSmrg  else
2528b66d1acbSmrg    case $cross_compiling:$ac_tool_warned in
2529b66d1acbSmrgyes:)
2530b66d1acbSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2531b66d1acbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2532b66d1acbSmrgac_tool_warned=yes ;;
2533b66d1acbSmrgesac
2534b66d1acbSmrg    CC=$ac_ct_CC
2535b66d1acbSmrg  fi
25364fb28925Smrgelse
25374fb28925Smrg  CC="$ac_cv_prog_CC"
25384fb28925Smrgfi
25394fb28925Smrg
25404fb28925Smrgif test -z "$CC"; then
2541b66d1acbSmrg          if test -n "$ac_tool_prefix"; then
2542b66d1acbSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25434fb28925Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2544b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2545b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
25464fb28925Smrgif test "${ac_cv_prog_CC+set}" = set; then
2547b66d1acbSmrg  $as_echo_n "(cached) " >&6
25484fb28925Smrgelse
25494fb28925Smrg  if test -n "$CC"; then
25504fb28925Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25514fb28925Smrgelse
25524fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25534fb28925Smrgfor as_dir in $PATH
25544fb28925Smrgdo
25554fb28925Smrg  IFS=$as_save_IFS
25564fb28925Smrg  test -z "$as_dir" && as_dir=.
25574fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2558b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25594fb28925Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2560b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25614fb28925Smrg    break 2
25624fb28925Smrg  fi
25634fb28925Smrgdone
25644fb28925Smrgdone
2565b66d1acbSmrgIFS=$as_save_IFS
25664fb28925Smrg
25674fb28925Smrgfi
25684fb28925Smrgfi
25694fb28925SmrgCC=$ac_cv_prog_CC
25704fb28925Smrgif test -n "$CC"; then
2571b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2572b66d1acbSmrg$as_echo "$CC" >&6; }
25734fb28925Smrgelse
2574b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2575b66d1acbSmrg$as_echo "no" >&6; }
25764fb28925Smrgfi
25774fb28925Smrg
25784fb28925Smrg
2579b66d1acbSmrg  fi
25804fb28925Smrgfi
25814fb28925Smrgif test -z "$CC"; then
25824fb28925Smrg  # Extract the first word of "cc", so it can be a program name with args.
25834fb28925Smrgset dummy cc; ac_word=$2
2584b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2585b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
25864fb28925Smrgif test "${ac_cv_prog_CC+set}" = set; then
2587b66d1acbSmrg  $as_echo_n "(cached) " >&6
25884fb28925Smrgelse
25894fb28925Smrg  if test -n "$CC"; then
25904fb28925Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25914fb28925Smrgelse
25924fb28925Smrg  ac_prog_rejected=no
25934fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25944fb28925Smrgfor as_dir in $PATH
25954fb28925Smrgdo
25964fb28925Smrg  IFS=$as_save_IFS
25974fb28925Smrg  test -z "$as_dir" && as_dir=.
25984fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2599b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26004fb28925Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26014fb28925Smrg       ac_prog_rejected=yes
26024fb28925Smrg       continue
26034fb28925Smrg     fi
26044fb28925Smrg    ac_cv_prog_CC="cc"
2605b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26064fb28925Smrg    break 2
26074fb28925Smrg  fi
26084fb28925Smrgdone
26094fb28925Smrgdone
2610b66d1acbSmrgIFS=$as_save_IFS
26114fb28925Smrg
26124fb28925Smrgif test $ac_prog_rejected = yes; then
26134fb28925Smrg  # We found a bogon in the path, so make sure we never use it.
26144fb28925Smrg  set dummy $ac_cv_prog_CC
26154fb28925Smrg  shift
26164fb28925Smrg  if test $# != 0; then
26174fb28925Smrg    # We chose a different compiler from the bogus one.
26184fb28925Smrg    # However, it has the same basename, so the bogon will be chosen
26194fb28925Smrg    # first if we set CC to just the basename; use the full file name.
26204fb28925Smrg    shift
26214fb28925Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26224fb28925Smrg  fi
26234fb28925Smrgfi
26244fb28925Smrgfi
26254fb28925Smrgfi
26264fb28925SmrgCC=$ac_cv_prog_CC
26274fb28925Smrgif test -n "$CC"; then
2628b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2629b66d1acbSmrg$as_echo "$CC" >&6; }
26304fb28925Smrgelse
2631b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2632b66d1acbSmrg$as_echo "no" >&6; }
26334fb28925Smrgfi
26344fb28925Smrg
2635b66d1acbSmrg
26364fb28925Smrgfi
26374fb28925Smrgif test -z "$CC"; then
26384fb28925Smrg  if test -n "$ac_tool_prefix"; then
2639b66d1acbSmrg  for ac_prog in cl.exe
26404fb28925Smrg  do
26414fb28925Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26424fb28925Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
26454fb28925Smrgif test "${ac_cv_prog_CC+set}" = set; then
2646b66d1acbSmrg  $as_echo_n "(cached) " >&6
26474fb28925Smrgelse
26484fb28925Smrg  if test -n "$CC"; then
26494fb28925Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26504fb28925Smrgelse
26514fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26524fb28925Smrgfor as_dir in $PATH
26534fb28925Smrgdo
26544fb28925Smrg  IFS=$as_save_IFS
26554fb28925Smrg  test -z "$as_dir" && as_dir=.
26564fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2657b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26584fb28925Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2659b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604fb28925Smrg    break 2
26614fb28925Smrg  fi
26624fb28925Smrgdone
26634fb28925Smrgdone
2664b66d1acbSmrgIFS=$as_save_IFS
26654fb28925Smrg
26664fb28925Smrgfi
26674fb28925Smrgfi
26684fb28925SmrgCC=$ac_cv_prog_CC
26694fb28925Smrgif test -n "$CC"; then
2670b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2671b66d1acbSmrg$as_echo "$CC" >&6; }
26724fb28925Smrgelse
2673b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2674b66d1acbSmrg$as_echo "no" >&6; }
26754fb28925Smrgfi
26764fb28925Smrg
2677b66d1acbSmrg
26784fb28925Smrg    test -n "$CC" && break
26794fb28925Smrg  done
26804fb28925Smrgfi
26814fb28925Smrgif test -z "$CC"; then
26824fb28925Smrg  ac_ct_CC=$CC
2683b66d1acbSmrg  for ac_prog in cl.exe
26844fb28925Smrgdo
26854fb28925Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
26864fb28925Smrgset dummy $ac_prog; ac_word=$2
2687b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2688b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
26894fb28925Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2690b66d1acbSmrg  $as_echo_n "(cached) " >&6
26914fb28925Smrgelse
26924fb28925Smrg  if test -n "$ac_ct_CC"; then
26934fb28925Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
26944fb28925Smrgelse
26954fb28925Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26964fb28925Smrgfor as_dir in $PATH
26974fb28925Smrgdo
26984fb28925Smrg  IFS=$as_save_IFS
26994fb28925Smrg  test -z "$as_dir" && as_dir=.
27004fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2701b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27024fb28925Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2703b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27044fb28925Smrg    break 2
27054fb28925Smrg  fi
27064fb28925Smrgdone
27074fb28925Smrgdone
2708b66d1acbSmrgIFS=$as_save_IFS
27094fb28925Smrg
27104fb28925Smrgfi
27114fb28925Smrgfi
27124fb28925Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27134fb28925Smrgif test -n "$ac_ct_CC"; then
2714b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2715b66d1acbSmrg$as_echo "$ac_ct_CC" >&6; }
27164fb28925Smrgelse
2717b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2718b66d1acbSmrg$as_echo "no" >&6; }
27194fb28925Smrgfi
27204fb28925Smrg
2721b66d1acbSmrg
27224fb28925Smrg  test -n "$ac_ct_CC" && break
27234fb28925Smrgdone
27244fb28925Smrg
2725b66d1acbSmrg  if test "x$ac_ct_CC" = x; then
2726b66d1acbSmrg    CC=""
2727b66d1acbSmrg  else
2728b66d1acbSmrg    case $cross_compiling:$ac_tool_warned in
2729b66d1acbSmrgyes:)
2730b66d1acbSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2731b66d1acbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732b66d1acbSmrgac_tool_warned=yes ;;
2733b66d1acbSmrgesac
2734b66d1acbSmrg    CC=$ac_ct_CC
2735b66d1acbSmrg  fi
27364fb28925Smrgfi
27374fb28925Smrg
27384fb28925Smrgfi
27394fb28925Smrg
27404fb28925Smrg
2741b66d1acbSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2742b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27444fb28925SmrgSee \`config.log' for more details." >&5
2745b66d1acbSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27464fb28925SmrgSee \`config.log' for more details." >&2;}
2747b66d1acbSmrg   { (exit 1); exit 1; }; }; }
27484fb28925Smrg
27494fb28925Smrg# Provide some information about the compiler.
2750b66d1acbSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2751b66d1acbSmrgset X $ac_compile
2752b66d1acbSmrgac_compiler=$2
2753b66d1acbSmrg{ (ac_try="$ac_compiler --version >&5"
2754b66d1acbSmrgcase "(($ac_try" in
2755b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2757b66d1acbSmrgesac
2758b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2759b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2760b66d1acbSmrg  (eval "$ac_compiler --version >&5") 2>&5
27614fb28925Smrg  ac_status=$?
2762b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634fb28925Smrg  (exit $ac_status); }
2764b66d1acbSmrg{ (ac_try="$ac_compiler -v >&5"
2765b66d1acbSmrgcase "(($ac_try" in
2766b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2768b66d1acbSmrgesac
2769b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2771b66d1acbSmrg  (eval "$ac_compiler -v >&5") 2>&5
27724fb28925Smrg  ac_status=$?
2773b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744fb28925Smrg  (exit $ac_status); }
2775b66d1acbSmrg{ (ac_try="$ac_compiler -V >&5"
2776b66d1acbSmrgcase "(($ac_try" in
2777b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2779b66d1acbSmrgesac
2780b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2781b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2782b66d1acbSmrg  (eval "$ac_compiler -V >&5") 2>&5
27834fb28925Smrg  ac_status=$?
2784b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854fb28925Smrg  (exit $ac_status); }
27864fb28925Smrg
27874fb28925Smrgcat >conftest.$ac_ext <<_ACEOF
27884fb28925Smrg/* confdefs.h.  */
27894fb28925Smrg_ACEOF
27904fb28925Smrgcat confdefs.h >>conftest.$ac_ext
27914fb28925Smrgcat >>conftest.$ac_ext <<_ACEOF
27924fb28925Smrg/* end confdefs.h.  */
27934fb28925Smrg
27944fb28925Smrgint
27954fb28925Smrgmain ()
27964fb28925Smrg{
27974fb28925Smrg
27984fb28925Smrg  ;
27994fb28925Smrg  return 0;
28004fb28925Smrg}
28014fb28925Smrg_ACEOF
28024fb28925Smrgac_clean_files_save=$ac_clean_files
2803b66d1acbSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28044fb28925Smrg# Try to create an executable without -o first, disregard a.out.
28054fb28925Smrg# It will help us diagnose broken compilers, and finding out an intuition
28064fb28925Smrg# of exeext.
2807b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2808b66d1acbSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
2809b66d1acbSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2810b66d1acbSmrg
2811b66d1acbSmrg# The possible output files:
2812b66d1acbSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2813b66d1acbSmrg
2814b66d1acbSmrgac_rmfiles=
2815b66d1acbSmrgfor ac_file in $ac_files
2816b66d1acbSmrgdo
2817b66d1acbSmrg  case $ac_file in
2818b66d1acbSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2819b66d1acbSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820b66d1acbSmrg  esac
2821b66d1acbSmrgdone
2822b66d1acbSmrgrm -f $ac_rmfiles
2823b66d1acbSmrg
2824b66d1acbSmrgif { (ac_try="$ac_link_default"
2825b66d1acbSmrgcase "(($ac_try" in
2826b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2828b66d1acbSmrgesac
2829b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2830b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2831b66d1acbSmrg  (eval "$ac_link_default") 2>&5
28324fb28925Smrg  ac_status=$?
2833b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344fb28925Smrg  (exit $ac_status); }; then
2835b66d1acbSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2836b66d1acbSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2837b66d1acbSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2838b66d1acbSmrg# so that the user can short-circuit this test for compilers unknown to
2839b66d1acbSmrg# Autoconf.
2840b66d1acbSmrgfor ac_file in $ac_files ''
28414fb28925Smrgdo
28424fb28925Smrg  test -f "$ac_file" || continue
28434fb28925Smrg  case $ac_file in
2844b66d1acbSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28454fb28925Smrg	;;
28464fb28925Smrg    [ab].out )
28474fb28925Smrg	# We found the default executable, but exeext='' is most
28484fb28925Smrg	# certainly right.
28494fb28925Smrg	break;;
28504fb28925Smrg    *.* )
2851b66d1acbSmrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2852b66d1acbSmrg	then :; else
2853b66d1acbSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854b66d1acbSmrg	fi
2855b66d1acbSmrg	# We set ac_cv_exeext here because the later test for it is not
2856b66d1acbSmrg	# safe: cross compilers may not add the suffix if given an `-o'
2857b66d1acbSmrg	# argument, so we may need to know it at that point already.
2858b66d1acbSmrg	# Even if this section looks crufty: it has the advantage of
2859b66d1acbSmrg	# actually working.
28604fb28925Smrg	break;;
28614fb28925Smrg    * )
28624fb28925Smrg	break;;
28634fb28925Smrg  esac
28644fb28925Smrgdone
2865b66d1acbSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
2866b66d1acbSmrg
28674fb28925Smrgelse
2868b66d1acbSmrg  ac_file=''
2869b66d1acbSmrgfi
2870b66d1acbSmrg
2871b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2872b66d1acbSmrg$as_echo "$ac_file" >&6; }
2873b66d1acbSmrgif test -z "$ac_file"; then
2874b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
28754fb28925Smrgsed 's/^/| /' conftest.$ac_ext >&5
28764fb28925Smrg
2877b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2878b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
28804fb28925SmrgSee \`config.log' for more details." >&5
2881b66d1acbSmrg$as_echo "$as_me: error: C compiler cannot create executables
28824fb28925SmrgSee \`config.log' for more details." >&2;}
2883b66d1acbSmrg   { (exit 77); exit 77; }; }; }
28844fb28925Smrgfi
28854fb28925Smrg
28864fb28925Smrgac_exeext=$ac_cv_exeext
28874fb28925Smrg
2888b66d1acbSmrg# Check that the compiler produces executables we can run.  If not, either
28894fb28925Smrg# the compiler is broken, or we cross compile.
2890b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2891b66d1acbSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
28924fb28925Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28934fb28925Smrg# If not cross compiling, check that we can run a simple program.
28944fb28925Smrgif test "$cross_compiling" != yes; then
28954fb28925Smrg  if { ac_try='./$ac_file'
2896b66d1acbSmrg  { (case "(($ac_try" in
2897b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2899b66d1acbSmrgesac
2900b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2902b66d1acbSmrg  (eval "$ac_try") 2>&5
29034fb28925Smrg  ac_status=$?
2904b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054fb28925Smrg  (exit $ac_status); }; }; then
29064fb28925Smrg    cross_compiling=no
29074fb28925Smrg  else
29084fb28925Smrg    if test "$cross_compiling" = maybe; then
29094fb28925Smrg	cross_compiling=yes
29104fb28925Smrg    else
2911b66d1acbSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2912b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29144fb28925SmrgIf you meant to cross compile, use \`--host'.
29154fb28925SmrgSee \`config.log' for more details." >&5
2916b66d1acbSmrg$as_echo "$as_me: error: cannot run C compiled programs.
29174fb28925SmrgIf you meant to cross compile, use \`--host'.
29184fb28925SmrgSee \`config.log' for more details." >&2;}
2919b66d1acbSmrg   { (exit 1); exit 1; }; }; }
29204fb28925Smrg    fi
29214fb28925Smrg  fi
29224fb28925Smrgfi
2923b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2924b66d1acbSmrg$as_echo "yes" >&6; }
29254fb28925Smrg
2926b66d1acbSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29274fb28925Smrgac_clean_files=$ac_clean_files_save
2928b66d1acbSmrg# Check that the compiler produces executables we can run.  If not, either
29294fb28925Smrg# the compiler is broken, or we cross compile.
2930b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2931b66d1acbSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
2932b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2933b66d1acbSmrg$as_echo "$cross_compiling" >&6; }
2934b66d1acbSmrg
2935b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2936b66d1acbSmrg$as_echo_n "checking for suffix of executables... " >&6; }
2937b66d1acbSmrgif { (ac_try="$ac_link"
2938b66d1acbSmrgcase "(($ac_try" in
2939b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940b66d1acbSmrg  *) ac_try_echo=$ac_try;;
2941b66d1acbSmrgesac
2942b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943b66d1acbSmrg$as_echo "$ac_try_echo") >&5
2944b66d1acbSmrg  (eval "$ac_link") 2>&5
29454fb28925Smrg  ac_status=$?
2946b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474fb28925Smrg  (exit $ac_status); }; then
29484fb28925Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29494fb28925Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29504fb28925Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29514fb28925Smrg# `rm'.
29524fb28925Smrgfor ac_file in conftest.exe conftest conftest.*; do
29534fb28925Smrg  test -f "$ac_file" || continue
29544fb28925Smrg  case $ac_file in
2955b66d1acbSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29564fb28925Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29574fb28925Smrg	  break;;
29584fb28925Smrg    * ) break;;
29594fb28925Smrg  esac
29604fb28925Smrgdone
29614fb28925Smrgelse
2962b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2963b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29654fb28925SmrgSee \`config.log' for more details." >&5
2966b66d1acbSmrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29674fb28925SmrgSee \`config.log' for more details." >&2;}
2968b66d1acbSmrg   { (exit 1); exit 1; }; }; }
29694fb28925Smrgfi
29704fb28925Smrg
29714fb28925Smrgrm -f conftest$ac_cv_exeext
2972b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2973b66d1acbSmrg$as_echo "$ac_cv_exeext" >&6; }
29744fb28925Smrg
29754fb28925Smrgrm -f conftest.$ac_ext
29764fb28925SmrgEXEEXT=$ac_cv_exeext
29774fb28925Smrgac_exeext=$EXEEXT
2978b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2979b66d1acbSmrg$as_echo_n "checking for suffix of object files... " >&6; }
29804fb28925Smrgif test "${ac_cv_objext+set}" = set; then
2981b66d1acbSmrg  $as_echo_n "(cached) " >&6
29824fb28925Smrgelse
29834fb28925Smrg  cat >conftest.$ac_ext <<_ACEOF
29844fb28925Smrg/* confdefs.h.  */
29854fb28925Smrg_ACEOF
29864fb28925Smrgcat confdefs.h >>conftest.$ac_ext
29874fb28925Smrgcat >>conftest.$ac_ext <<_ACEOF
29884fb28925Smrg/* end confdefs.h.  */
29894fb28925Smrg
29904fb28925Smrgint
29914fb28925Smrgmain ()
29924fb28925Smrg{
29934fb28925Smrg
29944fb28925Smrg  ;
29954fb28925Smrg  return 0;
29964fb28925Smrg}
29974fb28925Smrg_ACEOF
29984fb28925Smrgrm -f conftest.o conftest.obj
2999b66d1acbSmrgif { (ac_try="$ac_compile"
3000b66d1acbSmrgcase "(($ac_try" in
3001b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3003b66d1acbSmrgesac
3004b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3006b66d1acbSmrg  (eval "$ac_compile") 2>&5
30074fb28925Smrg  ac_status=$?
3008b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094fb28925Smrg  (exit $ac_status); }; then
3010b66d1acbSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3011b66d1acbSmrg  test -f "$ac_file" || continue;
30124fb28925Smrg  case $ac_file in
3013b66d1acbSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30144fb28925Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30154fb28925Smrg       break;;
30164fb28925Smrg  esac
30174fb28925Smrgdone
30184fb28925Smrgelse
3019b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
30204fb28925Smrgsed 's/^/| /' conftest.$ac_ext >&5
30214fb28925Smrg
3022b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30254fb28925SmrgSee \`config.log' for more details." >&5
3026b66d1acbSmrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30274fb28925SmrgSee \`config.log' for more details." >&2;}
3028b66d1acbSmrg   { (exit 1); exit 1; }; }; }
30294fb28925Smrgfi
30304fb28925Smrg
30314fb28925Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30324fb28925Smrgfi
3033b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3034b66d1acbSmrg$as_echo "$ac_cv_objext" >&6; }
30354fb28925SmrgOBJEXT=$ac_cv_objext
30364fb28925Smrgac_objext=$OBJEXT
3037b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3038b66d1acbSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30394fb28925Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
3040b66d1acbSmrg  $as_echo_n "(cached) " >&6
30414fb28925Smrgelse
30424fb28925Smrg  cat >conftest.$ac_ext <<_ACEOF
30434fb28925Smrg/* confdefs.h.  */
30444fb28925Smrg_ACEOF
30454fb28925Smrgcat confdefs.h >>conftest.$ac_ext
30464fb28925Smrgcat >>conftest.$ac_ext <<_ACEOF
30474fb28925Smrg/* end confdefs.h.  */
30484fb28925Smrg
30494fb28925Smrgint
30504fb28925Smrgmain ()
30514fb28925Smrg{
30524fb28925Smrg#ifndef __GNUC__
30534fb28925Smrg       choke me
30544fb28925Smrg#endif
30554fb28925Smrg
30564fb28925Smrg  ;
30574fb28925Smrg  return 0;
30584fb28925Smrg}
30594fb28925Smrg_ACEOF
30604fb28925Smrgrm -f conftest.$ac_objext
3061b66d1acbSmrgif { (ac_try="$ac_compile"
3062b66d1acbSmrgcase "(($ac_try" in
3063b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3065b66d1acbSmrgesac
3066b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3068b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
30694fb28925Smrg  ac_status=$?
30704fb28925Smrg  grep -v '^ *+' conftest.er1 >conftest.err
30714fb28925Smrg  rm -f conftest.er1
30724fb28925Smrg  cat conftest.err >&5
3073b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074b66d1acbSmrg  (exit $ac_status); } && {
3075b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
3076b66d1acbSmrg	 test ! -s conftest.err
3077b66d1acbSmrg       } && test -s conftest.$ac_objext; then
30784fb28925Smrg  ac_compiler_gnu=yes
30794fb28925Smrgelse
3080b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
30814fb28925Smrgsed 's/^/| /' conftest.$ac_ext >&5
30824fb28925Smrg
3083b66d1acbSmrg	ac_compiler_gnu=no
30844fb28925Smrgfi
3085b66d1acbSmrg
3086b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30874fb28925Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
30884fb28925Smrg
30894fb28925Smrgfi
3090b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091b66d1acbSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3092b66d1acbSmrgif test $ac_compiler_gnu = yes; then
3093b66d1acbSmrg  GCC=yes
3094b66d1acbSmrgelse
3095b66d1acbSmrg  GCC=
3096b66d1acbSmrgfi
30974fb28925Smrgac_test_CFLAGS=${CFLAGS+set}
30984fb28925Smrgac_save_CFLAGS=$CFLAGS
3099b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3100b66d1acbSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31014fb28925Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
3102b66d1acbSmrg  $as_echo_n "(cached) " >&6
31034fb28925Smrgelse
3104b66d1acbSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3105b66d1acbSmrg   ac_c_werror_flag=yes
3106b66d1acbSmrg   ac_cv_prog_cc_g=no
3107b66d1acbSmrg   CFLAGS="-g"
3108b66d1acbSmrg   cat >conftest.$ac_ext <<_ACEOF
31094fb28925Smrg/* confdefs.h.  */
31104fb28925Smrg_ACEOF
31114fb28925Smrgcat confdefs.h >>conftest.$ac_ext
31124fb28925Smrgcat >>conftest.$ac_ext <<_ACEOF
31134fb28925Smrg/* end confdefs.h.  */
31144fb28925Smrg
31154fb28925Smrgint
31164fb28925Smrgmain ()
31174fb28925Smrg{
31184fb28925Smrg
31194fb28925Smrg  ;
31204fb28925Smrg  return 0;
31214fb28925Smrg}
31224fb28925Smrg_ACEOF
31234fb28925Smrgrm -f conftest.$ac_objext
3124b66d1acbSmrgif { (ac_try="$ac_compile"
3125b66d1acbSmrgcase "(($ac_try" in
3126b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3128b66d1acbSmrgesac
3129b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3131b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
31324fb28925Smrg  ac_status=$?
31334fb28925Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31344fb28925Smrg  rm -f conftest.er1
31354fb28925Smrg  cat conftest.err >&5
3136b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137b66d1acbSmrg  (exit $ac_status); } && {
3138b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
3139b66d1acbSmrg	 test ! -s conftest.err
3140b66d1acbSmrg       } && test -s conftest.$ac_objext; then
3141b66d1acbSmrg  ac_cv_prog_cc_g=yes
3142b66d1acbSmrgelse
3143b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3144b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3145b66d1acbSmrg
3146b66d1acbSmrg	CFLAGS=""
3147b66d1acbSmrg      cat >conftest.$ac_ext <<_ACEOF
3148b66d1acbSmrg/* confdefs.h.  */
3149b66d1acbSmrg_ACEOF
3150b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3151b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3152b66d1acbSmrg/* end confdefs.h.  */
3153b66d1acbSmrg
3154b66d1acbSmrgint
3155b66d1acbSmrgmain ()
3156b66d1acbSmrg{
3157b66d1acbSmrg
3158b66d1acbSmrg  ;
3159b66d1acbSmrg  return 0;
3160b66d1acbSmrg}
3161b66d1acbSmrg_ACEOF
3162b66d1acbSmrgrm -f conftest.$ac_objext
3163b66d1acbSmrgif { (ac_try="$ac_compile"
3164b66d1acbSmrgcase "(($ac_try" in
3165b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3167b66d1acbSmrgesac
3168b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3170b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
31714fb28925Smrg  ac_status=$?
3172b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3173b66d1acbSmrg  rm -f conftest.er1
3174b66d1acbSmrg  cat conftest.err >&5
3175b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176b66d1acbSmrg  (exit $ac_status); } && {
3177b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
3178b66d1acbSmrg	 test ! -s conftest.err
3179b66d1acbSmrg       } && test -s conftest.$ac_objext; then
3180b66d1acbSmrg  :
3181b66d1acbSmrgelse
3182b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3183b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3184b66d1acbSmrg
3185b66d1acbSmrg	ac_c_werror_flag=$ac_save_c_werror_flag
3186b66d1acbSmrg	 CFLAGS="-g"
3187b66d1acbSmrg	 cat >conftest.$ac_ext <<_ACEOF
3188b66d1acbSmrg/* confdefs.h.  */
3189b66d1acbSmrg_ACEOF
3190b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3191b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3192b66d1acbSmrg/* end confdefs.h.  */
3193b66d1acbSmrg
3194b66d1acbSmrgint
3195b66d1acbSmrgmain ()
3196b66d1acbSmrg{
3197b66d1acbSmrg
3198b66d1acbSmrg  ;
3199b66d1acbSmrg  return 0;
3200b66d1acbSmrg}
3201b66d1acbSmrg_ACEOF
3202b66d1acbSmrgrm -f conftest.$ac_objext
3203b66d1acbSmrgif { (ac_try="$ac_compile"
3204b66d1acbSmrgcase "(($ac_try" in
3205b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3207b66d1acbSmrgesac
3208b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3210b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
32114fb28925Smrg  ac_status=$?
3212b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3213b66d1acbSmrg  rm -f conftest.er1
3214b66d1acbSmrg  cat conftest.err >&5
3215b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216b66d1acbSmrg  (exit $ac_status); } && {
3217b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
3218b66d1acbSmrg	 test ! -s conftest.err
3219b66d1acbSmrg       } && test -s conftest.$ac_objext; then
32204fb28925Smrg  ac_cv_prog_cc_g=yes
32214fb28925Smrgelse
3222b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
32234fb28925Smrgsed 's/^/| /' conftest.$ac_ext >&5
32244fb28925Smrg
3225b66d1acbSmrg
3226b66d1acbSmrgfi
3227b66d1acbSmrg
3228b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32294fb28925Smrgfi
3230b66d1acbSmrg
3231b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232b66d1acbSmrgfi
3233b66d1acbSmrg
3234b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235b66d1acbSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
32364fb28925Smrgfi
3237b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238b66d1acbSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32394fb28925Smrgif test "$ac_test_CFLAGS" = set; then
32404fb28925Smrg  CFLAGS=$ac_save_CFLAGS
32414fb28925Smrgelif test $ac_cv_prog_cc_g = yes; then
32424fb28925Smrg  if test "$GCC" = yes; then
32434fb28925Smrg    CFLAGS="-g -O2"
32444fb28925Smrg  else
32454fb28925Smrg    CFLAGS="-g"
32464fb28925Smrg  fi
32474fb28925Smrgelse
32484fb28925Smrg  if test "$GCC" = yes; then
32494fb28925Smrg    CFLAGS="-O2"
32504fb28925Smrg  else
32514fb28925Smrg    CFLAGS=
32524fb28925Smrg  fi
32534fb28925Smrgfi
3254b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255b66d1acbSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256b66d1acbSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then
3257b66d1acbSmrg  $as_echo_n "(cached) " >&6
32584fb28925Smrgelse
3259b66d1acbSmrg  ac_cv_prog_cc_c89=no
32604fb28925Smrgac_save_CC=$CC
32614fb28925Smrgcat >conftest.$ac_ext <<_ACEOF
32624fb28925Smrg/* confdefs.h.  */
32634fb28925Smrg_ACEOF
32644fb28925Smrgcat confdefs.h >>conftest.$ac_ext
32654fb28925Smrgcat >>conftest.$ac_ext <<_ACEOF
32664fb28925Smrg/* end confdefs.h.  */
32674fb28925Smrg#include <stdarg.h>
32684fb28925Smrg#include <stdio.h>
32694fb28925Smrg#include <sys/types.h>
32704fb28925Smrg#include <sys/stat.h>
32714fb28925Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32724fb28925Smrgstruct buf { int x; };
32734fb28925SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32744fb28925Smrgstatic char *e (p, i)
32754fb28925Smrg     char **p;
32764fb28925Smrg     int i;
32774fb28925Smrg{
32784fb28925Smrg  return p[i];
32794fb28925Smrg}
32804fb28925Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
32814fb28925Smrg{
32824fb28925Smrg  char *s;
32834fb28925Smrg  va_list v;
32844fb28925Smrg  va_start (v,p);
32854fb28925Smrg  s = g (p, va_arg (v,int));
32864fb28925Smrg  va_end (v);
32874fb28925Smrg  return s;
32884fb28925Smrg}
32894fb28925Smrg
32904fb28925Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
32914fb28925Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
32924fb28925Smrg   These don't provoke an error unfortunately, instead are silently treated
3293b66d1acbSmrg   as 'x'.  The following induces an error, until -std is added to get
32944fb28925Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
32954fb28925Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3296b66d1acbSmrg   that's true only with -std.  */
32974fb28925Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
32984fb28925Smrg
3299b66d1acbSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300b66d1acbSmrg   inside strings and character constants.  */
3301b66d1acbSmrg#define FOO(x) 'x'
3302b66d1acbSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303b66d1acbSmrg
33044fb28925Smrgint test (int i, double x);
33054fb28925Smrgstruct s1 {int (*f) (int a);};
33064fb28925Smrgstruct s2 {int (*f) (double a);};
33074fb28925Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33084fb28925Smrgint argc;
33094fb28925Smrgchar **argv;
33104fb28925Smrgint
33114fb28925Smrgmain ()
33124fb28925Smrg{
33134fb28925Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33144fb28925Smrg  ;
33154fb28925Smrg  return 0;
33164fb28925Smrg}
33174fb28925Smrg_ACEOF
3318b66d1acbSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319b66d1acbSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33204fb28925Smrgdo
33214fb28925Smrg  CC="$ac_save_CC $ac_arg"
33224fb28925Smrg  rm -f conftest.$ac_objext
3323b66d1acbSmrgif { (ac_try="$ac_compile"
3324b66d1acbSmrgcase "(($ac_try" in
3325b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3327b66d1acbSmrgesac
3328b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3330b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
33314fb28925Smrg  ac_status=$?
33324fb28925Smrg  grep -v '^ *+' conftest.er1 >conftest.err
33334fb28925Smrg  rm -f conftest.er1
33344fb28925Smrg  cat conftest.err >&5
3335b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336b66d1acbSmrg  (exit $ac_status); } && {
3337b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
3338b66d1acbSmrg	 test ! -s conftest.err
3339b66d1acbSmrg       } && test -s conftest.$ac_objext; then
3340b66d1acbSmrg  ac_cv_prog_cc_c89=$ac_arg
33414fb28925Smrgelse
3342b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
33434fb28925Smrgsed 's/^/| /' conftest.$ac_ext >&5
33444fb28925Smrg
3345b66d1acbSmrg
33464fb28925Smrgfi
3347b66d1acbSmrg
3348b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext
3349b66d1acbSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33504fb28925Smrgdone
3351b66d1acbSmrgrm -f conftest.$ac_ext
33524fb28925SmrgCC=$ac_save_CC
33534fb28925Smrg
33544fb28925Smrgfi
3355b66d1acbSmrg# AC_CACHE_VAL
3356b66d1acbSmrgcase "x$ac_cv_prog_cc_c89" in
3357b66d1acbSmrg  x)
3358b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3359b66d1acbSmrg$as_echo "none needed" >&6; } ;;
3360b66d1acbSmrg  xno)
3361b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3362b66d1acbSmrg$as_echo "unsupported" >&6; } ;;
33634fb28925Smrg  *)
3364b66d1acbSmrg    CC="$CC $ac_cv_prog_cc_c89"
3365b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366b66d1acbSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33674fb28925Smrgesac
33684fb28925Smrg
33694fb28925Smrg
33704fb28925Smrgac_ext=c
33714fb28925Smrgac_cpp='$CPP $CPPFLAGS'
33724fb28925Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33734fb28925Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33744fb28925Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33754fb28925SmrgDEPDIR="${am__leading_dot}deps"
33764fb28925Smrg
3377b66d1acbSmrgac_config_commands="$ac_config_commands depfiles"
33784fb28925Smrg
33794fb28925Smrg
33804fb28925Smrgam_make=${MAKE-make}
33814fb28925Smrgcat > confinc << 'END'
33824fb28925Smrgam__doit:
3383b66d1acbSmrg	@echo this is the am__doit target
33844fb28925Smrg.PHONY: am__doit
33854fb28925SmrgEND
33864fb28925Smrg# If we don't find an include directive, just comment out the code.
3387b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388b66d1acbSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
33894fb28925Smrgam__include="#"
33904fb28925Smrgam__quote=
33914fb28925Smrg_am_result=none
33924fb28925Smrg# First try GNU make style include.
33934fb28925Smrgecho "include confinc" > confmf
3394b66d1acbSmrg# Ignore all kinds of additional output from `make'.
3395b66d1acbSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3396b66d1acbSmrg*the\ am__doit\ target*)
3397b66d1acbSmrg  am__include=include
3398b66d1acbSmrg  am__quote=
3399b66d1acbSmrg  _am_result=GNU
3400b66d1acbSmrg  ;;
3401b66d1acbSmrgesac
34024fb28925Smrg# Now try BSD make style include.
34034fb28925Smrgif test "$am__include" = "#"; then
34044fb28925Smrg   echo '.include "confinc"' > confmf
3405b66d1acbSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3406b66d1acbSmrg   *the\ am__doit\ target*)
3407b66d1acbSmrg     am__include=.include
3408b66d1acbSmrg     am__quote="\""
3409b66d1acbSmrg     _am_result=BSD
3410b66d1acbSmrg     ;;
3411b66d1acbSmrg   esac
34124fb28925Smrgfi
34134fb28925Smrg
34144fb28925Smrg
3415b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3416b66d1acbSmrg$as_echo "$_am_result" >&6; }
34174fb28925Smrgrm -f confinc confmf
34184fb28925Smrg
3419b66d1acbSmrg# Check whether --enable-dependency-tracking was given.
34204fb28925Smrgif test "${enable_dependency_tracking+set}" = set; then
3421b66d1acbSmrg  enableval=$enable_dependency_tracking;
3422b66d1acbSmrgfi
34234fb28925Smrg
34244fb28925Smrgif test "x$enable_dependency_tracking" != xno; then
34254fb28925Smrg  am_depcomp="$ac_aux_dir/depcomp"
34264fb28925Smrg  AMDEPBACKSLASH='\'
34274fb28925Smrgfi
3428b66d1acbSmrg if test "x$enable_dependency_tracking" != xno; then
34294fb28925Smrg  AMDEP_TRUE=
34304fb28925Smrg  AMDEP_FALSE='#'
34314fb28925Smrgelse
34324fb28925Smrg  AMDEP_TRUE='#'
34334fb28925Smrg  AMDEP_FALSE=
34344fb28925Smrgfi
34354fb28925Smrg
34364fb28925Smrg
34374fb28925Smrg
34384fb28925Smrgdepcc="$CC"   am_compiler_list=
34394fb28925Smrg
3440b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441b66d1acbSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34424fb28925Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443b66d1acbSmrg  $as_echo_n "(cached) " >&6
34444fb28925Smrgelse
34454fb28925Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34464fb28925Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34474fb28925Smrg  # making bogus files that we don't know about and never remove.  For
34484fb28925Smrg  # instance it was reported that on HP-UX the gcc test will end up
34494fb28925Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34504fb28925Smrg  # in D'.
34514fb28925Smrg  mkdir conftest.dir
34524fb28925Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34534fb28925Smrg  # using a relative directory.
34544fb28925Smrg  cp "$am_depcomp" conftest.dir
34554fb28925Smrg  cd conftest.dir
34564fb28925Smrg  # We will build objects and dependencies in a subdirectory because
34574fb28925Smrg  # it helps to detect inapplicable dependency modes.  For instance
34584fb28925Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34594fb28925Smrg  # side effect of compilation, but ICC will put the dependencies in
34604fb28925Smrg  # the current directory while Tru64 will put them in the object
34614fb28925Smrg  # directory.
34624fb28925Smrg  mkdir sub
34634fb28925Smrg
34644fb28925Smrg  am_cv_CC_dependencies_compiler_type=none
34654fb28925Smrg  if test "$am_compiler_list" = ""; then
34664fb28925Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34674fb28925Smrg  fi
3468b66d1acbSmrg  am__universal=false
3469b66d1acbSmrg  case " $depcc " in #(
3470b66d1acbSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3471b66d1acbSmrg     esac
3472b66d1acbSmrg
34734fb28925Smrg  for depmode in $am_compiler_list; do
34744fb28925Smrg    # Setup a source with many dependencies, because some compilers
34754fb28925Smrg    # like to wrap large dependency lists on column 80 (with \), and
34764fb28925Smrg    # we should not choose a depcomp mode which is confused by this.
34774fb28925Smrg    #
34784fb28925Smrg    # We need to recreate these files for each test, as the compiler may
34794fb28925Smrg    # overwrite some of them when testing with obscure command lines.
34804fb28925Smrg    # This happens at least with the AIX C compiler.
34814fb28925Smrg    : > sub/conftest.c
34824fb28925Smrg    for i in 1 2 3 4 5 6; do
34834fb28925Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3484b66d1acbSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3485b66d1acbSmrg      # Solaris 8's {/usr,}/bin/sh.
3486b66d1acbSmrg      touch sub/conftst$i.h
34874fb28925Smrg    done
34884fb28925Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34894fb28925Smrg
3490b66d1acbSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491b66d1acbSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3492b66d1acbSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3493b66d1acbSmrg    # versions had trouble with output in subdirs
3494b66d1acbSmrg    am__obj=sub/conftest.${OBJEXT-o}
3495b66d1acbSmrg    am__minus_obj="-o $am__obj"
34964fb28925Smrg    case $depmode in
3497b66d1acbSmrg    gcc)
3498b66d1acbSmrg      # This depmode causes a compiler race in universal mode.
3499b66d1acbSmrg      test "$am__universal" = false || continue
3500b66d1acbSmrg      ;;
35014fb28925Smrg    nosideeffect)
35024fb28925Smrg      # after this tag, mechanisms are not by side-effect, so they'll
35034fb28925Smrg      # only be used when explicitly requested
35044fb28925Smrg      if test "x$enable_dependency_tracking" = xyes; then
35054fb28925Smrg	continue
35064fb28925Smrg      else
35074fb28925Smrg	break
35084fb28925Smrg      fi
35094fb28925Smrg      ;;
3510b66d1acbSmrg    msvisualcpp | msvcmsys)
3511b66d1acbSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3512b66d1acbSmrg      # not run yet.  These depmodes are late enough in the game, and
3513b66d1acbSmrg      # so weak that their functioning should not be impacted.
3514b66d1acbSmrg      am__obj=conftest.${OBJEXT-o}
3515b66d1acbSmrg      am__minus_obj=
3516b66d1acbSmrg      ;;
35174fb28925Smrg    none) break ;;
35184fb28925Smrg    esac
35194fb28925Smrg    if depmode=$depmode \
3520b66d1acbSmrg       source=sub/conftest.c object=$am__obj \
35214fb28925Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3522b66d1acbSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35234fb28925Smrg         >/dev/null 2>conftest.err &&
3524b66d1acbSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35254fb28925Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526b66d1acbSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35274fb28925Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35284fb28925Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3529b66d1acbSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3530b66d1acbSmrg      # that says an option was ignored or not supported.
3531b66d1acbSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3532b66d1acbSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3533b66d1acbSmrg      # The diagnosis changed in icc 8.0:
3534b66d1acbSmrg      #   icc: Command line remark: option '-MP' not supported
3535b66d1acbSmrg      if (grep 'ignoring option' conftest.err ||
3536b66d1acbSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35374fb28925Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35384fb28925Smrg        break
35394fb28925Smrg      fi
35404fb28925Smrg    fi
35414fb28925Smrg  done
35424fb28925Smrg
35434fb28925Smrg  cd ..
35444fb28925Smrg  rm -rf conftest.dir
35454fb28925Smrgelse
35464fb28925Smrg  am_cv_CC_dependencies_compiler_type=none
35474fb28925Smrgfi
35484fb28925Smrg
35494fb28925Smrgfi
3550b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3551b66d1acbSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35524fb28925SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35534fb28925Smrg
3554b66d1acbSmrg if
35554fb28925Smrg  test "x$enable_dependency_tracking" != xno \
35564fb28925Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35574fb28925Smrg  am__fastdepCC_TRUE=
35584fb28925Smrg  am__fastdepCC_FALSE='#'
35594fb28925Smrgelse
35604fb28925Smrg  am__fastdepCC_TRUE='#'
35614fb28925Smrg  am__fastdepCC_FALSE=
35624fb28925Smrgfi
35634fb28925Smrg
35644fb28925Smrg
35654fb28925Smrg# Find a good install program.  We prefer a C program (faster),
35664fb28925Smrg# so one script is as good as another.  But avoid the broken or
35674fb28925Smrg# incompatible versions:
35684fb28925Smrg# SysV /etc/install, /usr/sbin/install
35694fb28925Smrg# SunOS /usr/etc/install
35704fb28925Smrg# IRIX /sbin/install
35714fb28925Smrg# AIX /bin/install
35724fb28925Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35734fb28925Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35744fb28925Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35754fb28925Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35764fb28925Smrg# OS/2's system install, which has a completely different semantic
35774fb28925Smrg# ./install, which can be erroneously created by make from ./install.sh.
3578b66d1acbSmrg# Reject install programs that cannot install multiple files.
3579b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3580b66d1acbSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
35814fb28925Smrgif test -z "$INSTALL"; then
35824fb28925Smrgif test "${ac_cv_path_install+set}" = set; then
3583b66d1acbSmrg  $as_echo_n "(cached) " >&6
35844fb28925Smrgelse
35854fb28925Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35864fb28925Smrgfor as_dir in $PATH
35874fb28925Smrgdo
35884fb28925Smrg  IFS=$as_save_IFS
35894fb28925Smrg  test -z "$as_dir" && as_dir=.
35904fb28925Smrg  # Account for people who put trailing slashes in PATH elements.
35914fb28925Smrgcase $as_dir/ in
35924fb28925Smrg  ./ | .// | /cC/* | \
35934fb28925Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35944fb28925Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
35954fb28925Smrg  /usr/ucb/* ) ;;
35964fb28925Smrg  *)
35974fb28925Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
35984fb28925Smrg    # Don't use installbsd from OSF since it installs stuff as root
35994fb28925Smrg    # by default.
36004fb28925Smrg    for ac_prog in ginstall scoinst install; do
36014fb28925Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3602b66d1acbSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36034fb28925Smrg	  if test $ac_prog = install &&
36044fb28925Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36054fb28925Smrg	    # AIX install.  It has an incompatible calling convention.
36064fb28925Smrg	    :
36074fb28925Smrg	  elif test $ac_prog = install &&
36084fb28925Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36094fb28925Smrg	    # program-specific install script used by HP pwplus--don't use.
36104fb28925Smrg	    :
36114fb28925Smrg	  else
3612b66d1acbSmrg	    rm -rf conftest.one conftest.two conftest.dir
3613b66d1acbSmrg	    echo one > conftest.one
3614b66d1acbSmrg	    echo two > conftest.two
3615b66d1acbSmrg	    mkdir conftest.dir
3616b66d1acbSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3617b66d1acbSmrg	      test -s conftest.one && test -s conftest.two &&
3618b66d1acbSmrg	      test -s conftest.dir/conftest.one &&
3619b66d1acbSmrg	      test -s conftest.dir/conftest.two
3620b66d1acbSmrg	    then
3621b66d1acbSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3622b66d1acbSmrg	      break 3
3623b66d1acbSmrg	    fi
36244fb28925Smrg	  fi
36254fb28925Smrg	fi
36264fb28925Smrg      done
36274fb28925Smrg    done
36284fb28925Smrg    ;;
36294fb28925Smrgesac
3630b66d1acbSmrg
36314fb28925Smrgdone
3632b66d1acbSmrgIFS=$as_save_IFS
36334fb28925Smrg
3634b66d1acbSmrgrm -rf conftest.one conftest.two conftest.dir
36354fb28925Smrg
36364fb28925Smrgfi
36374fb28925Smrg  if test "${ac_cv_path_install+set}" = set; then
36384fb28925Smrg    INSTALL=$ac_cv_path_install
36394fb28925Smrg  else
3640b66d1acbSmrg    # As a last resort, use the slow shell script.  Don't cache a
3641b66d1acbSmrg    # value for INSTALL within a source directory, because that will
36424fb28925Smrg    # break other packages using the cache if that directory is
3643b66d1acbSmrg    # removed, or if the value is a relative name.
36444fb28925Smrg    INSTALL=$ac_install_sh
36454fb28925Smrg  fi
36464fb28925Smrgfi
3647b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3648b66d1acbSmrg$as_echo "$INSTALL" >&6; }
36494fb28925Smrg
36504fb28925Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36514fb28925Smrg# It thinks the first close brace ends the variable substitution.
36524fb28925Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36534fb28925Smrg
36544fb28925Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36554fb28925Smrg
36564fb28925Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36574fb28925Smrg
36584fb28925Smrg
36594fb28925Smrg
3660b66d1acbSmrgac_ext=c
3661b66d1acbSmrgac_cpp='$CPP $CPPFLAGS'
3662b66d1acbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663b66d1acbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664b66d1acbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3665b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3666b66d1acbSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3667b66d1acbSmrg# On Suns, sometimes $CPP names a directory.
3668b66d1acbSmrgif test -n "$CPP" && test -d "$CPP"; then
3669b66d1acbSmrg  CPP=
3670b66d1acbSmrgfi
3671b66d1acbSmrgif test -z "$CPP"; then
3672b66d1acbSmrg  if test "${ac_cv_prog_CPP+set}" = set; then
3673b66d1acbSmrg  $as_echo_n "(cached) " >&6
3674b66d1acbSmrgelse
3675b66d1acbSmrg      # Double quotes because CPP needs to be expanded
3676b66d1acbSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677b66d1acbSmrg    do
3678b66d1acbSmrg      ac_preproc_ok=false
3679b66d1acbSmrgfor ac_c_preproc_warn_flag in '' yes
3680b66d1acbSmrgdo
3681b66d1acbSmrg  # Use a header file that comes with gcc, so configuring glibc
3682b66d1acbSmrg  # with a fresh cross-compiler works.
3683b66d1acbSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684b66d1acbSmrg  # <limits.h> exists even on freestanding compilers.
3685b66d1acbSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3686b66d1acbSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3687b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
3688b66d1acbSmrg/* confdefs.h.  */
3689b66d1acbSmrg_ACEOF
3690b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3691b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3692b66d1acbSmrg/* end confdefs.h.  */
3693b66d1acbSmrg#ifdef __STDC__
3694b66d1acbSmrg# include <limits.h>
3695b66d1acbSmrg#else
3696b66d1acbSmrg# include <assert.h>
3697b66d1acbSmrg#endif
3698b66d1acbSmrg		     Syntax error
3699b66d1acbSmrg_ACEOF
3700b66d1acbSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3701b66d1acbSmrgcase "(($ac_try" in
3702b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3704b66d1acbSmrgesac
3705b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3707b66d1acbSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708b66d1acbSmrg  ac_status=$?
3709b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3710b66d1acbSmrg  rm -f conftest.er1
3711b66d1acbSmrg  cat conftest.err >&5
3712b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713b66d1acbSmrg  (exit $ac_status); } >/dev/null && {
3714b66d1acbSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715b66d1acbSmrg	 test ! -s conftest.err
3716b66d1acbSmrg       }; then
3717b66d1acbSmrg  :
3718b66d1acbSmrgelse
3719b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3720b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3721b66d1acbSmrg
3722b66d1acbSmrg  # Broken: fails on valid input.
3723b66d1acbSmrgcontinue
3724b66d1acbSmrgfi
3725b66d1acbSmrg
3726b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3727b66d1acbSmrg
3728b66d1acbSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3729b66d1acbSmrg  # can be detected and how.
3730b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
3731b66d1acbSmrg/* confdefs.h.  */
3732b66d1acbSmrg_ACEOF
3733b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3734b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3735b66d1acbSmrg/* end confdefs.h.  */
3736b66d1acbSmrg#include <ac_nonexistent.h>
3737b66d1acbSmrg_ACEOF
3738b66d1acbSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3739b66d1acbSmrgcase "(($ac_try" in
3740b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3742b66d1acbSmrgesac
3743b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3744b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3745b66d1acbSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746b66d1acbSmrg  ac_status=$?
3747b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3748b66d1acbSmrg  rm -f conftest.er1
3749b66d1acbSmrg  cat conftest.err >&5
3750b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751b66d1acbSmrg  (exit $ac_status); } >/dev/null && {
3752b66d1acbSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753b66d1acbSmrg	 test ! -s conftest.err
3754b66d1acbSmrg       }; then
3755b66d1acbSmrg  # Broken: success on invalid input.
3756b66d1acbSmrgcontinue
3757b66d1acbSmrgelse
3758b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3759b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3760b66d1acbSmrg
3761b66d1acbSmrg  # Passes both tests.
3762b66d1acbSmrgac_preproc_ok=:
3763b66d1acbSmrgbreak
3764b66d1acbSmrgfi
3765b66d1acbSmrg
3766b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3767b66d1acbSmrg
3768b66d1acbSmrgdone
3769b66d1acbSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3771b66d1acbSmrgif $ac_preproc_ok; then
3772b66d1acbSmrg  break
3773b66d1acbSmrgfi
3774b66d1acbSmrg
3775b66d1acbSmrg    done
3776b66d1acbSmrg    ac_cv_prog_CPP=$CPP
3777b66d1acbSmrg
3778b66d1acbSmrgfi
3779b66d1acbSmrg  CPP=$ac_cv_prog_CPP
3780b66d1acbSmrgelse
3781b66d1acbSmrg  ac_cv_prog_CPP=$CPP
3782b66d1acbSmrgfi
3783b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3784b66d1acbSmrg$as_echo "$CPP" >&6; }
3785b66d1acbSmrgac_preproc_ok=false
3786b66d1acbSmrgfor ac_c_preproc_warn_flag in '' yes
3787b66d1acbSmrgdo
3788b66d1acbSmrg  # Use a header file that comes with gcc, so configuring glibc
3789b66d1acbSmrg  # with a fresh cross-compiler works.
3790b66d1acbSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791b66d1acbSmrg  # <limits.h> exists even on freestanding compilers.
3792b66d1acbSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3793b66d1acbSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3794b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
3795b66d1acbSmrg/* confdefs.h.  */
3796b66d1acbSmrg_ACEOF
3797b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3798b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3799b66d1acbSmrg/* end confdefs.h.  */
3800b66d1acbSmrg#ifdef __STDC__
3801b66d1acbSmrg# include <limits.h>
3802b66d1acbSmrg#else
3803b66d1acbSmrg# include <assert.h>
3804b66d1acbSmrg#endif
3805b66d1acbSmrg		     Syntax error
3806b66d1acbSmrg_ACEOF
3807b66d1acbSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3808b66d1acbSmrgcase "(($ac_try" in
3809b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3811b66d1acbSmrgesac
3812b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3814b66d1acbSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815b66d1acbSmrg  ac_status=$?
3816b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3817b66d1acbSmrg  rm -f conftest.er1
3818b66d1acbSmrg  cat conftest.err >&5
3819b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820b66d1acbSmrg  (exit $ac_status); } >/dev/null && {
3821b66d1acbSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822b66d1acbSmrg	 test ! -s conftest.err
3823b66d1acbSmrg       }; then
3824b66d1acbSmrg  :
3825b66d1acbSmrgelse
3826b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3827b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3828b66d1acbSmrg
3829b66d1acbSmrg  # Broken: fails on valid input.
3830b66d1acbSmrgcontinue
3831b66d1acbSmrgfi
3832b66d1acbSmrg
3833b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3834b66d1acbSmrg
3835b66d1acbSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3836b66d1acbSmrg  # can be detected and how.
3837b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
3838b66d1acbSmrg/* confdefs.h.  */
3839b66d1acbSmrg_ACEOF
3840b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
3841b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
3842b66d1acbSmrg/* end confdefs.h.  */
3843b66d1acbSmrg#include <ac_nonexistent.h>
3844b66d1acbSmrg_ACEOF
3845b66d1acbSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3846b66d1acbSmrgcase "(($ac_try" in
3847b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848b66d1acbSmrg  *) ac_try_echo=$ac_try;;
3849b66d1acbSmrgesac
3850b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851b66d1acbSmrg$as_echo "$ac_try_echo") >&5
3852b66d1acbSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853b66d1acbSmrg  ac_status=$?
3854b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3855b66d1acbSmrg  rm -f conftest.er1
3856b66d1acbSmrg  cat conftest.err >&5
3857b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858b66d1acbSmrg  (exit $ac_status); } >/dev/null && {
3859b66d1acbSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860b66d1acbSmrg	 test ! -s conftest.err
3861b66d1acbSmrg       }; then
3862b66d1acbSmrg  # Broken: success on invalid input.
3863b66d1acbSmrgcontinue
3864b66d1acbSmrgelse
3865b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
3866b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
3867b66d1acbSmrg
3868b66d1acbSmrg  # Passes both tests.
3869b66d1acbSmrgac_preproc_ok=:
3870b66d1acbSmrgbreak
3871b66d1acbSmrgfi
3872b66d1acbSmrg
3873b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3874b66d1acbSmrg
3875b66d1acbSmrgdone
3876b66d1acbSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877b66d1acbSmrgrm -f conftest.err conftest.$ac_ext
3878b66d1acbSmrgif $ac_preproc_ok; then
3879b66d1acbSmrg  :
3880b66d1acbSmrgelse
3881b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3882b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3884b66d1acbSmrgSee \`config.log' for more details." >&5
3885b66d1acbSmrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3886b66d1acbSmrgSee \`config.log' for more details." >&2;}
3887b66d1acbSmrg   { (exit 1); exit 1; }; }; }
3888b66d1acbSmrgfi
3889b66d1acbSmrg
3890b66d1acbSmrgac_ext=c
3891b66d1acbSmrgac_cpp='$CPP $CPPFLAGS'
3892b66d1acbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893b66d1acbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894b66d1acbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3895b66d1acbSmrg
3896b66d1acbSmrg
3897b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3898b66d1acbSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3899b66d1acbSmrgif test "${ac_cv_path_GREP+set}" = set; then
3900b66d1acbSmrg  $as_echo_n "(cached) " >&6
3901b66d1acbSmrgelse
3902b66d1acbSmrg  if test -z "$GREP"; then
3903b66d1acbSmrg  ac_path_GREP_found=false
3904b66d1acbSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3905b66d1acbSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906b66d1acbSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907b66d1acbSmrgdo
3908b66d1acbSmrg  IFS=$as_save_IFS
3909b66d1acbSmrg  test -z "$as_dir" && as_dir=.
3910b66d1acbSmrg  for ac_prog in grep ggrep; do
3911b66d1acbSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3912b66d1acbSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3913b66d1acbSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3914b66d1acbSmrg# Check for GNU ac_path_GREP and select it if it is found.
3915b66d1acbSmrg  # Check for GNU $ac_path_GREP
3916b66d1acbSmrgcase `"$ac_path_GREP" --version 2>&1` in
3917b66d1acbSmrg*GNU*)
3918b66d1acbSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3919b66d1acbSmrg*)
3920b66d1acbSmrg  ac_count=0
3921b66d1acbSmrg  $as_echo_n 0123456789 >"conftest.in"
3922b66d1acbSmrg  while :
3923b66d1acbSmrg  do
3924b66d1acbSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3925b66d1acbSmrg    mv "conftest.tmp" "conftest.in"
3926b66d1acbSmrg    cp "conftest.in" "conftest.nl"
3927b66d1acbSmrg    $as_echo 'GREP' >> "conftest.nl"
3928b66d1acbSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929b66d1acbSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930b66d1acbSmrg    ac_count=`expr $ac_count + 1`
3931b66d1acbSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3932b66d1acbSmrg      # Best one so far, save it but keep looking for a better one
3933b66d1acbSmrg      ac_cv_path_GREP="$ac_path_GREP"
3934b66d1acbSmrg      ac_path_GREP_max=$ac_count
3935b66d1acbSmrg    fi
3936b66d1acbSmrg    # 10*(2^10) chars as input seems more than enough
3937b66d1acbSmrg    test $ac_count -gt 10 && break
3938b66d1acbSmrg  done
3939b66d1acbSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940b66d1acbSmrgesac
3941b66d1acbSmrg
3942b66d1acbSmrg      $ac_path_GREP_found && break 3
3943b66d1acbSmrg    done
3944b66d1acbSmrg  done
3945b66d1acbSmrgdone
3946b66d1acbSmrgIFS=$as_save_IFS
3947b66d1acbSmrg  if test -z "$ac_cv_path_GREP"; then
3948b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3949b66d1acbSmrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3950b66d1acbSmrg   { (exit 1); exit 1; }; }
3951b66d1acbSmrg  fi
3952b66d1acbSmrgelse
3953b66d1acbSmrg  ac_cv_path_GREP=$GREP
3954b66d1acbSmrgfi
3955b66d1acbSmrg
3956b66d1acbSmrgfi
3957b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958b66d1acbSmrg$as_echo "$ac_cv_path_GREP" >&6; }
3959b66d1acbSmrg GREP="$ac_cv_path_GREP"
3960b66d1acbSmrg
3961b66d1acbSmrg
3962b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3963b66d1acbSmrg$as_echo_n "checking for egrep... " >&6; }
3964b66d1acbSmrgif test "${ac_cv_path_EGREP+set}" = set; then
3965b66d1acbSmrg  $as_echo_n "(cached) " >&6
3966b66d1acbSmrgelse
3967b66d1acbSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968b66d1acbSmrg   then ac_cv_path_EGREP="$GREP -E"
3969b66d1acbSmrg   else
3970b66d1acbSmrg     if test -z "$EGREP"; then
3971b66d1acbSmrg  ac_path_EGREP_found=false
3972b66d1acbSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3973b66d1acbSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974b66d1acbSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975b66d1acbSmrgdo
3976b66d1acbSmrg  IFS=$as_save_IFS
3977b66d1acbSmrg  test -z "$as_dir" && as_dir=.
3978b66d1acbSmrg  for ac_prog in egrep; do
3979b66d1acbSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3980b66d1acbSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981b66d1acbSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982b66d1acbSmrg# Check for GNU ac_path_EGREP and select it if it is found.
3983b66d1acbSmrg  # Check for GNU $ac_path_EGREP
3984b66d1acbSmrgcase `"$ac_path_EGREP" --version 2>&1` in
3985b66d1acbSmrg*GNU*)
3986b66d1acbSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987b66d1acbSmrg*)
3988b66d1acbSmrg  ac_count=0
3989b66d1acbSmrg  $as_echo_n 0123456789 >"conftest.in"
3990b66d1acbSmrg  while :
3991b66d1acbSmrg  do
3992b66d1acbSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3993b66d1acbSmrg    mv "conftest.tmp" "conftest.in"
3994b66d1acbSmrg    cp "conftest.in" "conftest.nl"
3995b66d1acbSmrg    $as_echo 'EGREP' >> "conftest.nl"
3996b66d1acbSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997b66d1acbSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998b66d1acbSmrg    ac_count=`expr $ac_count + 1`
3999b66d1acbSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000b66d1acbSmrg      # Best one so far, save it but keep looking for a better one
4001b66d1acbSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
4002b66d1acbSmrg      ac_path_EGREP_max=$ac_count
4003b66d1acbSmrg    fi
4004b66d1acbSmrg    # 10*(2^10) chars as input seems more than enough
4005b66d1acbSmrg    test $ac_count -gt 10 && break
4006b66d1acbSmrg  done
4007b66d1acbSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008b66d1acbSmrgesac
4009b66d1acbSmrg
4010b66d1acbSmrg      $ac_path_EGREP_found && break 3
4011b66d1acbSmrg    done
4012b66d1acbSmrg  done
4013b66d1acbSmrgdone
4014b66d1acbSmrgIFS=$as_save_IFS
4015b66d1acbSmrg  if test -z "$ac_cv_path_EGREP"; then
4016b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017b66d1acbSmrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4018b66d1acbSmrg   { (exit 1); exit 1; }; }
4019b66d1acbSmrg  fi
4020b66d1acbSmrgelse
4021b66d1acbSmrg  ac_cv_path_EGREP=$EGREP
4022b66d1acbSmrgfi
4023b66d1acbSmrg
4024b66d1acbSmrg   fi
4025b66d1acbSmrgfi
4026b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4027b66d1acbSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
4028b66d1acbSmrg EGREP="$ac_cv_path_EGREP"
4029b66d1acbSmrg
4030b66d1acbSmrg
4031b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4032b66d1acbSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
4033b66d1acbSmrgif test "${ac_cv_header_stdc+set}" = set; then
4034b66d1acbSmrg  $as_echo_n "(cached) " >&6
4035b66d1acbSmrgelse
4036b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4037b66d1acbSmrg/* confdefs.h.  */
4038b66d1acbSmrg_ACEOF
4039b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4040b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4041b66d1acbSmrg/* end confdefs.h.  */
4042b66d1acbSmrg#include <stdlib.h>
4043b66d1acbSmrg#include <stdarg.h>
4044b66d1acbSmrg#include <string.h>
4045b66d1acbSmrg#include <float.h>
4046b66d1acbSmrg
4047b66d1acbSmrgint
4048b66d1acbSmrgmain ()
4049b66d1acbSmrg{
4050b66d1acbSmrg
4051b66d1acbSmrg  ;
4052b66d1acbSmrg  return 0;
4053b66d1acbSmrg}
4054b66d1acbSmrg_ACEOF
4055b66d1acbSmrgrm -f conftest.$ac_objext
4056b66d1acbSmrgif { (ac_try="$ac_compile"
4057b66d1acbSmrgcase "(($ac_try" in
4058b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4060b66d1acbSmrgesac
4061b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4063b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4064b66d1acbSmrg  ac_status=$?
4065b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4066b66d1acbSmrg  rm -f conftest.er1
4067b66d1acbSmrg  cat conftest.err >&5
4068b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069b66d1acbSmrg  (exit $ac_status); } && {
4070b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4071b66d1acbSmrg	 test ! -s conftest.err
4072b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4073b66d1acbSmrg  ac_cv_header_stdc=yes
4074b66d1acbSmrgelse
4075b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4076b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4077b66d1acbSmrg
4078b66d1acbSmrg	ac_cv_header_stdc=no
4079b66d1acbSmrgfi
4080b66d1acbSmrg
4081b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082b66d1acbSmrg
4083b66d1acbSmrgif test $ac_cv_header_stdc = yes; then
4084b66d1acbSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4086b66d1acbSmrg/* confdefs.h.  */
4087b66d1acbSmrg_ACEOF
4088b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4089b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4090b66d1acbSmrg/* end confdefs.h.  */
4091b66d1acbSmrg#include <string.h>
4092b66d1acbSmrg
4093b66d1acbSmrg_ACEOF
4094b66d1acbSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095b66d1acbSmrg  $EGREP "memchr" >/dev/null 2>&1; then
4096b66d1acbSmrg  :
4097b66d1acbSmrgelse
4098b66d1acbSmrg  ac_cv_header_stdc=no
4099b66d1acbSmrgfi
4100b66d1acbSmrgrm -f conftest*
4101b66d1acbSmrg
4102b66d1acbSmrgfi
4103b66d1acbSmrg
4104b66d1acbSmrgif test $ac_cv_header_stdc = yes; then
4105b66d1acbSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4106b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4107b66d1acbSmrg/* confdefs.h.  */
4108b66d1acbSmrg_ACEOF
4109b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4110b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4111b66d1acbSmrg/* end confdefs.h.  */
4112b66d1acbSmrg#include <stdlib.h>
4113b66d1acbSmrg
4114b66d1acbSmrg_ACEOF
4115b66d1acbSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116b66d1acbSmrg  $EGREP "free" >/dev/null 2>&1; then
4117b66d1acbSmrg  :
4118b66d1acbSmrgelse
4119b66d1acbSmrg  ac_cv_header_stdc=no
4120b66d1acbSmrgfi
4121b66d1acbSmrgrm -f conftest*
4122b66d1acbSmrg
4123b66d1acbSmrgfi
4124b66d1acbSmrg
4125b66d1acbSmrgif test $ac_cv_header_stdc = yes; then
4126b66d1acbSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4127b66d1acbSmrg  if test "$cross_compiling" = yes; then
4128b66d1acbSmrg  :
4129b66d1acbSmrgelse
4130b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4131b66d1acbSmrg/* confdefs.h.  */
4132b66d1acbSmrg_ACEOF
4133b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4134b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4135b66d1acbSmrg/* end confdefs.h.  */
4136b66d1acbSmrg#include <ctype.h>
4137b66d1acbSmrg#include <stdlib.h>
4138b66d1acbSmrg#if ((' ' & 0x0FF) == 0x020)
4139b66d1acbSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140b66d1acbSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141b66d1acbSmrg#else
4142b66d1acbSmrg# define ISLOWER(c) \
4143b66d1acbSmrg		   (('a' <= (c) && (c) <= 'i') \
4144b66d1acbSmrg		     || ('j' <= (c) && (c) <= 'r') \
4145b66d1acbSmrg		     || ('s' <= (c) && (c) <= 'z'))
4146b66d1acbSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147b66d1acbSmrg#endif
4148b66d1acbSmrg
4149b66d1acbSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4150b66d1acbSmrgint
4151b66d1acbSmrgmain ()
4152b66d1acbSmrg{
4153b66d1acbSmrg  int i;
4154b66d1acbSmrg  for (i = 0; i < 256; i++)
4155b66d1acbSmrg    if (XOR (islower (i), ISLOWER (i))
4156b66d1acbSmrg	|| toupper (i) != TOUPPER (i))
4157b66d1acbSmrg      return 2;
4158b66d1acbSmrg  return 0;
4159b66d1acbSmrg}
4160b66d1acbSmrg_ACEOF
4161b66d1acbSmrgrm -f conftest$ac_exeext
4162b66d1acbSmrgif { (ac_try="$ac_link"
4163b66d1acbSmrgcase "(($ac_try" in
4164b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4166b66d1acbSmrgesac
4167b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4169b66d1acbSmrg  (eval "$ac_link") 2>&5
4170b66d1acbSmrg  ac_status=$?
4171b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172b66d1acbSmrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173b66d1acbSmrg  { (case "(($ac_try" in
4174b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4176b66d1acbSmrgesac
4177b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4179b66d1acbSmrg  (eval "$ac_try") 2>&5
4180b66d1acbSmrg  ac_status=$?
4181b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182b66d1acbSmrg  (exit $ac_status); }; }; then
4183b66d1acbSmrg  :
4184b66d1acbSmrgelse
4185b66d1acbSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
4186b66d1acbSmrg$as_echo "$as_me: failed program was:" >&5
4187b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4188b66d1acbSmrg
4189b66d1acbSmrg( exit $ac_status )
4190b66d1acbSmrgac_cv_header_stdc=no
4191b66d1acbSmrgfi
4192b66d1acbSmrgrm -rf conftest.dSYM
4193b66d1acbSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194b66d1acbSmrgfi
4195b66d1acbSmrg
4196b66d1acbSmrg
4197b66d1acbSmrgfi
4198b66d1acbSmrgfi
4199b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4200b66d1acbSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4201b66d1acbSmrgif test $ac_cv_header_stdc = yes; then
4202b66d1acbSmrg
4203b66d1acbSmrgcat >>confdefs.h <<\_ACEOF
4204b66d1acbSmrg#define STDC_HEADERS 1
4205b66d1acbSmrg_ACEOF
4206b66d1acbSmrg
4207b66d1acbSmrgfi
4208b66d1acbSmrg
4209b66d1acbSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4210b66d1acbSmrg
4211b66d1acbSmrg
4212b66d1acbSmrg
4213b66d1acbSmrg
4214b66d1acbSmrg
4215b66d1acbSmrg
4216b66d1acbSmrg
4217b66d1acbSmrg
4218b66d1acbSmrg
4219b66d1acbSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220b66d1acbSmrg		  inttypes.h stdint.h unistd.h
4221b66d1acbSmrgdo
4222b66d1acbSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4224b66d1acbSmrg$as_echo_n "checking for $ac_header... " >&6; }
4225b66d1acbSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226b66d1acbSmrg  $as_echo_n "(cached) " >&6
4227b66d1acbSmrgelse
4228b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4229b66d1acbSmrg/* confdefs.h.  */
4230b66d1acbSmrg_ACEOF
4231b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4232b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4233b66d1acbSmrg/* end confdefs.h.  */
4234b66d1acbSmrg$ac_includes_default
4235b66d1acbSmrg
4236b66d1acbSmrg#include <$ac_header>
4237b66d1acbSmrg_ACEOF
4238b66d1acbSmrgrm -f conftest.$ac_objext
4239b66d1acbSmrgif { (ac_try="$ac_compile"
4240b66d1acbSmrgcase "(($ac_try" in
4241b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4243b66d1acbSmrgesac
4244b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4246b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4247b66d1acbSmrg  ac_status=$?
4248b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4249b66d1acbSmrg  rm -f conftest.er1
4250b66d1acbSmrg  cat conftest.err >&5
4251b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252b66d1acbSmrg  (exit $ac_status); } && {
4253b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4254b66d1acbSmrg	 test ! -s conftest.err
4255b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4256b66d1acbSmrg  eval "$as_ac_Header=yes"
4257b66d1acbSmrgelse
4258b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4259b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4260b66d1acbSmrg
4261b66d1acbSmrg	eval "$as_ac_Header=no"
4262b66d1acbSmrgfi
4263b66d1acbSmrg
4264b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265b66d1acbSmrgfi
4266b66d1acbSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
4267b66d1acbSmrg		 $as_echo "$as_val"'`
4268b66d1acbSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4269b66d1acbSmrg$as_echo "$ac_res" >&6; }
4270b66d1acbSmrgas_val=`eval 'as_val=${'$as_ac_Header'}
4271b66d1acbSmrg		 $as_echo "$as_val"'`
4272b66d1acbSmrg   if test "x$as_val" = x""yes; then
4273b66d1acbSmrg  cat >>confdefs.h <<_ACEOF
4274b66d1acbSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275b66d1acbSmrg_ACEOF
4276b66d1acbSmrg
4277b66d1acbSmrgfi
4278b66d1acbSmrg
4279b66d1acbSmrgdone
4280b66d1acbSmrg
4281b66d1acbSmrg
4282b66d1acbSmrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4283b66d1acbSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4284b66d1acbSmrgif test "${ac_cv_prog_cc_c99+set}" = set; then
4285b66d1acbSmrg  $as_echo_n "(cached) " >&6
4286b66d1acbSmrgelse
4287b66d1acbSmrg  ac_cv_prog_cc_c99=no
4288b66d1acbSmrgac_save_CC=$CC
4289b66d1acbSmrgcat >conftest.$ac_ext <<_ACEOF
4290b66d1acbSmrg/* confdefs.h.  */
4291b66d1acbSmrg_ACEOF
4292b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4293b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4294b66d1acbSmrg/* end confdefs.h.  */
4295b66d1acbSmrg#include <stdarg.h>
4296b66d1acbSmrg#include <stdbool.h>
4297b66d1acbSmrg#include <stdlib.h>
4298b66d1acbSmrg#include <wchar.h>
4299b66d1acbSmrg#include <stdio.h>
4300b66d1acbSmrg
4301b66d1acbSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4302b66d1acbSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4303b66d1acbSmrg#define showlist(...) puts (#__VA_ARGS__)
4304b66d1acbSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4305b66d1acbSmrgstatic void
4306b66d1acbSmrgtest_varargs_macros (void)
4307b66d1acbSmrg{
4308b66d1acbSmrg  int x = 1234;
4309b66d1acbSmrg  int y = 5678;
4310b66d1acbSmrg  debug ("Flag");
4311b66d1acbSmrg  debug ("X = %d\n", x);
4312b66d1acbSmrg  showlist (The first, second, and third items.);
4313b66d1acbSmrg  report (x>y, "x is %d but y is %d", x, y);
4314b66d1acbSmrg}
4315b66d1acbSmrg
4316b66d1acbSmrg// Check long long types.
4317b66d1acbSmrg#define BIG64 18446744073709551615ull
4318b66d1acbSmrg#define BIG32 4294967295ul
4319b66d1acbSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4320b66d1acbSmrg#if !BIG_OK
4321b66d1acbSmrg  your preprocessor is broken;
4322b66d1acbSmrg#endif
4323b66d1acbSmrg#if BIG_OK
4324b66d1acbSmrg#else
4325b66d1acbSmrg  your preprocessor is broken;
4326b66d1acbSmrg#endif
4327b66d1acbSmrgstatic long long int bignum = -9223372036854775807LL;
4328b66d1acbSmrgstatic unsigned long long int ubignum = BIG64;
4329b66d1acbSmrg
4330b66d1acbSmrgstruct incomplete_array
4331b66d1acbSmrg{
4332b66d1acbSmrg  int datasize;
4333b66d1acbSmrg  double data[];
4334b66d1acbSmrg};
4335b66d1acbSmrg
4336b66d1acbSmrgstruct named_init {
4337b66d1acbSmrg  int number;
4338b66d1acbSmrg  const wchar_t *name;
4339b66d1acbSmrg  double average;
4340b66d1acbSmrg};
4341b66d1acbSmrg
4342b66d1acbSmrgtypedef const char *ccp;
4343b66d1acbSmrg
4344b66d1acbSmrgstatic inline int
4345b66d1acbSmrgtest_restrict (ccp restrict text)
4346b66d1acbSmrg{
4347b66d1acbSmrg  // See if C++-style comments work.
4348b66d1acbSmrg  // Iterate through items via the restricted pointer.
4349b66d1acbSmrg  // Also check for declarations in for loops.
4350b66d1acbSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4351b66d1acbSmrg    continue;
4352b66d1acbSmrg  return 0;
4353b66d1acbSmrg}
4354b66d1acbSmrg
4355b66d1acbSmrg// Check varargs and va_copy.
4356b66d1acbSmrgstatic void
4357b66d1acbSmrgtest_varargs (const char *format, ...)
4358b66d1acbSmrg{
4359b66d1acbSmrg  va_list args;
4360b66d1acbSmrg  va_start (args, format);
4361b66d1acbSmrg  va_list args_copy;
4362b66d1acbSmrg  va_copy (args_copy, args);
4363b66d1acbSmrg
4364b66d1acbSmrg  const char *str;
4365b66d1acbSmrg  int number;
4366b66d1acbSmrg  float fnumber;
4367b66d1acbSmrg
4368b66d1acbSmrg  while (*format)
4369b66d1acbSmrg    {
4370b66d1acbSmrg      switch (*format++)
4371b66d1acbSmrg	{
4372b66d1acbSmrg	case 's': // string
4373b66d1acbSmrg	  str = va_arg (args_copy, const char *);
4374b66d1acbSmrg	  break;
4375b66d1acbSmrg	case 'd': // int
4376b66d1acbSmrg	  number = va_arg (args_copy, int);
4377b66d1acbSmrg	  break;
4378b66d1acbSmrg	case 'f': // float
4379b66d1acbSmrg	  fnumber = va_arg (args_copy, double);
4380b66d1acbSmrg	  break;
4381b66d1acbSmrg	default:
4382b66d1acbSmrg	  break;
4383b66d1acbSmrg	}
4384b66d1acbSmrg    }
4385b66d1acbSmrg  va_end (args_copy);
4386b66d1acbSmrg  va_end (args);
4387b66d1acbSmrg}
4388b66d1acbSmrg
4389b66d1acbSmrgint
4390b66d1acbSmrgmain ()
4391b66d1acbSmrg{
4392b66d1acbSmrg
4393b66d1acbSmrg  // Check bool.
4394b66d1acbSmrg  _Bool success = false;
4395b66d1acbSmrg
4396b66d1acbSmrg  // Check restrict.
4397b66d1acbSmrg  if (test_restrict ("String literal") == 0)
4398b66d1acbSmrg    success = true;
4399b66d1acbSmrg  char *restrict newvar = "Another string";
4400b66d1acbSmrg
4401b66d1acbSmrg  // Check varargs.
4402b66d1acbSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4403b66d1acbSmrg  test_varargs_macros ();
4404b66d1acbSmrg
4405b66d1acbSmrg  // Check flexible array members.
4406b66d1acbSmrg  struct incomplete_array *ia =
4407b66d1acbSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4408b66d1acbSmrg  ia->datasize = 10;
4409b66d1acbSmrg  for (int i = 0; i < ia->datasize; ++i)
4410b66d1acbSmrg    ia->data[i] = i * 1.234;
4411b66d1acbSmrg
4412b66d1acbSmrg  // Check named initializers.
4413b66d1acbSmrg  struct named_init ni = {
4414b66d1acbSmrg    .number = 34,
4415b66d1acbSmrg    .name = L"Test wide string",
4416b66d1acbSmrg    .average = 543.34343,
4417b66d1acbSmrg  };
4418b66d1acbSmrg
4419b66d1acbSmrg  ni.number = 58;
4420b66d1acbSmrg
4421b66d1acbSmrg  int dynamic_array[ni.number];
4422b66d1acbSmrg  dynamic_array[ni.number - 1] = 543;
4423b66d1acbSmrg
4424b66d1acbSmrg  // work around unused variable warnings
4425b66d1acbSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4426b66d1acbSmrg	  || dynamic_array[ni.number - 1] != 543);
4427b66d1acbSmrg
4428b66d1acbSmrg  ;
4429b66d1acbSmrg  return 0;
4430b66d1acbSmrg}
4431b66d1acbSmrg_ACEOF
4432b66d1acbSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4433b66d1acbSmrgdo
4434b66d1acbSmrg  CC="$ac_save_CC $ac_arg"
4435b66d1acbSmrg  rm -f conftest.$ac_objext
4436b66d1acbSmrgif { (ac_try="$ac_compile"
4437b66d1acbSmrgcase "(($ac_try" in
4438b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4440b66d1acbSmrgesac
4441b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4442b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4443b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4444b66d1acbSmrg  ac_status=$?
4445b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4446b66d1acbSmrg  rm -f conftest.er1
4447b66d1acbSmrg  cat conftest.err >&5
4448b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449b66d1acbSmrg  (exit $ac_status); } && {
4450b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4451b66d1acbSmrg	 test ! -s conftest.err
4452b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4453b66d1acbSmrg  ac_cv_prog_cc_c99=$ac_arg
4454b66d1acbSmrgelse
4455b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4456b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4457b66d1acbSmrg
4458b66d1acbSmrg
4459b66d1acbSmrgfi
4460b66d1acbSmrg
4461b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext
4462b66d1acbSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4463b66d1acbSmrgdone
4464b66d1acbSmrgrm -f conftest.$ac_ext
4465b66d1acbSmrgCC=$ac_save_CC
4466b66d1acbSmrg
4467b66d1acbSmrgfi
4468b66d1acbSmrg# AC_CACHE_VAL
4469b66d1acbSmrgcase "x$ac_cv_prog_cc_c99" in
4470b66d1acbSmrg  x)
4471b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4472b66d1acbSmrg$as_echo "none needed" >&6; } ;;
4473b66d1acbSmrg  xno)
4474b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4475b66d1acbSmrg$as_echo "unsupported" >&6; } ;;
4476b66d1acbSmrg  *)
4477b66d1acbSmrg    CC="$CC $ac_cv_prog_cc_c99"
4478b66d1acbSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4479b66d1acbSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4480b66d1acbSmrgesac
4481b66d1acbSmrg
4482b66d1acbSmrg
4483b66d1acbSmrg
4484b66d1acbSmrg# Make sure we can run config.sub.
4485b66d1acbSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4486b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4487b66d1acbSmrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4488b66d1acbSmrg   { (exit 1); exit 1; }; }
4489b66d1acbSmrg
4490b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4491b66d1acbSmrg$as_echo_n "checking build system type... " >&6; }
4492b66d1acbSmrgif test "${ac_cv_build+set}" = set; then
4493b66d1acbSmrg  $as_echo_n "(cached) " >&6
4494b66d1acbSmrgelse
4495b66d1acbSmrg  ac_build_alias=$build_alias
4496b66d1acbSmrgtest "x$ac_build_alias" = x &&
4497b66d1acbSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4498b66d1acbSmrgtest "x$ac_build_alias" = x &&
4499b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4500b66d1acbSmrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4501b66d1acbSmrg   { (exit 1); exit 1; }; }
4502b66d1acbSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4503b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4504b66d1acbSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4505b66d1acbSmrg   { (exit 1); exit 1; }; }
4506b66d1acbSmrg
4507b66d1acbSmrgfi
4508b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4509b66d1acbSmrg$as_echo "$ac_cv_build" >&6; }
4510b66d1acbSmrgcase $ac_cv_build in
4511b66d1acbSmrg*-*-*) ;;
4512b66d1acbSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4513b66d1acbSmrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4514b66d1acbSmrg   { (exit 1); exit 1; }; };;
4515b66d1acbSmrgesac
4516b66d1acbSmrgbuild=$ac_cv_build
4517b66d1acbSmrgac_save_IFS=$IFS; IFS='-'
4518b66d1acbSmrgset x $ac_cv_build
4519b66d1acbSmrgshift
4520b66d1acbSmrgbuild_cpu=$1
4521b66d1acbSmrgbuild_vendor=$2
4522b66d1acbSmrgshift; shift
4523b66d1acbSmrg# Remember, the first character of IFS is used to create $*,
4524b66d1acbSmrg# except with old shells:
4525b66d1acbSmrgbuild_os=$*
4526b66d1acbSmrgIFS=$ac_save_IFS
4527b66d1acbSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4528b66d1acbSmrg
4529b66d1acbSmrg
4530b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4531b66d1acbSmrg$as_echo_n "checking host system type... " >&6; }
4532b66d1acbSmrgif test "${ac_cv_host+set}" = set; then
4533b66d1acbSmrg  $as_echo_n "(cached) " >&6
4534b66d1acbSmrgelse
4535b66d1acbSmrg  if test "x$host_alias" = x; then
4536b66d1acbSmrg  ac_cv_host=$ac_cv_build
4537b66d1acbSmrgelse
4538b66d1acbSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4539b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4540b66d1acbSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4541b66d1acbSmrg   { (exit 1); exit 1; }; }
4542b66d1acbSmrgfi
4543b66d1acbSmrg
4544b66d1acbSmrgfi
4545b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4546b66d1acbSmrg$as_echo "$ac_cv_host" >&6; }
4547b66d1acbSmrgcase $ac_cv_host in
4548b66d1acbSmrg*-*-*) ;;
4549b66d1acbSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4550b66d1acbSmrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4551b66d1acbSmrg   { (exit 1); exit 1; }; };;
4552b66d1acbSmrgesac
4553b66d1acbSmrghost=$ac_cv_host
4554b66d1acbSmrgac_save_IFS=$IFS; IFS='-'
4555b66d1acbSmrgset x $ac_cv_host
4556b66d1acbSmrgshift
4557b66d1acbSmrghost_cpu=$1
4558b66d1acbSmrghost_vendor=$2
4559b66d1acbSmrgshift; shift
4560b66d1acbSmrg# Remember, the first character of IFS is used to create $*,
4561b66d1acbSmrg# except with old shells:
4562b66d1acbSmrghost_os=$*
4563b66d1acbSmrgIFS=$ac_save_IFS
4564b66d1acbSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4565b66d1acbSmrg
4566b66d1acbSmrg
4567b66d1acbSmrg
4568b66d1acbSmrg
4569b66d1acbSmrg
4570b66d1acbSmrgif  test "x$GCC" = xyes ; then
4571b66d1acbSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4572b66d1acbSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4573b66d1acbSmrg-Wbad-function-cast"
4574b66d1acbSmrg    case `$CC -dumpversion` in
4575b66d1acbSmrg    3.4.* | 4.*)
4576b66d1acbSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4577b66d1acbSmrg	;;
4578b66d1acbSmrg    esac
4579b66d1acbSmrgelse
4580b66d1acbSmrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4581b66d1acbSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4582b66d1acbSmrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4583b66d1acbSmrg  $as_echo_n "(cached) " >&6
4584b66d1acbSmrgelse
4585b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4586b66d1acbSmrg/* confdefs.h.  */
4587b66d1acbSmrg_ACEOF
4588b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4589b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4590b66d1acbSmrg/* end confdefs.h.  */
4591b66d1acbSmrg$ac_includes_default
4592b66d1acbSmrgint
4593b66d1acbSmrgmain ()
4594b66d1acbSmrg{
4595b66d1acbSmrg#ifndef __SUNPRO_C
4596b66d1acbSmrg  (void) __SUNPRO_C;
4597b66d1acbSmrg#endif
4598b66d1acbSmrg
4599b66d1acbSmrg  ;
4600b66d1acbSmrg  return 0;
4601b66d1acbSmrg}
4602b66d1acbSmrg_ACEOF
4603b66d1acbSmrgrm -f conftest.$ac_objext
4604b66d1acbSmrgif { (ac_try="$ac_compile"
4605b66d1acbSmrgcase "(($ac_try" in
4606b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4608b66d1acbSmrgesac
4609b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4610b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4611b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4612b66d1acbSmrg  ac_status=$?
4613b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4614b66d1acbSmrg  rm -f conftest.er1
4615b66d1acbSmrg  cat conftest.err >&5
4616b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617b66d1acbSmrg  (exit $ac_status); } && {
4618b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4619b66d1acbSmrg	 test ! -s conftest.err
4620b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4621b66d1acbSmrg  ac_cv_have_decl___SUNPRO_C=yes
4622b66d1acbSmrgelse
4623b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4624b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4625b66d1acbSmrg
4626b66d1acbSmrg	ac_cv_have_decl___SUNPRO_C=no
4627b66d1acbSmrgfi
4628b66d1acbSmrg
4629b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630b66d1acbSmrgfi
4631b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4632b66d1acbSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4633b66d1acbSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4634b66d1acbSmrg  SUNCC="yes"
4635b66d1acbSmrgelse
4636b66d1acbSmrg  SUNCC="no"
4637b66d1acbSmrgfi
4638b66d1acbSmrg
4639b66d1acbSmrg    if test "x$SUNCC" = "xyes"; then
4640b66d1acbSmrg	CWARNFLAGS="-v"
4641b66d1acbSmrg    fi
4642b66d1acbSmrgfi
4643b66d1acbSmrg
4644b66d1acbSmrg# Check whether --enable-silent-rules was given.
4645b66d1acbSmrgif test "${enable_silent_rules+set}" = set; then
4646b66d1acbSmrg  enableval=$enable_silent_rules;
4647b66d1acbSmrgfi
4648b66d1acbSmrg
4649b66d1acbSmrgcase $enable_silent_rules in
4650b66d1acbSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4651b66d1acbSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4652b66d1acbSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4653b66d1acbSmrgesac
4654b66d1acbSmrgAM_BACKSLASH='\'
4655b66d1acbSmrg
4656b66d1acbSmrg
4657b66d1acbSmrg
4658b66d1acbSmrg
4659b66d1acbSmrg
4660b66d1acbSmrg
4661b66d1acbSmrg
4662b66d1acbSmrg# Check whether --enable-strict-compilation was given.
4663b66d1acbSmrgif test "${enable_strict_compilation+set}" = set; then
4664b66d1acbSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4665b66d1acbSmrgelse
4666b66d1acbSmrg  STRICT_COMPILE=no
4667b66d1acbSmrgfi
4668b66d1acbSmrg
4669b66d1acbSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4670b66d1acbSmrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4671b66d1acbSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4672b66d1acbSmrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4673b66d1acbSmrg  $as_echo_n "(cached) " >&6
4674b66d1acbSmrgelse
4675b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4676b66d1acbSmrg/* confdefs.h.  */
4677b66d1acbSmrg_ACEOF
4678b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4679b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4680b66d1acbSmrg/* end confdefs.h.  */
4681b66d1acbSmrg$ac_includes_default
4682b66d1acbSmrgint
4683b66d1acbSmrgmain ()
4684b66d1acbSmrg{
4685b66d1acbSmrg#ifndef __SUNPRO_C
4686b66d1acbSmrg  (void) __SUNPRO_C;
4687b66d1acbSmrg#endif
4688b66d1acbSmrg
4689b66d1acbSmrg  ;
4690b66d1acbSmrg  return 0;
4691b66d1acbSmrg}
4692b66d1acbSmrg_ACEOF
4693b66d1acbSmrgrm -f conftest.$ac_objext
4694b66d1acbSmrgif { (ac_try="$ac_compile"
4695b66d1acbSmrgcase "(($ac_try" in
4696b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4698b66d1acbSmrgesac
4699b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4701b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4702b66d1acbSmrg  ac_status=$?
4703b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4704b66d1acbSmrg  rm -f conftest.er1
4705b66d1acbSmrg  cat conftest.err >&5
4706b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707b66d1acbSmrg  (exit $ac_status); } && {
4708b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4709b66d1acbSmrg	 test ! -s conftest.err
4710b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4711b66d1acbSmrg  ac_cv_have_decl___SUNPRO_C=yes
4712b66d1acbSmrgelse
4713b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4714b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4715b66d1acbSmrg
4716b66d1acbSmrg	ac_cv_have_decl___SUNPRO_C=no
4717b66d1acbSmrgfi
4718b66d1acbSmrg
4719b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720b66d1acbSmrgfi
4721b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4722b66d1acbSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4723b66d1acbSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4724b66d1acbSmrg  SUNCC="yes"
4725b66d1acbSmrgelse
4726b66d1acbSmrg  SUNCC="no"
4727b66d1acbSmrgfi
4728b66d1acbSmrg
4729b66d1acbSmrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4730b66d1acbSmrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4731b66d1acbSmrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4732b66d1acbSmrg  $as_echo_n "(cached) " >&6
4733b66d1acbSmrgelse
4734b66d1acbSmrg  cat >conftest.$ac_ext <<_ACEOF
4735b66d1acbSmrg/* confdefs.h.  */
4736b66d1acbSmrg_ACEOF
4737b66d1acbSmrgcat confdefs.h >>conftest.$ac_ext
4738b66d1acbSmrgcat >>conftest.$ac_ext <<_ACEOF
4739b66d1acbSmrg/* end confdefs.h.  */
4740b66d1acbSmrg$ac_includes_default
4741b66d1acbSmrgint
4742b66d1acbSmrgmain ()
4743b66d1acbSmrg{
4744b66d1acbSmrg#ifndef __INTEL_COMPILER
4745b66d1acbSmrg  (void) __INTEL_COMPILER;
4746b66d1acbSmrg#endif
4747b66d1acbSmrg
4748b66d1acbSmrg  ;
4749b66d1acbSmrg  return 0;
4750b66d1acbSmrg}
4751b66d1acbSmrg_ACEOF
4752b66d1acbSmrgrm -f conftest.$ac_objext
4753b66d1acbSmrgif { (ac_try="$ac_compile"
4754b66d1acbSmrgcase "(($ac_try" in
4755b66d1acbSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756b66d1acbSmrg  *) ac_try_echo=$ac_try;;
4757b66d1acbSmrgesac
4758b66d1acbSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759b66d1acbSmrg$as_echo "$ac_try_echo") >&5
4760b66d1acbSmrg  (eval "$ac_compile") 2>conftest.er1
4761b66d1acbSmrg  ac_status=$?
4762b66d1acbSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4763b66d1acbSmrg  rm -f conftest.er1
4764b66d1acbSmrg  cat conftest.err >&5
4765b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766b66d1acbSmrg  (exit $ac_status); } && {
4767b66d1acbSmrg	 test -z "$ac_c_werror_flag" ||
4768b66d1acbSmrg	 test ! -s conftest.err
4769b66d1acbSmrg       } && test -s conftest.$ac_objext; then
4770b66d1acbSmrg  ac_cv_have_decl___INTEL_COMPILER=yes
4771b66d1acbSmrgelse
4772b66d1acbSmrg  $as_echo "$as_me: failed program was:" >&5
4773b66d1acbSmrgsed 's/^/| /' conftest.$ac_ext >&5
4774b66d1acbSmrg
4775b66d1acbSmrg	ac_cv_have_decl___INTEL_COMPILER=no
4776b66d1acbSmrgfi
4777b66d1acbSmrg
4778b66d1acbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779b66d1acbSmrgfi
4780b66d1acbSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4781b66d1acbSmrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4782b66d1acbSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4783b66d1acbSmrg  INTELCC="yes"
4784b66d1acbSmrgelse
4785b66d1acbSmrg  INTELCC="no"
4786b66d1acbSmrgfi
4787b66d1acbSmrg
4788b66d1acbSmrg	if test "x$GCC" = xyes ; then
4789b66d1acbSmrg		STRICT_CFLAGS="-pedantic -Werror"
4790b66d1acbSmrg	elif test "x$SUNCC" = "xyes"; then
4791b66d1acbSmrg		STRICT_CFLAGS="-errwarn"
4792b66d1acbSmrg    elif test "x$INTELCC" = "xyes"; then
4793b66d1acbSmrg		STRICT_CFLAGS="-Werror"
4794b66d1acbSmrg	fi
4795b66d1acbSmrgfi
4796b66d1acbSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4797b66d1acbSmrg
4798b66d1acbSmrg
4799b66d1acbSmrg
4800b66d1acbSmrg
4801b66d1acbSmrg# Check whether --with-release-version was given.
4802b66d1acbSmrgif test "${with_release_version+set}" = set; then
4803b66d1acbSmrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4804b66d1acbSmrgelse
4805b66d1acbSmrg  RELEASE_VERSION=""
4806b66d1acbSmrgfi
4807b66d1acbSmrg
4808b66d1acbSmrg	if test "x$RELEASE_VERSION" != "x"; then
4809b66d1acbSmrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4810b66d1acbSmrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4811b66d1acbSmrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4812b66d1acbSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4813b66d1acbSmrg	fi
4814b66d1acbSmrg
4815b66d1acbSmrgcat >>confdefs.h <<_ACEOF
4816b66d1acbSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4817b66d1acbSmrg_ACEOF
4818b66d1acbSmrg
4819b66d1acbSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4820b66d1acbSmrg	if test "x$PVM" = "x"; then
4821b66d1acbSmrg		PVM="0"
4822b66d1acbSmrg	fi
4823b66d1acbSmrg
4824b66d1acbSmrgcat >>confdefs.h <<_ACEOF
4825b66d1acbSmrg#define PACKAGE_VERSION_MINOR $PVM
4826b66d1acbSmrg_ACEOF
4827b66d1acbSmrg
4828b66d1acbSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4829b66d1acbSmrg	if test "x$PVP" = "x"; then
4830b66d1acbSmrg		PVP="0"
4831b66d1acbSmrg	fi
4832b66d1acbSmrg
4833b66d1acbSmrgcat >>confdefs.h <<_ACEOF
4834b66d1acbSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4835b66d1acbSmrg_ACEOF
4836b66d1acbSmrg
4837b66d1acbSmrg
4838b66d1acbSmrg
4839b66d1acbSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4840b66d1acbSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4841b66d1acbSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4842b66d1acbSmrg
4843b66d1acbSmrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4844b66d1acbSmrg
4845b66d1acbSmrg
4846b66d1acbSmrg
4847b66d1acbSmrg
4848b66d1acbSmrg
4849b66d1acbSmrgif test x$APP_MAN_SUFFIX = x    ; then
4850b66d1acbSmrg    APP_MAN_SUFFIX=1
4851b66d1acbSmrgfi
4852b66d1acbSmrgif test x$APP_MAN_DIR = x    ; then
4853b66d1acbSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4854b66d1acbSmrgfi
4855b66d1acbSmrg
4856b66d1acbSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4857b66d1acbSmrg    LIB_MAN_SUFFIX=3
4858b66d1acbSmrgfi
4859b66d1acbSmrgif test x$LIB_MAN_DIR = x    ; then
4860b66d1acbSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4861b66d1acbSmrgfi
4862b66d1acbSmrg
4863b66d1acbSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4864b66d1acbSmrg    case $host_os in
4865b66d1acbSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4866b66d1acbSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4867b66d1acbSmrg    esac
4868b66d1acbSmrgfi
4869b66d1acbSmrgif test x$FILE_MAN_DIR = x    ; then
4870b66d1acbSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4871b66d1acbSmrgfi
4872b66d1acbSmrg
4873b66d1acbSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4874b66d1acbSmrg    case $host_os in
4875b66d1acbSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4876b66d1acbSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4877b66d1acbSmrg    esac
4878b66d1acbSmrgfi
4879b66d1acbSmrgif test x$MISC_MAN_DIR = x    ; then
4880b66d1acbSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4881b66d1acbSmrgfi
4882b66d1acbSmrg
4883b66d1acbSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4884b66d1acbSmrg    case $host_os in
4885b66d1acbSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4886b66d1acbSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4887b66d1acbSmrg    esac
4888b66d1acbSmrgfi
4889b66d1acbSmrgif test x$DRIVER_MAN_DIR = x    ; then
4890b66d1acbSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4891b66d1acbSmrgfi
4892b66d1acbSmrg
4893b66d1acbSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4894b66d1acbSmrg    case $host_os in
4895b66d1acbSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4896b66d1acbSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4897b66d1acbSmrg    esac
4898b66d1acbSmrgfi
4899b66d1acbSmrgif test x$ADMIN_MAN_DIR = x    ; then
4900b66d1acbSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4901b66d1acbSmrgfi
4902b66d1acbSmrg
4903b66d1acbSmrg
4904b66d1acbSmrg
4905b66d1acbSmrg
4906b66d1acbSmrg
4907b66d1acbSmrg
4908b66d1acbSmrg
4909b66d1acbSmrg
4910b66d1acbSmrg
4911b66d1acbSmrg
4912b66d1acbSmrg
4913b66d1acbSmrg
4914b66d1acbSmrg
4915b66d1acbSmrg
4916b66d1acbSmrg
4917b66d1acbSmrg
4918b66d1acbSmrg
4919b66d1acbSmrg# Checks for pkg-config packages
4920b66d1acbSmrg
4921b66d1acbSmrg
4922b66d1acbSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4923b66d1acbSmrg	if test -n "$ac_tool_prefix"; then
4924b66d1acbSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4925b66d1acbSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4926b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
49284fb28925Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4929b66d1acbSmrg  $as_echo_n "(cached) " >&6
49304fb28925Smrgelse
49314fb28925Smrg  case $PKG_CONFIG in
49324fb28925Smrg  [\\/]* | ?:[\\/]*)
49334fb28925Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
49344fb28925Smrg  ;;
49354fb28925Smrg  *)
49364fb28925Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49374fb28925Smrgfor as_dir in $PATH
49384fb28925Smrgdo
49394fb28925Smrg  IFS=$as_save_IFS
49404fb28925Smrg  test -z "$as_dir" && as_dir=.
49414fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4942b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49434fb28925Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4944b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49454fb28925Smrg    break 2
49464fb28925Smrg  fi
49474fb28925Smrgdone
49484fb28925Smrgdone
4949b66d1acbSmrgIFS=$as_save_IFS
49504fb28925Smrg
49514fb28925Smrg  ;;
49524fb28925Smrgesac
49534fb28925Smrgfi
49544fb28925SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
49554fb28925Smrgif test -n "$PKG_CONFIG"; then
4956b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4957b66d1acbSmrg$as_echo "$PKG_CONFIG" >&6; }
49584fb28925Smrgelse
4959b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
4960b66d1acbSmrg$as_echo "no" >&6; }
49614fb28925Smrgfi
49624fb28925Smrg
4963b66d1acbSmrg
49644fb28925Smrgfi
49654fb28925Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
49664fb28925Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
49674fb28925Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
49684fb28925Smrgset dummy pkg-config; ac_word=$2
4969b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4970b66d1acbSmrg$as_echo_n "checking for $ac_word... " >&6; }
49714fb28925Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4972b66d1acbSmrg  $as_echo_n "(cached) " >&6
49734fb28925Smrgelse
49744fb28925Smrg  case $ac_pt_PKG_CONFIG in
49754fb28925Smrg  [\\/]* | ?:[\\/]*)
49764fb28925Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
49774fb28925Smrg  ;;
49784fb28925Smrg  *)
49794fb28925Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49804fb28925Smrgfor as_dir in $PATH
49814fb28925Smrgdo
49824fb28925Smrg  IFS=$as_save_IFS
49834fb28925Smrg  test -z "$as_dir" && as_dir=.
49844fb28925Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4985b66d1acbSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49864fb28925Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4987b66d1acbSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49884fb28925Smrg    break 2
49894fb28925Smrg  fi
49904fb28925Smrgdone
49914fb28925Smrgdone
4992b66d1acbSmrgIFS=$as_save_IFS
49934fb28925Smrg
49944fb28925Smrg  ;;
49954fb28925Smrgesac
49964fb28925Smrgfi
49974fb28925Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
49984fb28925Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4999b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5000b66d1acbSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
50014fb28925Smrgelse
5002b66d1acbSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5003b66d1acbSmrg$as_echo "no" >&6; }
50044fb28925Smrgfi
50054fb28925Smrg
5006b66d1acbSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5007b66d1acbSmrg    PKG_CONFIG=""
5008b66d1acbSmrg  else
5009b66d1acbSmrg    case $cross_compiling:$ac_tool_warned in
5010b66d1acbSmrgyes:)
5011b66d1acbSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5012b66d1acbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013b66d1acbSmrgac_tool_warned=yes ;;
5014b66d1acbSmrgesac
5015b66d1acbSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5016b66d1acbSmrg  fi
50174fb28925Smrgelse
50184fb28925Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
50194fb28925Smrgfi
50204fb28925Smrg
50214fb28925Smrgfi
50224fb28925Smrgif test -n "$PKG_CONFIG"; then
50234fb28925Smrg	_pkg_min_version=0.9.0
5024b66d1acbSmrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5025b66d1acbSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
50264fb28925Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5027b66d1acbSmrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5028b66d1acbSmrg$as_echo "yes" >&6; }
50294fb28925Smrg	else
5030b66d1acbSmrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
5031b66d1acbSmrg$as_echo "no" >&6; }
50324fb28925Smrg		PKG_CONFIG=""
50334fb28925Smrg	fi
50344fb28925Smrg
50354fb28925Smrgfi
50364fb28925Smrg
50374fb28925Smrgpkg_failed=no
5038b66d1acbSmrg{ $as_echo "$as_me:$LINENO: checking for XKILL" >&5
5039b66d1acbSmrg$as_echo_n "checking for XKILL... " >&6; }
5040b66d1acbSmrg
5041b66d1acbSmrgif test -n "$XKILL_CFLAGS"; then
5042b66d1acbSmrg    pkg_cv_XKILL_CFLAGS="$XKILL_CFLAGS"
5043b66d1acbSmrg elif test -n "$PKG_CONFIG"; then
5044b66d1acbSmrg    if test -n "$PKG_CONFIG" && \
5045b66d1acbSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
50464fb28925Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
50474fb28925Smrg  ac_status=$?
5048b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494fb28925Smrg  (exit $ac_status); }; then
50504fb28925Smrg  pkg_cv_XKILL_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
50514fb28925Smrgelse
50524fb28925Smrg  pkg_failed=yes
50534fb28925Smrgfi
5054b66d1acbSmrg else
5055b66d1acbSmrg    pkg_failed=untried
50564fb28925Smrgfi
5057b66d1acbSmrgif test -n "$XKILL_LIBS"; then
5058b66d1acbSmrg    pkg_cv_XKILL_LIBS="$XKILL_LIBS"
5059b66d1acbSmrg elif test -n "$PKG_CONFIG"; then
5060b66d1acbSmrg    if test -n "$PKG_CONFIG" && \
5061b66d1acbSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
50624fb28925Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
50634fb28925Smrg  ac_status=$?
5064b66d1acbSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50654fb28925Smrg  (exit $ac_status); }; then
50664fb28925Smrg  pkg_cv_XKILL_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
50674fb28925Smrgelse
50684fb28925Smrg  pkg_failed=yes
50694fb28925Smrgfi
5070b66d1acbSmrg else
5071b66d1acbSmrg    pkg_failed=untried
50724fb28925Smrgfi
50734fb28925Smrg
50744fb28925Smrg
50754fb28925Smrg
50764fb28925Smrgif test $pkg_failed = yes; then
50774fb28925Smrg
50784fb28925Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50794fb28925Smrg        _pkg_short_errors_supported=yes
50804fb28925Smrgelse
50814fb28925Smrg        _pkg_short_errors_supported=no
50824fb28925Smrgfi
50834fb28925Smrg        if test $_pkg_short_errors_supported = yes; then
5084b66d1acbSmrg	        XKILL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu" 2>&1`
50854fb28925Smrg        else
5086b66d1acbSmrg	        XKILL_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu" 2>&1`
50874fb28925Smrg        fi
50884fb28925Smrg	# Put the nasty error message in config.log where it belongs
50894fb28925Smrg	echo "$XKILL_PKG_ERRORS" >&5
50904fb28925Smrg
5091b66d1acbSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xmuu) were not met:
50924fb28925Smrg
50934fb28925Smrg$XKILL_PKG_ERRORS
50944fb28925Smrg
50954fb28925SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
50964fb28925Smrginstalled software in a non-standard prefix.
50974fb28925Smrg
50984fb28925SmrgAlternatively, you may set the environment variables XKILL_CFLAGS
50994fb28925Smrgand XKILL_LIBS to avoid the need to call pkg-config.
51004fb28925SmrgSee the pkg-config man page for more details.
51014fb28925Smrg" >&5
5102b66d1acbSmrg$as_echo "$as_me: error: Package requirements (x11 xmuu) were not met:
51034fb28925Smrg
51044fb28925Smrg$XKILL_PKG_ERRORS
51054fb28925Smrg
51064fb28925SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
51074fb28925Smrginstalled software in a non-standard prefix.
51084fb28925Smrg
51094fb28925SmrgAlternatively, you may set the environment variables XKILL_CFLAGS
51104fb28925Smrgand XKILL_LIBS to avoid the need to call pkg-config.
51114fb28925SmrgSee the pkg-config man page for more details.
51124fb28925Smrg" >&2;}
51134fb28925Smrg   { (exit 1); exit 1; }; }
51144fb28925Smrgelif test $pkg_failed = untried; then
5115b66d1acbSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5116b66d1acbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5117b66d1acbSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
51184fb28925Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
51194fb28925Smrgpath to pkg-config.
51204fb28925Smrg
51214fb28925SmrgAlternatively, you may set the environment variables XKILL_CFLAGS
51224fb28925Smrgand XKILL_LIBS to avoid the need to call pkg-config.
51234fb28925SmrgSee the pkg-config man page for more details.
51244fb28925Smrg
5125b66d1acbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
51264fb28925SmrgSee \`config.log' for more details." >&5
5127b66d1acbSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
51284fb28925Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
51294fb28925Smrgpath to pkg-config.
51304fb28925Smrg
51314fb28925SmrgAlternatively, you may set the environment variables XKILL_CFLAGS
51324fb28925Smrgand XKILL_LIBS to avoid the need to call pkg-config.
51334fb28925SmrgSee the pkg-config man page for more details.
51344fb28925Smrg
5135b66d1acbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
51364fb28925SmrgSee \`config.log' for more details." >&2;}
5137b66d1acbSmrg   { (exit 1); exit 1; }; }; }
51384fb28925Smrgelse
51394fb28925Smrg	XKILL_CFLAGS=$pkg_cv_XKILL_CFLAGS
51404fb28925Smrg	XKILL_LIBS=$pkg_cv_XKILL_LIBS
5141b66d1acbSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5142b66d1acbSmrg$as_echo "yes" >&6; }
51434fb28925Smrg	:
51444fb28925Smrgfi
51454fb28925Smrg
51464fb28925Smrg
51474fb28925Smrg
5148b66d1acbSmrgac_config_files="$ac_config_files Makefile"
51494fb28925Smrg
51504fb28925Smrgcat >confcache <<\_ACEOF
51514fb28925Smrg# This file is a shell script that caches the results of configure
51524fb28925Smrg# tests run on this system so they can be shared between configure
51534fb28925Smrg# scripts and configure runs, see configure's option --config-cache.
51544fb28925Smrg# It is not useful on other systems.  If it contains results you don't
51554fb28925Smrg# want to keep, you may remove or edit it.
51564fb28925Smrg#
51574fb28925Smrg# config.status only pays attention to the cache file if you give it
51584fb28925Smrg# the --recheck option to rerun configure.
51594fb28925Smrg#
51604fb28925Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
51614fb28925Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
51624fb28925Smrg# following values.
51634fb28925Smrg
51644fb28925Smrg_ACEOF
51654fb28925Smrg
51664fb28925Smrg# The following way of writing the cache mishandles newlines in values,
51674fb28925Smrg# but we know of no workaround that is simple, portable, and efficient.
5168b66d1acbSmrg# So, we kill variables containing newlines.
51694fb28925Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
51704fb28925Smrg# and sets the high bit in the cache file unless we assign to the vars.
5171b66d1acbSmrg(
5172b66d1acbSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5173b66d1acbSmrg    eval ac_val=\$$ac_var
5174b66d1acbSmrg    case $ac_val in #(
5175b66d1acbSmrg    *${as_nl}*)
5176b66d1acbSmrg      case $ac_var in #(
5177b66d1acbSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5178b66d1acbSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5179b66d1acbSmrg      esac
5180b66d1acbSmrg      case $ac_var in #(
5181b66d1acbSmrg      _ | IFS | as_nl) ;; #(
5182b66d1acbSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5183b66d1acbSmrg      *) $as_unset $ac_var ;;
5184b66d1acbSmrg      esac ;;
5185b66d1acbSmrg    esac
5186b66d1acbSmrg  done
5187b66d1acbSmrg
51884fb28925Smrg  (set) 2>&1 |
5189b66d1acbSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5190b66d1acbSmrg    *${as_nl}ac_space=\ *)
51914fb28925Smrg      # `set' does not quote correctly, so add quotes (double-quote
51924fb28925Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
51934fb28925Smrg      sed -n \
51944fb28925Smrg	"s/'/'\\\\''/g;
51954fb28925Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5196b66d1acbSmrg      ;; #(
51974fb28925Smrg    *)
51984fb28925Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5199b66d1acbSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52004fb28925Smrg      ;;
5201b66d1acbSmrg    esac |
5202b66d1acbSmrg    sort
5203b66d1acbSmrg) |
52044fb28925Smrg  sed '
5205b66d1acbSmrg     /^ac_cv_env_/b end
52064fb28925Smrg     t clear
5207b66d1acbSmrg     :clear
52084fb28925Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52094fb28925Smrg     t end
5210b66d1acbSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5211b66d1acbSmrg     :end' >>confcache
5212b66d1acbSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5213b66d1acbSmrg  if test -w "$cache_file"; then
5214b66d1acbSmrg    test "x$cache_file" != "x/dev/null" &&
5215b66d1acbSmrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5216b66d1acbSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
52174fb28925Smrg    cat confcache >$cache_file
52184fb28925Smrg  else
5219b66d1acbSmrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5220b66d1acbSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52214fb28925Smrg  fi
52224fb28925Smrgfi
52234fb28925Smrgrm -f confcache
52244fb28925Smrg
52254fb28925Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
52264fb28925Smrg# Let make expand exec_prefix.
52274fb28925Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52284fb28925Smrg
52294fb28925SmrgDEFS=-DHAVE_CONFIG_H
52304fb28925Smrg
52314fb28925Smrgac_libobjs=
52324fb28925Smrgac_ltlibobjs=
52334fb28925Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52344fb28925Smrg  # 1. Remove the extension, and $U if already installed.
5235b66d1acbSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5236b66d1acbSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5237b66d1acbSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5238b66d1acbSmrg  #    will be set to the directory where LIBOBJS objects are built.
5239b66d1acbSmrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5240b66d1acbSmrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52414fb28925Smrgdone
52424fb28925SmrgLIBOBJS=$ac_libobjs
52434fb28925Smrg
52444fb28925SmrgLTLIBOBJS=$ac_ltlibobjs
52454fb28925Smrg
52464fb28925Smrg
5247b66d1acbSmrg if test -n "$EXEEXT"; then
5248b66d1acbSmrg  am__EXEEXT_TRUE=
5249b66d1acbSmrg  am__EXEEXT_FALSE='#'
5250b66d1acbSmrgelse
5251b66d1acbSmrg  am__EXEEXT_TRUE='#'
5252b66d1acbSmrg  am__EXEEXT_FALSE=
5253b66d1acbSmrgfi
5254b66d1acbSmrg
52554fb28925Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5256b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
52574fb28925SmrgUsually this means the macro was only invoked conditionally." >&5
5258b66d1acbSmrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
52594fb28925SmrgUsually this means the macro was only invoked conditionally." >&2;}
52604fb28925Smrg   { (exit 1); exit 1; }; }
52614fb28925Smrgfi
52624fb28925Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5263b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52644fb28925SmrgUsually this means the macro was only invoked conditionally." >&5
5265b66d1acbSmrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
52664fb28925SmrgUsually this means the macro was only invoked conditionally." >&2;}
52674fb28925Smrg   { (exit 1); exit 1; }; }
52684fb28925Smrgfi
52694fb28925Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5270b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52714fb28925SmrgUsually this means the macro was only invoked conditionally." >&5
5272b66d1acbSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52734fb28925SmrgUsually this means the macro was only invoked conditionally." >&2;}
52744fb28925Smrg   { (exit 1); exit 1; }; }
52754fb28925Smrgfi
52764fb28925Smrg
52774fb28925Smrg: ${CONFIG_STATUS=./config.status}
5278b66d1acbSmrgac_write_fail=0
52794fb28925Smrgac_clean_files_save=$ac_clean_files
52804fb28925Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5281b66d1acbSmrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5282b66d1acbSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5283b66d1acbSmrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52844fb28925Smrg#! $SHELL
52854fb28925Smrg# Generated by $as_me.
52864fb28925Smrg# Run this file to recreate the current configuration.
52874fb28925Smrg# Compiler output produced by configure, useful for debugging
52884fb28925Smrg# configure, is in config.log if it exists.
52894fb28925Smrg
52904fb28925Smrgdebug=false
52914fb28925Smrgac_cs_recheck=false
52924fb28925Smrgac_cs_silent=false
52934fb28925SmrgSHELL=\${CONFIG_SHELL-$SHELL}
52944fb28925Smrg_ACEOF
52954fb28925Smrg
5296b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52974fb28925Smrg## --------------------- ##
52984fb28925Smrg## M4sh Initialization.  ##
52994fb28925Smrg## --------------------- ##
53004fb28925Smrg
5301b66d1acbSmrg# Be more Bourne compatible
5302b66d1acbSmrgDUALCASE=1; export DUALCASE # for MKS sh
53034fb28925Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53044fb28925Smrg  emulate sh
53054fb28925Smrg  NULLCMD=:
5306b66d1acbSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
53074fb28925Smrg  # is contrary to our usage.  Disable this feature.
53084fb28925Smrg  alias -g '${1+"$@"}'='"$@"'
5309b66d1acbSmrg  setopt NO_GLOB_SUBST
5310b66d1acbSmrgelse
5311b66d1acbSmrg  case `(set -o) 2>/dev/null` in
5312b66d1acbSmrg  *posix*) set -o posix ;;
5313b66d1acbSmrgesac
5314b66d1acbSmrg
5315b66d1acbSmrgfi
5316b66d1acbSmrg
5317b66d1acbSmrg
5318b66d1acbSmrg
5319b66d1acbSmrg
5320b66d1acbSmrg# PATH needs CR
5321b66d1acbSmrg# Avoid depending upon Character Ranges.
5322b66d1acbSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5323b66d1acbSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5324b66d1acbSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5325b66d1acbSmrgas_cr_digits='0123456789'
5326b66d1acbSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5327b66d1acbSmrg
5328b66d1acbSmrgas_nl='
5329b66d1acbSmrg'
5330b66d1acbSmrgexport as_nl
5331b66d1acbSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5332b66d1acbSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5333b66d1acbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5334b66d1acbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5335b66d1acbSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5336b66d1acbSmrg  as_echo='printf %s\n'
5337b66d1acbSmrg  as_echo_n='printf %s'
5338b66d1acbSmrgelse
5339b66d1acbSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5340b66d1acbSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5341b66d1acbSmrg    as_echo_n='/usr/ucb/echo -n'
5342b66d1acbSmrg  else
5343b66d1acbSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5344b66d1acbSmrg    as_echo_n_body='eval
5345b66d1acbSmrg      arg=$1;
5346b66d1acbSmrg      case $arg in
5347b66d1acbSmrg      *"$as_nl"*)
5348b66d1acbSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5349b66d1acbSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5350b66d1acbSmrg      esac;
5351b66d1acbSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5352b66d1acbSmrg    '
5353b66d1acbSmrg    export as_echo_n_body
5354b66d1acbSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5355b66d1acbSmrg  fi
5356b66d1acbSmrg  export as_echo_body
5357b66d1acbSmrg  as_echo='sh -c $as_echo_body as_echo'
5358b66d1acbSmrgfi
5359b66d1acbSmrg
5360b66d1acbSmrg# The user is always right.
5361b66d1acbSmrgif test "${PATH_SEPARATOR+set}" != set; then
5362b66d1acbSmrg  PATH_SEPARATOR=:
5363b66d1acbSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5364b66d1acbSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5365b66d1acbSmrg      PATH_SEPARATOR=';'
5366b66d1acbSmrg  }
53674fb28925Smrgfi
53684fb28925Smrg
53694fb28925Smrg# Support unset when possible.
53704fb28925Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53714fb28925Smrg  as_unset=unset
53724fb28925Smrgelse
53734fb28925Smrg  as_unset=false
53744fb28925Smrgfi
53754fb28925Smrg
53764fb28925Smrg
5377b66d1acbSmrg# IFS
5378b66d1acbSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5379b66d1acbSmrg# there to prevent editors from complaining about space-tab.
5380b66d1acbSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5381b66d1acbSmrg# splitting by setting IFS to empty value.)
5382b66d1acbSmrgIFS=" ""	$as_nl"
5383b66d1acbSmrg
5384b66d1acbSmrg# Find who we are.  Look in the path if we contain no directory separator.
5385b66d1acbSmrgcase $0 in
5386b66d1acbSmrg  *[\\/]* ) as_myself=$0 ;;
5387b66d1acbSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388b66d1acbSmrgfor as_dir in $PATH
5389b66d1acbSmrgdo
5390b66d1acbSmrg  IFS=$as_save_IFS
5391b66d1acbSmrg  test -z "$as_dir" && as_dir=.
5392b66d1acbSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5393b66d1acbSmrgdone
5394b66d1acbSmrgIFS=$as_save_IFS
5395b66d1acbSmrg
5396b66d1acbSmrg     ;;
5397b66d1acbSmrgesac
5398b66d1acbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5399b66d1acbSmrg# in which case we are not to be found in the path.
5400b66d1acbSmrgif test "x$as_myself" = x; then
5401b66d1acbSmrg  as_myself=$0
5402b66d1acbSmrgfi
5403b66d1acbSmrgif test ! -f "$as_myself"; then
5404b66d1acbSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5405b66d1acbSmrg  { (exit 1); exit 1; }
5406b66d1acbSmrgfi
5407b66d1acbSmrg
54084fb28925Smrg# Work around bugs in pre-3.0 UWIN ksh.
5409b66d1acbSmrgfor as_var in ENV MAIL MAILPATH
5410b66d1acbSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5411b66d1acbSmrgdone
54124fb28925SmrgPS1='$ '
54134fb28925SmrgPS2='> '
54144fb28925SmrgPS4='+ '
54154fb28925Smrg
54164fb28925Smrg# NLS nuisances.
5417b66d1acbSmrgLC_ALL=C
5418b66d1acbSmrgexport LC_ALL
5419b66d1acbSmrgLANGUAGE=C
5420b66d1acbSmrgexport LANGUAGE
54214fb28925Smrg
54224fb28925Smrg# Required to use basename.
5423b66d1acbSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5424b66d1acbSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
54254fb28925Smrg  as_expr=expr
54264fb28925Smrgelse
54274fb28925Smrg  as_expr=false
54284fb28925Smrgfi
54294fb28925Smrg
5430b66d1acbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54314fb28925Smrg  as_basename=basename
54324fb28925Smrgelse
54334fb28925Smrg  as_basename=false
54344fb28925Smrgfi
54354fb28925Smrg
54364fb28925Smrg
54374fb28925Smrg# Name of the executable.
5438b66d1acbSmrgas_me=`$as_basename -- "$0" ||
54394fb28925Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54404fb28925Smrg	 X"$0" : 'X\(//\)$' \| \
5441b66d1acbSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5442b66d1acbSmrg$as_echo X/"$0" |
5443b66d1acbSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5444b66d1acbSmrg	    s//\1/
5445b66d1acbSmrg	    q
5446b66d1acbSmrg	  }
5447b66d1acbSmrg	  /^X\/\(\/\/\)$/{
5448b66d1acbSmrg	    s//\1/
5449b66d1acbSmrg	    q
5450b66d1acbSmrg	  }
5451b66d1acbSmrg	  /^X\/\(\/\).*/{
5452b66d1acbSmrg	    s//\1/
5453b66d1acbSmrg	    q
5454b66d1acbSmrg	  }
5455b66d1acbSmrg	  s/.*/./; q'`
54564fb28925Smrg
5457b66d1acbSmrg# CDPATH.
5458b66d1acbSmrg$as_unset CDPATH
54594fb28925Smrg
54604fb28925Smrg
54614fb28925Smrg
54624fb28925Smrg  as_lineno_1=$LINENO
54634fb28925Smrg  as_lineno_2=$LINENO
54644fb28925Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
5465b66d1acbSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54664fb28925Smrg
54674fb28925Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54684fb28925Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
5469b66d1acbSmrg  # line-number line after each line using $LINENO; the second 'sed'
5470b66d1acbSmrg  # does the real work.  The second script uses 'N' to pair each
5471b66d1acbSmrg  # line-number line with the line containing $LINENO, and appends
5472b66d1acbSmrg  # trailing '-' during substitution so that $LINENO is not a special
5473b66d1acbSmrg  # case at line end.
54744fb28925Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5475b66d1acbSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5476b66d1acbSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
5477b66d1acbSmrg  sed -n '
5478b66d1acbSmrg    p
5479b66d1acbSmrg    /[$]LINENO/=
5480b66d1acbSmrg  ' <$as_myself |
54814fb28925Smrg    sed '
5482b66d1acbSmrg      s/[$]LINENO.*/&-/
5483b66d1acbSmrg      t lineno
5484b66d1acbSmrg      b
5485b66d1acbSmrg      :lineno
54864fb28925Smrg      N
5487b66d1acbSmrg      :loop
5488b66d1acbSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54894fb28925Smrg      t loop
5490b66d1acbSmrg      s/-\n.*//
54914fb28925Smrg    ' >$as_me.lineno &&
5492b66d1acbSmrg  chmod +x "$as_me.lineno" ||
5493b66d1acbSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54944fb28925Smrg   { (exit 1); exit 1; }; }
54954fb28925Smrg
54964fb28925Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
54974fb28925Smrg  # (the dirname of $[0] is not the place where we might find the
5498b66d1acbSmrg  # original and so on.  Autoconf is especially sensitive to this).
5499b66d1acbSmrg  . "./$as_me.lineno"
55004fb28925Smrg  # Exit status is that of the last command.
55014fb28925Smrg  exit
55024fb28925Smrg}
55034fb28925Smrg
55044fb28925Smrg
5505b66d1acbSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5506b66d1acbSmrg  as_dirname=dirname
5507b66d1acbSmrgelse
5508b66d1acbSmrg  as_dirname=false
5509b66d1acbSmrgfi
55104fb28925Smrg
5511b66d1acbSmrgECHO_C= ECHO_N= ECHO_T=
5512b66d1acbSmrgcase `echo -n x` in
5513b66d1acbSmrg-n*)
5514b66d1acbSmrg  case `echo 'x\c'` in
5515b66d1acbSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5516b66d1acbSmrg  *)   ECHO_C='\c';;
5517b66d1acbSmrg  esac;;
5518b66d1acbSmrg*)
5519b66d1acbSmrg  ECHO_N='-n';;
5520b66d1acbSmrgesac
5521b66d1acbSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5522b66d1acbSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55234fb28925Smrg  as_expr=expr
55244fb28925Smrgelse
55254fb28925Smrg  as_expr=false
55264fb28925Smrgfi
55274fb28925Smrg
55284fb28925Smrgrm -f conf$$ conf$$.exe conf$$.file
5529b66d1acbSmrgif test -d conf$$.dir; then
5530b66d1acbSmrg  rm -f conf$$.dir/conf$$.file
5531b66d1acbSmrgelse
5532b66d1acbSmrg  rm -f conf$$.dir
5533b66d1acbSmrg  mkdir conf$$.dir 2>/dev/null
5534b66d1acbSmrgfi
5535b66d1acbSmrgif (echo >conf$$.file) 2>/dev/null; then
5536b66d1acbSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
55374fb28925Smrg    as_ln_s='ln -s'
5538b66d1acbSmrg    # ... but there are two gotchas:
5539b66d1acbSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5540b66d1acbSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5541b66d1acbSmrg    # In both cases, we have to default to `cp -p'.
5542b66d1acbSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5543b66d1acbSmrg      as_ln_s='cp -p'
5544b66d1acbSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5545b66d1acbSmrg    as_ln_s=ln
5546b66d1acbSmrg  else
5547b66d1acbSmrg    as_ln_s='cp -p'
55484fb28925Smrg  fi
55494fb28925Smrgelse
55504fb28925Smrg  as_ln_s='cp -p'
55514fb28925Smrgfi
5552b66d1acbSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5553b66d1acbSmrgrmdir conf$$.dir 2>/dev/null
55544fb28925Smrg
55554fb28925Smrgif mkdir -p . 2>/dev/null; then
55564fb28925Smrg  as_mkdir_p=:
55574fb28925Smrgelse
55584fb28925Smrg  test -d ./-p && rmdir ./-p
55594fb28925Smrg  as_mkdir_p=false
55604fb28925Smrgfi
55614fb28925Smrg
5562b66d1acbSmrgif test -x / >/dev/null 2>&1; then
5563b66d1acbSmrg  as_test_x='test -x'
5564b66d1acbSmrgelse
5565b66d1acbSmrg  if ls -dL / >/dev/null 2>&1; then
5566b66d1acbSmrg    as_ls_L_option=L
5567b66d1acbSmrg  else
5568b66d1acbSmrg    as_ls_L_option=
5569b66d1acbSmrg  fi
5570b66d1acbSmrg  as_test_x='
5571b66d1acbSmrg    eval sh -c '\''
5572b66d1acbSmrg      if test -d "$1"; then
5573b66d1acbSmrg	test -d "$1/.";
5574b66d1acbSmrg      else
5575b66d1acbSmrg	case $1 in
5576b66d1acbSmrg	-*)set "./$1";;
5577b66d1acbSmrg	esac;
5578b66d1acbSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5579b66d1acbSmrg	???[sx]*):;;*)false;;esac;fi
5580b66d1acbSmrg    '\'' sh
5581b66d1acbSmrg  '
5582b66d1acbSmrgfi
5583b66d1acbSmrgas_executable_p=$as_test_x
55844fb28925Smrg
55854fb28925Smrg# Sed expression to map a string onto a valid CPP name.
55864fb28925Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55874fb28925Smrg
55884fb28925Smrg# Sed expression to map a string onto a valid variable name.
55894fb28925Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55904fb28925Smrg
55914fb28925Smrg
55924fb28925Smrgexec 6>&1
55934fb28925Smrg
5594b66d1acbSmrg# Save the log message, to keep $[0] and so on meaningful, and to
55954fb28925Smrg# report actual input values of CONFIG_FILES etc. instead of their
5596b66d1acbSmrg# values after options handling.
5597b66d1acbSmrgac_log="
5598b66d1acbSmrgThis file was extended by xkill $as_me 1.0.2, which was
5599b66d1acbSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
56004fb28925Smrg
56014fb28925Smrg  CONFIG_FILES    = $CONFIG_FILES
56024fb28925Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
56034fb28925Smrg  CONFIG_LINKS    = $CONFIG_LINKS
56044fb28925Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
56054fb28925Smrg  $ $0 $@
56064fb28925Smrg
5607b66d1acbSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5608b66d1acbSmrg"
5609b66d1acbSmrg
56104fb28925Smrg_ACEOF
56114fb28925Smrg
5612b66d1acbSmrgcase $ac_config_files in *"
5613b66d1acbSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5614b66d1acbSmrgesac
56154fb28925Smrg
5616b66d1acbSmrgcase $ac_config_headers in *"
5617b66d1acbSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5618b66d1acbSmrgesac
56194fb28925Smrg
56204fb28925Smrg
5621b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5622b66d1acbSmrg# Files that config.status was made for.
5623b66d1acbSmrgconfig_files="$ac_config_files"
5624b66d1acbSmrgconfig_headers="$ac_config_headers"
5625b66d1acbSmrgconfig_commands="$ac_config_commands"
56264fb28925Smrg
5627b66d1acbSmrg_ACEOF
56284fb28925Smrg
5629b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56304fb28925Smrgac_cs_usage="\
56314fb28925Smrg\`$as_me' instantiates files from templates according to the
56324fb28925Smrgcurrent configuration.
56334fb28925Smrg
5634b66d1acbSmrgUsage: $0 [OPTION]... [FILE]...
56354fb28925Smrg
56364fb28925Smrg  -h, --help       print this help, then exit
5637b66d1acbSmrg  -V, --version    print version number and configuration settings, then exit
5638b66d1acbSmrg  -q, --quiet, --silent
5639b66d1acbSmrg                   do not print progress messages
56404fb28925Smrg  -d, --debug      don't remove temporary files
56414fb28925Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5642b66d1acbSmrg      --file=FILE[:TEMPLATE]
5643b66d1acbSmrg                   instantiate the configuration file FILE
5644b66d1acbSmrg      --header=FILE[:TEMPLATE]
5645b66d1acbSmrg                   instantiate the configuration header FILE
56464fb28925Smrg
56474fb28925SmrgConfiguration files:
56484fb28925Smrg$config_files
56494fb28925Smrg
56504fb28925SmrgConfiguration headers:
56514fb28925Smrg$config_headers
56524fb28925Smrg
56534fb28925SmrgConfiguration commands:
56544fb28925Smrg$config_commands
56554fb28925Smrg
56564fb28925SmrgReport bugs to <bug-autoconf@gnu.org>."
56574fb28925Smrg
5658b66d1acbSmrg_ACEOF
5659b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56604fb28925Smrgac_cs_version="\\
5661b66d1acbSmrgxkill config.status 1.0.2
5662b66d1acbSmrgconfigured by $0, generated by GNU Autoconf 2.63,
5663b66d1acbSmrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56644fb28925Smrg
5665b66d1acbSmrgCopyright (C) 2008 Free Software Foundation, Inc.
56664fb28925SmrgThis config.status script is free software; the Free Software Foundation
56674fb28925Smrggives unlimited permission to copy, distribute and modify it."
5668b66d1acbSmrg
5669b66d1acbSmrgac_pwd='$ac_pwd'
5670b66d1acbSmrgsrcdir='$srcdir'
5671b66d1acbSmrgINSTALL='$INSTALL'
5672b66d1acbSmrgMKDIR_P='$MKDIR_P'
5673b66d1acbSmrgAWK='$AWK'
5674b66d1acbSmrgtest -n "\$AWK" || AWK=awk
56754fb28925Smrg_ACEOF
56764fb28925Smrg
5677b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5678b66d1acbSmrg# The default lists apply if the user does not specify any file.
56794fb28925Smrgac_need_defaults=:
56804fb28925Smrgwhile test $# != 0
56814fb28925Smrgdo
56824fb28925Smrg  case $1 in
56834fb28925Smrg  --*=*)
5684b66d1acbSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5685b66d1acbSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56864fb28925Smrg    ac_shift=:
56874fb28925Smrg    ;;
5688b66d1acbSmrg  *)
56894fb28925Smrg    ac_option=$1
56904fb28925Smrg    ac_optarg=$2
56914fb28925Smrg    ac_shift=shift
56924fb28925Smrg    ;;
56934fb28925Smrg  esac
56944fb28925Smrg
56954fb28925Smrg  case $ac_option in
56964fb28925Smrg  # Handling of the options.
56974fb28925Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56984fb28925Smrg    ac_cs_recheck=: ;;
5699b66d1acbSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5700b66d1acbSmrg    $as_echo "$ac_cs_version"; exit ;;
5701b66d1acbSmrg  --debug | --debu | --deb | --de | --d | -d )
57024fb28925Smrg    debug=: ;;
57034fb28925Smrg  --file | --fil | --fi | --f )
57044fb28925Smrg    $ac_shift
5705b66d1acbSmrg    case $ac_optarg in
5706b66d1acbSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5707b66d1acbSmrg    esac
5708b66d1acbSmrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
57094fb28925Smrg    ac_need_defaults=false;;
57104fb28925Smrg  --header | --heade | --head | --hea )
57114fb28925Smrg    $ac_shift
5712b66d1acbSmrg    case $ac_optarg in
5713b66d1acbSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5714b66d1acbSmrg    esac
5715b66d1acbSmrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
57164fb28925Smrg    ac_need_defaults=false;;
5717b66d1acbSmrg  --he | --h)
5718b66d1acbSmrg    # Conflict between --help and --header
5719b66d1acbSmrg    { $as_echo "$as_me: error: ambiguous option: $1
5720b66d1acbSmrgTry \`$0 --help' for more information." >&2
5721b66d1acbSmrg   { (exit 1); exit 1; }; };;
5722b66d1acbSmrg  --help | --hel | -h )
5723b66d1acbSmrg    $as_echo "$ac_cs_usage"; exit ;;
57244fb28925Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57254fb28925Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
57264fb28925Smrg    ac_cs_silent=: ;;
57274fb28925Smrg
57284fb28925Smrg  # This is an error.
5729b66d1acbSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
5730b66d1acbSmrgTry \`$0 --help' for more information." >&2
57314fb28925Smrg   { (exit 1); exit 1; }; } ;;
57324fb28925Smrg
5733b66d1acbSmrg  *) ac_config_targets="$ac_config_targets $1"
5734b66d1acbSmrg     ac_need_defaults=false ;;
57354fb28925Smrg
57364fb28925Smrg  esac
57374fb28925Smrg  shift
57384fb28925Smrgdone
57394fb28925Smrg
57404fb28925Smrgac_configure_extra_args=
57414fb28925Smrg
57424fb28925Smrgif $ac_cs_silent; then
57434fb28925Smrg  exec 6>/dev/null
57444fb28925Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
57454fb28925Smrgfi
57464fb28925Smrg
57474fb28925Smrg_ACEOF
5748b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57494fb28925Smrgif \$ac_cs_recheck; then
5750b66d1acbSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5751b66d1acbSmrg  shift
5752b66d1acbSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5753b66d1acbSmrg  CONFIG_SHELL='$SHELL'
5754b66d1acbSmrg  export CONFIG_SHELL
5755b66d1acbSmrg  exec "\$@"
57564fb28925Smrgfi
57574fb28925Smrg
57584fb28925Smrg_ACEOF
5759b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5760b66d1acbSmrgexec 5>>config.log
5761b66d1acbSmrg{
5762b66d1acbSmrg  echo
5763b66d1acbSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5764b66d1acbSmrg## Running $as_me. ##
5765b66d1acbSmrg_ASBOX
5766b66d1acbSmrg  $as_echo "$ac_log"
5767b66d1acbSmrg} >&5
57684fb28925Smrg
5769b66d1acbSmrg_ACEOF
5770b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57714fb28925Smrg#
5772b66d1acbSmrg# INIT-COMMANDS
57734fb28925Smrg#
57744fb28925SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
57754fb28925Smrg
57764fb28925Smrg_ACEOF
57774fb28925Smrg
5778b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57794fb28925Smrg
5780b66d1acbSmrg# Handling of arguments.
57814fb28925Smrgfor ac_config_target in $ac_config_targets
57824fb28925Smrgdo
5783b66d1acbSmrg  case $ac_config_target in
5784b66d1acbSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5785b66d1acbSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5786b66d1acbSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5787b66d1acbSmrg
5788b66d1acbSmrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5789b66d1acbSmrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
57904fb28925Smrg   { (exit 1); exit 1; }; };;
57914fb28925Smrg  esac
57924fb28925Smrgdone
57934fb28925Smrg
5794b66d1acbSmrg
57954fb28925Smrg# If the user did not use the arguments to specify the items to instantiate,
57964fb28925Smrg# then the envvar interface is used.  Set only those that are not.
57974fb28925Smrg# We use the long form for the default assignment because of an extremely
57984fb28925Smrg# bizarre bug on SunOS 4.1.3.
57994fb28925Smrgif $ac_need_defaults; then
58004fb28925Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
58014fb28925Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
58024fb28925Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
58034fb28925Smrgfi
58044fb28925Smrg
58054fb28925Smrg# Have a temporary directory for convenience.  Make it in the build tree
5806b66d1acbSmrg# simply because there is no reason against having it here, and in addition,
58074fb28925Smrg# creating and moving files from /tmp can sometimes cause problems.
5808b66d1acbSmrg# Hook for its removal unless debugging.
5809b66d1acbSmrg# Note that there is a small window in which the directory will not be cleaned:
5810b66d1acbSmrg# after its creation but before its name has been assigned to `$tmp'.
58114fb28925Smrg$debug ||
58124fb28925Smrg{
5813b66d1acbSmrg  tmp=
5814b66d1acbSmrg  trap 'exit_status=$?
5815b66d1acbSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5816b66d1acbSmrg' 0
58174fb28925Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
58184fb28925Smrg}
58194fb28925Smrg# Create a (secure) tmp directory for tmp files.
58204fb28925Smrg
58214fb28925Smrg{
5822b66d1acbSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
58234fb28925Smrg  test -n "$tmp" && test -d "$tmp"
58244fb28925Smrg}  ||
58254fb28925Smrg{
5826b66d1acbSmrg  tmp=./conf$$-$RANDOM
5827b66d1acbSmrg  (umask 077 && mkdir "$tmp")
58284fb28925Smrg} ||
58294fb28925Smrg{
5830b66d1acbSmrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
58314fb28925Smrg   { (exit 1); exit 1; }
58324fb28925Smrg}
58334fb28925Smrg
5834b66d1acbSmrg# Set up the scripts for CONFIG_FILES section.
5835b66d1acbSmrg# No need to generate them if there are no CONFIG_FILES.
5836b66d1acbSmrg# This happens for instance with `./config.status config.h'.
5837b66d1acbSmrgif test -n "$CONFIG_FILES"; then
5838b66d1acbSmrg
5839b66d1acbSmrg
5840b66d1acbSmrgac_cr='
5841b66d1acbSmrg'
5842b66d1acbSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5843b66d1acbSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5844b66d1acbSmrg  ac_cs_awk_cr='\\r'
5845b66d1acbSmrgelse
5846b66d1acbSmrg  ac_cs_awk_cr=$ac_cr
5847b66d1acbSmrgfi
5848b66d1acbSmrg
58494fb28925Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
58504fb28925Smrg_ACEOF
58514fb28925Smrg
5852b66d1acbSmrg
5853b66d1acbSmrg{
5854b66d1acbSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5855b66d1acbSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5856b66d1acbSmrg  echo "_ACEOF"
5857b66d1acbSmrg} >conf$$subs.sh ||
5858b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5859b66d1acbSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5860b66d1acbSmrg   { (exit 1); exit 1; }; }
5861b66d1acbSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5862b66d1acbSmrgac_delim='%!_!# '
5863b66d1acbSmrgfor ac_last_try in false false false false false :; do
5864b66d1acbSmrg  . ./conf$$subs.sh ||
5865b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5866b66d1acbSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58674fb28925Smrg   { (exit 1); exit 1; }; }
5868b66d1acbSmrg
5869b66d1acbSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5870b66d1acbSmrg  if test $ac_delim_n = $ac_delim_num; then
5871b66d1acbSmrg    break
5872b66d1acbSmrg  elif $ac_last_try; then
5873b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5874b66d1acbSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5875b66d1acbSmrg   { (exit 1); exit 1; }; }
5876b66d1acbSmrg  else
5877b66d1acbSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5878b66d1acbSmrg  fi
5879b66d1acbSmrgdone
58804fb28925Smrgrm -f conf$$subs.sh
5881b66d1acbSmrg
5882b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58834fb28925Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5884b66d1acbSmrg_ACEOF
5885b66d1acbSmrgsed -n '
5886b66d1acbSmrgh
5887b66d1acbSmrgs/^/S["/; s/!.*/"]=/
5888b66d1acbSmrgp
5889b66d1acbSmrgg
5890b66d1acbSmrgs/^[^!]*!//
5891b66d1acbSmrg:repl
5892b66d1acbSmrgt repl
5893b66d1acbSmrgs/'"$ac_delim"'$//
5894b66d1acbSmrgt delim
5895b66d1acbSmrg:nl
5896b66d1acbSmrgh
5897b66d1acbSmrgs/\(.\{148\}\).*/\1/
5898b66d1acbSmrgt more1
5899b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5900b66d1acbSmrgp
5901b66d1acbSmrgn
5902b66d1acbSmrgb repl
5903b66d1acbSmrg:more1
5904b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5905b66d1acbSmrgp
5906b66d1acbSmrgg
5907b66d1acbSmrgs/.\{148\}//
5908b66d1acbSmrgt nl
5909b66d1acbSmrg:delim
5910b66d1acbSmrgh
5911b66d1acbSmrgs/\(.\{148\}\).*/\1/
5912b66d1acbSmrgt more2
5913b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5914b66d1acbSmrgp
5915b66d1acbSmrgb
5916b66d1acbSmrg:more2
5917b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5918b66d1acbSmrgp
5919b66d1acbSmrgg
5920b66d1acbSmrgs/.\{148\}//
5921b66d1acbSmrgt delim
5922b66d1acbSmrg' <conf$$subs.awk | sed '
5923b66d1acbSmrg/^[^""]/{
5924b66d1acbSmrg  N
5925b66d1acbSmrg  s/\n//
5926b66d1acbSmrg}
5927b66d1acbSmrg' >>$CONFIG_STATUS || ac_write_fail=1
5928b66d1acbSmrgrm -f conf$$subs.awk
5929b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5930b66d1acbSmrg_ACAWK
5931b66d1acbSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
5932b66d1acbSmrg  for (key in S) S_is_set[key] = 1
59334fb28925Smrg  FS = ""
5934b66d1acbSmrg
5935b66d1acbSmrg}
5936b66d1acbSmrg{
5937b66d1acbSmrg  line = $ 0
5938b66d1acbSmrg  nfields = split(line, field, "@")
5939b66d1acbSmrg  substed = 0
5940b66d1acbSmrg  len = length(field[1])
5941b66d1acbSmrg  for (i = 2; i < nfields; i++) {
5942b66d1acbSmrg    key = field[i]
5943b66d1acbSmrg    keylen = length(key)
5944b66d1acbSmrg    if (S_is_set[key]) {
5945b66d1acbSmrg      value = S[key]
5946b66d1acbSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5947b66d1acbSmrg      len += length(value) + length(field[++i])
5948b66d1acbSmrg      substed = 1
5949b66d1acbSmrg    } else
5950b66d1acbSmrg      len += 1 + keylen
5951b66d1acbSmrg  }
5952b66d1acbSmrg
5953b66d1acbSmrg  print line
5954b66d1acbSmrg}
5955b66d1acbSmrg
5956b66d1acbSmrg_ACAWK
5957b66d1acbSmrg_ACEOF
5958b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5959b66d1acbSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5960b66d1acbSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5961b66d1acbSmrgelse
5962b66d1acbSmrg  cat
5963b66d1acbSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5964b66d1acbSmrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5965b66d1acbSmrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
5966b66d1acbSmrg   { (exit 1); exit 1; }; }
5967b66d1acbSmrg_ACEOF
5968b66d1acbSmrg
5969b66d1acbSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
5970b66d1acbSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5971b66d1acbSmrg# trailing colons and then remove the whole line if VPATH becomes empty
5972b66d1acbSmrg# (actually we leave an empty line to preserve line numbers).
5973b66d1acbSmrgif test "x$srcdir" = x.; then
5974b66d1acbSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5975b66d1acbSmrgs/:*\$(srcdir):*/:/
5976b66d1acbSmrgs/:*\${srcdir}:*/:/
5977b66d1acbSmrgs/:*@srcdir@:*/:/
5978b66d1acbSmrgs/^\([^=]*=[	 ]*\):*/\1/
5979b66d1acbSmrgs/:*$//
5980b66d1acbSmrgs/^[^=]*=[	 ]*$//
5981b66d1acbSmrg}'
5982b66d1acbSmrgfi
5983b66d1acbSmrg
59844fb28925Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59854fb28925Smrgfi # test -n "$CONFIG_FILES"
5986b66d1acbSmrg
5987b66d1acbSmrg# Set up the scripts for CONFIG_HEADERS section.
5988b66d1acbSmrg# No need to generate them if there are no CONFIG_HEADERS.
5989b66d1acbSmrg# This happens for instance with `./config.status Makefile'.
5990b66d1acbSmrgif test -n "$CONFIG_HEADERS"; then
5991b66d1acbSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
59924fb28925SmrgBEGIN {
5993b66d1acbSmrg_ACEOF
5994b66d1acbSmrg
5995b66d1acbSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5996b66d1acbSmrg# here-document in config.status, that substitutes the proper values into
5997b66d1acbSmrg# config.h.in to produce config.h.
5998b66d1acbSmrg
5999b66d1acbSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
6000b66d1acbSmrg# handling of long lines.
6001b66d1acbSmrgac_delim='%!_!# '
6002b66d1acbSmrgfor ac_last_try in false false :; do
6003b66d1acbSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6004b66d1acbSmrg  if test -z "$ac_t"; then
6005b66d1acbSmrg    break
6006b66d1acbSmrg  elif $ac_last_try; then
6007b66d1acbSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6008b66d1acbSmrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6009b66d1acbSmrg   { (exit 1); exit 1; }; }
6010b66d1acbSmrg  else
6011b66d1acbSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6012b66d1acbSmrg  fi
6013b66d1acbSmrgdone
6014b66d1acbSmrg
6015b66d1acbSmrg# For the awk script, D is an array of macro values keyed by name,
6016b66d1acbSmrg# likewise P contains macro parameters if any.  Preserve backslash
6017b66d1acbSmrg# newline sequences.
6018b66d1acbSmrg
6019b66d1acbSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6020b66d1acbSmrgsed -n '
6021b66d1acbSmrgs/.\{148\}/&'"$ac_delim"'/g
6022b66d1acbSmrgt rset
6023b66d1acbSmrg:rset
6024b66d1acbSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6025b66d1acbSmrgt def
6026b66d1acbSmrgd
6027b66d1acbSmrg:def
6028b66d1acbSmrgs/\\$//
6029b66d1acbSmrgt bsnl
6030b66d1acbSmrgs/["\\]/\\&/g
6031b66d1acbSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6032b66d1acbSmrgD["\1"]=" \3"/p
6033b66d1acbSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6034b66d1acbSmrgd
6035b66d1acbSmrg:bsnl
6036b66d1acbSmrgs/["\\]/\\&/g
6037b66d1acbSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6038b66d1acbSmrgD["\1"]=" \3\\\\\\n"\\/p
6039b66d1acbSmrgt cont
6040b66d1acbSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6041b66d1acbSmrgt cont
6042b66d1acbSmrgd
6043b66d1acbSmrg:cont
6044b66d1acbSmrgn
6045b66d1acbSmrgs/.\{148\}/&'"$ac_delim"'/g
6046b66d1acbSmrgt clear
6047b66d1acbSmrg:clear
6048b66d1acbSmrgs/\\$//
6049b66d1acbSmrgt bsnlc
6050b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6051b66d1acbSmrgd
6052b66d1acbSmrg:bsnlc
6053b66d1acbSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6054b66d1acbSmrgb cont
6055b66d1acbSmrg' <confdefs.h | sed '
6056b66d1acbSmrgs/'"$ac_delim"'/"\\\
6057b66d1acbSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6058b66d1acbSmrg
6059b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6060b66d1acbSmrg  for (key in D) D_is_set[key] = 1
6061b66d1acbSmrg  FS = ""
6062b66d1acbSmrg}
6063b66d1acbSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6064b66d1acbSmrg  line = \$ 0
6065b66d1acbSmrg  split(line, arg, " ")
6066b66d1acbSmrg  if (arg[1] == "#") {
6067b66d1acbSmrg    defundef = arg[2]
6068b66d1acbSmrg    mac1 = arg[3]
6069b66d1acbSmrg  } else {
6070b66d1acbSmrg    defundef = substr(arg[1], 2)
6071b66d1acbSmrg    mac1 = arg[2]
6072b66d1acbSmrg  }
6073b66d1acbSmrg  split(mac1, mac2, "(") #)
6074b66d1acbSmrg  macro = mac2[1]
6075b66d1acbSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
6076b66d1acbSmrg  if (D_is_set[macro]) {
6077b66d1acbSmrg    # Preserve the white space surrounding the "#".
6078b66d1acbSmrg    print prefix "define", macro P[macro] D[macro]
6079b66d1acbSmrg    next
6080b66d1acbSmrg  } else {
6081b66d1acbSmrg    # Replace #undef with comments.  This is necessary, for example,
6082b66d1acbSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
6083b66d1acbSmrg    # on some systems where configure will not decide to define it.
6084b66d1acbSmrg    if (defundef == "undef") {
6085b66d1acbSmrg      print "/*", prefix defundef, macro, "*/"
6086b66d1acbSmrg      next
6087b66d1acbSmrg    }
6088b66d1acbSmrg  }
6089b66d1acbSmrg}
6090b66d1acbSmrg{ print }
6091b66d1acbSmrg_ACAWK
6092b66d1acbSmrg_ACEOF
6093b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6094b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6095b66d1acbSmrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6096b66d1acbSmrg   { (exit 1); exit 1; }; }
6097b66d1acbSmrgfi # test -n "$CONFIG_HEADERS"
6098b66d1acbSmrg
6099b66d1acbSmrg
6100b66d1acbSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6101b66d1acbSmrgshift
6102b66d1acbSmrgfor ac_tag
6103b66d1acbSmrgdo
6104b66d1acbSmrg  case $ac_tag in
6105b66d1acbSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6106b66d1acbSmrg  esac
6107b66d1acbSmrg  case $ac_mode$ac_tag in
6108b66d1acbSmrg  :[FHL]*:*);;
6109b66d1acbSmrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6110b66d1acbSmrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6111b66d1acbSmrg   { (exit 1); exit 1; }; };;
6112b66d1acbSmrg  :[FH]-) ac_tag=-:-;;
6113b66d1acbSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6114b66d1acbSmrg  esac
6115b66d1acbSmrg  ac_save_IFS=$IFS
6116b66d1acbSmrg  IFS=:
6117b66d1acbSmrg  set x $ac_tag
6118b66d1acbSmrg  IFS=$ac_save_IFS
6119b66d1acbSmrg  shift
6120b66d1acbSmrg  ac_file=$1
6121b66d1acbSmrg  shift
6122b66d1acbSmrg
6123b66d1acbSmrg  case $ac_mode in
6124b66d1acbSmrg  :L) ac_source=$1;;
6125b66d1acbSmrg  :[FH])
6126b66d1acbSmrg    ac_file_inputs=
6127b66d1acbSmrg    for ac_f
6128b66d1acbSmrg    do
6129b66d1acbSmrg      case $ac_f in
6130b66d1acbSmrg      -) ac_f="$tmp/stdin";;
6131b66d1acbSmrg      *) # Look for the file first in the build tree, then in the source tree
6132b66d1acbSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6133b66d1acbSmrg	 # because $ac_f cannot contain `:'.
6134b66d1acbSmrg	 test -f "$ac_f" ||
6135b66d1acbSmrg	   case $ac_f in
6136b66d1acbSmrg	   [\\/$]*) false;;
6137b66d1acbSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6138b66d1acbSmrg	   esac ||
6139b66d1acbSmrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6140b66d1acbSmrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6141b66d1acbSmrg   { (exit 1); exit 1; }; };;
6142b66d1acbSmrg      esac
6143b66d1acbSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6144b66d1acbSmrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
6145b66d1acbSmrg    done
6146b66d1acbSmrg
6147b66d1acbSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6148b66d1acbSmrg    # use $as_me), people would be surprised to read:
6149b66d1acbSmrg    #    /* config.h.  Generated by config.status.  */
6150b66d1acbSmrg    configure_input='Generated from '`
6151b66d1acbSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6152b66d1acbSmrg	`' by configure.'
6153b66d1acbSmrg    if test x"$ac_file" != x-; then
6154b66d1acbSmrg      configure_input="$ac_file.  $configure_input"
6155b66d1acbSmrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6156b66d1acbSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6157b66d1acbSmrg    fi
6158b66d1acbSmrg    # Neutralize special characters interpreted by sed in replacement strings.
6159b66d1acbSmrg    case $configure_input in #(
6160b66d1acbSmrg    *\&* | *\|* | *\\* )
6161b66d1acbSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6162b66d1acbSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6163b66d1acbSmrg    *) ac_sed_conf_input=$configure_input;;
6164b66d1acbSmrg    esac
6165b66d1acbSmrg
6166b66d1acbSmrg    case $ac_tag in
6167b66d1acbSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
6168b66d1acbSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6169b66d1acbSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6170b66d1acbSmrg   { (exit 1); exit 1; }; } ;;
6171b66d1acbSmrg    esac
61724fb28925Smrg    ;;
61734fb28925Smrg  esac
6174b66d1acbSmrg
61754fb28925Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
61764fb28925Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61774fb28925Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6178b66d1acbSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6179b66d1acbSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6180b66d1acbSmrg$as_echo X"$ac_file" |
6181b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6182b66d1acbSmrg	    s//\1/
6183b66d1acbSmrg	    q
6184b66d1acbSmrg	  }
6185b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6186b66d1acbSmrg	    s//\1/
6187b66d1acbSmrg	    q
6188b66d1acbSmrg	  }
6189b66d1acbSmrg	  /^X\(\/\/\)$/{
6190b66d1acbSmrg	    s//\1/
6191b66d1acbSmrg	    q
6192b66d1acbSmrg	  }
6193b66d1acbSmrg	  /^X\(\/\).*/{
6194b66d1acbSmrg	    s//\1/
6195b66d1acbSmrg	    q
6196b66d1acbSmrg	  }
6197b66d1acbSmrg	  s/.*/./; q'`
6198b66d1acbSmrg  { as_dir="$ac_dir"
6199b66d1acbSmrg  case $as_dir in #(
6200b66d1acbSmrg  -*) as_dir=./$as_dir;;
6201b66d1acbSmrg  esac
62024fb28925Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6203b66d1acbSmrg    as_dirs=
6204b66d1acbSmrg    while :; do
6205b66d1acbSmrg      case $as_dir in #(
6206b66d1acbSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6207b66d1acbSmrg      *) as_qdir=$as_dir;;
6208b66d1acbSmrg      esac
6209b66d1acbSmrg      as_dirs="'$as_qdir' $as_dirs"
62104fb28925Smrg      as_dir=`$as_dirname -- "$as_dir" ||
62114fb28925Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62124fb28925Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
6213b66d1acbSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6214b66d1acbSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6215b66d1acbSmrg$as_echo X"$as_dir" |
6216b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6217b66d1acbSmrg	    s//\1/
6218b66d1acbSmrg	    q
6219b66d1acbSmrg	  }
6220b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6221b66d1acbSmrg	    s//\1/
6222b66d1acbSmrg	    q
6223b66d1acbSmrg	  }
6224b66d1acbSmrg	  /^X\(\/\/\)$/{
6225b66d1acbSmrg	    s//\1/
6226b66d1acbSmrg	    q
6227b66d1acbSmrg	  }
6228b66d1acbSmrg	  /^X\(\/\).*/{
6229b66d1acbSmrg	    s//\1/
6230b66d1acbSmrg	    q
6231b66d1acbSmrg	  }
6232b66d1acbSmrg	  s/.*/./; q'`
62334fb28925Smrg      test -d "$as_dir" && break
6234b66d1acbSmrg    done
6235b66d1acbSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6236b66d1acbSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62374fb28925Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
62384fb28925Smrg   { (exit 1); exit 1; }; }; }
62394fb28925Smrg  ac_builddir=.
6240b66d1acbSmrg
6241b66d1acbSmrgcase "$ac_dir" in
6242b66d1acbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6243b66d1acbSmrg*)
6244b66d1acbSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6245b66d1acbSmrg  # A ".." for each directory in $ac_dir_suffix.
6246b66d1acbSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6247b66d1acbSmrg  case $ac_top_builddir_sub in
6248b66d1acbSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6249b66d1acbSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6250b66d1acbSmrg  esac ;;
6251b66d1acbSmrgesac
6252b66d1acbSmrgac_abs_top_builddir=$ac_pwd
6253b66d1acbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6254b66d1acbSmrg# for backward compatibility:
62554fb28925Smrgac_top_builddir=$ac_top_build_prefix
62564fb28925Smrg
6257b66d1acbSmrgcase $srcdir in
62584fb28925Smrg  .)  # We are building in place.
6259b66d1acbSmrg    ac_srcdir=.
6260b66d1acbSmrg    ac_top_srcdir=$ac_top_builddir_sub
6261b66d1acbSmrg    ac_abs_top_srcdir=$ac_pwd ;;
62624fb28925Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6263b66d1acbSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
6264b66d1acbSmrg    ac_top_srcdir=$srcdir
6265b66d1acbSmrg    ac_abs_top_srcdir=$srcdir ;;
6266b66d1acbSmrg  *) # Relative name.
6267b66d1acbSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6268b66d1acbSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
62694fb28925Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6270b66d1acbSmrgesac
62714fb28925Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62724fb28925Smrg
6273b66d1acbSmrg
6274b66d1acbSmrg  case $ac_mode in
6275b66d1acbSmrg  :F)
6276b66d1acbSmrg  #
6277b66d1acbSmrg  # CONFIG_FILE
62784fb28925Smrg  #
62794fb28925Smrg
62804fb28925Smrg  case $INSTALL in
6281b66d1acbSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
62824fb28925Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6283b66d1acbSmrg  esac
6284b66d1acbSmrg  ac_MKDIR_P=$MKDIR_P
6285b66d1acbSmrg  case $MKDIR_P in
6286b66d1acbSmrg  [\\/$]* | ?:[\\/]* ) ;;
6287b66d1acbSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6288b66d1acbSmrg  esac
62894fb28925Smrg_ACEOF
6290b66d1acbSmrg
6291b66d1acbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6292b66d1acbSmrg# If the template does not know about datarootdir, expand it.
6293b66d1acbSmrg# FIXME: This hack should be removed a few years after 2.60.
6294b66d1acbSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6295b66d1acbSmrg
6296b66d1acbSmrgac_sed_dataroot='
6297b66d1acbSmrg/datarootdir/ {
6298b66d1acbSmrg  p
6299b66d1acbSmrg  q
6300b66d1acbSmrg}
6301b66d1acbSmrg/@datadir@/p
6302b66d1acbSmrg/@docdir@/p
6303b66d1acbSmrg/@infodir@/p
6304b66d1acbSmrg/@localedir@/p
6305b66d1acbSmrg/@mandir@/p
6306b66d1acbSmrg'
6307b66d1acbSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6308b66d1acbSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6309b66d1acbSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6310b66d1acbSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
63114fb28925Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6312b66d1acbSmrg_ACEOF
6313b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6314b66d1acbSmrg  ac_datarootdir_hack='
6315b66d1acbSmrg  s&@datadir@&$datadir&g
6316b66d1acbSmrg  s&@docdir@&$docdir&g
6317b66d1acbSmrg  s&@infodir@&$infodir&g
6318b66d1acbSmrg  s&@localedir@&$localedir&g
6319b66d1acbSmrg  s&@mandir@&$mandir&g
6320b66d1acbSmrg    s&\\\${datarootdir}&$datarootdir&g' ;;
6321b66d1acbSmrgesac
6322b66d1acbSmrg_ACEOF
6323b66d1acbSmrg
6324b66d1acbSmrg# Neutralize VPATH when `$srcdir' = `.'.
6325b66d1acbSmrg# Shell code in configure.ac might set extrasub.
6326b66d1acbSmrg# FIXME: do we really want to maintain this feature?
6327b66d1acbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63284fb28925Smrgac_sed_extra="$ac_vpsub
63294fb28925Smrg$extrasub
6330b66d1acbSmrg_ACEOF
63314fb28925Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63324fb28925Smrg:t
6333b66d1acbSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6334b66d1acbSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6335b66d1acbSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6336b66d1acbSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6337b66d1acbSmrgs&@srcdir@&$ac_srcdir&;t t
6338b66d1acbSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6339b66d1acbSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6340b66d1acbSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6341b66d1acbSmrgs&@builddir@&$ac_builddir&;t t
6342b66d1acbSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6343b66d1acbSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6344b66d1acbSmrgs&@INSTALL@&$ac_INSTALL&;t t
6345b66d1acbSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6346b66d1acbSmrg$ac_datarootdir_hack
6347b66d1acbSmrg"
6348b66d1acbSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6349b66d1acbSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6350b66d1acbSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
63514fb28925Smrg   { (exit 1); exit 1; }; }
6352b66d1acbSmrg
6353b66d1acbSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6354b66d1acbSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6355b66d1acbSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6356b66d1acbSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6357b66d1acbSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
6358b66d1acbSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63594fb28925Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
6360b66d1acbSmrg
63614fb28925Smrg  rm -f "$tmp/stdin"
6362b66d1acbSmrg  case $ac_file in
6363b66d1acbSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6364b66d1acbSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6365b66d1acbSmrg  esac \
6366b66d1acbSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
63674fb28925Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6368b66d1acbSmrg   { (exit 1); exit 1; }; }
6369b66d1acbSmrg ;;
6370b66d1acbSmrg  :H)
6371b66d1acbSmrg  #
6372b66d1acbSmrg  # CONFIG_HEADER
63734fb28925Smrg  #
6374b66d1acbSmrg  if test x"$ac_file" != x-; then
6375b66d1acbSmrg    {
6376b66d1acbSmrg      $as_echo "/* $configure_input  */" \
6377b66d1acbSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6378b66d1acbSmrg    } >"$tmp/config.h" \
6379b66d1acbSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6380b66d1acbSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6381b66d1acbSmrg   { (exit 1); exit 1; }; }
6382b66d1acbSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6383b66d1acbSmrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
63844fb28925Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6385b66d1acbSmrg    else
6386b66d1acbSmrg      rm -f "$ac_file"
6387b66d1acbSmrg      mv "$tmp/config.h" "$ac_file" \
6388b66d1acbSmrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6389b66d1acbSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
63904fb28925Smrg   { (exit 1); exit 1; }; }
63914fb28925Smrg    fi
6392b66d1acbSmrg  else
6393b66d1acbSmrg    $as_echo "/* $configure_input  */" \
6394b66d1acbSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6395b66d1acbSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6396b66d1acbSmrg$as_echo "$as_me: error: could not create -" >&2;}
63974fb28925Smrg   { (exit 1); exit 1; }; }
6398b66d1acbSmrg  fi
6399b66d1acbSmrg# Compute "$ac_file"'s index in $config_headers.
64004fb28925Smrg_am_arg="$ac_file"
64014fb28925Smrg_am_stamp_count=1
64024fb28925Smrgfor _am_header in $config_headers :; do
6403b66d1acbSmrg  case $_am_header in
64044fb28925Smrg    $_am_arg | $_am_arg:* )
64054fb28925Smrg      break ;;
64064fb28925Smrg    * )
64074fb28925Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
64084fb28925Smrg  esac
6409b66d1acbSmrgdone
6410b66d1acbSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6411b66d1acbSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412b66d1acbSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6413b66d1acbSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6414b66d1acbSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6415b66d1acbSmrg$as_echo X"$_am_arg" |
6416b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6417b66d1acbSmrg	    s//\1/
6418b66d1acbSmrg	    q
6419b66d1acbSmrg	  }
6420b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6421b66d1acbSmrg	    s//\1/
6422b66d1acbSmrg	    q
6423b66d1acbSmrg	  }
6424b66d1acbSmrg	  /^X\(\/\/\)$/{
6425b66d1acbSmrg	    s//\1/
6426b66d1acbSmrg	    q
6427b66d1acbSmrg	  }
6428b66d1acbSmrg	  /^X\(\/\).*/{
6429b66d1acbSmrg	    s//\1/
6430b66d1acbSmrg	    q
6431b66d1acbSmrg	  }
6432b66d1acbSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
64334fb28925Smrg ;;
6434b66d1acbSmrg
6435b66d1acbSmrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
6436b66d1acbSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6437b66d1acbSmrg ;;
64384fb28925Smrg  esac
64394fb28925Smrg
6440b66d1acbSmrg
6441b66d1acbSmrg  case $ac_file$ac_mode in
6442b66d1acbSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6443b66d1acbSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6444b66d1acbSmrg  # are listed without --file.  Let's play safe and only enable the eval
6445b66d1acbSmrg  # if we detect the quoting.
6446b66d1acbSmrg  case $CONFIG_FILES in
6447b66d1acbSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6448b66d1acbSmrg  *)   set x $CONFIG_FILES ;;
6449b66d1acbSmrg  esac
6450b66d1acbSmrg  shift
6451b66d1acbSmrg  for mf
6452b66d1acbSmrg  do
6453b66d1acbSmrg    # Strip MF so we end up with the name of the file.
6454b66d1acbSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6455b66d1acbSmrg    # Check whether this is an Automake generated Makefile or not.
6456b66d1acbSmrg    # We used to match only the files named `Makefile.in', but
6457b66d1acbSmrg    # some people rename them; so instead we look at the file content.
6458b66d1acbSmrg    # Grep'ing the first line is not enough: some people post-process
6459b66d1acbSmrg    # each Makefile.in and add a new line on top of each file to say so.
6460b66d1acbSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6461b66d1acbSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6462b66d1acbSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64634fb28925Smrg      dirpart=`$as_dirname -- "$mf" ||
64644fb28925Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64654fb28925Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
6466b66d1acbSmrg	 X"$mf" : 'X\(//\)$' \| \
6467b66d1acbSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6468b66d1acbSmrg$as_echo X"$mf" |
6469b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6470b66d1acbSmrg	    s//\1/
6471b66d1acbSmrg	    q
6472b66d1acbSmrg	  }
6473b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6474b66d1acbSmrg	    s//\1/
6475b66d1acbSmrg	    q
6476b66d1acbSmrg	  }
6477b66d1acbSmrg	  /^X\(\/\/\)$/{
6478b66d1acbSmrg	    s//\1/
6479b66d1acbSmrg	    q
6480b66d1acbSmrg	  }
6481b66d1acbSmrg	  /^X\(\/\).*/{
6482b66d1acbSmrg	    s//\1/
6483b66d1acbSmrg	    q
6484b66d1acbSmrg	  }
6485b66d1acbSmrg	  s/.*/./; q'`
6486b66d1acbSmrg    else
6487b66d1acbSmrg      continue
6488b66d1acbSmrg    fi
6489b66d1acbSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6490b66d1acbSmrg    # from the Makefile without running `make'.
6491b66d1acbSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6492b66d1acbSmrg    test -z "$DEPDIR" && continue
6493b66d1acbSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6494b66d1acbSmrg    test -z "am__include" && continue
6495b66d1acbSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6496b66d1acbSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6497b66d1acbSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6498b66d1acbSmrg    # Find all dependency output files, they are included files with
6499b66d1acbSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6500b66d1acbSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6501b66d1acbSmrg    # expansion.
6502b66d1acbSmrg    for file in `sed -n "
6503b66d1acbSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6504b66d1acbSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6505b66d1acbSmrg      # Make sure the directory exists.
6506b66d1acbSmrg      test -f "$dirpart/$file" && continue
65074fb28925Smrg      fdir=`$as_dirname -- "$file" ||
65084fb28925Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65094fb28925Smrg	 X"$file" : 'X\(//\)[^/]' \| \
6510b66d1acbSmrg	 X"$file" : 'X\(//\)$' \| \
6511b66d1acbSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6512b66d1acbSmrg$as_echo X"$file" |
6513b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6514b66d1acbSmrg	    s//\1/
6515b66d1acbSmrg	    q
6516b66d1acbSmrg	  }
6517b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6518b66d1acbSmrg	    s//\1/
6519b66d1acbSmrg	    q
6520b66d1acbSmrg	  }
6521b66d1acbSmrg	  /^X\(\/\/\)$/{
6522b66d1acbSmrg	    s//\1/
6523b66d1acbSmrg	    q
6524b66d1acbSmrg	  }
6525b66d1acbSmrg	  /^X\(\/\).*/{
6526b66d1acbSmrg	    s//\1/
6527b66d1acbSmrg	    q
6528b66d1acbSmrg	  }
6529b66d1acbSmrg	  s/.*/./; q'`
6530b66d1acbSmrg      { as_dir=$dirpart/$fdir
6531b66d1acbSmrg  case $as_dir in #(
6532b66d1acbSmrg  -*) as_dir=./$as_dir;;
6533b66d1acbSmrg  esac
65344fb28925Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6535b66d1acbSmrg    as_dirs=
6536b66d1acbSmrg    while :; do
6537b66d1acbSmrg      case $as_dir in #(
6538b66d1acbSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6539b66d1acbSmrg      *) as_qdir=$as_dir;;
6540b66d1acbSmrg      esac
6541b66d1acbSmrg      as_dirs="'$as_qdir' $as_dirs"
65424fb28925Smrg      as_dir=`$as_dirname -- "$as_dir" ||
65434fb28925Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65444fb28925Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
6545b66d1acbSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6546b66d1acbSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6547b66d1acbSmrg$as_echo X"$as_dir" |
6548b66d1acbSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6549b66d1acbSmrg	    s//\1/
6550b66d1acbSmrg	    q
6551b66d1acbSmrg	  }
6552b66d1acbSmrg	  /^X\(\/\/\)[^/].*/{
6553b66d1acbSmrg	    s//\1/
6554b66d1acbSmrg	    q
6555b66d1acbSmrg	  }
6556b66d1acbSmrg	  /^X\(\/\/\)$/{
6557b66d1acbSmrg	    s//\1/
6558b66d1acbSmrg	    q
6559b66d1acbSmrg	  }
6560b66d1acbSmrg	  /^X\(\/\).*/{
6561b66d1acbSmrg	    s//\1/
6562b66d1acbSmrg	    q
6563b66d1acbSmrg	  }
6564b66d1acbSmrg	  s/.*/./; q'`
65654fb28925Smrg      test -d "$as_dir" && break
6566b66d1acbSmrg    done
6567b66d1acbSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6568b66d1acbSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
65694fb28925Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6570b66d1acbSmrg   { (exit 1); exit 1; }; }; }
6571b66d1acbSmrg      # echo "creating $dirpart/$file"
6572b66d1acbSmrg      echo '# dummy' > "$dirpart/$file"
65734fb28925Smrg    done
6574b66d1acbSmrg  done
65754fb28925Smrg}
6576b66d1acbSmrg ;;
65774fb28925Smrg
6578b66d1acbSmrg  esac
65794fb28925Smrgdone # for ac_tag
65804fb28925Smrg
65814fb28925Smrg
65824fb28925Smrg{ (exit 0); exit 0; }
65834fb28925Smrg_ACEOF
65844fb28925Smrgchmod +x $CONFIG_STATUS
65854fb28925Smrgac_clean_files=$ac_clean_files_save
6586b66d1acbSmrg
6587b66d1acbSmrgtest $ac_write_fail = 0 ||
6588b66d1acbSmrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6589b66d1acbSmrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6590b66d1acbSmrg   { (exit 1); exit 1; }; }
65914fb28925Smrg
65924fb28925Smrg
65934fb28925Smrg# configure is writing to config.log, and then calls config.status.
65944fb28925Smrg# config.status does its own redirection, appending to config.log.
65954fb28925Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
65964fb28925Smrg# by configure, so config.status won't be able to write to it; its
65974fb28925Smrg# output is simply discarded.  So we exec the FD to /dev/null,
65984fb28925Smrg# effectively closing config.log, so it can be properly (re)opened and
65994fb28925Smrg# appended to by config.status.  When coming back to configure, we
66004fb28925Smrg# need to make the FD available again.
66014fb28925Smrgif test "$no_create" != yes; then
66024fb28925Smrg  ac_cs_success=:
66034fb28925Smrg  ac_config_status_args=
66044fb28925Smrg  test "$silent" = yes &&
66054fb28925Smrg    ac_config_status_args="$ac_config_status_args --quiet"
66064fb28925Smrg  exec 5>/dev/null
66074fb28925Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
66084fb28925Smrg  exec 5>>config.log
66094fb28925Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
66104fb28925Smrg  # would make configure fail if this is the last instruction.
66114fb28925Smrg  $ac_cs_success || { (exit 1); exit 1; }
6612b66d1acbSmrgfi
6613b66d1acbSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6614b66d1acbSmrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6615b66d1acbSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
66164fb28925Smrgfi
6617
6618