158551Skris#! /bin/sh
258551Skris# Guess values for system-dependent variables and create Makefiles.
3228060Sbapt# Generated by GNU Autoconf 2.61.
458551Skris#
5228060Sbapt# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6228060Sbapt# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
758551Skris# This configure script is free software; the Free Software Foundation
858551Skris# gives unlimited permission to copy, distribute and modify it.
9228060Sbapt## --------------------- ##
10228060Sbapt## M4sh Initialization.  ##
11228060Sbapt## --------------------- ##
1258551Skris
13228060Sbapt# Be more Bourne compatible
14228060SbaptDUALCASE=1; export DUALCASE # for MKS sh
15228060Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16228060Sbapt  emulate sh
17228060Sbapt  NULLCMD=:
18228060Sbapt  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19228060Sbapt  # is contrary to our usage.  Disable this feature.
20228060Sbapt  alias -g '${1+"$@"}'='"$@"'
21228060Sbapt  setopt NO_GLOB_SUBST
22228060Sbaptelse
23228060Sbapt  case `(set -o) 2>/dev/null` in
24228060Sbapt  *posix*) set -o posix ;;
25228060Sbaptesac
26228060Sbapt
27228060Sbaptfi
28228060Sbapt
29228060Sbapt
30228060Sbapt
31228060Sbapt
32228060Sbapt# PATH needs CR
33228060Sbapt# Avoid depending upon Character Ranges.
34228060Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz'
35228060Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36228060Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS
37228060Sbaptas_cr_digits='0123456789'
38228060Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits
39228060Sbapt
40228060Sbapt# The user is always right.
41228060Sbaptif test "${PATH_SEPARATOR+set}" != set; then
42228060Sbapt  echo "#! /bin/sh" >conf$$.sh
43228060Sbapt  echo  "exit 0"   >>conf$$.sh
44228060Sbapt  chmod +x conf$$.sh
45228060Sbapt  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46228060Sbapt    PATH_SEPARATOR=';'
47228060Sbapt  else
48228060Sbapt    PATH_SEPARATOR=:
49228060Sbapt  fi
50228060Sbapt  rm -f conf$$.sh
51228060Sbaptfi
52228060Sbapt
53228060Sbapt# Support unset when possible.
54228060Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55228060Sbapt  as_unset=unset
56228060Sbaptelse
57228060Sbapt  as_unset=false
58228060Sbaptfi
59228060Sbapt
60228060Sbapt
61228060Sbapt# IFS
62228060Sbapt# We need space, tab and new line, in precisely that order.  Quoting is
63228060Sbapt# there to prevent editors from complaining about space-tab.
64228060Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65228060Sbapt# splitting by setting IFS to empty value.)
66228060Sbaptas_nl='
67228060Sbapt'
68228060SbaptIFS=" ""	$as_nl"
69228060Sbapt
70228060Sbapt# Find who we are.  Look in the path if we contain no directory separator.
71228060Sbaptcase $0 in
72228060Sbapt  *[\\/]* ) as_myself=$0 ;;
73228060Sbapt  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74228060Sbaptfor as_dir in $PATH
75228060Sbaptdo
76228060Sbapt  IFS=$as_save_IFS
77228060Sbapt  test -z "$as_dir" && as_dir=.
78228060Sbapt  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79228060Sbaptdone
80228060SbaptIFS=$as_save_IFS
81228060Sbapt
82228060Sbapt     ;;
83228060Sbaptesac
84228060Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND'
85228060Sbapt# in which case we are not to be found in the path.
86228060Sbaptif test "x$as_myself" = x; then
87228060Sbapt  as_myself=$0
88228060Sbaptfi
89228060Sbaptif test ! -f "$as_myself"; then
90228060Sbapt  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91228060Sbapt  { (exit 1); exit 1; }
92228060Sbaptfi
93228060Sbapt
94228060Sbapt# Work around bugs in pre-3.0 UWIN ksh.
95228060Sbaptfor as_var in ENV MAIL MAILPATH
96228060Sbaptdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97228060Sbaptdone
98228060SbaptPS1='$ '
99228060SbaptPS2='> '
100228060SbaptPS4='+ '
101228060Sbapt
102228060Sbapt# NLS nuisances.
103228060Sbaptfor as_var in \
104228060Sbapt  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105228060Sbapt  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106228060Sbapt  LC_TELEPHONE LC_TIME
107228060Sbaptdo
108228060Sbapt  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109228060Sbapt    eval $as_var=C; export $as_var
110228060Sbapt  else
111228060Sbapt    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112228060Sbapt  fi
113228060Sbaptdone
114228060Sbapt
115228060Sbapt# Required to use basename.
116228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
117228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118228060Sbapt  as_expr=expr
119228060Sbaptelse
120228060Sbapt  as_expr=false
121228060Sbaptfi
122228060Sbapt
123228060Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124228060Sbapt  as_basename=basename
125228060Sbaptelse
126228060Sbapt  as_basename=false
127228060Sbaptfi
128228060Sbapt
129228060Sbapt
130228060Sbapt# Name of the executable.
131228060Sbaptas_me=`$as_basename -- "$0" ||
132228060Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133228060Sbapt	 X"$0" : 'X\(//\)$' \| \
134228060Sbapt	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135228060Sbaptecho X/"$0" |
136228060Sbapt    sed '/^.*\/\([^/][^/]*\)\/*$/{
137228060Sbapt	    s//\1/
138228060Sbapt	    q
139228060Sbapt	  }
140228060Sbapt	  /^X\/\(\/\/\)$/{
141228060Sbapt	    s//\1/
142228060Sbapt	    q
143228060Sbapt	  }
144228060Sbapt	  /^X\/\(\/\).*/{
145228060Sbapt	    s//\1/
146228060Sbapt	    q
147228060Sbapt	  }
148228060Sbapt	  s/.*/./; q'`
149228060Sbapt
150228060Sbapt# CDPATH.
151228060Sbapt$as_unset CDPATH
152228060Sbapt
153228060Sbapt
154228060Sbaptif test "x$CONFIG_SHELL" = x; then
155228060Sbapt  if (eval ":") 2>/dev/null; then
156228060Sbapt  as_have_required=yes
157228060Sbaptelse
158228060Sbapt  as_have_required=no
159228060Sbaptfi
160228060Sbapt
161228060Sbapt  if test $as_have_required = yes && 	 (eval ":
162228060Sbapt(as_func_return () {
163228060Sbapt  (exit \$1)
164228060Sbapt}
165228060Sbaptas_func_success () {
166228060Sbapt  as_func_return 0
167228060Sbapt}
168228060Sbaptas_func_failure () {
169228060Sbapt  as_func_return 1
170228060Sbapt}
171228060Sbaptas_func_ret_success () {
172228060Sbapt  return 0
173228060Sbapt}
174228060Sbaptas_func_ret_failure () {
175228060Sbapt  return 1
176228060Sbapt}
177228060Sbapt
178228060Sbaptexitcode=0
179228060Sbaptif as_func_success; then
180228060Sbapt  :
181228060Sbaptelse
182228060Sbapt  exitcode=1
183228060Sbapt  echo as_func_success failed.
184228060Sbaptfi
185228060Sbapt
186228060Sbaptif as_func_failure; then
187228060Sbapt  exitcode=1
188228060Sbapt  echo as_func_failure succeeded.
189228060Sbaptfi
190228060Sbapt
191228060Sbaptif as_func_ret_success; then
192228060Sbapt  :
193228060Sbaptelse
194228060Sbapt  exitcode=1
195228060Sbapt  echo as_func_ret_success failed.
196228060Sbaptfi
197228060Sbapt
198228060Sbaptif as_func_ret_failure; then
199228060Sbapt  exitcode=1
200228060Sbapt  echo as_func_ret_failure succeeded.
201228060Sbaptfi
202228060Sbapt
203228060Sbaptif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204228060Sbapt  :
205228060Sbaptelse
206228060Sbapt  exitcode=1
207228060Sbapt  echo positional parameters were not saved.
208228060Sbaptfi
209228060Sbapt
210228060Sbapttest \$exitcode = 0) || { (exit 1); exit 1; }
211228060Sbapt
212228060Sbapt(
213228060Sbapt  as_lineno_1=\$LINENO
214228060Sbapt  as_lineno_2=\$LINENO
215228060Sbapt  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216228060Sbapt  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217228060Sbapt") 2> /dev/null; then
218228060Sbapt  :
219228060Sbaptelse
220228060Sbapt  as_candidate_shells=
221228060Sbapt    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222228060Sbaptfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223228060Sbaptdo
224228060Sbapt  IFS=$as_save_IFS
225228060Sbapt  test -z "$as_dir" && as_dir=.
226228060Sbapt  case $as_dir in
227228060Sbapt	 /*)
228228060Sbapt	   for as_base in sh bash ksh sh5; do
229228060Sbapt	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230228060Sbapt	   done;;
231228060Sbapt       esac
232228060Sbaptdone
233228060SbaptIFS=$as_save_IFS
234228060Sbapt
235228060Sbapt
236228060Sbapt      for as_shell in $as_candidate_shells $SHELL; do
237228060Sbapt	 # Try only shells that exist, to save several forks.
238228060Sbapt	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239228060Sbapt		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240228060Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241228060Sbapt  emulate sh
242228060Sbapt  NULLCMD=:
243228060Sbapt  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244228060Sbapt  # is contrary to our usage.  Disable this feature.
245228060Sbapt  alias -g '${1+"$@"}'='"$@"'
246228060Sbapt  setopt NO_GLOB_SUBST
247228060Sbaptelse
248228060Sbapt  case `(set -o) 2>/dev/null` in
249228060Sbapt  *posix*) set -o posix ;;
250228060Sbaptesac
251228060Sbapt
252228060Sbaptfi
253228060Sbapt
254228060Sbapt
255228060Sbapt:
256228060Sbapt_ASEOF
257228060Sbapt}; then
258228060Sbapt  CONFIG_SHELL=$as_shell
259228060Sbapt	       as_have_required=yes
260228060Sbapt	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261228060Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262228060Sbapt  emulate sh
263228060Sbapt  NULLCMD=:
264228060Sbapt  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265228060Sbapt  # is contrary to our usage.  Disable this feature.
266228060Sbapt  alias -g '${1+"$@"}'='"$@"'
267228060Sbapt  setopt NO_GLOB_SUBST
268228060Sbaptelse
269228060Sbapt  case `(set -o) 2>/dev/null` in
270228060Sbapt  *posix*) set -o posix ;;
271228060Sbaptesac
272228060Sbapt
273228060Sbaptfi
274228060Sbapt
275228060Sbapt
276228060Sbapt:
277228060Sbapt(as_func_return () {
278228060Sbapt  (exit $1)
279228060Sbapt}
280228060Sbaptas_func_success () {
281228060Sbapt  as_func_return 0
282228060Sbapt}
283228060Sbaptas_func_failure () {
284228060Sbapt  as_func_return 1
285228060Sbapt}
286228060Sbaptas_func_ret_success () {
287228060Sbapt  return 0
288228060Sbapt}
289228060Sbaptas_func_ret_failure () {
290228060Sbapt  return 1
291228060Sbapt}
292228060Sbapt
293228060Sbaptexitcode=0
294228060Sbaptif as_func_success; then
295228060Sbapt  :
296228060Sbaptelse
297228060Sbapt  exitcode=1
298228060Sbapt  echo as_func_success failed.
299228060Sbaptfi
300228060Sbapt
301228060Sbaptif as_func_failure; then
302228060Sbapt  exitcode=1
303228060Sbapt  echo as_func_failure succeeded.
304228060Sbaptfi
305228060Sbapt
306228060Sbaptif as_func_ret_success; then
307228060Sbapt  :
308228060Sbaptelse
309228060Sbapt  exitcode=1
310228060Sbapt  echo as_func_ret_success failed.
311228060Sbaptfi
312228060Sbapt
313228060Sbaptif as_func_ret_failure; then
314228060Sbapt  exitcode=1
315228060Sbapt  echo as_func_ret_failure succeeded.
316228060Sbaptfi
317228060Sbapt
318228060Sbaptif ( set x; as_func_ret_success y && test x = "$1" ); then
319228060Sbapt  :
320228060Sbaptelse
321228060Sbapt  exitcode=1
322228060Sbapt  echo positional parameters were not saved.
323228060Sbaptfi
324228060Sbapt
325228060Sbapttest $exitcode = 0) || { (exit 1); exit 1; }
326228060Sbapt
327228060Sbapt(
328228060Sbapt  as_lineno_1=$LINENO
329228060Sbapt  as_lineno_2=$LINENO
330228060Sbapt  test "x$as_lineno_1" != "x$as_lineno_2" &&
331228060Sbapt  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332228060Sbapt
333228060Sbapt_ASEOF
334228060Sbapt}; then
335228060Sbapt  break
336228060Sbaptfi
337228060Sbapt
338228060Sbaptfi
339228060Sbapt
340228060Sbapt      done
341228060Sbapt
342228060Sbapt      if test "x$CONFIG_SHELL" != x; then
343228060Sbapt  for as_var in BASH_ENV ENV
344228060Sbapt        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345228060Sbapt        done
346228060Sbapt        export CONFIG_SHELL
347228060Sbapt        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348228060Sbaptfi
349228060Sbapt
350228060Sbapt
351228060Sbapt    if test $as_have_required = no; then
352228060Sbapt  echo This script requires a shell more modern than all the
353228060Sbapt      echo shells that I found on your system.  Please install a
354228060Sbapt      echo modern shell, or manually run the script under such a
355228060Sbapt      echo shell if you do have one.
356228060Sbapt      { (exit 1); exit 1; }
357228060Sbaptfi
358228060Sbapt
359228060Sbapt
360228060Sbaptfi
361228060Sbapt
362228060Sbaptfi
363228060Sbapt
364228060Sbapt
365228060Sbapt
366228060Sbapt(eval "as_func_return () {
367228060Sbapt  (exit \$1)
368228060Sbapt}
369228060Sbaptas_func_success () {
370228060Sbapt  as_func_return 0
371228060Sbapt}
372228060Sbaptas_func_failure () {
373228060Sbapt  as_func_return 1
374228060Sbapt}
375228060Sbaptas_func_ret_success () {
376228060Sbapt  return 0
377228060Sbapt}
378228060Sbaptas_func_ret_failure () {
379228060Sbapt  return 1
380228060Sbapt}
381228060Sbapt
382228060Sbaptexitcode=0
383228060Sbaptif as_func_success; then
384228060Sbapt  :
385228060Sbaptelse
386228060Sbapt  exitcode=1
387228060Sbapt  echo as_func_success failed.
388228060Sbaptfi
389228060Sbapt
390228060Sbaptif as_func_failure; then
391228060Sbapt  exitcode=1
392228060Sbapt  echo as_func_failure succeeded.
393228060Sbaptfi
394228060Sbapt
395228060Sbaptif as_func_ret_success; then
396228060Sbapt  :
397228060Sbaptelse
398228060Sbapt  exitcode=1
399228060Sbapt  echo as_func_ret_success failed.
400228060Sbaptfi
401228060Sbapt
402228060Sbaptif as_func_ret_failure; then
403228060Sbapt  exitcode=1
404228060Sbapt  echo as_func_ret_failure succeeded.
405228060Sbaptfi
406228060Sbapt
407228060Sbaptif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408228060Sbapt  :
409228060Sbaptelse
410228060Sbapt  exitcode=1
411228060Sbapt  echo positional parameters were not saved.
412228060Sbaptfi
413228060Sbapt
414228060Sbapttest \$exitcode = 0") || {
415228060Sbapt  echo No shell found that supports shell functions.
416228060Sbapt  echo Please tell autoconf@gnu.org about your system,
417228060Sbapt  echo including any error possibly output before this
418228060Sbapt  echo message
419228060Sbapt}
420228060Sbapt
421228060Sbapt
422228060Sbapt
423228060Sbapt  as_lineno_1=$LINENO
424228060Sbapt  as_lineno_2=$LINENO
425228060Sbapt  test "x$as_lineno_1" != "x$as_lineno_2" &&
426228060Sbapt  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427228060Sbapt
428228060Sbapt  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429228060Sbapt  # uniformly replaced by the line number.  The first 'sed' inserts a
430228060Sbapt  # line-number line after each line using $LINENO; the second 'sed'
431228060Sbapt  # does the real work.  The second script uses 'N' to pair each
432228060Sbapt  # line-number line with the line containing $LINENO, and appends
433228060Sbapt  # trailing '-' during substitution so that $LINENO is not a special
434228060Sbapt  # case at line end.
435228060Sbapt  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436228060Sbapt  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437228060Sbapt  # E. McMahon (1931-1989) for sed's syntax.  :-)
438228060Sbapt  sed -n '
439228060Sbapt    p
440228060Sbapt    /[$]LINENO/=
441228060Sbapt  ' <$as_myself |
442228060Sbapt    sed '
443228060Sbapt      s/[$]LINENO.*/&-/
444228060Sbapt      t lineno
445228060Sbapt      b
446228060Sbapt      :lineno
447228060Sbapt      N
448228060Sbapt      :loop
449228060Sbapt      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450228060Sbapt      t loop
451228060Sbapt      s/-\n.*//
452228060Sbapt    ' >$as_me.lineno &&
453228060Sbapt  chmod +x "$as_me.lineno" ||
454228060Sbapt    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455228060Sbapt   { (exit 1); exit 1; }; }
456228060Sbapt
457228060Sbapt  # Don't try to exec as it changes $[0], causing all sort of problems
458228060Sbapt  # (the dirname of $[0] is not the place where we might find the
459228060Sbapt  # original and so on.  Autoconf is especially sensitive to this).
460228060Sbapt  . "./$as_me.lineno"
461228060Sbapt  # Exit status is that of the last command.
462228060Sbapt  exit
463228060Sbapt}
464228060Sbapt
465228060Sbapt
466228060Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467228060Sbapt  as_dirname=dirname
468228060Sbaptelse
469228060Sbapt  as_dirname=false
470228060Sbaptfi
471228060Sbapt
472228060SbaptECHO_C= ECHO_N= ECHO_T=
473228060Sbaptcase `echo -n x` in
474228060Sbapt-n*)
475228060Sbapt  case `echo 'x\c'` in
476228060Sbapt  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477228060Sbapt  *)   ECHO_C='\c';;
478228060Sbapt  esac;;
479228060Sbapt*)
480228060Sbapt  ECHO_N='-n';;
481228060Sbaptesac
482228060Sbapt
483228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
484228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485228060Sbapt  as_expr=expr
486228060Sbaptelse
487228060Sbapt  as_expr=false
488228060Sbaptfi
489228060Sbapt
490228060Sbaptrm -f conf$$ conf$$.exe conf$$.file
491228060Sbaptif test -d conf$$.dir; then
492228060Sbapt  rm -f conf$$.dir/conf$$.file
493228060Sbaptelse
494228060Sbapt  rm -f conf$$.dir
495228060Sbapt  mkdir conf$$.dir
496228060Sbaptfi
497228060Sbaptecho >conf$$.file
498228060Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then
499228060Sbapt  as_ln_s='ln -s'
500228060Sbapt  # ... but there are two gotchas:
501228060Sbapt  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502228060Sbapt  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503228060Sbapt  # In both cases, we have to default to `cp -p'.
504228060Sbapt  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505228060Sbapt    as_ln_s='cp -p'
506228060Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then
507228060Sbapt  as_ln_s=ln
508228060Sbaptelse
509228060Sbapt  as_ln_s='cp -p'
510228060Sbaptfi
511228060Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512228060Sbaptrmdir conf$$.dir 2>/dev/null
513228060Sbapt
514228060Sbaptif mkdir -p . 2>/dev/null; then
515228060Sbapt  as_mkdir_p=:
516228060Sbaptelse
517228060Sbapt  test -d ./-p && rmdir ./-p
518228060Sbapt  as_mkdir_p=false
519228060Sbaptfi
520228060Sbapt
521228060Sbaptif test -x / >/dev/null 2>&1; then
522228060Sbapt  as_test_x='test -x'
523228060Sbaptelse
524228060Sbapt  if ls -dL / >/dev/null 2>&1; then
525228060Sbapt    as_ls_L_option=L
526228060Sbapt  else
527228060Sbapt    as_ls_L_option=
528228060Sbapt  fi
529228060Sbapt  as_test_x='
530228060Sbapt    eval sh -c '\''
531228060Sbapt      if test -d "$1"; then
532228060Sbapt        test -d "$1/.";
533228060Sbapt      else
534228060Sbapt	case $1 in
535228060Sbapt        -*)set "./$1";;
536228060Sbapt	esac;
537228060Sbapt	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538228060Sbapt	???[sx]*):;;*)false;;esac;fi
539228060Sbapt    '\'' sh
540228060Sbapt  '
541228060Sbaptfi
542228060Sbaptas_executable_p=$as_test_x
543228060Sbapt
544228060Sbapt# Sed expression to map a string onto a valid CPP name.
545228060Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546228060Sbapt
547228060Sbapt# Sed expression to map a string onto a valid variable name.
548228060Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549228060Sbapt
550228060Sbapt
551228060Sbapt
552228060Sbaptexec 7<&0 </dev/null 6>&1
553228060Sbapt
554228060Sbapt# Name of the host.
555228060Sbapt# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556228060Sbapt# so uname gets run too.
557228060Sbaptac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558228060Sbapt
559228060Sbapt#
560228060Sbapt# Initializations.
561228060Sbapt#
56258551Skrisac_default_prefix=/usr/local
563228060Sbaptac_clean_files=
564228060Sbaptac_config_libobj_dir=.
565228060SbaptLIBOBJS=
566228060Sbaptcross_compiling=no
567228060Sbaptsubdirs=
568228060SbaptMFLAGS=
569228060SbaptMAKEFLAGS=
570228060SbaptSHELL=${CONFIG_SHELL-/bin/sh}
57158551Skris
572228060Sbapt# Identity of this package.
573228060SbaptPACKAGE_NAME=
574228060SbaptPACKAGE_TARNAME=
575228060SbaptPACKAGE_VERSION=
576228060SbaptPACKAGE_STRING=
577228060SbaptPACKAGE_BUGREPORT=
578228060Sbapt
579228060Sbaptac_unique_file="hash.cc"
580228060Sbaptac_subst_vars='SHELL
581228060SbaptPATH_SEPARATOR
582228060SbaptPACKAGE_NAME
583228060SbaptPACKAGE_TARNAME
584228060SbaptPACKAGE_VERSION
585228060SbaptPACKAGE_STRING
586228060SbaptPACKAGE_BUGREPORT
587228060Sbaptexec_prefix
588228060Sbaptprefix
589228060Sbaptprogram_transform_name
590228060Sbaptbindir
591228060Sbaptsbindir
592228060Sbaptlibexecdir
593228060Sbaptdatarootdir
594228060Sbaptdatadir
595228060Sbaptsysconfdir
596228060Sbaptsharedstatedir
597228060Sbaptlocalstatedir
598228060Sbaptincludedir
599228060Sbaptoldincludedir
600228060Sbaptdocdir
601228060Sbaptinfodir
602228060Sbapthtmldir
603228060Sbaptdvidir
604228060Sbaptpdfdir
605228060Sbaptpsdir
606228060Sbaptlibdir
607228060Sbaptlocaledir
608228060Sbaptmandir
609228060SbaptDEFS
610228060SbaptECHO_C
611228060SbaptECHO_N
612228060SbaptECHO_T
613228060SbaptLIBS
614228060Sbaptbuild_alias
615228060Sbapthost_alias
616228060Sbapttarget_alias
617228060SbaptSET_MAKE
618228060SbaptCC
619228060SbaptCFLAGS
620228060SbaptLDFLAGS
621228060SbaptCPPFLAGS
622228060Sbaptac_ct_CC
623228060SbaptEXEEXT
624228060SbaptOBJEXT
625228060SbaptCPP
626228060SbaptCXX
627228060SbaptCXXFLAGS
628228060Sbaptac_ct_CXX
629228060SbaptCXXCPP
630228060SbaptRANLIB
631228060SbaptINSTALL
632228060SbaptINSTALL_PROGRAM
633228060SbaptINSTALL_DATA
634228060SbaptLIBOBJS
635228060SbaptLTLIBOBJS'
636228060Sbaptac_subst_files=''
637228060Sbapt      ac_precious_vars='build_alias
638228060Sbapthost_alias
639228060Sbapttarget_alias
640228060SbaptCC
641228060SbaptCFLAGS
642228060SbaptLDFLAGS
643228060SbaptLIBS
644228060SbaptCPPFLAGS
645228060SbaptCPP
646228060SbaptCXX
647228060SbaptCXXFLAGS
648228060SbaptCCC
649228060SbaptCXXCPP'
650228060Sbapt
651228060Sbapt
65258551Skris# Initialize some variables set by options.
653228060Sbaptac_init_help=
654228060Sbaptac_init_version=false
65558551Skris# The variables have the same names as the options, with
65658551Skris# dashes changed to underlines.
657228060Sbaptcache_file=/dev/null
65858551Skrisexec_prefix=NONE
65958551Skrisno_create=
66058551Skrisno_recursion=
66158551Skrisprefix=NONE
66258551Skrisprogram_prefix=NONE
66358551Skrisprogram_suffix=NONE
66458551Skrisprogram_transform_name=s,x,x,
66558551Skrissilent=
66658551Skrissite=
66758551Skrissrcdir=
66858551Skrisverbose=
66958551Skrisx_includes=NONE
67058551Skrisx_libraries=NONE
671228060Sbapt
672228060Sbapt# Installation directory options.
673228060Sbapt# These are left unexpanded so users can "make install exec_prefix=/foo"
674228060Sbapt# and all the variables that are supposed to be based on exec_prefix
675228060Sbapt# by default will actually change.
676228060Sbapt# Use braces instead of parens because sh, perl, etc. also accept them.
677228060Sbapt# (The list follows the same order as the GNU Coding Standards.)
67858551Skrisbindir='${exec_prefix}/bin'
67958551Skrissbindir='${exec_prefix}/sbin'
68058551Skrislibexecdir='${exec_prefix}/libexec'
681228060Sbaptdatarootdir='${prefix}/share'
682228060Sbaptdatadir='${datarootdir}'
68358551Skrissysconfdir='${prefix}/etc'
68458551Skrissharedstatedir='${prefix}/com'
68558551Skrislocalstatedir='${prefix}/var'
68658551Skrisincludedir='${prefix}/include'
68758551Skrisoldincludedir='/usr/include'
688228060Sbaptdocdir='${datarootdir}/doc/${PACKAGE}'
689228060Sbaptinfodir='${datarootdir}/info'
690228060Sbapthtmldir='${docdir}'
691228060Sbaptdvidir='${docdir}'
692228060Sbaptpdfdir='${docdir}'
693228060Sbaptpsdir='${docdir}'
694228060Sbaptlibdir='${exec_prefix}/lib'
695228060Sbaptlocaledir='${datarootdir}/locale'
696228060Sbaptmandir='${datarootdir}/man'
69758551Skris
69858551Skrisac_prev=
699228060Sbaptac_dashdash=
70058551Skrisfor ac_option
70158551Skrisdo
70258551Skris  # If the previous option needs an argument, assign it.
70358551Skris  if test -n "$ac_prev"; then
704228060Sbapt    eval $ac_prev=\$ac_option
70558551Skris    ac_prev=
70658551Skris    continue
70758551Skris  fi
70858551Skris
709228060Sbapt  case $ac_option in
710228060Sbapt  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
711228060Sbapt  *)	ac_optarg=yes ;;
71258551Skris  esac
71358551Skris
71458551Skris  # Accept the important Cygnus configure options, so we can diagnose typos.
71558551Skris
716228060Sbapt  case $ac_dashdash$ac_option in
717228060Sbapt  --)
718228060Sbapt    ac_dashdash=yes ;;
71958551Skris
72058551Skris  -bindir | --bindir | --bindi | --bind | --bin | --bi)
72158551Skris    ac_prev=bindir ;;
72258551Skris  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
723228060Sbapt    bindir=$ac_optarg ;;
72458551Skris
72558551Skris  -build | --build | --buil | --bui | --bu)
726228060Sbapt    ac_prev=build_alias ;;
72758551Skris  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
728228060Sbapt    build_alias=$ac_optarg ;;
72958551Skris
73058551Skris  -cache-file | --cache-file | --cache-fil | --cache-fi \
73158551Skris  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
73258551Skris    ac_prev=cache_file ;;
73358551Skris  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
73458551Skris  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
735228060Sbapt    cache_file=$ac_optarg ;;
73658551Skris
737228060Sbapt  --config-cache | -C)
738228060Sbapt    cache_file=config.cache ;;
739228060Sbapt
740228060Sbapt  -datadir | --datadir | --datadi | --datad)
74158551Skris    ac_prev=datadir ;;
742228060Sbapt  -datadir=* | --datadir=* | --datadi=* | --datad=*)
743228060Sbapt    datadir=$ac_optarg ;;
74458551Skris
745228060Sbapt  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
746228060Sbapt  | --dataroo | --dataro | --datar)
747228060Sbapt    ac_prev=datarootdir ;;
748228060Sbapt  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
749228060Sbapt  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
750228060Sbapt    datarootdir=$ac_optarg ;;
751228060Sbapt
75258551Skris  -disable-* | --disable-*)
753228060Sbapt    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
75458551Skris    # Reject names that are not valid shell variable names.
755228060Sbapt    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
756228060Sbapt      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
757228060Sbapt   { (exit 1); exit 1; }; }
758228060Sbapt    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
759228060Sbapt    eval enable_$ac_feature=no ;;
76058551Skris
761228060Sbapt  -docdir | --docdir | --docdi | --doc | --do)
762228060Sbapt    ac_prev=docdir ;;
763228060Sbapt  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
764228060Sbapt    docdir=$ac_optarg ;;
765228060Sbapt
766228060Sbapt  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
767228060Sbapt    ac_prev=dvidir ;;
768228060Sbapt  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
769228060Sbapt    dvidir=$ac_optarg ;;
770228060Sbapt
77158551Skris  -enable-* | --enable-*)
772228060Sbapt    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
77358551Skris    # Reject names that are not valid shell variable names.
774228060Sbapt    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
775228060Sbapt      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
776228060Sbapt   { (exit 1); exit 1; }; }
777228060Sbapt    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
778228060Sbapt    eval enable_$ac_feature=\$ac_optarg ;;
77958551Skris
78058551Skris  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
78158551Skris  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
78258551Skris  | --exec | --exe | --ex)
78358551Skris    ac_prev=exec_prefix ;;
78458551Skris  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
78558551Skris  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
78658551Skris  | --exec=* | --exe=* | --ex=*)
787228060Sbapt    exec_prefix=$ac_optarg ;;
78858551Skris
78958551Skris  -gas | --gas | --ga | --g)
79058551Skris    # Obsolete; use --with-gas.
79158551Skris    with_gas=yes ;;
79258551Skris
793228060Sbapt  -help | --help | --hel | --he | -h)
794228060Sbapt    ac_init_help=long ;;
795228060Sbapt  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
796228060Sbapt    ac_init_help=recursive ;;
797228060Sbapt  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
798228060Sbapt    ac_init_help=short ;;
79958551Skris
80058551Skris  -host | --host | --hos | --ho)
801228060Sbapt    ac_prev=host_alias ;;
80258551Skris  -host=* | --host=* | --hos=* | --ho=*)
803228060Sbapt    host_alias=$ac_optarg ;;
80458551Skris
805228060Sbapt  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
806228060Sbapt    ac_prev=htmldir ;;
807228060Sbapt  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
808228060Sbapt  | --ht=*)
809228060Sbapt    htmldir=$ac_optarg ;;
810228060Sbapt
81158551Skris  -includedir | --includedir | --includedi | --included | --include \
81258551Skris  | --includ | --inclu | --incl | --inc)
81358551Skris    ac_prev=includedir ;;
81458551Skris  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
81558551Skris  | --includ=* | --inclu=* | --incl=* | --inc=*)
816228060Sbapt    includedir=$ac_optarg ;;
81758551Skris
81858551Skris  -infodir | --infodir | --infodi | --infod | --info | --inf)
81958551Skris    ac_prev=infodir ;;
82058551Skris  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
821228060Sbapt    infodir=$ac_optarg ;;
82258551Skris
82358551Skris  -libdir | --libdir | --libdi | --libd)
82458551Skris    ac_prev=libdir ;;
82558551Skris  -libdir=* | --libdir=* | --libdi=* | --libd=*)
826228060Sbapt    libdir=$ac_optarg ;;
82758551Skris
82858551Skris  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
82958551Skris  | --libexe | --libex | --libe)
83058551Skris    ac_prev=libexecdir ;;
83158551Skris  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
83258551Skris  | --libexe=* | --libex=* | --libe=*)
833228060Sbapt    libexecdir=$ac_optarg ;;
83458551Skris
835228060Sbapt  -localedir | --localedir | --localedi | --localed | --locale)
836228060Sbapt    ac_prev=localedir ;;
837228060Sbapt  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
838228060Sbapt    localedir=$ac_optarg ;;
839228060Sbapt
84058551Skris  -localstatedir | --localstatedir | --localstatedi | --localstated \
841228060Sbapt  | --localstate | --localstat | --localsta | --localst | --locals)
84258551Skris    ac_prev=localstatedir ;;
84358551Skris  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
844228060Sbapt  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
845228060Sbapt    localstatedir=$ac_optarg ;;
84658551Skris
84758551Skris  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
84858551Skris    ac_prev=mandir ;;
84958551Skris  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
850228060Sbapt    mandir=$ac_optarg ;;
85158551Skris
85258551Skris  -nfp | --nfp | --nf)
85358551Skris    # Obsolete; use --without-fp.
85458551Skris    with_fp=no ;;
85558551Skris
85658551Skris  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
857228060Sbapt  | --no-cr | --no-c | -n)
85858551Skris    no_create=yes ;;
85958551Skris
86058551Skris  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
86158551Skris  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
86258551Skris    no_recursion=yes ;;
86358551Skris
86458551Skris  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
86558551Skris  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
86658551Skris  | --oldin | --oldi | --old | --ol | --o)
86758551Skris    ac_prev=oldincludedir ;;
86858551Skris  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
86958551Skris  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
87058551Skris  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
871228060Sbapt    oldincludedir=$ac_optarg ;;
87258551Skris
87358551Skris  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
87458551Skris    ac_prev=prefix ;;
87558551Skris  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
876228060Sbapt    prefix=$ac_optarg ;;
87758551Skris
87858551Skris  -program-prefix | --program-prefix | --program-prefi | --program-pref \
87958551Skris  | --program-pre | --program-pr | --program-p)
88058551Skris    ac_prev=program_prefix ;;
88158551Skris  -program-prefix=* | --program-prefix=* | --program-prefi=* \
88258551Skris  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
883228060Sbapt    program_prefix=$ac_optarg ;;
88458551Skris
88558551Skris  -program-suffix | --program-suffix | --program-suffi | --program-suff \
88658551Skris  | --program-suf | --program-su | --program-s)
88758551Skris    ac_prev=program_suffix ;;
88858551Skris  -program-suffix=* | --program-suffix=* | --program-suffi=* \
88958551Skris  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
890228060Sbapt    program_suffix=$ac_optarg ;;
89158551Skris
89258551Skris  -program-transform-name | --program-transform-name \
89358551Skris  | --program-transform-nam | --program-transform-na \
89458551Skris  | --program-transform-n | --program-transform- \
89558551Skris  | --program-transform | --program-transfor \
89658551Skris  | --program-transfo | --program-transf \
89758551Skris  | --program-trans | --program-tran \
89858551Skris  | --progr-tra | --program-tr | --program-t)
89958551Skris    ac_prev=program_transform_name ;;
90058551Skris  -program-transform-name=* | --program-transform-name=* \
90158551Skris  | --program-transform-nam=* | --program-transform-na=* \
90258551Skris  | --program-transform-n=* | --program-transform-=* \
90358551Skris  | --program-transform=* | --program-transfor=* \
90458551Skris  | --program-transfo=* | --program-transf=* \
90558551Skris  | --program-trans=* | --program-tran=* \
90658551Skris  | --progr-tra=* | --program-tr=* | --program-t=*)
907228060Sbapt    program_transform_name=$ac_optarg ;;
90858551Skris
909228060Sbapt  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
910228060Sbapt    ac_prev=pdfdir ;;
911228060Sbapt  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
912228060Sbapt    pdfdir=$ac_optarg ;;
913228060Sbapt
914228060Sbapt  -psdir | --psdir | --psdi | --psd | --ps)
915228060Sbapt    ac_prev=psdir ;;
916228060Sbapt  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
917228060Sbapt    psdir=$ac_optarg ;;
918228060Sbapt
91958551Skris  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
92058551Skris  | -silent | --silent | --silen | --sile | --sil)
92158551Skris    silent=yes ;;
92258551Skris
92358551Skris  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
92458551Skris    ac_prev=sbindir ;;
92558551Skris  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
92658551Skris  | --sbi=* | --sb=*)
927228060Sbapt    sbindir=$ac_optarg ;;
92858551Skris
92958551Skris  -sharedstatedir | --sharedstatedir | --sharedstatedi \
93058551Skris  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
93158551Skris  | --sharedst | --shareds | --shared | --share | --shar \
93258551Skris  | --sha | --sh)
93358551Skris    ac_prev=sharedstatedir ;;
93458551Skris  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
93558551Skris  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
93658551Skris  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
93758551Skris  | --sha=* | --sh=*)
938228060Sbapt    sharedstatedir=$ac_optarg ;;
93958551Skris
94058551Skris  -site | --site | --sit)
94158551Skris    ac_prev=site ;;
94258551Skris  -site=* | --site=* | --sit=*)
943228060Sbapt    site=$ac_optarg ;;
94458551Skris
94558551Skris  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
94658551Skris    ac_prev=srcdir ;;
94758551Skris  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
948228060Sbapt    srcdir=$ac_optarg ;;
94958551Skris
95058551Skris  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
95158551Skris  | --syscon | --sysco | --sysc | --sys | --sy)
95258551Skris    ac_prev=sysconfdir ;;
95358551Skris  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
95458551Skris  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
955228060Sbapt    sysconfdir=$ac_optarg ;;
95658551Skris
95758551Skris  -target | --target | --targe | --targ | --tar | --ta | --t)
958228060Sbapt    ac_prev=target_alias ;;
95958551Skris  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
960228060Sbapt    target_alias=$ac_optarg ;;
96158551Skris
96258551Skris  -v | -verbose | --verbose | --verbos | --verbo | --verb)
96358551Skris    verbose=yes ;;
96458551Skris
965228060Sbapt  -version | --version | --versio | --versi | --vers | -V)
966228060Sbapt    ac_init_version=: ;;
96758551Skris
96858551Skris  -with-* | --with-*)
969228060Sbapt    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
97058551Skris    # Reject names that are not valid shell variable names.
971228060Sbapt    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
972228060Sbapt      { echo "$as_me: error: invalid package name: $ac_package" >&2
973228060Sbapt   { (exit 1); exit 1; }; }
974228060Sbapt    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
975228060Sbapt    eval with_$ac_package=\$ac_optarg ;;
97658551Skris
97758551Skris  -without-* | --without-*)
978228060Sbapt    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
97958551Skris    # Reject names that are not valid shell variable names.
980228060Sbapt    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
981228060Sbapt      { echo "$as_me: error: invalid package name: $ac_package" >&2
982228060Sbapt   { (exit 1); exit 1; }; }
983228060Sbapt    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
984228060Sbapt    eval with_$ac_package=no ;;
98558551Skris
98658551Skris  --x)
98758551Skris    # Obsolete; use --with-x.
98858551Skris    with_x=yes ;;
98958551Skris
99058551Skris  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
99158551Skris  | --x-incl | --x-inc | --x-in | --x-i)
99258551Skris    ac_prev=x_includes ;;
99358551Skris  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
99458551Skris  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
995228060Sbapt    x_includes=$ac_optarg ;;
99658551Skris
99758551Skris  -x-libraries | --x-libraries | --x-librarie | --x-librari \
99858551Skris  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
99958551Skris    ac_prev=x_libraries ;;
100058551Skris  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
100158551Skris  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1002228060Sbapt    x_libraries=$ac_optarg ;;
100358551Skris
1004228060Sbapt  -*) { echo "$as_me: error: unrecognized option: $ac_option
1005228060SbaptTry \`$0 --help' for more information." >&2
1006228060Sbapt   { (exit 1); exit 1; }; }
100758551Skris    ;;
100858551Skris
1009228060Sbapt  *=*)
1010228060Sbapt    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1011228060Sbapt    # Reject names that are not valid shell variable names.
1012228060Sbapt    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1013228060Sbapt      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1014228060Sbapt   { (exit 1); exit 1; }; }
1015228060Sbapt    eval $ac_envvar=\$ac_optarg
1016228060Sbapt    export $ac_envvar ;;
1017228060Sbapt
101858551Skris  *)
1019228060Sbapt    # FIXME: should be removed in autoconf 3.0.
1020228060Sbapt    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1021228060Sbapt    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022228060Sbapt      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1023228060Sbapt    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
102458551Skris    ;;
102558551Skris
102658551Skris  esac
102758551Skrisdone
102858551Skris
102958551Skrisif test -n "$ac_prev"; then
1030228060Sbapt  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1031228060Sbapt  { echo "$as_me: error: missing argument to $ac_option" >&2
1032228060Sbapt   { (exit 1); exit 1; }; }
103358551Skrisfi
103458551Skris
1035228060Sbapt# Be sure to have absolute directory names.
1036228060Sbaptfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1037228060Sbapt		datadir sysconfdir sharedstatedir localstatedir includedir \
1038228060Sbapt		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1039228060Sbapt		libdir localedir mandir
1040228060Sbaptdo
1041228060Sbapt  eval ac_val=\$$ac_var
1042228060Sbapt  case $ac_val in
1043228060Sbapt    [\\/$]* | ?:[\\/]* )  continue;;
1044228060Sbapt    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1045228060Sbapt  esac
1046228060Sbapt  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1047228060Sbapt   { (exit 1); exit 1; }; }
1048228060Sbaptdone
104958551Skris
1050228060Sbapt# There might be people who depend on the old broken behavior: `$host'
1051228060Sbapt# used to hold the argument of --host etc.
1052228060Sbapt# FIXME: To remove some day.
1053228060Sbaptbuild=$build_alias
1054228060Sbapthost=$host_alias
1055228060Sbapttarget=$target_alias
1056228060Sbapt
1057228060Sbapt# FIXME: To remove some day.
1058228060Sbaptif test "x$host_alias" != x; then
1059228060Sbapt  if test "x$build_alias" = x; then
1060228060Sbapt    cross_compiling=maybe
1061228060Sbapt    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1062228060Sbapt    If a cross compiler is detected then cross compile mode will be used." >&2
1063228060Sbapt  elif test "x$build_alias" != "x$host_alias"; then
1064228060Sbapt    cross_compiling=yes
1065228060Sbapt  fi
106658551Skrisfi
106758551Skris
1068228060Sbaptac_tool_prefix=
1069228060Sbapttest -n "$host_alias" && ac_tool_prefix=$host_alias-
107058551Skris
1071228060Sbapttest "$silent" = yes && exec 6>/dev/null
107258551Skris
107358551Skris
1074228060Sbaptac_pwd=`pwd` && test -n "$ac_pwd" &&
1075228060Sbaptac_ls_di=`ls -di .` &&
1076228060Sbaptac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1077228060Sbapt  { echo "$as_me: error: Working directory cannot be determined" >&2
1078228060Sbapt   { (exit 1); exit 1; }; }
1079228060Sbapttest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1080228060Sbapt  { echo "$as_me: error: pwd does not report name of working directory" >&2
1081228060Sbapt   { (exit 1); exit 1; }; }
108258551Skris
108358551Skris
108458551Skris# Find the source files, if location was not specified.
108558551Skrisif test -z "$srcdir"; then
108658551Skris  ac_srcdir_defaulted=yes
1087228060Sbapt  # Try the directory containing this script, then the parent directory.
1088228060Sbapt  ac_confdir=`$as_dirname -- "$0" ||
1089228060Sbapt$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1090228060Sbapt	 X"$0" : 'X\(//\)[^/]' \| \
1091228060Sbapt	 X"$0" : 'X\(//\)$' \| \
1092228060Sbapt	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1093228060Sbaptecho X"$0" |
1094228060Sbapt    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1095228060Sbapt	    s//\1/
1096228060Sbapt	    q
1097228060Sbapt	  }
1098228060Sbapt	  /^X\(\/\/\)[^/].*/{
1099228060Sbapt	    s//\1/
1100228060Sbapt	    q
1101228060Sbapt	  }
1102228060Sbapt	  /^X\(\/\/\)$/{
1103228060Sbapt	    s//\1/
1104228060Sbapt	    q
1105228060Sbapt	  }
1106228060Sbapt	  /^X\(\/\).*/{
1107228060Sbapt	    s//\1/
1108228060Sbapt	    q
1109228060Sbapt	  }
1110228060Sbapt	  s/.*/./; q'`
111158551Skris  srcdir=$ac_confdir
1112228060Sbapt  if test ! -r "$srcdir/$ac_unique_file"; then
111358551Skris    srcdir=..
111458551Skris  fi
111558551Skriselse
111658551Skris  ac_srcdir_defaulted=no
111758551Skrisfi
1118228060Sbaptif test ! -r "$srcdir/$ac_unique_file"; then
1119228060Sbapt  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1120228060Sbapt  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1121228060Sbapt   { (exit 1); exit 1; }; }
112258551Skrisfi
1123228060Sbaptac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1124228060Sbaptac_abs_confdir=`(
1125228060Sbapt	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1126228060Sbapt   { (exit 1); exit 1; }; }
1127228060Sbapt	pwd)`
1128228060Sbapt# When building in place, set srcdir=.
1129228060Sbaptif test "$ac_abs_confdir" = "$ac_pwd"; then
1130228060Sbapt  srcdir=.
1131228060Sbaptfi
1132228060Sbapt# Remove unnecessary trailing slashes from srcdir.
1133228060Sbapt# Double slashes in file names in object file debugging info
1134228060Sbapt# mess up M-x gdb in Emacs.
1135228060Sbaptcase $srcdir in
1136228060Sbapt*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1137228060Sbaptesac
1138228060Sbaptfor ac_var in $ac_precious_vars; do
1139228060Sbapt  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1140228060Sbapt  eval ac_env_${ac_var}_value=\$${ac_var}
1141228060Sbapt  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1142228060Sbapt  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1143228060Sbaptdone
114458551Skris
1145228060Sbapt#
1146228060Sbapt# Report the --help message.
1147228060Sbapt#
1148228060Sbaptif test "$ac_init_help" = "long"; then
1149228060Sbapt  # Omit some internal or obsolete options to make the list less imposing.
1150228060Sbapt  # This message is too long to be a string in the A/UX 3.1 sh.
1151228060Sbapt  cat <<_ACEOF
1152228060Sbapt\`configure' configures this package to adapt to many kinds of systems.
1153228060Sbapt
1154228060SbaptUsage: $0 [OPTION]... [VAR=VALUE]...
1155228060Sbapt
1156228060SbaptTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1157228060SbaptVAR=VALUE.  See below for descriptions of some of the useful variables.
1158228060Sbapt
1159228060SbaptDefaults for the options are specified in brackets.
1160228060Sbapt
1161228060SbaptConfiguration:
1162228060Sbapt  -h, --help              display this help and exit
1163228060Sbapt      --help=short        display options specific to this package
1164228060Sbapt      --help=recursive    display the short help of all the included packages
1165228060Sbapt  -V, --version           display version information and exit
1166228060Sbapt  -q, --quiet, --silent   do not print \`checking...' messages
1167228060Sbapt      --cache-file=FILE   cache test results in FILE [disabled]
1168228060Sbapt  -C, --config-cache      alias for \`--cache-file=config.cache'
1169228060Sbapt  -n, --no-create         do not create output files
1170228060Sbapt      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1171228060Sbapt
1172228060SbaptInstallation directories:
1173228060Sbapt  --prefix=PREFIX         install architecture-independent files in PREFIX
1174228060Sbapt			  [$ac_default_prefix]
1175228060Sbapt  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1176228060Sbapt			  [PREFIX]
1177228060Sbapt
1178228060SbaptBy default, \`make install' will install all the files in
1179228060Sbapt\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1180228060Sbaptan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1181228060Sbaptfor instance \`--prefix=\$HOME'.
1182228060Sbapt
1183228060SbaptFor better control, use the options below.
1184228060Sbapt
1185228060SbaptFine tuning of the installation directories:
1186228060Sbapt  --bindir=DIR           user executables [EPREFIX/bin]
1187228060Sbapt  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1188228060Sbapt  --libexecdir=DIR       program executables [EPREFIX/libexec]
1189228060Sbapt  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1190228060Sbapt  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1191228060Sbapt  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1192228060Sbapt  --libdir=DIR           object code libraries [EPREFIX/lib]
1193228060Sbapt  --includedir=DIR       C header files [PREFIX/include]
1194228060Sbapt  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1195228060Sbapt  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1196228060Sbapt  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1197228060Sbapt  --infodir=DIR          info documentation [DATAROOTDIR/info]
1198228060Sbapt  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1199228060Sbapt  --mandir=DIR           man documentation [DATAROOTDIR/man]
1200228060Sbapt  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1201228060Sbapt  --htmldir=DIR          html documentation [DOCDIR]
1202228060Sbapt  --dvidir=DIR           dvi documentation [DOCDIR]
1203228060Sbapt  --pdfdir=DIR           pdf documentation [DOCDIR]
1204228060Sbapt  --psdir=DIR            ps documentation [DOCDIR]
1205228060Sbapt_ACEOF
1206228060Sbapt
1207228060Sbapt  cat <<\_ACEOF
1208228060Sbapt_ACEOF
1209228060Sbaptfi
1210228060Sbapt
1211228060Sbaptif test -n "$ac_init_help"; then
1212228060Sbapt
1213228060Sbapt  cat <<\_ACEOF
1214228060Sbapt
1215228060SbaptSome influential environment variables:
1216228060Sbapt  CC          C compiler command
1217228060Sbapt  CFLAGS      C compiler flags
1218228060Sbapt  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1219228060Sbapt              nonstandard directory <lib dir>
1220228060Sbapt  LIBS        libraries to pass to the linker, e.g. -l<library>
1221228060Sbapt  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1222228060Sbapt              you have headers in a nonstandard directory <include dir>
1223228060Sbapt  CPP         C preprocessor
1224228060Sbapt  CXX         C++ compiler command
1225228060Sbapt  CXXFLAGS    C++ compiler flags
1226228060Sbapt  CXXCPP      C++ preprocessor
1227228060Sbapt
1228228060SbaptUse these variables to override the choices made by `configure' or to help
1229228060Sbaptit to find libraries and programs with nonstandard names/locations.
1230228060Sbapt
1231228060Sbapt_ACEOF
1232228060Sbaptac_status=$?
1233228060Sbaptfi
1234228060Sbapt
1235228060Sbaptif test "$ac_init_help" = "recursive"; then
1236228060Sbapt  # If there are subdirs, report their specific --help.
1237228060Sbapt  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1238228060Sbapt    test -d "$ac_dir" || continue
1239228060Sbapt    ac_builddir=.
1240228060Sbapt
1241228060Sbaptcase "$ac_dir" in
1242228060Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1243228060Sbapt*)
1244228060Sbapt  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1245228060Sbapt  # A ".." for each directory in $ac_dir_suffix.
1246228060Sbapt  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1247228060Sbapt  case $ac_top_builddir_sub in
1248228060Sbapt  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1249228060Sbapt  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1250228060Sbapt  esac ;;
1251228060Sbaptesac
1252228060Sbaptac_abs_top_builddir=$ac_pwd
1253228060Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix
1254228060Sbapt# for backward compatibility:
1255228060Sbaptac_top_builddir=$ac_top_build_prefix
1256228060Sbapt
1257228060Sbaptcase $srcdir in
1258228060Sbapt  .)  # We are building in place.
1259228060Sbapt    ac_srcdir=.
1260228060Sbapt    ac_top_srcdir=$ac_top_builddir_sub
1261228060Sbapt    ac_abs_top_srcdir=$ac_pwd ;;
1262228060Sbapt  [\\/]* | ?:[\\/]* )  # Absolute name.
1263228060Sbapt    ac_srcdir=$srcdir$ac_dir_suffix;
1264228060Sbapt    ac_top_srcdir=$srcdir
1265228060Sbapt    ac_abs_top_srcdir=$srcdir ;;
1266228060Sbapt  *) # Relative name.
1267228060Sbapt    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1268228060Sbapt    ac_top_srcdir=$ac_top_build_prefix$srcdir
1269228060Sbapt    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1270228060Sbaptesac
1271228060Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1272228060Sbapt
1273228060Sbapt    cd "$ac_dir" || { ac_status=$?; continue; }
1274228060Sbapt    # Check for guested configure.
1275228060Sbapt    if test -f "$ac_srcdir/configure.gnu"; then
1276228060Sbapt      echo &&
1277228060Sbapt      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1278228060Sbapt    elif test -f "$ac_srcdir/configure"; then
1279228060Sbapt      echo &&
1280228060Sbapt      $SHELL "$ac_srcdir/configure" --help=recursive
1281228060Sbapt    else
1282228060Sbapt      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1283228060Sbapt    fi || ac_status=$?
1284228060Sbapt    cd "$ac_pwd" || { ac_status=$?; break; }
1285228060Sbapt  done
1286228060Sbaptfi
1287228060Sbapt
1288228060Sbapttest -n "$ac_init_help" && exit $ac_status
1289228060Sbaptif $ac_init_version; then
1290228060Sbapt  cat <<\_ACEOF
1291228060Sbaptconfigure
1292228060Sbaptgenerated by GNU Autoconf 2.61
1293228060Sbapt
1294228060SbaptCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1295228060Sbapt2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1296228060SbaptThis configure script is free software; the Free Software Foundation
1297228060Sbaptgives unlimited permission to copy, distribute and modify it.
1298228060Sbapt_ACEOF
1299228060Sbapt  exit
1300228060Sbaptfi
1301228060Sbaptcat >config.log <<_ACEOF
1302228060SbaptThis file contains any messages produced by compilers while
1303228060Sbaptrunning configure, to aid debugging if configure makes a mistake.
1304228060Sbapt
1305228060SbaptIt was created by $as_me, which was
1306228060Sbaptgenerated by GNU Autoconf 2.61.  Invocation command line was
1307228060Sbapt
1308228060Sbapt  $ $0 $@
1309228060Sbapt
1310228060Sbapt_ACEOF
1311228060Sbaptexec 5>>config.log
1312228060Sbapt{
1313228060Sbaptcat <<_ASUNAME
1314228060Sbapt## --------- ##
1315228060Sbapt## Platform. ##
1316228060Sbapt## --------- ##
1317228060Sbapt
1318228060Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1319228060Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown`
1320228060Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown`
1321228060Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown`
1322228060Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown`
1323228060Sbapt
1324228060Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1325228060Sbapt/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1326228060Sbapt
1327228060Sbapt/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1328228060Sbapt/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1329228060Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1330228060Sbapt/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1331228060Sbapt/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1332228060Sbapt/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1333228060Sbapt/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1334228060Sbapt
1335228060Sbapt_ASUNAME
1336228060Sbapt
1337228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338228060Sbaptfor as_dir in $PATH
1339228060Sbaptdo
1340228060Sbapt  IFS=$as_save_IFS
1341228060Sbapt  test -z "$as_dir" && as_dir=.
1342228060Sbapt  echo "PATH: $as_dir"
1343228060Sbaptdone
1344228060SbaptIFS=$as_save_IFS
1345228060Sbapt
1346228060Sbapt} >&5
1347228060Sbapt
1348228060Sbaptcat >&5 <<_ACEOF
1349228060Sbapt
1350228060Sbapt
1351228060Sbapt## ----------- ##
1352228060Sbapt## Core tests. ##
1353228060Sbapt## ----------- ##
1354228060Sbapt
1355228060Sbapt_ACEOF
1356228060Sbapt
1357228060Sbapt
1358228060Sbapt# Keep a trace of the command line.
1359228060Sbapt# Strip out --no-create and --no-recursion so they do not pile up.
1360228060Sbapt# Strip out --silent because we don't want to record it for future runs.
1361228060Sbapt# Also quote any args containing shell meta-characters.
1362228060Sbapt# Make two passes to allow for proper duplicate-argument suppression.
1363228060Sbaptac_configure_args=
1364228060Sbaptac_configure_args0=
1365228060Sbaptac_configure_args1=
1366228060Sbaptac_must_keep_next=false
1367228060Sbaptfor ac_pass in 1 2
1368228060Sbaptdo
1369228060Sbapt  for ac_arg
1370228060Sbapt  do
1371228060Sbapt    case $ac_arg in
1372228060Sbapt    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1373228060Sbapt    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1374228060Sbapt    | -silent | --silent | --silen | --sile | --sil)
1375228060Sbapt      continue ;;
1376228060Sbapt    *\'*)
1377228060Sbapt      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1378228060Sbapt    esac
1379228060Sbapt    case $ac_pass in
1380228060Sbapt    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1381228060Sbapt    2)
1382228060Sbapt      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1383228060Sbapt      if test $ac_must_keep_next = true; then
1384228060Sbapt	ac_must_keep_next=false # Got value, back to normal.
1385228060Sbapt      else
1386228060Sbapt	case $ac_arg in
1387228060Sbapt	  *=* | --config-cache | -C | -disable-* | --disable-* \
1388228060Sbapt	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1389228060Sbapt	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1390228060Sbapt	  | -with-* | --with-* | -without-* | --without-* | --x)
1391228060Sbapt	    case "$ac_configure_args0 " in
1392228060Sbapt	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1393228060Sbapt	    esac
1394228060Sbapt	    ;;
1395228060Sbapt	  -* ) ac_must_keep_next=true ;;
1396228060Sbapt	esac
1397228060Sbapt      fi
1398228060Sbapt      ac_configure_args="$ac_configure_args '$ac_arg'"
1399228060Sbapt      ;;
1400228060Sbapt    esac
1401228060Sbapt  done
1402228060Sbaptdone
1403228060Sbapt$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1404228060Sbapt$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1405228060Sbapt
1406228060Sbapt# When interrupted or exit'd, cleanup temporary files, and complete
1407228060Sbapt# config.log.  We remove comments because anyway the quotes in there
1408228060Sbapt# would cause problems or look ugly.
1409228060Sbapt# WARNING: Use '\'' to represent an apostrophe within the trap.
1410228060Sbapt# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1411228060Sbapttrap 'exit_status=$?
1412228060Sbapt  # Save into config.log some information that might help in debugging.
1413228060Sbapt  {
1414228060Sbapt    echo
1415228060Sbapt
1416228060Sbapt    cat <<\_ASBOX
1417228060Sbapt## ---------------- ##
1418228060Sbapt## Cache variables. ##
1419228060Sbapt## ---------------- ##
1420228060Sbapt_ASBOX
1421228060Sbapt    echo
1422228060Sbapt    # The following way of writing the cache mishandles newlines in values,
1423228060Sbapt(
1424228060Sbapt  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1425228060Sbapt    eval ac_val=\$$ac_var
1426228060Sbapt    case $ac_val in #(
1427228060Sbapt    *${as_nl}*)
1428228060Sbapt      case $ac_var in #(
1429228060Sbapt      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1430228060Sbaptecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1431228060Sbapt      esac
1432228060Sbapt      case $ac_var in #(
1433228060Sbapt      _ | IFS | as_nl) ;; #(
1434228060Sbapt      *) $as_unset $ac_var ;;
1435228060Sbapt      esac ;;
1436228060Sbapt    esac
1437228060Sbapt  done
1438228060Sbapt  (set) 2>&1 |
1439228060Sbapt    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1440228060Sbapt    *${as_nl}ac_space=\ *)
1441228060Sbapt      sed -n \
1442228060Sbapt	"s/'\''/'\''\\\\'\'''\''/g;
1443228060Sbapt	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1444228060Sbapt      ;; #(
1445228060Sbapt    *)
1446228060Sbapt      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1447228060Sbapt      ;;
1448228060Sbapt    esac |
1449228060Sbapt    sort
1450228060Sbapt)
1451228060Sbapt    echo
1452228060Sbapt
1453228060Sbapt    cat <<\_ASBOX
1454228060Sbapt## ----------------- ##
1455228060Sbapt## Output variables. ##
1456228060Sbapt## ----------------- ##
1457228060Sbapt_ASBOX
1458228060Sbapt    echo
1459228060Sbapt    for ac_var in $ac_subst_vars
1460228060Sbapt    do
1461228060Sbapt      eval ac_val=\$$ac_var
1462228060Sbapt      case $ac_val in
1463228060Sbapt      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1464228060Sbapt      esac
1465228060Sbapt      echo "$ac_var='\''$ac_val'\''"
1466228060Sbapt    done | sort
1467228060Sbapt    echo
1468228060Sbapt
1469228060Sbapt    if test -n "$ac_subst_files"; then
1470228060Sbapt      cat <<\_ASBOX
1471228060Sbapt## ------------------- ##
1472228060Sbapt## File substitutions. ##
1473228060Sbapt## ------------------- ##
1474228060Sbapt_ASBOX
1475228060Sbapt      echo
1476228060Sbapt      for ac_var in $ac_subst_files
1477228060Sbapt      do
1478228060Sbapt	eval ac_val=\$$ac_var
1479228060Sbapt	case $ac_val in
1480228060Sbapt	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1481228060Sbapt	esac
1482228060Sbapt	echo "$ac_var='\''$ac_val'\''"
1483228060Sbapt      done | sort
1484228060Sbapt      echo
1485228060Sbapt    fi
1486228060Sbapt
1487228060Sbapt    if test -s confdefs.h; then
1488228060Sbapt      cat <<\_ASBOX
1489228060Sbapt## ----------- ##
1490228060Sbapt## confdefs.h. ##
1491228060Sbapt## ----------- ##
1492228060Sbapt_ASBOX
1493228060Sbapt      echo
1494228060Sbapt      cat confdefs.h
1495228060Sbapt      echo
1496228060Sbapt    fi
1497228060Sbapt    test "$ac_signal" != 0 &&
1498228060Sbapt      echo "$as_me: caught signal $ac_signal"
1499228060Sbapt    echo "$as_me: exit $exit_status"
1500228060Sbapt  } >&5
1501228060Sbapt  rm -f core *.core core.conftest.* &&
1502228060Sbapt    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1503228060Sbapt    exit $exit_status
1504228060Sbapt' 0
1505228060Sbaptfor ac_signal in 1 2 13 15; do
1506228060Sbapt  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1507228060Sbaptdone
1508228060Sbaptac_signal=0
1509228060Sbapt
1510228060Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed.
1511228060Sbaptrm -f -r conftest* confdefs.h
1512228060Sbapt
1513228060Sbapt# Predefined preprocessor variables.
1514228060Sbapt
1515228060Sbaptcat >>confdefs.h <<_ACEOF
1516228060Sbapt#define PACKAGE_NAME "$PACKAGE_NAME"
1517228060Sbapt_ACEOF
1518228060Sbapt
1519228060Sbapt
1520228060Sbaptcat >>confdefs.h <<_ACEOF
1521228060Sbapt#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1522228060Sbapt_ACEOF
1523228060Sbapt
1524228060Sbapt
1525228060Sbaptcat >>confdefs.h <<_ACEOF
1526228060Sbapt#define PACKAGE_VERSION "$PACKAGE_VERSION"
1527228060Sbapt_ACEOF
1528228060Sbapt
1529228060Sbapt
1530228060Sbaptcat >>confdefs.h <<_ACEOF
1531228060Sbapt#define PACKAGE_STRING "$PACKAGE_STRING"
1532228060Sbapt_ACEOF
1533228060Sbapt
1534228060Sbapt
1535228060Sbaptcat >>confdefs.h <<_ACEOF
1536228060Sbapt#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1537228060Sbapt_ACEOF
1538228060Sbapt
1539228060Sbapt
1540228060Sbapt# Let the site file select an alternate cache file if it wants to.
154158551Skris# Prefer explicitly selected file to automatically selected ones.
1542228060Sbaptif test -n "$CONFIG_SITE"; then
1543228060Sbapt  set x "$CONFIG_SITE"
1544228060Sbaptelif test "x$prefix" != xNONE; then
1545228060Sbapt  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1546228060Sbaptelse
1547228060Sbapt  set x "$ac_default_prefix/share/config.site" \
1548228060Sbapt	"$ac_default_prefix/etc/config.site"
154958551Skrisfi
1550228060Sbaptshift
1551228060Sbaptfor ac_site_file
1552228060Sbaptdo
155358551Skris  if test -r "$ac_site_file"; then
1554228060Sbapt    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1555228060Sbaptecho "$as_me: loading site script $ac_site_file" >&6;}
1556228060Sbapt    sed 's/^/| /' "$ac_site_file" >&5
155758551Skris    . "$ac_site_file"
155858551Skris  fi
155958551Skrisdone
156058551Skris
156158551Skrisif test -r "$cache_file"; then
1562228060Sbapt  # Some versions of bash will fail to source /dev/null (special
1563228060Sbapt  # files actually), so we avoid doing that.
1564228060Sbapt  if test -f "$cache_file"; then
1565228060Sbapt    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1566228060Sbaptecho "$as_me: loading cache $cache_file" >&6;}
1567228060Sbapt    case $cache_file in
1568228060Sbapt      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1569228060Sbapt      *)                      . "./$cache_file";;
1570228060Sbapt    esac
1571228060Sbapt  fi
157258551Skriselse
1573228060Sbapt  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1574228060Sbaptecho "$as_me: creating cache $cache_file" >&6;}
1575228060Sbapt  >$cache_file
157658551Skrisfi
157758551Skris
1578228060Sbapt# Check that the precious variables saved in the cache have kept the same
1579228060Sbapt# value.
1580228060Sbaptac_cache_corrupted=false
1581228060Sbaptfor ac_var in $ac_precious_vars; do
1582228060Sbapt  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1583228060Sbapt  eval ac_new_set=\$ac_env_${ac_var}_set
1584228060Sbapt  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1585228060Sbapt  eval ac_new_val=\$ac_env_${ac_var}_value
1586228060Sbapt  case $ac_old_set,$ac_new_set in
1587228060Sbapt    set,)
1588228060Sbapt      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1589228060Sbaptecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1590228060Sbapt      ac_cache_corrupted=: ;;
1591228060Sbapt    ,set)
1592228060Sbapt      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1593228060Sbaptecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1594228060Sbapt      ac_cache_corrupted=: ;;
1595228060Sbapt    ,);;
1596228060Sbapt    *)
1597228060Sbapt      if test "x$ac_old_val" != "x$ac_new_val"; then
1598228060Sbapt	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1599228060Sbaptecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1600228060Sbapt	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1601228060Sbaptecho "$as_me:   former value:  $ac_old_val" >&2;}
1602228060Sbapt	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1603228060Sbaptecho "$as_me:   current value: $ac_new_val" >&2;}
1604228060Sbapt	ac_cache_corrupted=:
1605228060Sbapt      fi;;
1606228060Sbapt  esac
1607228060Sbapt  # Pass precious variables to config.status.
1608228060Sbapt  if test "$ac_new_set" = set; then
1609228060Sbapt    case $ac_new_val in
1610228060Sbapt    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1611228060Sbapt    *) ac_arg=$ac_var=$ac_new_val ;;
1612228060Sbapt    esac
1613228060Sbapt    case " $ac_configure_args " in
1614228060Sbapt      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1615228060Sbapt      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1616228060Sbapt    esac
1617228060Sbapt  fi
1618228060Sbaptdone
1619228060Sbaptif $ac_cache_corrupted; then
1620228060Sbapt  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1621228060Sbaptecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1622228060Sbapt  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1623228060Sbaptecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1624228060Sbapt   { (exit 1); exit 1; }; }
1625228060Sbaptfi
1626228060Sbapt
1627228060Sbapt
1628228060Sbapt
1629228060Sbapt
1630228060Sbapt
1631228060Sbapt
1632228060Sbapt
1633228060Sbapt
1634228060Sbapt
1635228060Sbapt
1636228060Sbapt
1637228060Sbapt
1638228060Sbapt
1639228060Sbapt
1640228060Sbapt
1641228060Sbapt
1642228060Sbapt
164358551Skrisac_ext=c
164458551Skrisac_cpp='$CPP $CPPFLAGS'
1645228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1646228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1647228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
164858551Skris
1649228060Sbapt
1650228060Sbapt{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1651228060Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1652228060Sbaptset x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1653228060Sbaptif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1654228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1655228060Sbaptelse
1656228060Sbapt  cat >conftest.make <<\_ACEOF
1657228060SbaptSHELL = /bin/sh
1658228060Sbaptall:
1659228060Sbapt	@echo '@@@%%%=$(MAKE)=@@@%%%'
1660228060Sbapt_ACEOF
1661228060Sbapt# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1662228060Sbaptcase `${MAKE-make} -f conftest.make 2>/dev/null` in
1663228060Sbapt  *@@@%%%=?*=@@@%%%*)
1664228060Sbapt    eval ac_cv_prog_make_${ac_make}_set=yes;;
1665228060Sbapt  *)
1666228060Sbapt    eval ac_cv_prog_make_${ac_make}_set=no;;
1667228060Sbaptesac
1668228060Sbaptrm -f conftest.make
1669228060Sbaptfi
1670228060Sbaptif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1671228060Sbapt  { echo "$as_me:$LINENO: result: yes" >&5
1672228060Sbaptecho "${ECHO_T}yes" >&6; }
1673228060Sbapt  SET_MAKE=
1674228060Sbaptelse
1675228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1676228060Sbaptecho "${ECHO_T}no" >&6; }
1677228060Sbapt  SET_MAKE="MAKE=${MAKE-make}"
1678228060Sbaptfi
1679228060Sbapt
1680228060Sbaptac_ext=c
1681228060Sbaptac_cpp='$CPP $CPPFLAGS'
1682228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
1685228060Sbaptif test -n "$ac_tool_prefix"; then
1686228060Sbapt  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1687228060Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2
1688228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1689228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1690228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1691228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1692228060Sbaptelse
1693228060Sbapt  if test -n "$CC"; then
1694228060Sbapt  ac_cv_prog_CC="$CC" # Let the user override the test.
1695228060Sbaptelse
1696228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697228060Sbaptfor as_dir in $PATH
1698228060Sbaptdo
1699228060Sbapt  IFS=$as_save_IFS
1700228060Sbapt  test -z "$as_dir" && as_dir=.
1701228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1702228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1703228060Sbapt    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1704228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705228060Sbapt    break 2
170658551Skris  fi
1707228060Sbaptdone
1708228060Sbaptdone
1709228060SbaptIFS=$as_save_IFS
1710228060Sbapt
1711228060Sbaptfi
1712228060Sbaptfi
1713228060SbaptCC=$ac_cv_prog_CC
1714228060Sbaptif test -n "$CC"; then
1715228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1716228060Sbaptecho "${ECHO_T}$CC" >&6; }
171758551Skriselse
1718228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1719228060Sbaptecho "${ECHO_T}no" >&6; }
172058551Skrisfi
172158551Skris
172258551Skris
1723228060Sbaptfi
1724228060Sbaptif test -z "$ac_cv_prog_CC"; then
1725228060Sbapt  ac_ct_CC=$CC
1726228060Sbapt  # Extract the first word of "gcc", so it can be a program name with args.
1727228060Sbaptset dummy gcc; ac_word=$2
1728228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1729228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1730228060Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
173258551Skriselse
1733228060Sbapt  if test -n "$ac_ct_CC"; then
1734228060Sbapt  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
173558551Skriselse
1736228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737228060Sbaptfor as_dir in $PATH
1738228060Sbaptdo
1739228060Sbapt  IFS=$as_save_IFS
1740228060Sbapt  test -z "$as_dir" && as_dir=.
1741228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1742228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1743228060Sbapt    ac_cv_prog_ac_ct_CC="gcc"
1744228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745228060Sbapt    break 2
1746228060Sbapt  fi
1747228060Sbaptdone
1748228060Sbaptdone
1749228060SbaptIFS=$as_save_IFS
1750228060Sbapt
175158551Skrisfi
175258551Skrisfi
1753228060Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC
1754228060Sbaptif test -n "$ac_ct_CC"; then
1755228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756228060Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; }
175758551Skriselse
1758228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1759228060Sbaptecho "${ECHO_T}no" >&6; }
176058551Skrisfi
176158551Skris
1762228060Sbapt  if test "x$ac_ct_CC" = x; then
1763228060Sbapt    CC=""
1764228060Sbapt  else
1765228060Sbapt    case $cross_compiling:$ac_tool_warned in
1766228060Sbaptyes:)
1767228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1768228060Sbaptwhose name does not start with the host triplet.  If you think this
1769228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
1770228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1771228060Sbaptwhose name does not start with the host triplet.  If you think this
1772228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
1773228060Sbaptac_tool_warned=yes ;;
1774228060Sbaptesac
1775228060Sbapt    CC=$ac_ct_CC
1776228060Sbapt  fi
177758551Skriselse
1778228060Sbapt  CC="$ac_cv_prog_CC"
1779228060Sbaptfi
1780228060Sbapt
1781228060Sbaptif test -z "$CC"; then
1782228060Sbapt          if test -n "$ac_tool_prefix"; then
1783228060Sbapt    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1784228060Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2
1785228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1786228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1787228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1788228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1789228060Sbaptelse
179058551Skris  if test -n "$CC"; then
179158551Skris  ac_cv_prog_CC="$CC" # Let the user override the test.
179258551Skriselse
1793228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794228060Sbaptfor as_dir in $PATH
1795228060Sbaptdo
1796228060Sbapt  IFS=$as_save_IFS
1797228060Sbapt  test -z "$as_dir" && as_dir=.
1798228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1799228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1800228060Sbapt    ac_cv_prog_CC="${ac_tool_prefix}cc"
1801228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802228060Sbapt    break 2
1803228060Sbapt  fi
1804228060Sbaptdone
1805228060Sbaptdone
1806228060SbaptIFS=$as_save_IFS
1807228060Sbapt
180858551Skrisfi
180958551Skrisfi
1810228060SbaptCC=$ac_cv_prog_CC
181158551Skrisif test -n "$CC"; then
1812228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1813228060Sbaptecho "${ECHO_T}$CC" >&6; }
181458551Skriselse
1815228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1816228060Sbaptecho "${ECHO_T}no" >&6; }
181758551Skrisfi
181858551Skris
1819228060Sbapt
1820228060Sbapt  fi
1821228060Sbaptfi
182258551Skrisif test -z "$CC"; then
182358551Skris  # Extract the first word of "cc", so it can be a program name with args.
182458551Skrisset dummy cc; ac_word=$2
1825228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1826228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1827228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1828228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
182958551Skriselse
183058551Skris  if test -n "$CC"; then
183158551Skris  ac_cv_prog_CC="$CC" # Let the user override the test.
183258551Skriselse
183358551Skris  ac_prog_rejected=no
1834228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835228060Sbaptfor as_dir in $PATH
1836228060Sbaptdo
1837228060Sbapt  IFS=$as_save_IFS
1838228060Sbapt  test -z "$as_dir" && as_dir=.
1839228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1840228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841228060Sbapt    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1842228060Sbapt       ac_prog_rejected=yes
1843228060Sbapt       continue
1844228060Sbapt     fi
1845228060Sbapt    ac_cv_prog_CC="cc"
1846228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847228060Sbapt    break 2
1848228060Sbapt  fi
1849228060Sbaptdone
1850228060Sbaptdone
1851228060SbaptIFS=$as_save_IFS
1852228060Sbapt
185358551Skrisif test $ac_prog_rejected = yes; then
185458551Skris  # We found a bogon in the path, so make sure we never use it.
185558551Skris  set dummy $ac_cv_prog_CC
185658551Skris  shift
1857228060Sbapt  if test $# != 0; then
185858551Skris    # We chose a different compiler from the bogus one.
185958551Skris    # However, it has the same basename, so the bogon will be chosen
186058551Skris    # first if we set CC to just the basename; use the full file name.
186158551Skris    shift
1862228060Sbapt    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
186358551Skris  fi
186458551Skrisfi
186558551Skrisfi
186658551Skrisfi
1867228060SbaptCC=$ac_cv_prog_CC
186858551Skrisif test -n "$CC"; then
1869228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1870228060Sbaptecho "${ECHO_T}$CC" >&6; }
187158551Skriselse
1872228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1873228060Sbaptecho "${ECHO_T}no" >&6; }
187458551Skrisfi
187558551Skris
1876228060Sbapt
1877228060Sbaptfi
1878228060Sbaptif test -z "$CC"; then
1879228060Sbapt  if test -n "$ac_tool_prefix"; then
1880228060Sbapt  for ac_prog in cl.exe
1881228060Sbapt  do
1882228060Sbapt    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883228060Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1885228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1886228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1887228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
188867064Sobrienelse
188967064Sobrien  if test -n "$CC"; then
189067064Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
189167064Sobrienelse
1892228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893228060Sbaptfor as_dir in $PATH
1894228060Sbaptdo
1895228060Sbapt  IFS=$as_save_IFS
1896228060Sbapt  test -z "$as_dir" && as_dir=.
1897228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1898228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1899228060Sbapt    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1900228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901228060Sbapt    break 2
1902228060Sbapt  fi
1903228060Sbaptdone
1904228060Sbaptdone
1905228060SbaptIFS=$as_save_IFS
1906228060Sbapt
190767064Sobrienfi
190867064Sobrienfi
1909228060SbaptCC=$ac_cv_prog_CC
191067064Sobrienif test -n "$CC"; then
1911228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1912228060Sbaptecho "${ECHO_T}$CC" >&6; }
191367064Sobrienelse
1914228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1915228060Sbaptecho "${ECHO_T}no" >&6; }
191667064Sobrienfi
1917228060Sbapt
1918228060Sbapt
1919228060Sbapt    test -n "$CC" && break
1920228060Sbapt  done
1921228060Sbaptfi
1922228060Sbaptif test -z "$CC"; then
1923228060Sbapt  ac_ct_CC=$CC
1924228060Sbapt  for ac_prog in cl.exe
1925228060Sbaptdo
1926228060Sbapt  # Extract the first word of "$ac_prog", so it can be a program name with args.
1927228060Sbaptset dummy $ac_prog; ac_word=$2
1928228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930228060Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1932228060Sbaptelse
1933228060Sbapt  if test -n "$ac_ct_CC"; then
1934228060Sbapt  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935228060Sbaptelse
1936228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937228060Sbaptfor as_dir in $PATH
1938228060Sbaptdo
1939228060Sbapt  IFS=$as_save_IFS
1940228060Sbapt  test -z "$as_dir" && as_dir=.
1941228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1942228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1943228060Sbapt    ac_cv_prog_ac_ct_CC="$ac_prog"
1944228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945228060Sbapt    break 2
194667064Sobrien  fi
1947228060Sbaptdone
1948228060Sbaptdone
1949228060SbaptIFS=$as_save_IFS
1950228060Sbapt
195158551Skrisfi
1952228060Sbaptfi
1953228060Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC
1954228060Sbaptif test -n "$ac_ct_CC"; then
1955228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956228060Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; }
1957228060Sbaptelse
1958228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1959228060Sbaptecho "${ECHO_T}no" >&6; }
1960228060Sbaptfi
196158551Skris
196258551Skris
1963228060Sbapt  test -n "$ac_ct_CC" && break
1964228060Sbaptdone
196558551Skris
1966228060Sbapt  if test "x$ac_ct_CC" = x; then
1967228060Sbapt    CC=""
1968228060Sbapt  else
1969228060Sbapt    case $cross_compiling:$ac_tool_warned in
1970228060Sbaptyes:)
1971228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1972228060Sbaptwhose name does not start with the host triplet.  If you think this
1973228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
1974228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1975228060Sbaptwhose name does not start with the host triplet.  If you think this
1976228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
1977228060Sbaptac_tool_warned=yes ;;
1978228060Sbaptesac
1979228060Sbapt    CC=$ac_ct_CC
1980228060Sbapt  fi
1981228060Sbaptfi
198267064Sobrien
1983228060Sbaptfi
198467064Sobrien
1985228060Sbapt
1986228060Sbapttest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1987228060SbaptSee \`config.log' for more details." >&5
1988228060Sbaptecho "$as_me: error: no acceptable C compiler found in \$PATH
1989228060SbaptSee \`config.log' for more details." >&2;}
1990228060Sbapt   { (exit 1); exit 1; }; }
1991228060Sbapt
1992228060Sbapt# Provide some information about the compiler.
1993228060Sbaptecho "$as_me:$LINENO: checking for C compiler version" >&5
1994228060Sbaptac_compiler=`set X $ac_compile; echo $2`
1995228060Sbapt{ (ac_try="$ac_compiler --version >&5"
1996228060Sbaptcase "(($ac_try" in
1997228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998228060Sbapt  *) ac_try_echo=$ac_try;;
1999228060Sbaptesac
2000228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2001228060Sbapt  (eval "$ac_compiler --version >&5") 2>&5
2002228060Sbapt  ac_status=$?
2003228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004228060Sbapt  (exit $ac_status); }
2005228060Sbapt{ (ac_try="$ac_compiler -v >&5"
2006228060Sbaptcase "(($ac_try" in
2007228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008228060Sbapt  *) ac_try_echo=$ac_try;;
2009228060Sbaptesac
2010228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2011228060Sbapt  (eval "$ac_compiler -v >&5") 2>&5
2012228060Sbapt  ac_status=$?
2013228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014228060Sbapt  (exit $ac_status); }
2015228060Sbapt{ (ac_try="$ac_compiler -V >&5"
2016228060Sbaptcase "(($ac_try" in
2017228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018228060Sbapt  *) ac_try_echo=$ac_try;;
2019228060Sbaptesac
2020228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2021228060Sbapt  (eval "$ac_compiler -V >&5") 2>&5
2022228060Sbapt  ac_status=$?
2023228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024228060Sbapt  (exit $ac_status); }
2025228060Sbapt
2026228060Sbaptcat >conftest.$ac_ext <<_ACEOF
2027228060Sbapt/* confdefs.h.  */
2028228060Sbapt_ACEOF
2029228060Sbaptcat confdefs.h >>conftest.$ac_ext
2030228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2031228060Sbapt/* end confdefs.h.  */
2032228060Sbapt
2033228060Sbaptint
2034228060Sbaptmain ()
2035228060Sbapt{
2036228060Sbapt
2037228060Sbapt  ;
2038228060Sbapt  return 0;
2039228060Sbapt}
2040228060Sbapt_ACEOF
2041228060Sbaptac_clean_files_save=$ac_clean_files
2042228060Sbaptac_clean_files="$ac_clean_files a.out a.exe b.out"
2043228060Sbapt# Try to create an executable without -o first, disregard a.out.
2044228060Sbapt# It will help us diagnose broken compilers, and finding out an intuition
2045228060Sbapt# of exeext.
2046228060Sbapt{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2047228060Sbaptecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2048228060Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2049228060Sbapt#
2050228060Sbapt# List of possible output files, starting from the most likely.
2051228060Sbapt# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2052228060Sbapt# only as a last resort.  b.out is created by i960 compilers.
2053228060Sbaptac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2054228060Sbapt#
2055228060Sbapt# The IRIX 6 linker writes into existing files which may not be
2056228060Sbapt# executable, retaining their permissions.  Remove them first so a
2057228060Sbapt# subsequent execution test works.
2058228060Sbaptac_rmfiles=
2059228060Sbaptfor ac_file in $ac_files
2060228060Sbaptdo
2061228060Sbapt  case $ac_file in
2062228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2063228060Sbapt    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2064228060Sbapt  esac
2065228060Sbaptdone
2066228060Sbaptrm -f $ac_rmfiles
2067228060Sbapt
2068228060Sbaptif { (ac_try="$ac_link_default"
2069228060Sbaptcase "(($ac_try" in
2070228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071228060Sbapt  *) ac_try_echo=$ac_try;;
2072228060Sbaptesac
2073228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2074228060Sbapt  (eval "$ac_link_default") 2>&5
2075228060Sbapt  ac_status=$?
2076228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077228060Sbapt  (exit $ac_status); }; then
2078228060Sbapt  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2079228060Sbapt# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2080228060Sbapt# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2081228060Sbapt# so that the user can short-circuit this test for compilers unknown to
2082228060Sbapt# Autoconf.
2083228060Sbaptfor ac_file in $ac_files ''
2084228060Sbaptdo
2085228060Sbapt  test -f "$ac_file" || continue
2086228060Sbapt  case $ac_file in
2087228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2088228060Sbapt	;;
2089228060Sbapt    [ab].out )
2090228060Sbapt	# We found the default executable, but exeext='' is most
2091228060Sbapt	# certainly right.
2092228060Sbapt	break;;
2093228060Sbapt    *.* )
2094228060Sbapt        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2095228060Sbapt	then :; else
2096228060Sbapt	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097228060Sbapt	fi
2098228060Sbapt	# We set ac_cv_exeext here because the later test for it is not
2099228060Sbapt	# safe: cross compilers may not add the suffix if given an `-o'
2100228060Sbapt	# argument, so we may need to know it at that point already.
2101228060Sbapt	# Even if this section looks crufty: it has the advantage of
2102228060Sbapt	# actually working.
2103228060Sbapt	break;;
2104228060Sbapt    * )
2105228060Sbapt	break;;
2106228060Sbapt  esac
2107228060Sbaptdone
2108228060Sbapttest "$ac_cv_exeext" = no && ac_cv_exeext=
2109228060Sbapt
2110228060Sbaptelse
2111228060Sbapt  ac_file=''
2112228060Sbaptfi
2113228060Sbapt
2114228060Sbapt{ echo "$as_me:$LINENO: result: $ac_file" >&5
2115228060Sbaptecho "${ECHO_T}$ac_file" >&6; }
2116228060Sbaptif test -z "$ac_file"; then
2117228060Sbapt  echo "$as_me: failed program was:" >&5
2118228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2119228060Sbapt
2120228060Sbapt{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2121228060SbaptSee \`config.log' for more details." >&5
2122228060Sbaptecho "$as_me: error: C compiler cannot create executables
2123228060SbaptSee \`config.log' for more details." >&2;}
2124228060Sbapt   { (exit 77); exit 77; }; }
2125228060Sbaptfi
2126228060Sbapt
2127228060Sbaptac_exeext=$ac_cv_exeext
2128228060Sbapt
2129228060Sbapt# Check that the compiler produces executables we can run.  If not, either
2130228060Sbapt# the compiler is broken, or we cross compile.
2131228060Sbapt{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2132228060Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2133228060Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2134228060Sbapt# If not cross compiling, check that we can run a simple program.
2135228060Sbaptif test "$cross_compiling" != yes; then
2136228060Sbapt  if { ac_try='./$ac_file'
2137228060Sbapt  { (case "(($ac_try" in
2138228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139228060Sbapt  *) ac_try_echo=$ac_try;;
2140228060Sbaptesac
2141228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142228060Sbapt  (eval "$ac_try") 2>&5
2143228060Sbapt  ac_status=$?
2144228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145228060Sbapt  (exit $ac_status); }; }; then
2146228060Sbapt    cross_compiling=no
214758551Skris  else
2148228060Sbapt    if test "$cross_compiling" = maybe; then
2149228060Sbapt	cross_compiling=yes
2150228060Sbapt    else
2151228060Sbapt	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2152228060SbaptIf you meant to cross compile, use \`--host'.
2153228060SbaptSee \`config.log' for more details." >&5
2154228060Sbaptecho "$as_me: error: cannot run C compiled programs.
2155228060SbaptIf you meant to cross compile, use \`--host'.
2156228060SbaptSee \`config.log' for more details." >&2;}
2157228060Sbapt   { (exit 1); exit 1; }; }
2158228060Sbapt    fi
215958551Skris  fi
2160228060Sbaptfi
2161228060Sbapt{ echo "$as_me:$LINENO: result: yes" >&5
2162228060Sbaptecho "${ECHO_T}yes" >&6; }
2163228060Sbapt
2164228060Sbaptrm -f a.out a.exe conftest$ac_cv_exeext b.out
2165228060Sbaptac_clean_files=$ac_clean_files_save
2166228060Sbapt# Check that the compiler produces executables we can run.  If not, either
2167228060Sbapt# the compiler is broken, or we cross compile.
2168228060Sbapt{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2169228060Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2170228060Sbapt{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2171228060Sbaptecho "${ECHO_T}$cross_compiling" >&6; }
2172228060Sbapt
2173228060Sbapt{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2174228060Sbaptecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2175228060Sbaptif { (ac_try="$ac_link"
2176228060Sbaptcase "(($ac_try" in
2177228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178228060Sbapt  *) ac_try_echo=$ac_try;;
2179228060Sbaptesac
2180228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181228060Sbapt  (eval "$ac_link") 2>&5
2182228060Sbapt  ac_status=$?
2183228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184228060Sbapt  (exit $ac_status); }; then
2185228060Sbapt  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2186228060Sbapt# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2187228060Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with
2188228060Sbapt# `rm'.
2189228060Sbaptfor ac_file in conftest.exe conftest conftest.*; do
2190228060Sbapt  test -f "$ac_file" || continue
2191228060Sbapt  case $ac_file in
2192228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2193228060Sbapt    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194228060Sbapt	  break;;
2195228060Sbapt    * ) break;;
2196228060Sbapt  esac
2197228060Sbaptdone
219858551Skriselse
2199228060Sbapt  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2200228060SbaptSee \`config.log' for more details." >&5
2201228060Sbaptecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2202228060SbaptSee \`config.log' for more details." >&2;}
2203228060Sbapt   { (exit 1); exit 1; }; }
220458551Skrisfi
220558551Skris
2206228060Sbaptrm -f conftest$ac_cv_exeext
2207228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2208228060Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6; }
2209228060Sbapt
2210228060Sbaptrm -f conftest.$ac_ext
2211228060SbaptEXEEXT=$ac_cv_exeext
2212228060Sbaptac_exeext=$EXEEXT
2213228060Sbapt{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2214228060Sbaptecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2215228060Sbaptif test "${ac_cv_objext+set}" = set; then
2216228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2217228060Sbaptelse
2218228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2219228060Sbapt/* confdefs.h.  */
2220228060Sbapt_ACEOF
2221228060Sbaptcat confdefs.h >>conftest.$ac_ext
2222228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2223228060Sbapt/* end confdefs.h.  */
2224228060Sbapt
2225228060Sbaptint
2226228060Sbaptmain ()
2227228060Sbapt{
2228228060Sbapt
2229228060Sbapt  ;
2230228060Sbapt  return 0;
2231228060Sbapt}
2232228060Sbapt_ACEOF
2233228060Sbaptrm -f conftest.o conftest.obj
2234228060Sbaptif { (ac_try="$ac_compile"
2235228060Sbaptcase "(($ac_try" in
2236228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237228060Sbapt  *) ac_try_echo=$ac_try;;
2238228060Sbaptesac
2239228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240228060Sbapt  (eval "$ac_compile") 2>&5
2241228060Sbapt  ac_status=$?
2242228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243228060Sbapt  (exit $ac_status); }; then
2244228060Sbapt  for ac_file in conftest.o conftest.obj conftest.*; do
2245228060Sbapt  test -f "$ac_file" || continue;
2246228060Sbapt  case $ac_file in
2247228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2248228060Sbapt    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2249228060Sbapt       break;;
2250228060Sbapt  esac
2251228060Sbaptdone
2252228060Sbaptelse
2253228060Sbapt  echo "$as_me: failed program was:" >&5
2254228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2255228060Sbapt
2256228060Sbapt{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257228060SbaptSee \`config.log' for more details." >&5
2258228060Sbaptecho "$as_me: error: cannot compute suffix of object files: cannot compile
2259228060SbaptSee \`config.log' for more details." >&2;}
2260228060Sbapt   { (exit 1); exit 1; }; }
226158551Skrisfi
226258551Skris
2263228060Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext
2264228060Sbaptfi
2265228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266228060Sbaptecho "${ECHO_T}$ac_cv_objext" >&6; }
2267228060SbaptOBJEXT=$ac_cv_objext
2268228060Sbaptac_objext=$OBJEXT
2269228060Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2270228060Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2271228060Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then
2272228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
227358551Skriselse
2274228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2275228060Sbapt/* confdefs.h.  */
2276228060Sbapt_ACEOF
2277228060Sbaptcat confdefs.h >>conftest.$ac_ext
2278228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2279228060Sbapt/* end confdefs.h.  */
2280228060Sbapt
2281228060Sbaptint
2282228060Sbaptmain ()
2283228060Sbapt{
2284228060Sbapt#ifndef __GNUC__
2285228060Sbapt       choke me
228658551Skris#endif
2287228060Sbapt
2288228060Sbapt  ;
2289228060Sbapt  return 0;
2290228060Sbapt}
2291228060Sbapt_ACEOF
2292228060Sbaptrm -f conftest.$ac_objext
2293228060Sbaptif { (ac_try="$ac_compile"
2294228060Sbaptcase "(($ac_try" in
2295228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296228060Sbapt  *) ac_try_echo=$ac_try;;
2297228060Sbaptesac
2298228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2300228060Sbapt  ac_status=$?
2301228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2302228060Sbapt  rm -f conftest.er1
2303228060Sbapt  cat conftest.err >&5
2304228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305228060Sbapt  (exit $ac_status); } && {
2306228060Sbapt	 test -z "$ac_c_werror_flag" ||
2307228060Sbapt	 test ! -s conftest.err
2308228060Sbapt       } && test -s conftest.$ac_objext; then
2309228060Sbapt  ac_compiler_gnu=yes
231058551Skriselse
2311228060Sbapt  echo "$as_me: failed program was:" >&5
2312228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2313228060Sbapt
2314228060Sbapt	ac_compiler_gnu=no
231558551Skrisfi
2316228060Sbapt
2317228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318228060Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu
2319228060Sbapt
232058551Skrisfi
2321228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2322228060Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2323228060SbaptGCC=`test $ac_compiler_gnu = yes && echo yes`
2324228060Sbaptac_test_CFLAGS=${CFLAGS+set}
2325228060Sbaptac_save_CFLAGS=$CFLAGS
2326228060Sbapt{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2327228060Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2328228060Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then
2329228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2330228060Sbaptelse
2331228060Sbapt  ac_save_c_werror_flag=$ac_c_werror_flag
2332228060Sbapt   ac_c_werror_flag=yes
2333228060Sbapt   ac_cv_prog_cc_g=no
2334228060Sbapt   CFLAGS="-g"
2335228060Sbapt   cat >conftest.$ac_ext <<_ACEOF
2336228060Sbapt/* confdefs.h.  */
2337228060Sbapt_ACEOF
2338228060Sbaptcat confdefs.h >>conftest.$ac_ext
2339228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2340228060Sbapt/* end confdefs.h.  */
234158551Skris
2342228060Sbaptint
2343228060Sbaptmain ()
2344228060Sbapt{
234558551Skris
2346228060Sbapt  ;
2347228060Sbapt  return 0;
2348228060Sbapt}
2349228060Sbapt_ACEOF
2350228060Sbaptrm -f conftest.$ac_objext
2351228060Sbaptif { (ac_try="$ac_compile"
2352228060Sbaptcase "(($ac_try" in
2353228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354228060Sbapt  *) ac_try_echo=$ac_try;;
2355228060Sbaptesac
2356228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2358228060Sbapt  ac_status=$?
2359228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2360228060Sbapt  rm -f conftest.er1
2361228060Sbapt  cat conftest.err >&5
2362228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363228060Sbapt  (exit $ac_status); } && {
2364228060Sbapt	 test -z "$ac_c_werror_flag" ||
2365228060Sbapt	 test ! -s conftest.err
2366228060Sbapt       } && test -s conftest.$ac_objext; then
2367228060Sbapt  ac_cv_prog_cc_g=yes
236867064Sobrienelse
2369228060Sbapt  echo "$as_me: failed program was:" >&5
2370228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
237167064Sobrien
2372228060Sbapt	CFLAGS=""
2373228060Sbapt      cat >conftest.$ac_ext <<_ACEOF
2374228060Sbapt/* confdefs.h.  */
2375228060Sbapt_ACEOF
2376228060Sbaptcat confdefs.h >>conftest.$ac_ext
2377228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2378228060Sbapt/* end confdefs.h.  */
2379228060Sbapt
2380228060Sbaptint
2381228060Sbaptmain ()
2382228060Sbapt{
2383228060Sbapt
2384228060Sbapt  ;
2385228060Sbapt  return 0;
2386228060Sbapt}
2387228060Sbapt_ACEOF
2388228060Sbaptrm -f conftest.$ac_objext
2389228060Sbaptif { (ac_try="$ac_compile"
2390228060Sbaptcase "(($ac_try" in
2391228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392228060Sbapt  *) ac_try_echo=$ac_try;;
2393228060Sbaptesac
2394228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2396228060Sbapt  ac_status=$?
2397228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2398228060Sbapt  rm -f conftest.er1
2399228060Sbapt  cat conftest.err >&5
2400228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401228060Sbapt  (exit $ac_status); } && {
2402228060Sbapt	 test -z "$ac_c_werror_flag" ||
2403228060Sbapt	 test ! -s conftest.err
2404228060Sbapt       } && test -s conftest.$ac_objext; then
2405228060Sbapt  :
240658551Skriselse
2407228060Sbapt  echo "$as_me: failed program was:" >&5
2408228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2409228060Sbapt
2410228060Sbapt	ac_c_werror_flag=$ac_save_c_werror_flag
2411228060Sbapt	 CFLAGS="-g"
2412228060Sbapt	 cat >conftest.$ac_ext <<_ACEOF
2413228060Sbapt/* confdefs.h.  */
2414228060Sbapt_ACEOF
2415228060Sbaptcat confdefs.h >>conftest.$ac_ext
2416228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2417228060Sbapt/* end confdefs.h.  */
2418228060Sbapt
2419228060Sbaptint
2420228060Sbaptmain ()
2421228060Sbapt{
2422228060Sbapt
2423228060Sbapt  ;
2424228060Sbapt  return 0;
2425228060Sbapt}
2426228060Sbapt_ACEOF
2427228060Sbaptrm -f conftest.$ac_objext
2428228060Sbaptif { (ac_try="$ac_compile"
2429228060Sbaptcase "(($ac_try" in
2430228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431228060Sbapt  *) ac_try_echo=$ac_try;;
2432228060Sbaptesac
2433228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2435228060Sbapt  ac_status=$?
2436228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2437228060Sbapt  rm -f conftest.er1
2438228060Sbapt  cat conftest.err >&5
2439228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440228060Sbapt  (exit $ac_status); } && {
2441228060Sbapt	 test -z "$ac_c_werror_flag" ||
2442228060Sbapt	 test ! -s conftest.err
2443228060Sbapt       } && test -s conftest.$ac_objext; then
244458551Skris  ac_cv_prog_cc_g=yes
244558551Skriselse
2446228060Sbapt  echo "$as_me: failed program was:" >&5
2447228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2448228060Sbapt
2449228060Sbapt
245058551Skrisfi
245158551Skris
2452228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
245358551Skrisfi
245458551Skris
2455228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456228060Sbaptfi
2457228060Sbapt
2458228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459228060Sbapt   ac_c_werror_flag=$ac_save_c_werror_flag
2460228060Sbaptfi
2461228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462228060Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
246367064Sobrienif test "$ac_test_CFLAGS" = set; then
2464228060Sbapt  CFLAGS=$ac_save_CFLAGS
246567064Sobrienelif test $ac_cv_prog_cc_g = yes; then
246667064Sobrien  if test "$GCC" = yes; then
246758551Skris    CFLAGS="-g -O2"
246858551Skris  else
246967064Sobrien    CFLAGS="-g"
247067064Sobrien  fi
247167064Sobrienelse
247267064Sobrien  if test "$GCC" = yes; then
247358551Skris    CFLAGS="-O2"
247467064Sobrien  else
247567064Sobrien    CFLAGS=
247658551Skris  fi
247758551Skrisfi
2478228060Sbapt{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2479228060Sbaptecho $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2480228060Sbaptif test "${ac_cv_prog_cc_c89+set}" = set; then
2481228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2482228060Sbaptelse
2483228060Sbapt  ac_cv_prog_cc_c89=no
2484228060Sbaptac_save_CC=$CC
2485228060Sbaptcat >conftest.$ac_ext <<_ACEOF
2486228060Sbapt/* confdefs.h.  */
2487228060Sbapt_ACEOF
2488228060Sbaptcat confdefs.h >>conftest.$ac_ext
2489228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2490228060Sbapt/* end confdefs.h.  */
2491228060Sbapt#include <stdarg.h>
2492228060Sbapt#include <stdio.h>
2493228060Sbapt#include <sys/types.h>
2494228060Sbapt#include <sys/stat.h>
2495228060Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2496228060Sbaptstruct buf { int x; };
2497228060SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int);
2498228060Sbaptstatic char *e (p, i)
2499228060Sbapt     char **p;
2500228060Sbapt     int i;
2501228060Sbapt{
2502228060Sbapt  return p[i];
2503228060Sbapt}
2504228060Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...)
2505228060Sbapt{
2506228060Sbapt  char *s;
2507228060Sbapt  va_list v;
2508228060Sbapt  va_start (v,p);
2509228060Sbapt  s = g (p, va_arg (v,int));
2510228060Sbapt  va_end (v);
2511228060Sbapt  return s;
2512228060Sbapt}
251358551Skris
2514228060Sbapt/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2515228060Sbapt   function prototypes and stuff, but not '\xHH' hex character constants.
2516228060Sbapt   These don't provoke an error unfortunately, instead are silently treated
2517228060Sbapt   as 'x'.  The following induces an error, until -std is added to get
2518228060Sbapt   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2519228060Sbapt   array size at least.  It's necessary to write '\x00'==0 to get something
2520228060Sbapt   that's true only with -std.  */
2521228060Sbaptint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2522228060Sbapt
2523228060Sbapt/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2524228060Sbapt   inside strings and character constants.  */
2525228060Sbapt#define FOO(x) 'x'
2526228060Sbaptint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2527228060Sbapt
2528228060Sbaptint test (int i, double x);
2529228060Sbaptstruct s1 {int (*f) (int a);};
2530228060Sbaptstruct s2 {int (*f) (double a);};
2531228060Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532228060Sbaptint argc;
2533228060Sbaptchar **argv;
2534228060Sbaptint
2535228060Sbaptmain ()
2536228060Sbapt{
2537228060Sbaptreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2538228060Sbapt  ;
2539228060Sbapt  return 0;
2540228060Sbapt}
2541228060Sbapt_ACEOF
2542228060Sbaptfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2543228060Sbapt	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544228060Sbaptdo
2545228060Sbapt  CC="$ac_save_CC $ac_arg"
2546228060Sbapt  rm -f conftest.$ac_objext
2547228060Sbaptif { (ac_try="$ac_compile"
2548228060Sbaptcase "(($ac_try" in
2549228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550228060Sbapt  *) ac_try_echo=$ac_try;;
2551228060Sbaptesac
2552228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2554228060Sbapt  ac_status=$?
2555228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2556228060Sbapt  rm -f conftest.er1
2557228060Sbapt  cat conftest.err >&5
2558228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559228060Sbapt  (exit $ac_status); } && {
2560228060Sbapt	 test -z "$ac_c_werror_flag" ||
2561228060Sbapt	 test ! -s conftest.err
2562228060Sbapt       } && test -s conftest.$ac_objext; then
2563228060Sbapt  ac_cv_prog_cc_c89=$ac_arg
2564228060Sbaptelse
2565228060Sbapt  echo "$as_me: failed program was:" >&5
2566228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2567228060Sbapt
2568228060Sbapt
2569228060Sbaptfi
2570228060Sbapt
2571228060Sbaptrm -f core conftest.err conftest.$ac_objext
2572228060Sbapt  test "x$ac_cv_prog_cc_c89" != "xno" && break
2573228060Sbaptdone
2574228060Sbaptrm -f conftest.$ac_ext
2575228060SbaptCC=$ac_save_CC
2576228060Sbapt
2577228060Sbaptfi
2578228060Sbapt# AC_CACHE_VAL
2579228060Sbaptcase "x$ac_cv_prog_cc_c89" in
2580228060Sbapt  x)
2581228060Sbapt    { echo "$as_me:$LINENO: result: none needed" >&5
2582228060Sbaptecho "${ECHO_T}none needed" >&6; } ;;
2583228060Sbapt  xno)
2584228060Sbapt    { echo "$as_me:$LINENO: result: unsupported" >&5
2585228060Sbaptecho "${ECHO_T}unsupported" >&6; } ;;
2586228060Sbapt  *)
2587228060Sbapt    CC="$CC $ac_cv_prog_cc_c89"
2588228060Sbapt    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2589228060Sbaptecho "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2590228060Sbaptesac
2591228060Sbapt
2592228060Sbapt
2593228060Sbaptac_ext=c
2594228060Sbaptac_cpp='$CPP $CPPFLAGS'
2595228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2598228060Sbapt
2599228060Sbapt                      ac_ext=c
2600228060Sbaptac_cpp='$CPP $CPPFLAGS'
2601228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2604228060Sbapt{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2605228060Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
260658551Skris# On Suns, sometimes $CPP names a directory.
260758551Skrisif test -n "$CPP" && test -d "$CPP"; then
260858551Skris  CPP=
260958551Skrisfi
261058551Skrisif test -z "$CPP"; then
2611228060Sbapt  if test "${ac_cv_prog_CPP+set}" = set; then
2612228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
261358551Skriselse
2614228060Sbapt      # Double quotes because CPP needs to be expanded
2615228060Sbapt    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2616228060Sbapt    do
2617228060Sbapt      ac_preproc_ok=false
2618228060Sbaptfor ac_c_preproc_warn_flag in '' yes
2619228060Sbaptdo
2620228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
2621228060Sbapt  # with a fresh cross-compiler works.
2622228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2623228060Sbapt  # <limits.h> exists even on freestanding compilers.
262458551Skris  # On the NeXT, cc -E runs the code through the compiler's parser,
2625228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
2626228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2627228060Sbapt/* confdefs.h.  */
2628228060Sbapt_ACEOF
2629228060Sbaptcat confdefs.h >>conftest.$ac_ext
2630228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2631228060Sbapt/* end confdefs.h.  */
2632228060Sbapt#ifdef __STDC__
2633228060Sbapt# include <limits.h>
2634228060Sbapt#else
2635228060Sbapt# include <assert.h>
2636228060Sbapt#endif
2637228060Sbapt		     Syntax error
2638228060Sbapt_ACEOF
2639228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2640228060Sbaptcase "(($ac_try" in
2641228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642228060Sbapt  *) ac_try_echo=$ac_try;;
2643228060Sbaptesac
2644228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2646228060Sbapt  ac_status=$?
2647228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2648228060Sbapt  rm -f conftest.er1
2649228060Sbapt  cat conftest.err >&5
2650228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651228060Sbapt  (exit $ac_status); } >/dev/null && {
2652228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2653228060Sbapt	 test ! -s conftest.err
2654228060Sbapt       }; then
265558551Skris  :
265658551Skriselse
2657228060Sbapt  echo "$as_me: failed program was:" >&5
2658228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2659228060Sbapt
2660228060Sbapt  # Broken: fails on valid input.
2661228060Sbaptcontinue
2662228060Sbaptfi
2663228060Sbapt
2664228060Sbaptrm -f conftest.err conftest.$ac_ext
2665228060Sbapt
2666228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
2667228060Sbapt  # can be detected and how.
2668228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2669228060Sbapt/* confdefs.h.  */
2670228060Sbapt_ACEOF
2671228060Sbaptcat confdefs.h >>conftest.$ac_ext
2672228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2673228060Sbapt/* end confdefs.h.  */
2674228060Sbapt#include <ac_nonexistent.h>
2675228060Sbapt_ACEOF
2676228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2677228060Sbaptcase "(($ac_try" in
2678228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679228060Sbapt  *) ac_try_echo=$ac_try;;
2680228060Sbaptesac
2681228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2683228060Sbapt  ac_status=$?
2684228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2685228060Sbapt  rm -f conftest.er1
2686228060Sbapt  cat conftest.err >&5
2687228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688228060Sbapt  (exit $ac_status); } >/dev/null && {
2689228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2690228060Sbapt	 test ! -s conftest.err
2691228060Sbapt       }; then
2692228060Sbapt  # Broken: success on invalid input.
2693228060Sbaptcontinue
269458551Skriselse
2695228060Sbapt  echo "$as_me: failed program was:" >&5
2696228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2697228060Sbapt
2698228060Sbapt  # Passes both tests.
2699228060Sbaptac_preproc_ok=:
2700228060Sbaptbreak
270158551Skrisfi
2702228060Sbapt
2703228060Sbaptrm -f conftest.err conftest.$ac_ext
2704228060Sbapt
2705228060Sbaptdone
2706228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2707228060Sbaptrm -f conftest.err conftest.$ac_ext
2708228060Sbaptif $ac_preproc_ok; then
2709228060Sbapt  break
271058551Skrisfi
2711228060Sbapt
2712228060Sbapt    done
2713228060Sbapt    ac_cv_prog_CPP=$CPP
2714228060Sbapt
271567064Sobrienfi
2716228060Sbapt  CPP=$ac_cv_prog_CPP
2717228060Sbaptelse
2718228060Sbapt  ac_cv_prog_CPP=$CPP
271958551Skrisfi
2720228060Sbapt{ echo "$as_me:$LINENO: result: $CPP" >&5
2721228060Sbaptecho "${ECHO_T}$CPP" >&6; }
2722228060Sbaptac_preproc_ok=false
2723228060Sbaptfor ac_c_preproc_warn_flag in '' yes
2724228060Sbaptdo
2725228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
2726228060Sbapt  # with a fresh cross-compiler works.
2727228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2728228060Sbapt  # <limits.h> exists even on freestanding compilers.
2729228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
2730228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
2731228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2732228060Sbapt/* confdefs.h.  */
2733228060Sbapt_ACEOF
2734228060Sbaptcat confdefs.h >>conftest.$ac_ext
2735228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2736228060Sbapt/* end confdefs.h.  */
2737228060Sbapt#ifdef __STDC__
2738228060Sbapt# include <limits.h>
2739228060Sbapt#else
2740228060Sbapt# include <assert.h>
2741228060Sbapt#endif
2742228060Sbapt		     Syntax error
2743228060Sbapt_ACEOF
2744228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2745228060Sbaptcase "(($ac_try" in
2746228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747228060Sbapt  *) ac_try_echo=$ac_try;;
2748228060Sbaptesac
2749228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2751228060Sbapt  ac_status=$?
2752228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2753228060Sbapt  rm -f conftest.er1
2754228060Sbapt  cat conftest.err >&5
2755228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756228060Sbapt  (exit $ac_status); } >/dev/null && {
2757228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2758228060Sbapt	 test ! -s conftest.err
2759228060Sbapt       }; then
2760228060Sbapt  :
276158551Skriselse
2762228060Sbapt  echo "$as_me: failed program was:" >&5
2763228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2764228060Sbapt
2765228060Sbapt  # Broken: fails on valid input.
2766228060Sbaptcontinue
276758551Skrisfi
276858551Skris
2769228060Sbaptrm -f conftest.err conftest.$ac_ext
2770228060Sbapt
2771228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
2772228060Sbapt  # can be detected and how.
2773228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2774228060Sbapt/* confdefs.h.  */
2775228060Sbapt_ACEOF
2776228060Sbaptcat confdefs.h >>conftest.$ac_ext
2777228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2778228060Sbapt/* end confdefs.h.  */
2779228060Sbapt#include <ac_nonexistent.h>
2780228060Sbapt_ACEOF
2781228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2782228060Sbaptcase "(($ac_try" in
2783228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784228060Sbapt  *) ac_try_echo=$ac_try;;
2785228060Sbaptesac
2786228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2788228060Sbapt  ac_status=$?
2789228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2790228060Sbapt  rm -f conftest.er1
2791228060Sbapt  cat conftest.err >&5
2792228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793228060Sbapt  (exit $ac_status); } >/dev/null && {
2794228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2795228060Sbapt	 test ! -s conftest.err
2796228060Sbapt       }; then
2797228060Sbapt  # Broken: success on invalid input.
2798228060Sbaptcontinue
279958551Skriselse
2800228060Sbapt  echo "$as_me: failed program was:" >&5
2801228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2802228060Sbapt
2803228060Sbapt  # Passes both tests.
2804228060Sbaptac_preproc_ok=:
2805228060Sbaptbreak
2806228060Sbaptfi
2807228060Sbapt
2808228060Sbaptrm -f conftest.err conftest.$ac_ext
2809228060Sbapt
2810228060Sbaptdone
2811228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2812228060Sbaptrm -f conftest.err conftest.$ac_ext
2813228060Sbaptif $ac_preproc_ok; then
2814228060Sbapt  :
2815228060Sbaptelse
2816228060Sbapt  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2817228060SbaptSee \`config.log' for more details." >&5
2818228060Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2819228060SbaptSee \`config.log' for more details." >&2;}
2820228060Sbapt   { (exit 1); exit 1; }; }
2821228060Sbaptfi
2822228060Sbapt
2823228060Sbaptac_ext=c
2824228060Sbaptac_cpp='$CPP $CPPFLAGS'
2825228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2828228060Sbapt
2829228060Sbapt                      ac_ext=cpp
2830228060Sbaptac_cpp='$CXXCPP $CPPFLAGS'
2831228060Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832228060Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833228060Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2834228060Sbaptif test -z "$CXX"; then
2835228060Sbapt  if test -n "$CCC"; then
2836228060Sbapt    CXX=$CCC
2837228060Sbapt  else
2838228060Sbapt    if test -n "$ac_tool_prefix"; then
2839228060Sbapt  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2840228060Sbapt  do
2841228060Sbapt    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842228060Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2844228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845228060Sbaptif test "${ac_cv_prog_CXX+set}" = set; then
2846228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2847228060Sbaptelse
284858551Skris  if test -n "$CXX"; then
284958551Skris  ac_cv_prog_CXX="$CXX" # Let the user override the test.
285058551Skriselse
2851228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852228060Sbaptfor as_dir in $PATH
2853228060Sbaptdo
2854228060Sbapt  IFS=$as_save_IFS
2855228060Sbapt  test -z "$as_dir" && as_dir=.
2856228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
2857228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858228060Sbapt    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2859228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860228060Sbapt    break 2
2861228060Sbapt  fi
2862228060Sbaptdone
2863228060Sbaptdone
2864228060SbaptIFS=$as_save_IFS
2865228060Sbapt
286658551Skrisfi
286758551Skrisfi
2868228060SbaptCXX=$ac_cv_prog_CXX
286958551Skrisif test -n "$CXX"; then
2870228060Sbapt  { echo "$as_me:$LINENO: result: $CXX" >&5
2871228060Sbaptecho "${ECHO_T}$CXX" >&6; }
287258551Skriselse
2873228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
2874228060Sbaptecho "${ECHO_T}no" >&6; }
287558551Skrisfi
287658551Skris
2877228060Sbapt
2878228060Sbapt    test -n "$CXX" && break
2879228060Sbapt  done
2880228060Sbaptfi
2881228060Sbaptif test -z "$CXX"; then
2882228060Sbapt  ac_ct_CXX=$CXX
2883228060Sbapt  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2884228060Sbaptdo
2885228060Sbapt  # Extract the first word of "$ac_prog", so it can be a program name with args.
2886228060Sbaptset dummy $ac_prog; ac_word=$2
2887228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2888228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889228060Sbaptif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2890228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2891228060Sbaptelse
2892228060Sbapt  if test -n "$ac_ct_CXX"; then
2893228060Sbapt  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2894228060Sbaptelse
2895228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896228060Sbaptfor as_dir in $PATH
2897228060Sbaptdo
2898228060Sbapt  IFS=$as_save_IFS
2899228060Sbapt  test -z "$as_dir" && as_dir=.
2900228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
2901228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902228060Sbapt    ac_cv_prog_ac_ct_CXX="$ac_prog"
2903228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904228060Sbapt    break 2
2905228060Sbapt  fi
290658551Skrisdone
2907228060Sbaptdone
2908228060SbaptIFS=$as_save_IFS
290958551Skris
2910228060Sbaptfi
2911228060Sbaptfi
2912228060Sbaptac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2913228060Sbaptif test -n "$ac_ct_CXX"; then
2914228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2915228060Sbaptecho "${ECHO_T}$ac_ct_CXX" >&6; }
2916228060Sbaptelse
2917228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
2918228060Sbaptecho "${ECHO_T}no" >&6; }
2919228060Sbaptfi
292058551Skris
292158551Skris
2922228060Sbapt  test -n "$ac_ct_CXX" && break
2923228060Sbaptdone
292458551Skris
2925228060Sbapt  if test "x$ac_ct_CXX" = x; then
2926228060Sbapt    CXX="g++"
292758551Skris  else
2928228060Sbapt    case $cross_compiling:$ac_tool_warned in
2929228060Sbaptyes:)
2930228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2931228060Sbaptwhose name does not start with the host triplet.  If you think this
2932228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
2933228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2934228060Sbaptwhose name does not start with the host triplet.  If you think this
2935228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
2936228060Sbaptac_tool_warned=yes ;;
2937228060Sbaptesac
2938228060Sbapt    CXX=$ac_ct_CXX
293958551Skris  fi
294058551Skrisfi
294158551Skris
2942228060Sbapt  fi
294358551Skrisfi
2944228060Sbapt# Provide some information about the compiler.
2945228060Sbaptecho "$as_me:$LINENO: checking for C++ compiler version" >&5
2946228060Sbaptac_compiler=`set X $ac_compile; echo $2`
2947228060Sbapt{ (ac_try="$ac_compiler --version >&5"
2948228060Sbaptcase "(($ac_try" in
2949228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950228060Sbapt  *) ac_try_echo=$ac_try;;
2951228060Sbaptesac
2952228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953228060Sbapt  (eval "$ac_compiler --version >&5") 2>&5
2954228060Sbapt  ac_status=$?
2955228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956228060Sbapt  (exit $ac_status); }
2957228060Sbapt{ (ac_try="$ac_compiler -v >&5"
2958228060Sbaptcase "(($ac_try" in
2959228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960228060Sbapt  *) ac_try_echo=$ac_try;;
2961228060Sbaptesac
2962228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963228060Sbapt  (eval "$ac_compiler -v >&5") 2>&5
2964228060Sbapt  ac_status=$?
2965228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966228060Sbapt  (exit $ac_status); }
2967228060Sbapt{ (ac_try="$ac_compiler -V >&5"
2968228060Sbaptcase "(($ac_try" in
2969228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970228060Sbapt  *) ac_try_echo=$ac_try;;
2971228060Sbaptesac
2972228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973228060Sbapt  (eval "$ac_compiler -V >&5") 2>&5
2974228060Sbapt  ac_status=$?
2975228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976228060Sbapt  (exit $ac_status); }
297758551Skris
2978228060Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2979228060Sbaptecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2980228060Sbaptif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2981228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
298258551Skriselse
2983228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2984228060Sbapt/* confdefs.h.  */
2985228060Sbapt_ACEOF
2986228060Sbaptcat confdefs.h >>conftest.$ac_ext
2987228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2988228060Sbapt/* end confdefs.h.  */
2989228060Sbapt
2990228060Sbaptint
2991228060Sbaptmain ()
2992228060Sbapt{
2993228060Sbapt#ifndef __GNUC__
2994228060Sbapt       choke me
299558551Skris#endif
2996228060Sbapt
2997228060Sbapt  ;
2998228060Sbapt  return 0;
2999228060Sbapt}
3000228060Sbapt_ACEOF
3001228060Sbaptrm -f conftest.$ac_objext
3002228060Sbaptif { (ac_try="$ac_compile"
3003228060Sbaptcase "(($ac_try" in
3004228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005228060Sbapt  *) ac_try_echo=$ac_try;;
3006228060Sbaptesac
3007228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3009228060Sbapt  ac_status=$?
3010228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3011228060Sbapt  rm -f conftest.er1
3012228060Sbapt  cat conftest.err >&5
3013228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014228060Sbapt  (exit $ac_status); } && {
3015228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3016228060Sbapt	 test ! -s conftest.err
3017228060Sbapt       } && test -s conftest.$ac_objext; then
3018228060Sbapt  ac_compiler_gnu=yes
301958551Skriselse
3020228060Sbapt  echo "$as_me: failed program was:" >&5
3021228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3022228060Sbapt
3023228060Sbapt	ac_compiler_gnu=no
302458551Skrisfi
3025228060Sbapt
3026228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027228060Sbaptac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3028228060Sbapt
302958551Skrisfi
3030228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3031228060Sbaptecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3032228060SbaptGXX=`test $ac_compiler_gnu = yes && echo yes`
3033228060Sbaptac_test_CXXFLAGS=${CXXFLAGS+set}
3034228060Sbaptac_save_CXXFLAGS=$CXXFLAGS
3035228060Sbapt{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3036228060Sbaptecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3037228060Sbaptif test "${ac_cv_prog_cxx_g+set}" = set; then
3038228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
3039228060Sbaptelse
3040228060Sbapt  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3041228060Sbapt   ac_cxx_werror_flag=yes
3042228060Sbapt   ac_cv_prog_cxx_g=no
3043228060Sbapt   CXXFLAGS="-g"
3044228060Sbapt   cat >conftest.$ac_ext <<_ACEOF
3045228060Sbapt/* confdefs.h.  */
3046228060Sbapt_ACEOF
3047228060Sbaptcat confdefs.h >>conftest.$ac_ext
3048228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3049228060Sbapt/* end confdefs.h.  */
305058551Skris
3051228060Sbaptint
3052228060Sbaptmain ()
3053228060Sbapt{
305458551Skris
3055228060Sbapt  ;
3056228060Sbapt  return 0;
3057228060Sbapt}
3058228060Sbapt_ACEOF
3059228060Sbaptrm -f conftest.$ac_objext
3060228060Sbaptif { (ac_try="$ac_compile"
3061228060Sbaptcase "(($ac_try" in
3062228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063228060Sbapt  *) ac_try_echo=$ac_try;;
3064228060Sbaptesac
3065228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3067228060Sbapt  ac_status=$?
3068228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3069228060Sbapt  rm -f conftest.er1
3070228060Sbapt  cat conftest.err >&5
3071228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072228060Sbapt  (exit $ac_status); } && {
3073228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3074228060Sbapt	 test ! -s conftest.err
3075228060Sbapt       } && test -s conftest.$ac_objext; then
3076228060Sbapt  ac_cv_prog_cxx_g=yes
307767064Sobrienelse
3078228060Sbapt  echo "$as_me: failed program was:" >&5
3079228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
308067064Sobrien
3081228060Sbapt	CXXFLAGS=""
3082228060Sbapt      cat >conftest.$ac_ext <<_ACEOF
3083228060Sbapt/* confdefs.h.  */
3084228060Sbapt_ACEOF
3085228060Sbaptcat confdefs.h >>conftest.$ac_ext
3086228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3087228060Sbapt/* end confdefs.h.  */
3088228060Sbapt
3089228060Sbaptint
3090228060Sbaptmain ()
3091228060Sbapt{
3092228060Sbapt
3093228060Sbapt  ;
3094228060Sbapt  return 0;
3095228060Sbapt}
3096228060Sbapt_ACEOF
3097228060Sbaptrm -f conftest.$ac_objext
3098228060Sbaptif { (ac_try="$ac_compile"
3099228060Sbaptcase "(($ac_try" in
3100228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101228060Sbapt  *) ac_try_echo=$ac_try;;
3102228060Sbaptesac
3103228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3105228060Sbapt  ac_status=$?
3106228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3107228060Sbapt  rm -f conftest.er1
3108228060Sbapt  cat conftest.err >&5
3109228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110228060Sbapt  (exit $ac_status); } && {
3111228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3112228060Sbapt	 test ! -s conftest.err
3113228060Sbapt       } && test -s conftest.$ac_objext; then
3114228060Sbapt  :
311558551Skriselse
3116228060Sbapt  echo "$as_me: failed program was:" >&5
3117228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3118228060Sbapt
3119228060Sbapt	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120228060Sbapt	 CXXFLAGS="-g"
3121228060Sbapt	 cat >conftest.$ac_ext <<_ACEOF
3122228060Sbapt/* confdefs.h.  */
3123228060Sbapt_ACEOF
3124228060Sbaptcat confdefs.h >>conftest.$ac_ext
3125228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3126228060Sbapt/* end confdefs.h.  */
3127228060Sbapt
3128228060Sbaptint
3129228060Sbaptmain ()
3130228060Sbapt{
3131228060Sbapt
3132228060Sbapt  ;
3133228060Sbapt  return 0;
3134228060Sbapt}
3135228060Sbapt_ACEOF
3136228060Sbaptrm -f conftest.$ac_objext
3137228060Sbaptif { (ac_try="$ac_compile"
3138228060Sbaptcase "(($ac_try" in
3139228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140228060Sbapt  *) ac_try_echo=$ac_try;;
3141228060Sbaptesac
3142228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3144228060Sbapt  ac_status=$?
3145228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3146228060Sbapt  rm -f conftest.er1
3147228060Sbapt  cat conftest.err >&5
3148228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149228060Sbapt  (exit $ac_status); } && {
3150228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3151228060Sbapt	 test ! -s conftest.err
3152228060Sbapt       } && test -s conftest.$ac_objext; then
315358551Skris  ac_cv_prog_cxx_g=yes
315458551Skriselse
3155228060Sbapt  echo "$as_me: failed program was:" >&5
3156228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3157228060Sbapt
3158228060Sbapt
315958551Skrisfi
316058551Skris
3161228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
316258551Skrisfi
316358551Skris
3164228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165228060Sbaptfi
3166228060Sbapt
3167228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168228060Sbapt   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3169228060Sbaptfi
3170228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3171228060Sbaptecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
317267064Sobrienif test "$ac_test_CXXFLAGS" = set; then
3173228060Sbapt  CXXFLAGS=$ac_save_CXXFLAGS
317467064Sobrienelif test $ac_cv_prog_cxx_g = yes; then
317567064Sobrien  if test "$GXX" = yes; then
317658551Skris    CXXFLAGS="-g -O2"
317758551Skris  else
317867064Sobrien    CXXFLAGS="-g"
317967064Sobrien  fi
318067064Sobrienelse
318167064Sobrien  if test "$GXX" = yes; then
318258551Skris    CXXFLAGS="-O2"
318367064Sobrien  else
318467064Sobrien    CXXFLAGS=
318558551Skris  fi
318658551Skrisfi
3187228060Sbaptac_ext=c
3188228060Sbaptac_cpp='$CPP $CPPFLAGS'
3189228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
319258551Skris
3193228060Sbapt                      ac_ext=cpp
3194228060Sbaptac_cpp='$CXXCPP $CPPFLAGS'
3195228060Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196228060Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197228060Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3198228060Sbapt{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3199228060Sbaptecho $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
320058551Skrisif test -z "$CXXCPP"; then
3201228060Sbapt  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3202228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
320358551Skriselse
3204228060Sbapt      # Double quotes because CXXCPP needs to be expanded
3205228060Sbapt    for CXXCPP in "$CXX -E" "/lib/cpp"
3206228060Sbapt    do
3207228060Sbapt      ac_preproc_ok=false
3208228060Sbaptfor ac_cxx_preproc_warn_flag in '' yes
3209228060Sbaptdo
3210228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
3211228060Sbapt  # with a fresh cross-compiler works.
3212228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3213228060Sbapt  # <limits.h> exists even on freestanding compilers.
3214228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
3215228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
3216228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3217228060Sbapt/* confdefs.h.  */
3218228060Sbapt_ACEOF
3219228060Sbaptcat confdefs.h >>conftest.$ac_ext
3220228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3221228060Sbapt/* end confdefs.h.  */
3222228060Sbapt#ifdef __STDC__
3223228060Sbapt# include <limits.h>
3224228060Sbapt#else
3225228060Sbapt# include <assert.h>
3226228060Sbapt#endif
3227228060Sbapt		     Syntax error
3228228060Sbapt_ACEOF
3229228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3230228060Sbaptcase "(($ac_try" in
3231228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232228060Sbapt  *) ac_try_echo=$ac_try;;
3233228060Sbaptesac
3234228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3236228060Sbapt  ac_status=$?
3237228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3238228060Sbapt  rm -f conftest.er1
3239228060Sbapt  cat conftest.err >&5
3240228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241228060Sbapt  (exit $ac_status); } >/dev/null && {
3242228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3243228060Sbapt	 test ! -s conftest.err
3244228060Sbapt       }; then
324558551Skris  :
324658551Skriselse
3247228060Sbapt  echo "$as_me: failed program was:" >&5
3248228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3249228060Sbapt
3250228060Sbapt  # Broken: fails on valid input.
3251228060Sbaptcontinue
325258551Skrisfi
3253228060Sbapt
3254228060Sbaptrm -f conftest.err conftest.$ac_ext
3255228060Sbapt
3256228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
3257228060Sbapt  # can be detected and how.
3258228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3259228060Sbapt/* confdefs.h.  */
3260228060Sbapt_ACEOF
3261228060Sbaptcat confdefs.h >>conftest.$ac_ext
3262228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3263228060Sbapt/* end confdefs.h.  */
3264228060Sbapt#include <ac_nonexistent.h>
3265228060Sbapt_ACEOF
3266228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3267228060Sbaptcase "(($ac_try" in
3268228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269228060Sbapt  *) ac_try_echo=$ac_try;;
3270228060Sbaptesac
3271228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273228060Sbapt  ac_status=$?
3274228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3275228060Sbapt  rm -f conftest.er1
3276228060Sbapt  cat conftest.err >&5
3277228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278228060Sbapt  (exit $ac_status); } >/dev/null && {
3279228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3280228060Sbapt	 test ! -s conftest.err
3281228060Sbapt       }; then
3282228060Sbapt  # Broken: success on invalid input.
3283228060Sbaptcontinue
3284228060Sbaptelse
3285228060Sbapt  echo "$as_me: failed program was:" >&5
3286228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3287228060Sbapt
3288228060Sbapt  # Passes both tests.
3289228060Sbaptac_preproc_ok=:
3290228060Sbaptbreak
329158551Skrisfi
3292228060Sbapt
3293228060Sbaptrm -f conftest.err conftest.$ac_ext
3294228060Sbapt
3295228060Sbaptdone
3296228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3297228060Sbaptrm -f conftest.err conftest.$ac_ext
3298228060Sbaptif $ac_preproc_ok; then
3299228060Sbapt  break
330058551Skrisfi
330158551Skris
3302228060Sbapt    done
3303228060Sbapt    ac_cv_prog_CXXCPP=$CXXCPP
3304228060Sbapt
3305228060Sbaptfi
3306228060Sbapt  CXXCPP=$ac_cv_prog_CXXCPP
330758551Skriselse
3308228060Sbapt  ac_cv_prog_CXXCPP=$CXXCPP
3309228060Sbaptfi
3310228060Sbapt{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3311228060Sbaptecho "${ECHO_T}$CXXCPP" >&6; }
3312228060Sbaptac_preproc_ok=false
3313228060Sbaptfor ac_cxx_preproc_warn_flag in '' yes
3314228060Sbaptdo
3315228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
3316228060Sbapt  # with a fresh cross-compiler works.
3317228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318228060Sbapt  # <limits.h> exists even on freestanding compilers.
3319228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
3320228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
3321228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3322228060Sbapt/* confdefs.h.  */
3323228060Sbapt_ACEOF
3324228060Sbaptcat confdefs.h >>conftest.$ac_ext
3325228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3326228060Sbapt/* end confdefs.h.  */
3327228060Sbapt#ifdef __STDC__
3328228060Sbapt# include <limits.h>
3329228060Sbapt#else
3330228060Sbapt# include <assert.h>
3331228060Sbapt#endif
3332228060Sbapt		     Syntax error
3333228060Sbapt_ACEOF
3334228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3335228060Sbaptcase "(($ac_try" in
3336228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337228060Sbapt  *) ac_try_echo=$ac_try;;
3338228060Sbaptesac
3339228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341228060Sbapt  ac_status=$?
3342228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3343228060Sbapt  rm -f conftest.er1
3344228060Sbapt  cat conftest.err >&5
3345228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346228060Sbapt  (exit $ac_status); } >/dev/null && {
3347228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3348228060Sbapt	 test ! -s conftest.err
3349228060Sbapt       }; then
3350228060Sbapt  :
3351228060Sbaptelse
3352228060Sbapt  echo "$as_me: failed program was:" >&5
3353228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3354228060Sbapt
3355228060Sbapt  # Broken: fails on valid input.
3356228060Sbaptcontinue
3357228060Sbaptfi
3358228060Sbapt
3359228060Sbaptrm -f conftest.err conftest.$ac_ext
3360228060Sbapt
3361228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
3362228060Sbapt  # can be detected and how.
3363228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3364228060Sbapt/* confdefs.h.  */
3365228060Sbapt_ACEOF
3366228060Sbaptcat confdefs.h >>conftest.$ac_ext
3367228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3368228060Sbapt/* end confdefs.h.  */
3369228060Sbapt#include <ac_nonexistent.h>
3370228060Sbapt_ACEOF
3371228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3372228060Sbaptcase "(($ac_try" in
3373228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374228060Sbapt  *) ac_try_echo=$ac_try;;
3375228060Sbaptesac
3376228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378228060Sbapt  ac_status=$?
3379228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3380228060Sbapt  rm -f conftest.er1
3381228060Sbapt  cat conftest.err >&5
3382228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383228060Sbapt  (exit $ac_status); } >/dev/null && {
3384228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3385228060Sbapt	 test ! -s conftest.err
3386228060Sbapt       }; then
3387228060Sbapt  # Broken: success on invalid input.
3388228060Sbaptcontinue
3389228060Sbaptelse
3390228060Sbapt  echo "$as_me: failed program was:" >&5
3391228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3392228060Sbapt
3393228060Sbapt  # Passes both tests.
3394228060Sbaptac_preproc_ok=:
3395228060Sbaptbreak
3396228060Sbaptfi
3397228060Sbapt
3398228060Sbaptrm -f conftest.err conftest.$ac_ext
3399228060Sbapt
3400228060Sbaptdone
3401228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402228060Sbaptrm -f conftest.err conftest.$ac_ext
3403228060Sbaptif $ac_preproc_ok; then
3404228060Sbapt  :
3405228060Sbaptelse
3406228060Sbapt  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3407228060SbaptSee \`config.log' for more details." >&5
3408228060Sbaptecho "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3409228060SbaptSee \`config.log' for more details." >&2;}
3410228060Sbapt   { (exit 1); exit 1; }; }
3411228060Sbaptfi
3412228060Sbapt
3413228060Sbaptac_ext=c
3414228060Sbaptac_cpp='$CPP $CPPFLAGS'
3415228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
3418228060Sbapt
3419228060Sbapt                      if test -n "$ac_tool_prefix"; then
3420228060Sbapt  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3421228060Sbaptset dummy ${ac_tool_prefix}ranlib; ac_word=$2
3422228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3423228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424228060Sbaptif test "${ac_cv_prog_RANLIB+set}" = set; then
3425228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
3426228060Sbaptelse
342758551Skris  if test -n "$RANLIB"; then
342858551Skris  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
342958551Skriselse
3430228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431228060Sbaptfor as_dir in $PATH
3432228060Sbaptdo
3433228060Sbapt  IFS=$as_save_IFS
3434228060Sbapt  test -z "$as_dir" && as_dir=.
3435228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
3436228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437228060Sbapt    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3438228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439228060Sbapt    break 2
3440228060Sbapt  fi
3441228060Sbaptdone
3442228060Sbaptdone
3443228060SbaptIFS=$as_save_IFS
3444228060Sbapt
344558551Skrisfi
344658551Skrisfi
3447228060SbaptRANLIB=$ac_cv_prog_RANLIB
344858551Skrisif test -n "$RANLIB"; then
3449228060Sbapt  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3450228060Sbaptecho "${ECHO_T}$RANLIB" >&6; }
345158551Skriselse
3452228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
3453228060Sbaptecho "${ECHO_T}no" >&6; }
345458551Skrisfi
345558551Skris
3456228060Sbapt
3457228060Sbaptfi
3458228060Sbaptif test -z "$ac_cv_prog_RANLIB"; then
3459228060Sbapt  ac_ct_RANLIB=$RANLIB
3460228060Sbapt  # Extract the first word of "ranlib", so it can be a program name with args.
3461228060Sbaptset dummy ranlib; ac_word=$2
3462228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3463228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3464228060Sbaptif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3465228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
3466228060Sbaptelse
3467228060Sbapt  if test -n "$ac_ct_RANLIB"; then
3468228060Sbapt  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3469228060Sbaptelse
3470228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471228060Sbaptfor as_dir in $PATH
3472228060Sbaptdo
3473228060Sbapt  IFS=$as_save_IFS
3474228060Sbapt  test -z "$as_dir" && as_dir=.
3475228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
3476228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477228060Sbapt    ac_cv_prog_ac_ct_RANLIB="ranlib"
3478228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479228060Sbapt    break 2
3480228060Sbapt  fi
3481228060Sbaptdone
3482228060Sbaptdone
3483228060SbaptIFS=$as_save_IFS
3484228060Sbapt
3485228060Sbaptfi
3486228060Sbaptfi
3487228060Sbaptac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3488228060Sbaptif test -n "$ac_ct_RANLIB"; then
3489228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3490228060Sbaptecho "${ECHO_T}$ac_ct_RANLIB" >&6; }
3491228060Sbaptelse
3492228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
3493228060Sbaptecho "${ECHO_T}no" >&6; }
3494228060Sbaptfi
3495228060Sbapt
3496228060Sbapt  if test "x$ac_ct_RANLIB" = x; then
3497228060Sbapt    RANLIB=":"
3498228060Sbapt  else
3499228060Sbapt    case $cross_compiling:$ac_tool_warned in
3500228060Sbaptyes:)
3501228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3502228060Sbaptwhose name does not start with the host triplet.  If you think this
3503228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
3504228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3505228060Sbaptwhose name does not start with the host triplet.  If you think this
3506228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
3507228060Sbaptac_tool_warned=yes ;;
3508228060Sbaptesac
3509228060Sbapt    RANLIB=$ac_ct_RANLIB
3510228060Sbapt  fi
3511228060Sbaptelse
3512228060Sbapt  RANLIB="$ac_cv_prog_RANLIB"
3513228060Sbaptfi
3514228060Sbapt
351558551Skris                      # Find a good install program.  We prefer a C program (faster),
351658551Skris# so one script is as good as another.  But avoid the broken or
351758551Skris# incompatible versions:
351858551Skris# SysV /etc/install, /usr/sbin/install
351958551Skris# SunOS /usr/etc/install
352058551Skris# IRIX /sbin/install
352158551Skris# AIX /bin/install
352258551Skris# AFS /usr/afsws/bin/install, which mishandles nonexistent args
352358551Skris# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
352458551Skris# ./install, which can be erroneously created by make from ./install.sh.
3525228060Sbapt{ echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
3526228060Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
352758551Skrisif test -z "$INSTALL"; then
3528228060Sbaptif test "${cl_cv_path_install+set}" = set; then
3529228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
353058551Skriselse
353158551Skris    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
353258551Skris  for ac_dir in $PATH; do
353358551Skris    # Account for people who put trailing slashes in PATH elements.
353458551Skris    case "$ac_dir/" in
353558551Skris    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
353658551Skris    *)
353758551Skris      # OSF1 and SCO ODT 3.0 have their own names for install.
353858551Skris      for ac_prog in ginstall installbsd scoinst install; do
353958551Skris        if test -f $ac_dir/$ac_prog; then
354058551Skris	  if test $ac_prog = install &&
354158551Skris            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
354258551Skris	    # AIX install.  It has an incompatible calling convention.
354358551Skris	    # OSF/1 installbsd also uses dspmsg, but is usable.
354458551Skris	    :
354558551Skris	  else
354658551Skris	    if test $ac_prog = installbsd &&
354758551Skris	      grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
354858551Skris	      # AIX installbsd doesn't work without option "-g".
354958551Skris	      :
355058551Skris	    else
355167064Sobrien	      cl_cv_path_install="$ac_dir/$ac_prog -c"
355258551Skris	      break 2
355358551Skris	    fi
355458551Skris	  fi
355558551Skris	fi
355658551Skris      done
355758551Skris      ;;
355858551Skris    esac
355958551Skris  done
356058551Skris  IFS="$ac_save_ifs"
356158551Skris  # As a last resort, use cp.
356258551Skris  test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
356358551Skris
356458551Skrisfi
356558551Skris  INSTALL="$cl_cv_path_install"
356658551Skrisfi
3567228060Sbapt{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3568228060Sbaptecho "${ECHO_T}$INSTALL" >&6; }
356958551Skris# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
357058551Skris# It thinks the first close brace ends the variable substitution.
357158551Skristest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
357258551Skrisif test -z "$INSTALL_DATA"; then
357358551Skris  case "$INSTALL" in
357458551Skris    cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
357558551Skris    * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
357658551Skris  esac
357758551Skrisfi
357858551Skris
3579228060Sbapt                      ac_config_files="$ac_config_files Makefile"
3580228060Sbapt
3581228060Sbaptcat >confcache <<\_ACEOF
358258551Skris# This file is a shell script that caches the results of configure
358358551Skris# tests run on this system so they can be shared between configure
3584228060Sbapt# scripts and configure runs, see configure's option --config-cache.
3585228060Sbapt# It is not useful on other systems.  If it contains results you don't
3586228060Sbapt# want to keep, you may remove or edit it.
358758551Skris#
3588228060Sbapt# config.status only pays attention to the cache file if you give it
3589228060Sbapt# the --recheck option to rerun configure.
359058551Skris#
3591228060Sbapt# `ac_cv_env_foo' variables (set or unset) will be overridden when
3592228060Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the
3593228060Sbapt# following values.
3594228060Sbapt
3595228060Sbapt_ACEOF
3596228060Sbapt
359758551Skris# The following way of writing the cache mishandles newlines in values,
359858551Skris# but we know of no workaround that is simple, portable, and efficient.
3599228060Sbapt# So, we kill variables containing newlines.
360058551Skris# Ultrix sh set writes to stderr and can't be redirected directly,
360158551Skris# and sets the high bit in the cache file unless we assign to the vars.
3602228060Sbapt(
3603228060Sbapt  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3604228060Sbapt    eval ac_val=\$$ac_var
3605228060Sbapt    case $ac_val in #(
3606228060Sbapt    *${as_nl}*)
3607228060Sbapt      case $ac_var in #(
3608228060Sbapt      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3609228060Sbaptecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3610228060Sbapt      esac
3611228060Sbapt      case $ac_var in #(
3612228060Sbapt      _ | IFS | as_nl) ;; #(
3613228060Sbapt      *) $as_unset $ac_var ;;
3614228060Sbapt      esac ;;
3615228060Sbapt    esac
3616228060Sbapt  done
3617228060Sbapt
3618228060Sbapt  (set) 2>&1 |
3619228060Sbapt    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3620228060Sbapt    *${as_nl}ac_space=\ *)
3621228060Sbapt      # `set' does not quote correctly, so add quotes (double-quote
3622228060Sbapt      # substitution turns \\\\ into \\, and sed turns \\ into \).
3623228060Sbapt      sed -n \
3624228060Sbapt	"s/'/'\\\\''/g;
3625228060Sbapt	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3626228060Sbapt      ;; #(
3627228060Sbapt    *)
3628228060Sbapt      # `set' quotes correctly as required by POSIX, so do not add quotes.
3629228060Sbapt      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3630228060Sbapt      ;;
3631228060Sbapt    esac |
3632228060Sbapt    sort
3633228060Sbapt) |
3634228060Sbapt  sed '
3635228060Sbapt     /^ac_cv_env_/b end
3636228060Sbapt     t clear
3637228060Sbapt     :clear
3638228060Sbapt     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3639228060Sbapt     t end
3640228060Sbapt     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3641228060Sbapt     :end' >>confcache
3642228060Sbaptif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3643228060Sbapt  if test -w "$cache_file"; then
3644228060Sbapt    test "x$cache_file" != "x/dev/null" &&
3645228060Sbapt      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3646228060Sbaptecho "$as_me: updating cache $cache_file" >&6;}
3647228060Sbapt    cat confcache >$cache_file
364858551Skris  else
3649228060Sbapt    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3650228060Sbaptecho "$as_me: not updating unwritable cache $cache_file" >&6;}
365158551Skris  fi
365258551Skrisfi
365358551Skrisrm -f confcache
365458551Skris
365558551Skristest "x$prefix" = xNONE && prefix=$ac_default_prefix
365658551Skris# Let make expand exec_prefix.
365758551Skristest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
365858551Skris
365958551Skris# Transform confdefs.h into DEFS.
366058551Skris# Protect against shell expansion while executing Makefile rules.
366158551Skris# Protect against Makefile macro expansion.
3662228060Sbapt#
3663228060Sbapt# If the first sed substitution is executed (which looks for macros that
3664228060Sbapt# take arguments), then branch to the quote section.  Otherwise,
3665228060Sbapt# look for a macro that doesn't take arguments.
3666228060Sbaptac_script='
3667228060Sbaptt clear
3668228060Sbapt:clear
3669228060Sbapts/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3670228060Sbaptt quote
3671228060Sbapts/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3672228060Sbaptt quote
3673228060Sbaptb any
3674228060Sbapt:quote
3675228060Sbapts/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3676228060Sbapts/\[/\\&/g
3677228060Sbapts/\]/\\&/g
3678228060Sbapts/\$/$$/g
3679228060SbaptH
3680228060Sbapt:any
3681228060Sbapt${
3682228060Sbapt	g
3683228060Sbapt	s/^\n//
3684228060Sbapt	s/\n/ /g
3685228060Sbapt	p
3686228060Sbapt}
3687228060Sbapt'
3688228060SbaptDEFS=`sed -n "$ac_script" confdefs.h`
368958551Skris
369058551Skris
3691228060Sbaptac_libobjs=
3692228060Sbaptac_ltlibobjs=
3693228060Sbaptfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3694228060Sbapt  # 1. Remove the extension, and $U if already installed.
3695228060Sbapt  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3696228060Sbapt  ac_i=`echo "$ac_i" | sed "$ac_script"`
3697228060Sbapt  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3698228060Sbapt  #    will be set to the directory where LIBOBJS objects are built.
3699228060Sbapt  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3700228060Sbapt  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3701228060Sbaptdone
3702228060SbaptLIBOBJS=$ac_libobjs
3703228060Sbapt
3704228060SbaptLTLIBOBJS=$ac_ltlibobjs
3705228060Sbapt
3706228060Sbapt
3707228060Sbapt
370858551Skris: ${CONFIG_STATUS=./config.status}
3709228060Sbaptac_clean_files_save=$ac_clean_files
3710228060Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS"
3711228060Sbapt{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3712228060Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;}
3713228060Sbaptcat >$CONFIG_STATUS <<_ACEOF
3714228060Sbapt#! $SHELL
3715228060Sbapt# Generated by $as_me.
371658551Skris# Run this file to recreate the current configuration.
371758551Skris# Compiler output produced by configure, useful for debugging
3718228060Sbapt# configure, is in config.log if it exists.
371958551Skris
3720228060Sbaptdebug=false
3721228060Sbaptac_cs_recheck=false
3722228060Sbaptac_cs_silent=false
3723228060SbaptSHELL=\${CONFIG_SHELL-$SHELL}
3724228060Sbapt_ACEOF
372558551Skris
3726228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
3727228060Sbapt## --------------------- ##
3728228060Sbapt## M4sh Initialization.  ##
3729228060Sbapt## --------------------- ##
373058551Skris
3731228060Sbapt# Be more Bourne compatible
3732228060SbaptDUALCASE=1; export DUALCASE # for MKS sh
3733228060Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3734228060Sbapt  emulate sh
3735228060Sbapt  NULLCMD=:
3736228060Sbapt  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3737228060Sbapt  # is contrary to our usage.  Disable this feature.
3738228060Sbapt  alias -g '${1+"$@"}'='"$@"'
3739228060Sbapt  setopt NO_GLOB_SUBST
3740228060Sbaptelse
3741228060Sbapt  case `(set -o) 2>/dev/null` in
3742228060Sbapt  *posix*) set -o posix ;;
3743228060Sbaptesac
374458551Skris
3745228060Sbaptfi
374658551Skris
374758551Skris
374858551Skris
3749228060Sbapt
3750228060Sbapt# PATH needs CR
3751228060Sbapt# Avoid depending upon Character Ranges.
3752228060Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3753228060Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3754228060Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3755228060Sbaptas_cr_digits='0123456789'
3756228060Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits
3757228060Sbapt
3758228060Sbapt# The user is always right.
3759228060Sbaptif test "${PATH_SEPARATOR+set}" != set; then
3760228060Sbapt  echo "#! /bin/sh" >conf$$.sh
3761228060Sbapt  echo  "exit 0"   >>conf$$.sh
3762228060Sbapt  chmod +x conf$$.sh
3763228060Sbapt  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3764228060Sbapt    PATH_SEPARATOR=';'
376558551Skris  else
3766228060Sbapt    PATH_SEPARATOR=:
376758551Skris  fi
3768228060Sbapt  rm -f conf$$.sh
3769228060Sbaptfi
3770228060Sbapt
3771228060Sbapt# Support unset when possible.
3772228060Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3773228060Sbapt  as_unset=unset
3774228060Sbaptelse
3775228060Sbapt  as_unset=false
3776228060Sbaptfi
3777228060Sbapt
3778228060Sbapt
3779228060Sbapt# IFS
3780228060Sbapt# We need space, tab and new line, in precisely that order.  Quoting is
3781228060Sbapt# there to prevent editors from complaining about space-tab.
3782228060Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3783228060Sbapt# splitting by setting IFS to empty value.)
3784228060Sbaptas_nl='
3785228060Sbapt'
3786228060SbaptIFS=" ""	$as_nl"
3787228060Sbapt
3788228060Sbapt# Find who we are.  Look in the path if we contain no directory separator.
3789228060Sbaptcase $0 in
3790228060Sbapt  *[\\/]* ) as_myself=$0 ;;
3791228060Sbapt  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792228060Sbaptfor as_dir in $PATH
3793228060Sbaptdo
3794228060Sbapt  IFS=$as_save_IFS
3795228060Sbapt  test -z "$as_dir" && as_dir=.
3796228060Sbapt  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3797228060Sbaptdone
3798228060SbaptIFS=$as_save_IFS
3799228060Sbapt
3800228060Sbapt     ;;
3801228060Sbaptesac
3802228060Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND'
3803228060Sbapt# in which case we are not to be found in the path.
3804228060Sbaptif test "x$as_myself" = x; then
3805228060Sbapt  as_myself=$0
3806228060Sbaptfi
3807228060Sbaptif test ! -f "$as_myself"; then
3808228060Sbapt  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3809228060Sbapt  { (exit 1); exit 1; }
3810228060Sbaptfi
3811228060Sbapt
3812228060Sbapt# Work around bugs in pre-3.0 UWIN ksh.
3813228060Sbaptfor as_var in ENV MAIL MAILPATH
3814228060Sbaptdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3815228060Sbaptdone
3816228060SbaptPS1='$ '
3817228060SbaptPS2='> '
3818228060SbaptPS4='+ '
3819228060Sbapt
3820228060Sbapt# NLS nuisances.
3821228060Sbaptfor as_var in \
3822228060Sbapt  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3823228060Sbapt  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3824228060Sbapt  LC_TELEPHONE LC_TIME
3825228060Sbaptdo
3826228060Sbapt  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3827228060Sbapt    eval $as_var=C; export $as_var
382858551Skris  else
3829228060Sbapt    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
383058551Skris  fi
383158551Skrisdone
3832228060Sbapt
3833228060Sbapt# Required to use basename.
3834228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
3835228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3836228060Sbapt  as_expr=expr
3837228060Sbaptelse
3838228060Sbapt  as_expr=false
383958551Skrisfi
384058551Skris
3841228060Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3842228060Sbapt  as_basename=basename
3843228060Sbaptelse
3844228060Sbapt  as_basename=false
3845228060Sbaptfi
384658551Skris
3847228060Sbapt
3848228060Sbapt# Name of the executable.
3849228060Sbaptas_me=`$as_basename -- "$0" ||
3850228060Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3851228060Sbapt	 X"$0" : 'X\(//\)$' \| \
3852228060Sbapt	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3853228060Sbaptecho X/"$0" |
3854228060Sbapt    sed '/^.*\/\([^/][^/]*\)\/*$/{
3855228060Sbapt	    s//\1/
3856228060Sbapt	    q
3857228060Sbapt	  }
3858228060Sbapt	  /^X\/\(\/\/\)$/{
3859228060Sbapt	    s//\1/
3860228060Sbapt	    q
3861228060Sbapt	  }
3862228060Sbapt	  /^X\/\(\/\).*/{
3863228060Sbapt	    s//\1/
3864228060Sbapt	    q
3865228060Sbapt	  }
3866228060Sbapt	  s/.*/./; q'`
3867228060Sbapt
3868228060Sbapt# CDPATH.
3869228060Sbapt$as_unset CDPATH
3870228060Sbapt
3871228060Sbapt
3872228060Sbapt
3873228060Sbapt  as_lineno_1=$LINENO
3874228060Sbapt  as_lineno_2=$LINENO
3875228060Sbapt  test "x$as_lineno_1" != "x$as_lineno_2" &&
3876228060Sbapt  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3877228060Sbapt
3878228060Sbapt  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3879228060Sbapt  # uniformly replaced by the line number.  The first 'sed' inserts a
3880228060Sbapt  # line-number line after each line using $LINENO; the second 'sed'
3881228060Sbapt  # does the real work.  The second script uses 'N' to pair each
3882228060Sbapt  # line-number line with the line containing $LINENO, and appends
3883228060Sbapt  # trailing '-' during substitution so that $LINENO is not a special
3884228060Sbapt  # case at line end.
3885228060Sbapt  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3886228060Sbapt  # scripts with optimization help from Paolo Bonzini.  Blame Lee
3887228060Sbapt  # E. McMahon (1931-1989) for sed's syntax.  :-)
3888228060Sbapt  sed -n '
3889228060Sbapt    p
3890228060Sbapt    /[$]LINENO/=
3891228060Sbapt  ' <$as_myself |
3892228060Sbapt    sed '
3893228060Sbapt      s/[$]LINENO.*/&-/
3894228060Sbapt      t lineno
3895228060Sbapt      b
3896228060Sbapt      :lineno
3897228060Sbapt      N
3898228060Sbapt      :loop
3899228060Sbapt      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3900228060Sbapt      t loop
3901228060Sbapt      s/-\n.*//
3902228060Sbapt    ' >$as_me.lineno &&
3903228060Sbapt  chmod +x "$as_me.lineno" ||
3904228060Sbapt    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3905228060Sbapt   { (exit 1); exit 1; }; }
3906228060Sbapt
3907228060Sbapt  # Don't try to exec as it changes $[0], causing all sort of problems
3908228060Sbapt  # (the dirname of $[0] is not the place where we might find the
3909228060Sbapt  # original and so on.  Autoconf is especially sensitive to this).
3910228060Sbapt  . "./$as_me.lineno"
3911228060Sbapt  # Exit status is that of the last command.
3912228060Sbapt  exit
3913228060Sbapt}
3914228060Sbapt
3915228060Sbapt
3916228060Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3917228060Sbapt  as_dirname=dirname
3918228060Sbaptelse
3919228060Sbapt  as_dirname=false
3920228060Sbaptfi
3921228060Sbapt
3922228060SbaptECHO_C= ECHO_N= ECHO_T=
3923228060Sbaptcase `echo -n x` in
3924228060Sbapt-n*)
3925228060Sbapt  case `echo 'x\c'` in
3926228060Sbapt  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3927228060Sbapt  *)   ECHO_C='\c';;
3928228060Sbapt  esac;;
3929228060Sbapt*)
3930228060Sbapt  ECHO_N='-n';;
3931228060Sbaptesac
3932228060Sbapt
3933228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
3934228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3935228060Sbapt  as_expr=expr
3936228060Sbaptelse
3937228060Sbapt  as_expr=false
3938228060Sbaptfi
3939228060Sbapt
3940228060Sbaptrm -f conf$$ conf$$.exe conf$$.file
3941228060Sbaptif test -d conf$$.dir; then
3942228060Sbapt  rm -f conf$$.dir/conf$$.file
3943228060Sbaptelse
3944228060Sbapt  rm -f conf$$.dir
3945228060Sbapt  mkdir conf$$.dir
3946228060Sbaptfi
3947228060Sbaptecho >conf$$.file
3948228060Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then
3949228060Sbapt  as_ln_s='ln -s'
3950228060Sbapt  # ... but there are two gotchas:
3951228060Sbapt  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3952228060Sbapt  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3953228060Sbapt  # In both cases, we have to default to `cp -p'.
3954228060Sbapt  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3955228060Sbapt    as_ln_s='cp -p'
3956228060Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then
3957228060Sbapt  as_ln_s=ln
3958228060Sbaptelse
3959228060Sbapt  as_ln_s='cp -p'
3960228060Sbaptfi
3961228060Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3962228060Sbaptrmdir conf$$.dir 2>/dev/null
3963228060Sbapt
3964228060Sbaptif mkdir -p . 2>/dev/null; then
3965228060Sbapt  as_mkdir_p=:
3966228060Sbaptelse
3967228060Sbapt  test -d ./-p && rmdir ./-p
3968228060Sbapt  as_mkdir_p=false
3969228060Sbaptfi
3970228060Sbapt
3971228060Sbaptif test -x / >/dev/null 2>&1; then
3972228060Sbapt  as_test_x='test -x'
3973228060Sbaptelse
3974228060Sbapt  if ls -dL / >/dev/null 2>&1; then
3975228060Sbapt    as_ls_L_option=L
3976228060Sbapt  else
3977228060Sbapt    as_ls_L_option=
3978228060Sbapt  fi
3979228060Sbapt  as_test_x='
3980228060Sbapt    eval sh -c '\''
3981228060Sbapt      if test -d "$1"; then
3982228060Sbapt        test -d "$1/.";
3983228060Sbapt      else
3984228060Sbapt	case $1 in
3985228060Sbapt        -*)set "./$1";;
3986228060Sbapt	esac;
3987228060Sbapt	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3988228060Sbapt	???[sx]*):;;*)false;;esac;fi
3989228060Sbapt    '\'' sh
3990228060Sbapt  '
3991228060Sbaptfi
3992228060Sbaptas_executable_p=$as_test_x
3993228060Sbapt
3994228060Sbapt# Sed expression to map a string onto a valid CPP name.
3995228060Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3996228060Sbapt
3997228060Sbapt# Sed expression to map a string onto a valid variable name.
3998228060Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3999228060Sbapt
4000228060Sbapt
4001228060Sbaptexec 6>&1
4002228060Sbapt
4003228060Sbapt# Save the log message, to keep $[0] and so on meaningful, and to
4004228060Sbapt# report actual input values of CONFIG_FILES etc. instead of their
4005228060Sbapt# values after options handling.
4006228060Sbaptac_log="
4007228060SbaptThis file was extended by $as_me, which was
4008228060Sbaptgenerated by GNU Autoconf 2.61.  Invocation command line was
4009228060Sbapt
4010228060Sbapt  CONFIG_FILES    = $CONFIG_FILES
4011228060Sbapt  CONFIG_HEADERS  = $CONFIG_HEADERS
4012228060Sbapt  CONFIG_LINKS    = $CONFIG_LINKS
4013228060Sbapt  CONFIG_COMMANDS = $CONFIG_COMMANDS
4014228060Sbapt  $ $0 $@
4015228060Sbapt
4016228060Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q`
4017228060Sbapt"
4018228060Sbapt
4019228060Sbapt_ACEOF
4020228060Sbapt
4021228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4022228060Sbapt# Files that config.status was made for.
4023228060Sbaptconfig_files="$ac_config_files"
4024228060Sbapt
4025228060Sbapt_ACEOF
4026228060Sbapt
4027228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4028228060Sbaptac_cs_usage="\
4029228060Sbapt\`$as_me' instantiates files from templates according to the
4030228060Sbaptcurrent configuration.
4031228060Sbapt
4032228060SbaptUsage: $0 [OPTIONS] [FILE]...
4033228060Sbapt
4034228060Sbapt  -h, --help       print this help, then exit
4035228060Sbapt  -V, --version    print version number and configuration settings, then exit
4036228060Sbapt  -q, --quiet      do not print progress messages
4037228060Sbapt  -d, --debug      don't remove temporary files
4038228060Sbapt      --recheck    update $as_me by reconfiguring in the same conditions
4039228060Sbapt  --file=FILE[:TEMPLATE]
4040228060Sbapt		   instantiate the configuration file FILE
4041228060Sbapt
4042228060SbaptConfiguration files:
4043228060Sbapt$config_files
4044228060Sbapt
4045228060SbaptReport bugs to <bug-autoconf@gnu.org>."
4046228060Sbapt
4047228060Sbapt_ACEOF
4048228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4049228060Sbaptac_cs_version="\\
4050228060Sbaptconfig.status
4051228060Sbaptconfigured by $0, generated by GNU Autoconf 2.61,
4052228060Sbapt  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4053228060Sbapt
4054228060SbaptCopyright (C) 2006 Free Software Foundation, Inc.
4055228060SbaptThis config.status script is free software; the Free Software Foundation
4056228060Sbaptgives unlimited permission to copy, distribute and modify it."
4057228060Sbapt
4058228060Sbaptac_pwd='$ac_pwd'
4059228060Sbaptsrcdir='$srcdir'
4060228060Sbapt_ACEOF
4061228060Sbapt
4062228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4063228060Sbapt# If no file are specified by the user, then we need to provide default
4064228060Sbapt# value.  By we need to know if files were specified by the user.
4065228060Sbaptac_need_defaults=:
4066228060Sbaptwhile test $# != 0
4067228060Sbaptdo
4068228060Sbapt  case $1 in
4069228060Sbapt  --*=*)
4070228060Sbapt    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4071228060Sbapt    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4072228060Sbapt    ac_shift=:
4073228060Sbapt    ;;
4074228060Sbapt  *)
4075228060Sbapt    ac_option=$1
4076228060Sbapt    ac_optarg=$2
4077228060Sbapt    ac_shift=shift
4078228060Sbapt    ;;
407958551Skris  esac
408058551Skris
4081228060Sbapt  case $ac_option in
4082228060Sbapt  # Handling of the options.
4083228060Sbapt  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4084228060Sbapt    ac_cs_recheck=: ;;
4085228060Sbapt  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4086228060Sbapt    echo "$ac_cs_version"; exit ;;
4087228060Sbapt  --debug | --debu | --deb | --de | --d | -d )
4088228060Sbapt    debug=: ;;
4089228060Sbapt  --file | --fil | --fi | --f )
4090228060Sbapt    $ac_shift
4091228060Sbapt    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4092228060Sbapt    ac_need_defaults=false;;
4093228060Sbapt  --he | --h |  --help | --hel | -h )
4094228060Sbapt    echo "$ac_cs_usage"; exit ;;
4095228060Sbapt  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4096228060Sbapt  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4097228060Sbapt    ac_cs_silent=: ;;
409858551Skris
4099228060Sbapt  # This is an error.
4100228060Sbapt  -*) { echo "$as_me: error: unrecognized option: $1
4101228060SbaptTry \`$0 --help' for more information." >&2
4102228060Sbapt   { (exit 1); exit 1; }; } ;;
4103228060Sbapt
4104228060Sbapt  *) ac_config_targets="$ac_config_targets $1"
4105228060Sbapt     ac_need_defaults=false ;;
4106228060Sbapt
4107228060Sbapt  esac
4108228060Sbapt  shift
4109228060Sbaptdone
4110228060Sbapt
4111228060Sbaptac_configure_extra_args=
4112228060Sbapt
4113228060Sbaptif $ac_cs_silent; then
4114228060Sbapt  exec 6>/dev/null
4115228060Sbapt  ac_configure_extra_args="$ac_configure_extra_args --silent"
4116228060Sbaptfi
4117228060Sbapt
4118228060Sbapt_ACEOF
4119228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4120228060Sbaptif \$ac_cs_recheck; then
4121228060Sbapt  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4122228060Sbapt  CONFIG_SHELL=$SHELL
4123228060Sbapt  export CONFIG_SHELL
4124228060Sbapt  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4125228060Sbaptfi
4126228060Sbapt
4127228060Sbapt_ACEOF
4128228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4129228060Sbaptexec 5>>config.log
4130228060Sbapt{
4131228060Sbapt  echo
4132228060Sbapt  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4133228060Sbapt## Running $as_me. ##
4134228060Sbapt_ASBOX
4135228060Sbapt  echo "$ac_log"
4136228060Sbapt} >&5
4137228060Sbapt
4138228060Sbapt_ACEOF
4139228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4140228060Sbapt_ACEOF
4141228060Sbapt
4142228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4143228060Sbapt
4144228060Sbapt# Handling of arguments.
4145228060Sbaptfor ac_config_target in $ac_config_targets
4146228060Sbaptdo
4147228060Sbapt  case $ac_config_target in
4148228060Sbapt    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4149228060Sbapt
4150228060Sbapt  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4151228060Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
4152228060Sbapt   { (exit 1); exit 1; }; };;
4153228060Sbapt  esac
4154228060Sbaptdone
4155228060Sbapt
4156228060Sbapt
4157228060Sbapt# If the user did not use the arguments to specify the items to instantiate,
4158228060Sbapt# then the envvar interface is used.  Set only those that are not.
4159228060Sbapt# We use the long form for the default assignment because of an extremely
4160228060Sbapt# bizarre bug on SunOS 4.1.3.
4161228060Sbaptif $ac_need_defaults; then
4162228060Sbapt  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4163228060Sbaptfi
4164228060Sbapt
4165228060Sbapt# Have a temporary directory for convenience.  Make it in the build tree
4166228060Sbapt# simply because there is no reason against having it here, and in addition,
4167228060Sbapt# creating and moving files from /tmp can sometimes cause problems.
4168228060Sbapt# Hook for its removal unless debugging.
4169228060Sbapt# Note that there is a small window in which the directory will not be cleaned:
4170228060Sbapt# after its creation but before its name has been assigned to `$tmp'.
4171228060Sbapt$debug ||
4172228060Sbapt{
4173228060Sbapt  tmp=
4174228060Sbapt  trap 'exit_status=$?
4175228060Sbapt  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4176228060Sbapt' 0
4177228060Sbapt  trap '{ (exit 1); exit 1; }' 1 2 13 15
4178228060Sbapt}
4179228060Sbapt# Create a (secure) tmp directory for tmp files.
4180228060Sbapt
4181228060Sbapt{
4182228060Sbapt  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4183228060Sbapt  test -n "$tmp" && test -d "$tmp"
4184228060Sbapt}  ||
4185228060Sbapt{
4186228060Sbapt  tmp=./conf$$-$RANDOM
4187228060Sbapt  (umask 077 && mkdir "$tmp")
4188228060Sbapt} ||
4189228060Sbapt{
4190228060Sbapt   echo "$me: cannot create a temporary directory in ." >&2
4191228060Sbapt   { (exit 1); exit 1; }
4192228060Sbapt}
4193228060Sbapt
4194228060Sbapt#
4195228060Sbapt# Set up the sed scripts for CONFIG_FILES section.
4196228060Sbapt#
4197228060Sbapt
4198228060Sbapt# No need to generate the scripts if there are no CONFIG_FILES.
4199228060Sbapt# This happens for instance when ./config.status config.h
4200228060Sbaptif test -n "$CONFIG_FILES"; then
4201228060Sbapt
4202228060Sbapt_ACEOF
4203228060Sbapt
4204228060Sbapt
4205228060Sbapt
4206228060Sbaptac_delim='%!_!# '
4207228060Sbaptfor ac_last_try in false false false false false :; do
4208228060Sbapt  cat >conf$$subs.sed <<_ACEOF
4209228060SbaptSHELL!$SHELL$ac_delim
4210228060SbaptPATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4211228060SbaptPACKAGE_NAME!$PACKAGE_NAME$ac_delim
4212228060SbaptPACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4213228060SbaptPACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4214228060SbaptPACKAGE_STRING!$PACKAGE_STRING$ac_delim
4215228060SbaptPACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4216228060Sbaptexec_prefix!$exec_prefix$ac_delim
4217228060Sbaptprefix!$prefix$ac_delim
4218228060Sbaptprogram_transform_name!$program_transform_name$ac_delim
4219228060Sbaptbindir!$bindir$ac_delim
4220228060Sbaptsbindir!$sbindir$ac_delim
4221228060Sbaptlibexecdir!$libexecdir$ac_delim
4222228060Sbaptdatarootdir!$datarootdir$ac_delim
4223228060Sbaptdatadir!$datadir$ac_delim
4224228060Sbaptsysconfdir!$sysconfdir$ac_delim
4225228060Sbaptsharedstatedir!$sharedstatedir$ac_delim
4226228060Sbaptlocalstatedir!$localstatedir$ac_delim
4227228060Sbaptincludedir!$includedir$ac_delim
4228228060Sbaptoldincludedir!$oldincludedir$ac_delim
4229228060Sbaptdocdir!$docdir$ac_delim
4230228060Sbaptinfodir!$infodir$ac_delim
4231228060Sbapthtmldir!$htmldir$ac_delim
4232228060Sbaptdvidir!$dvidir$ac_delim
4233228060Sbaptpdfdir!$pdfdir$ac_delim
4234228060Sbaptpsdir!$psdir$ac_delim
4235228060Sbaptlibdir!$libdir$ac_delim
4236228060Sbaptlocaledir!$localedir$ac_delim
4237228060Sbaptmandir!$mandir$ac_delim
4238228060SbaptDEFS!$DEFS$ac_delim
4239228060SbaptECHO_C!$ECHO_C$ac_delim
4240228060SbaptECHO_N!$ECHO_N$ac_delim
4241228060SbaptECHO_T!$ECHO_T$ac_delim
4242228060SbaptLIBS!$LIBS$ac_delim
4243228060Sbaptbuild_alias!$build_alias$ac_delim
4244228060Sbapthost_alias!$host_alias$ac_delim
4245228060Sbapttarget_alias!$target_alias$ac_delim
4246228060SbaptSET_MAKE!$SET_MAKE$ac_delim
4247228060SbaptCC!$CC$ac_delim
4248228060SbaptCFLAGS!$CFLAGS$ac_delim
4249228060SbaptLDFLAGS!$LDFLAGS$ac_delim
4250228060SbaptCPPFLAGS!$CPPFLAGS$ac_delim
4251228060Sbaptac_ct_CC!$ac_ct_CC$ac_delim
4252228060SbaptEXEEXT!$EXEEXT$ac_delim
4253228060SbaptOBJEXT!$OBJEXT$ac_delim
4254228060SbaptCPP!$CPP$ac_delim
4255228060SbaptCXX!$CXX$ac_delim
4256228060SbaptCXXFLAGS!$CXXFLAGS$ac_delim
4257228060Sbaptac_ct_CXX!$ac_ct_CXX$ac_delim
4258228060SbaptCXXCPP!$CXXCPP$ac_delim
4259228060SbaptRANLIB!$RANLIB$ac_delim
4260228060SbaptINSTALL!$INSTALL$ac_delim
4261228060SbaptINSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4262228060SbaptINSTALL_DATA!$INSTALL_DATA$ac_delim
4263228060SbaptLIBOBJS!$LIBOBJS$ac_delim
4264228060SbaptLTLIBOBJS!$LTLIBOBJS$ac_delim
4265228060Sbapt_ACEOF
4266228060Sbapt
4267228060Sbapt  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
4268228060Sbapt    break
4269228060Sbapt  elif $ac_last_try; then
4270228060Sbapt    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4271228060Sbaptecho "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4272228060Sbapt   { (exit 1); exit 1; }; }
427358551Skris  else
4274228060Sbapt    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
427558551Skris  fi
4276228060Sbaptdone
427758551Skris
4278228060Sbaptac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4279228060Sbaptif test -n "$ac_eof"; then
4280228060Sbapt  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4281228060Sbapt  ac_eof=`expr $ac_eof + 1`
4282228060Sbaptfi
4283228060Sbapt
4284228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4285228060Sbaptcat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4286228060Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4287228060Sbapt_ACEOF
4288228060Sbaptsed '
4289228060Sbapts/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4290228060Sbapts/^/s,@/; s/!/@,|#_!!_#|/
4291228060Sbapt:n
4292228060Sbaptt n
4293228060Sbapts/'"$ac_delim"'$/,g/; t
4294228060Sbapts/$/\\/; p
4295228060SbaptN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4296228060Sbapt' >>$CONFIG_STATUS <conf$$subs.sed
4297228060Sbaptrm -f conf$$subs.sed
4298228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4299228060Sbapt:end
4300228060Sbapts/|#_!!_#|//g
4301228060SbaptCEOF$ac_eof
4302228060Sbapt_ACEOF
4303228060Sbapt
4304228060Sbapt
4305228060Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir),
4306228060Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4307228060Sbapt# trailing colons and then remove the whole line if VPATH becomes empty
4308228060Sbapt# (actually we leave an empty line to preserve line numbers).
4309228060Sbaptif test "x$srcdir" = x.; then
4310228060Sbapt  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4311228060Sbapts/:*\$(srcdir):*/:/
4312228060Sbapts/:*\${srcdir}:*/:/
4313228060Sbapts/:*@srcdir@:*/:/
4314228060Sbapts/^\([^=]*=[	 ]*\):*/\1/
4315228060Sbapts/:*$//
4316228060Sbapts/^[^=]*=[	 ]*$//
4317228060Sbapt}'
4318228060Sbaptfi
4319228060Sbapt
4320228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4321228060Sbaptfi # test -n "$CONFIG_FILES"
4322228060Sbapt
4323228060Sbapt
4324228060Sbaptfor ac_tag in  :F $CONFIG_FILES
4325228060Sbaptdo
4326228060Sbapt  case $ac_tag in
4327228060Sbapt  :[FHLC]) ac_mode=$ac_tag; continue;;
432858551Skris  esac
4329228060Sbapt  case $ac_mode$ac_tag in
4330228060Sbapt  :[FHL]*:*);;
4331228060Sbapt  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4332228060Sbaptecho "$as_me: error: Invalid tag $ac_tag." >&2;}
4333228060Sbapt   { (exit 1); exit 1; }; };;
4334228060Sbapt  :[FH]-) ac_tag=-:-;;
4335228060Sbapt  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4336228060Sbapt  esac
4337228060Sbapt  ac_save_IFS=$IFS
4338228060Sbapt  IFS=:
4339228060Sbapt  set x $ac_tag
4340228060Sbapt  IFS=$ac_save_IFS
4341228060Sbapt  shift
4342228060Sbapt  ac_file=$1
4343228060Sbapt  shift
434458551Skris
4345228060Sbapt  case $ac_mode in
4346228060Sbapt  :L) ac_source=$1;;
4347228060Sbapt  :[FH])
4348228060Sbapt    ac_file_inputs=
4349228060Sbapt    for ac_f
4350228060Sbapt    do
4351228060Sbapt      case $ac_f in
4352228060Sbapt      -) ac_f="$tmp/stdin";;
4353228060Sbapt      *) # Look for the file first in the build tree, then in the source tree
4354228060Sbapt	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4355228060Sbapt	 # because $ac_f cannot contain `:'.
4356228060Sbapt	 test -f "$ac_f" ||
4357228060Sbapt	   case $ac_f in
4358228060Sbapt	   [\\/$]*) false;;
4359228060Sbapt	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4360228060Sbapt	   esac ||
4361228060Sbapt	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4362228060Sbaptecho "$as_me: error: cannot find input file: $ac_f" >&2;}
4363228060Sbapt   { (exit 1); exit 1; }; };;
4364228060Sbapt      esac
4365228060Sbapt      ac_file_inputs="$ac_file_inputs $ac_f"
4366228060Sbapt    done
436758551Skris
4368228060Sbapt    # Let's still pretend it is `configure' which instantiates (i.e., don't
4369228060Sbapt    # use $as_me), people would be surprised to read:
4370228060Sbapt    #    /* config.h.  Generated by config.status.  */
4371228060Sbapt    configure_input="Generated from "`IFS=:
4372228060Sbapt	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4373228060Sbapt    if test x"$ac_file" != x-; then
4374228060Sbapt      configure_input="$ac_file.  $configure_input"
4375228060Sbapt      { echo "$as_me:$LINENO: creating $ac_file" >&5
4376228060Sbaptecho "$as_me: creating $ac_file" >&6;}
4377228060Sbapt    fi
4378228060Sbapt
4379228060Sbapt    case $ac_tag in
4380228060Sbapt    *:-:* | *:-) cat >"$tmp/stdin";;
4381228060Sbapt    esac
4382228060Sbapt    ;;
438358551Skris  esac
438458551Skris
4385228060Sbapt  ac_dir=`$as_dirname -- "$ac_file" ||
4386228060Sbapt$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4387228060Sbapt	 X"$ac_file" : 'X\(//\)[^/]' \| \
4388228060Sbapt	 X"$ac_file" : 'X\(//\)$' \| \
4389228060Sbapt	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4390228060Sbaptecho X"$ac_file" |
4391228060Sbapt    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4392228060Sbapt	    s//\1/
4393228060Sbapt	    q
4394228060Sbapt	  }
4395228060Sbapt	  /^X\(\/\/\)[^/].*/{
4396228060Sbapt	    s//\1/
4397228060Sbapt	    q
4398228060Sbapt	  }
4399228060Sbapt	  /^X\(\/\/\)$/{
4400228060Sbapt	    s//\1/
4401228060Sbapt	    q
4402228060Sbapt	  }
4403228060Sbapt	  /^X\(\/\).*/{
4404228060Sbapt	    s//\1/
4405228060Sbapt	    q
4406228060Sbapt	  }
4407228060Sbapt	  s/.*/./; q'`
4408228060Sbapt  { as_dir="$ac_dir"
4409228060Sbapt  case $as_dir in #(
4410228060Sbapt  -*) as_dir=./$as_dir;;
4411228060Sbapt  esac
4412228060Sbapt  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4413228060Sbapt    as_dirs=
4414228060Sbapt    while :; do
4415228060Sbapt      case $as_dir in #(
4416228060Sbapt      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4417228060Sbapt      *) as_qdir=$as_dir;;
4418228060Sbapt      esac
4419228060Sbapt      as_dirs="'$as_qdir' $as_dirs"
4420228060Sbapt      as_dir=`$as_dirname -- "$as_dir" ||
4421228060Sbapt$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4422228060Sbapt	 X"$as_dir" : 'X\(//\)[^/]' \| \
4423228060Sbapt	 X"$as_dir" : 'X\(//\)$' \| \
4424228060Sbapt	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4425228060Sbaptecho X"$as_dir" |
4426228060Sbapt    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4427228060Sbapt	    s//\1/
4428228060Sbapt	    q
4429228060Sbapt	  }
4430228060Sbapt	  /^X\(\/\/\)[^/].*/{
4431228060Sbapt	    s//\1/
4432228060Sbapt	    q
4433228060Sbapt	  }
4434228060Sbapt	  /^X\(\/\/\)$/{
4435228060Sbapt	    s//\1/
4436228060Sbapt	    q
4437228060Sbapt	  }
4438228060Sbapt	  /^X\(\/\).*/{
4439228060Sbapt	    s//\1/
4440228060Sbapt	    q
4441228060Sbapt	  }
4442228060Sbapt	  s/.*/./; q'`
4443228060Sbapt      test -d "$as_dir" && break
4444228060Sbapt    done
4445228060Sbapt    test -z "$as_dirs" || eval "mkdir $as_dirs"
4446228060Sbapt  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4447228060Sbaptecho "$as_me: error: cannot create directory $as_dir" >&2;}
4448228060Sbapt   { (exit 1); exit 1; }; }; }
4449228060Sbapt  ac_builddir=.
445058551Skris
4451228060Sbaptcase "$ac_dir" in
4452228060Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4453228060Sbapt*)
4454228060Sbapt  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4455228060Sbapt  # A ".." for each directory in $ac_dir_suffix.
4456228060Sbapt  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4457228060Sbapt  case $ac_top_builddir_sub in
4458228060Sbapt  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4459228060Sbapt  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4460228060Sbapt  esac ;;
4461228060Sbaptesac
4462228060Sbaptac_abs_top_builddir=$ac_pwd
4463228060Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix
4464228060Sbapt# for backward compatibility:
4465228060Sbaptac_top_builddir=$ac_top_build_prefix
446658551Skris
4467228060Sbaptcase $srcdir in
4468228060Sbapt  .)  # We are building in place.
4469228060Sbapt    ac_srcdir=.
4470228060Sbapt    ac_top_srcdir=$ac_top_builddir_sub
4471228060Sbapt    ac_abs_top_srcdir=$ac_pwd ;;
4472228060Sbapt  [\\/]* | ?:[\\/]* )  # Absolute name.
4473228060Sbapt    ac_srcdir=$srcdir$ac_dir_suffix;
4474228060Sbapt    ac_top_srcdir=$srcdir
4475228060Sbapt    ac_abs_top_srcdir=$srcdir ;;
4476228060Sbapt  *) # Relative name.
4477228060Sbapt    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4478228060Sbapt    ac_top_srcdir=$ac_top_build_prefix$srcdir
4479228060Sbapt    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4480228060Sbaptesac
4481228060Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
448258551Skris
4483228060Sbapt
4484228060Sbapt  case $ac_mode in
4485228060Sbapt  :F)
4486228060Sbapt  #
4487228060Sbapt  # CONFIG_FILE
4488228060Sbapt  #
4489228060Sbapt
4490228060Sbapt_ACEOF
4491228060Sbapt
4492228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4493228060Sbapt# If the template does not know about datarootdir, expand it.
4494228060Sbapt# FIXME: This hack should be removed a few years after 2.60.
4495228060Sbaptac_datarootdir_hack=; ac_datarootdir_seen=
4496228060Sbapt
4497228060Sbaptcase `sed -n '/datarootdir/ {
4498228060Sbapt  p
4499228060Sbapt  q
4500228060Sbapt}
4501228060Sbapt/@datadir@/p
4502228060Sbapt/@docdir@/p
4503228060Sbapt/@infodir@/p
4504228060Sbapt/@localedir@/p
4505228060Sbapt/@mandir@/p
4506228060Sbapt' $ac_file_inputs` in
4507228060Sbapt*datarootdir*) ac_datarootdir_seen=yes;;
4508228060Sbapt*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4509228060Sbapt  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4510228060Sbaptecho "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4511228060Sbapt_ACEOF
4512228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4513228060Sbapt  ac_datarootdir_hack='
4514228060Sbapt  s&@datadir@&$datadir&g
4515228060Sbapt  s&@docdir@&$docdir&g
4516228060Sbapt  s&@infodir@&$infodir&g
4517228060Sbapt  s&@localedir@&$localedir&g
4518228060Sbapt  s&@mandir@&$mandir&g
4519228060Sbapt    s&\\\${datarootdir}&$datarootdir&g' ;;
4520228060Sbaptesac
4521228060Sbapt_ACEOF
4522228060Sbapt
4523228060Sbapt# Neutralize VPATH when `$srcdir' = `.'.
4524228060Sbapt# Shell code in configure.ac might set extrasub.
4525228060Sbapt# FIXME: do we really want to maintain this feature?
4526228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4527228060Sbapt  sed "$ac_vpsub
4528228060Sbapt$extrasub
4529228060Sbapt_ACEOF
4530228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4531228060Sbapt:t
4532228060Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4533228060Sbapts&@configure_input@&$configure_input&;t t
4534228060Sbapts&@top_builddir@&$ac_top_builddir_sub&;t t
4535228060Sbapts&@srcdir@&$ac_srcdir&;t t
4536228060Sbapts&@abs_srcdir@&$ac_abs_srcdir&;t t
4537228060Sbapts&@top_srcdir@&$ac_top_srcdir&;t t
4538228060Sbapts&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4539228060Sbapts&@builddir@&$ac_builddir&;t t
4540228060Sbapts&@abs_builddir@&$ac_abs_builddir&;t t
4541228060Sbapts&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4542228060Sbapt$ac_datarootdir_hack
4543228060Sbapt" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4544228060Sbapt
4545228060Sbapttest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4546228060Sbapt  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4547228060Sbapt  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4548228060Sbapt  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4549228060Sbaptwhich seems to be undefined.  Please make sure it is defined." >&5
4550228060Sbaptecho "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4551228060Sbaptwhich seems to be undefined.  Please make sure it is defined." >&2;}
4552228060Sbapt
4553228060Sbapt  rm -f "$tmp/stdin"
4554228060Sbapt  case $ac_file in
4555228060Sbapt  -) cat "$tmp/out"; rm -f "$tmp/out";;
4556228060Sbapt  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4557228060Sbapt  esac
4558228060Sbapt ;;
4559228060Sbapt
4560228060Sbapt
4561228060Sbapt
4562228060Sbapt  esac
4563228060Sbapt
4564228060Sbaptdone # for ac_tag
4565228060Sbapt
4566228060Sbapt
4567228060Sbapt{ (exit 0); exit 0; }
4568228060Sbapt_ACEOF
456958551Skrischmod +x $CONFIG_STATUS
4570228060Sbaptac_clean_files=$ac_clean_files_save
457158551Skris
4572228060Sbapt
4573228060Sbapt# configure is writing to config.log, and then calls config.status.
4574228060Sbapt# config.status does its own redirection, appending to config.log.
4575228060Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open
4576228060Sbapt# by configure, so config.status won't be able to write to it; its
4577228060Sbapt# output is simply discarded.  So we exec the FD to /dev/null,
4578228060Sbapt# effectively closing config.log, so it can be properly (re)opened and
4579228060Sbapt# appended to by config.status.  When coming back to configure, we
4580228060Sbapt# need to make the FD available again.
4581228060Sbaptif test "$no_create" != yes; then
4582228060Sbapt  ac_cs_success=:
4583228060Sbapt  ac_config_status_args=
4584228060Sbapt  test "$silent" = yes &&
4585228060Sbapt    ac_config_status_args="$ac_config_status_args --quiet"
4586228060Sbapt  exec 5>/dev/null
4587228060Sbapt  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4588228060Sbapt  exec 5>>config.log
4589228060Sbapt  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4590228060Sbapt  # would make configure fail if this is the last instruction.
4591228060Sbapt  $ac_cs_success || { (exit 1); exit 1; }
4592228060Sbaptfi
4593228060Sbapt
4594