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="main.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
630228060SbaptINSTALL
631228060SbaptINSTALL_PROGRAM
632228060SbaptINSTALL_DATA
633228060SbaptGPERF_LIBM
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
164958551Skris
1650228060Sbaptac_config_headers="$ac_config_headers config.h"
165158551Skris
1652228060Sbapt{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1653228060Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1654228060Sbaptset x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1655228060Sbaptif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1656228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
165758551Skriselse
1658228060Sbapt  cat >conftest.make <<\_ACEOF
1659228060SbaptSHELL = /bin/sh
166058551Skrisall:
1661228060Sbapt	@echo '@@@%%%=$(MAKE)=@@@%%%'
1662228060Sbapt_ACEOF
166358551Skris# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1664228060Sbaptcase `${MAKE-make} -f conftest.make 2>/dev/null` in
1665228060Sbapt  *@@@%%%=?*=@@@%%%*)
1666228060Sbapt    eval ac_cv_prog_make_${ac_make}_set=yes;;
1667228060Sbapt  *)
1668228060Sbapt    eval ac_cv_prog_make_${ac_make}_set=no;;
1669228060Sbaptesac
1670228060Sbaptrm -f conftest.make
167158551Skrisfi
1672228060Sbaptif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1673228060Sbapt  { echo "$as_me:$LINENO: result: yes" >&5
1674228060Sbaptecho "${ECHO_T}yes" >&6; }
167558551Skris  SET_MAKE=
167658551Skriselse
1677228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1678228060Sbaptecho "${ECHO_T}no" >&6; }
167958551Skris  SET_MAKE="MAKE=${MAKE-make}"
168058551Skrisfi
168158551Skris
1682228060Sbaptac_ext=c
1683228060Sbaptac_cpp='$CPP $CPPFLAGS'
1684228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1685228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1686228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
1687228060Sbaptif test -n "$ac_tool_prefix"; then
1688228060Sbapt  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1689228060Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2
1690228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1691228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1692228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1693228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1694228060Sbaptelse
1695228060Sbapt  if test -n "$CC"; then
1696228060Sbapt  ac_cv_prog_CC="$CC" # Let the user override the test.
1697228060Sbaptelse
1698228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699228060Sbaptfor as_dir in $PATH
1700228060Sbaptdo
1701228060Sbapt  IFS=$as_save_IFS
1702228060Sbapt  test -z "$as_dir" && as_dir=.
1703228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1704228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1705228060Sbapt    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1706228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707228060Sbapt    break 2
1708228060Sbapt  fi
1709228060Sbaptdone
1710228060Sbaptdone
1711228060SbaptIFS=$as_save_IFS
1712228060Sbapt
1713228060Sbaptfi
1714228060Sbaptfi
1715228060SbaptCC=$ac_cv_prog_CC
1716228060Sbaptif test -n "$CC"; then
1717228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1718228060Sbaptecho "${ECHO_T}$CC" >&6; }
1719228060Sbaptelse
1720228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1721228060Sbaptecho "${ECHO_T}no" >&6; }
1722228060Sbaptfi
1723228060Sbapt
1724228060Sbapt
1725228060Sbaptfi
1726228060Sbaptif test -z "$ac_cv_prog_CC"; then
1727228060Sbapt  ac_ct_CC=$CC
1728228060Sbapt  # Extract the first word of "gcc", so it can be a program name with args.
172958551Skrisset dummy gcc; ac_word=$2
1730228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1731228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1732228060Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1733228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
173458551Skriselse
1735228060Sbapt  if test -n "$ac_ct_CC"; then
1736228060Sbapt  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1737228060Sbaptelse
1738228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739228060Sbaptfor as_dir in $PATH
1740228060Sbaptdo
1741228060Sbapt  IFS=$as_save_IFS
1742228060Sbapt  test -z "$as_dir" && as_dir=.
1743228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1744228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1745228060Sbapt    ac_cv_prog_ac_ct_CC="gcc"
1746228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747228060Sbapt    break 2
1748228060Sbapt  fi
1749228060Sbaptdone
1750228060Sbaptdone
1751228060SbaptIFS=$as_save_IFS
1752228060Sbapt
1753228060Sbaptfi
1754228060Sbaptfi
1755228060Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC
1756228060Sbaptif test -n "$ac_ct_CC"; then
1757228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758228060Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; }
1759228060Sbaptelse
1760228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1761228060Sbaptecho "${ECHO_T}no" >&6; }
1762228060Sbaptfi
1763228060Sbapt
1764228060Sbapt  if test "x$ac_ct_CC" = x; then
1765228060Sbapt    CC=""
1766228060Sbapt  else
1767228060Sbapt    case $cross_compiling:$ac_tool_warned in
1768228060Sbaptyes:)
1769228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1770228060Sbaptwhose name does not start with the host triplet.  If you think this
1771228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
1772228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1773228060Sbaptwhose name does not start with the host triplet.  If you think this
1774228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
1775228060Sbaptac_tool_warned=yes ;;
1776228060Sbaptesac
1777228060Sbapt    CC=$ac_ct_CC
1778228060Sbapt  fi
1779228060Sbaptelse
1780228060Sbapt  CC="$ac_cv_prog_CC"
1781228060Sbaptfi
1782228060Sbapt
1783228060Sbaptif test -z "$CC"; then
1784228060Sbapt          if test -n "$ac_tool_prefix"; then
1785228060Sbapt    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1786228060Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2
1787228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1788228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1789228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1790228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1791228060Sbaptelse
179258551Skris  if test -n "$CC"; then
179358551Skris  ac_cv_prog_CC="$CC" # Let the user override the test.
179458551Skriselse
1795228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796228060Sbaptfor as_dir in $PATH
1797228060Sbaptdo
1798228060Sbapt  IFS=$as_save_IFS
1799228060Sbapt  test -z "$as_dir" && as_dir=.
1800228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1801228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1802228060Sbapt    ac_cv_prog_CC="${ac_tool_prefix}cc"
1803228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804228060Sbapt    break 2
1805228060Sbapt  fi
1806228060Sbaptdone
1807228060Sbaptdone
1808228060SbaptIFS=$as_save_IFS
1809228060Sbapt
181058551Skrisfi
181158551Skrisfi
1812228060SbaptCC=$ac_cv_prog_CC
181358551Skrisif test -n "$CC"; then
1814228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1815228060Sbaptecho "${ECHO_T}$CC" >&6; }
181658551Skriselse
1817228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1818228060Sbaptecho "${ECHO_T}no" >&6; }
181958551Skrisfi
182058551Skris
1821228060Sbapt
1822228060Sbapt  fi
1823228060Sbaptfi
182458551Skrisif test -z "$CC"; then
182558551Skris  # Extract the first word of "cc", so it can be a program name with args.
182658551Skrisset dummy cc; ac_word=$2
1827228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1828228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1829228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1830228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
183158551Skriselse
183258551Skris  if test -n "$CC"; then
183358551Skris  ac_cv_prog_CC="$CC" # Let the user override the test.
183458551Skriselse
183558551Skris  ac_prog_rejected=no
1836228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837228060Sbaptfor as_dir in $PATH
1838228060Sbaptdo
1839228060Sbapt  IFS=$as_save_IFS
1840228060Sbapt  test -z "$as_dir" && as_dir=.
1841228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1842228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1843228060Sbapt    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1844228060Sbapt       ac_prog_rejected=yes
1845228060Sbapt       continue
1846228060Sbapt     fi
1847228060Sbapt    ac_cv_prog_CC="cc"
1848228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849228060Sbapt    break 2
1850228060Sbapt  fi
1851228060Sbaptdone
1852228060Sbaptdone
1853228060SbaptIFS=$as_save_IFS
1854228060Sbapt
185558551Skrisif test $ac_prog_rejected = yes; then
185658551Skris  # We found a bogon in the path, so make sure we never use it.
185758551Skris  set dummy $ac_cv_prog_CC
185858551Skris  shift
1859228060Sbapt  if test $# != 0; then
186058551Skris    # We chose a different compiler from the bogus one.
186158551Skris    # However, it has the same basename, so the bogon will be chosen
186258551Skris    # first if we set CC to just the basename; use the full file name.
186358551Skris    shift
1864228060Sbapt    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
186558551Skris  fi
186658551Skrisfi
186758551Skrisfi
186858551Skrisfi
1869228060SbaptCC=$ac_cv_prog_CC
187058551Skrisif test -n "$CC"; then
1871228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1872228060Sbaptecho "${ECHO_T}$CC" >&6; }
187358551Skriselse
1874228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1875228060Sbaptecho "${ECHO_T}no" >&6; }
187658551Skrisfi
187758551Skris
1878228060Sbapt
1879228060Sbaptfi
1880228060Sbaptif test -z "$CC"; then
1881228060Sbapt  if test -n "$ac_tool_prefix"; then
1882228060Sbapt  for ac_prog in cl.exe
1883228060Sbapt  do
1884228060Sbapt    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885228060Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1886228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1887228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1888228060Sbaptif test "${ac_cv_prog_CC+set}" = set; then
1889228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
189067064Sobrienelse
189167064Sobrien  if test -n "$CC"; then
189267064Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
189367064Sobrienelse
1894228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895228060Sbaptfor as_dir in $PATH
1896228060Sbaptdo
1897228060Sbapt  IFS=$as_save_IFS
1898228060Sbapt  test -z "$as_dir" && as_dir=.
1899228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1900228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901228060Sbapt    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1902228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903228060Sbapt    break 2
1904228060Sbapt  fi
1905228060Sbaptdone
1906228060Sbaptdone
1907228060SbaptIFS=$as_save_IFS
1908228060Sbapt
190967064Sobrienfi
191067064Sobrienfi
1911228060SbaptCC=$ac_cv_prog_CC
191267064Sobrienif test -n "$CC"; then
1913228060Sbapt  { echo "$as_me:$LINENO: result: $CC" >&5
1914228060Sbaptecho "${ECHO_T}$CC" >&6; }
191567064Sobrienelse
1916228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1917228060Sbaptecho "${ECHO_T}no" >&6; }
191867064Sobrienfi
1919228060Sbapt
1920228060Sbapt
1921228060Sbapt    test -n "$CC" && break
1922228060Sbapt  done
1923228060Sbaptfi
1924228060Sbaptif test -z "$CC"; then
1925228060Sbapt  ac_ct_CC=$CC
1926228060Sbapt  for ac_prog in cl.exe
1927228060Sbaptdo
1928228060Sbapt  # Extract the first word of "$ac_prog", so it can be a program name with args.
1929228060Sbaptset dummy $ac_prog; ac_word=$2
1930228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1931228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932228060Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
1934228060Sbaptelse
1935228060Sbapt  if test -n "$ac_ct_CC"; then
1936228060Sbapt  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937228060Sbaptelse
1938228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939228060Sbaptfor as_dir in $PATH
1940228060Sbaptdo
1941228060Sbapt  IFS=$as_save_IFS
1942228060Sbapt  test -z "$as_dir" && as_dir=.
1943228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
1944228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945228060Sbapt    ac_cv_prog_ac_ct_CC="$ac_prog"
1946228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947228060Sbapt    break 2
194867064Sobrien  fi
1949228060Sbaptdone
1950228060Sbaptdone
1951228060SbaptIFS=$as_save_IFS
1952228060Sbapt
195358551Skrisfi
1954228060Sbaptfi
1955228060Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC
1956228060Sbaptif test -n "$ac_ct_CC"; then
1957228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958228060Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; }
1959228060Sbaptelse
1960228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
1961228060Sbaptecho "${ECHO_T}no" >&6; }
1962228060Sbaptfi
196358551Skris
196458551Skris
1965228060Sbapt  test -n "$ac_ct_CC" && break
1966228060Sbaptdone
196758551Skris
1968228060Sbapt  if test "x$ac_ct_CC" = x; then
1969228060Sbapt    CC=""
1970228060Sbapt  else
1971228060Sbapt    case $cross_compiling:$ac_tool_warned in
1972228060Sbaptyes:)
1973228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1974228060Sbaptwhose name does not start with the host triplet.  If you think this
1975228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
1976228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1977228060Sbaptwhose name does not start with the host triplet.  If you think this
1978228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
1979228060Sbaptac_tool_warned=yes ;;
1980228060Sbaptesac
1981228060Sbapt    CC=$ac_ct_CC
1982228060Sbapt  fi
1983228060Sbaptfi
198467064Sobrien
1985228060Sbaptfi
198667064Sobrien
1987228060Sbapt
1988228060Sbapttest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1989228060SbaptSee \`config.log' for more details." >&5
1990228060Sbaptecho "$as_me: error: no acceptable C compiler found in \$PATH
1991228060SbaptSee \`config.log' for more details." >&2;}
1992228060Sbapt   { (exit 1); exit 1; }; }
1993228060Sbapt
1994228060Sbapt# Provide some information about the compiler.
1995228060Sbaptecho "$as_me:$LINENO: checking for C compiler version" >&5
1996228060Sbaptac_compiler=`set X $ac_compile; echo $2`
1997228060Sbapt{ (ac_try="$ac_compiler --version >&5"
1998228060Sbaptcase "(($ac_try" in
1999228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000228060Sbapt  *) ac_try_echo=$ac_try;;
2001228060Sbaptesac
2002228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2003228060Sbapt  (eval "$ac_compiler --version >&5") 2>&5
2004228060Sbapt  ac_status=$?
2005228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006228060Sbapt  (exit $ac_status); }
2007228060Sbapt{ (ac_try="$ac_compiler -v >&5"
2008228060Sbaptcase "(($ac_try" in
2009228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010228060Sbapt  *) ac_try_echo=$ac_try;;
2011228060Sbaptesac
2012228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2013228060Sbapt  (eval "$ac_compiler -v >&5") 2>&5
2014228060Sbapt  ac_status=$?
2015228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016228060Sbapt  (exit $ac_status); }
2017228060Sbapt{ (ac_try="$ac_compiler -V >&5"
2018228060Sbaptcase "(($ac_try" in
2019228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020228060Sbapt  *) ac_try_echo=$ac_try;;
2021228060Sbaptesac
2022228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2023228060Sbapt  (eval "$ac_compiler -V >&5") 2>&5
2024228060Sbapt  ac_status=$?
2025228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026228060Sbapt  (exit $ac_status); }
2027228060Sbapt
2028228060Sbaptcat >conftest.$ac_ext <<_ACEOF
2029228060Sbapt/* confdefs.h.  */
2030228060Sbapt_ACEOF
2031228060Sbaptcat confdefs.h >>conftest.$ac_ext
2032228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2033228060Sbapt/* end confdefs.h.  */
2034228060Sbapt
2035228060Sbaptint
2036228060Sbaptmain ()
2037228060Sbapt{
2038228060Sbapt
2039228060Sbapt  ;
2040228060Sbapt  return 0;
2041228060Sbapt}
2042228060Sbapt_ACEOF
2043228060Sbaptac_clean_files_save=$ac_clean_files
2044228060Sbaptac_clean_files="$ac_clean_files a.out a.exe b.out"
2045228060Sbapt# Try to create an executable without -o first, disregard a.out.
2046228060Sbapt# It will help us diagnose broken compilers, and finding out an intuition
2047228060Sbapt# of exeext.
2048228060Sbapt{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2049228060Sbaptecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2050228060Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2051228060Sbapt#
2052228060Sbapt# List of possible output files, starting from the most likely.
2053228060Sbapt# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2054228060Sbapt# only as a last resort.  b.out is created by i960 compilers.
2055228060Sbaptac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2056228060Sbapt#
2057228060Sbapt# The IRIX 6 linker writes into existing files which may not be
2058228060Sbapt# executable, retaining their permissions.  Remove them first so a
2059228060Sbapt# subsequent execution test works.
2060228060Sbaptac_rmfiles=
2061228060Sbaptfor ac_file in $ac_files
2062228060Sbaptdo
2063228060Sbapt  case $ac_file in
2064228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2065228060Sbapt    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2066228060Sbapt  esac
2067228060Sbaptdone
2068228060Sbaptrm -f $ac_rmfiles
2069228060Sbapt
2070228060Sbaptif { (ac_try="$ac_link_default"
2071228060Sbaptcase "(($ac_try" in
2072228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073228060Sbapt  *) ac_try_echo=$ac_try;;
2074228060Sbaptesac
2075228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076228060Sbapt  (eval "$ac_link_default") 2>&5
2077228060Sbapt  ac_status=$?
2078228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079228060Sbapt  (exit $ac_status); }; then
2080228060Sbapt  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2081228060Sbapt# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2082228060Sbapt# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2083228060Sbapt# so that the user can short-circuit this test for compilers unknown to
2084228060Sbapt# Autoconf.
2085228060Sbaptfor ac_file in $ac_files ''
2086228060Sbaptdo
2087228060Sbapt  test -f "$ac_file" || continue
2088228060Sbapt  case $ac_file in
2089228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2090228060Sbapt	;;
2091228060Sbapt    [ab].out )
2092228060Sbapt	# We found the default executable, but exeext='' is most
2093228060Sbapt	# certainly right.
2094228060Sbapt	break;;
2095228060Sbapt    *.* )
2096228060Sbapt        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2097228060Sbapt	then :; else
2098228060Sbapt	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2099228060Sbapt	fi
2100228060Sbapt	# We set ac_cv_exeext here because the later test for it is not
2101228060Sbapt	# safe: cross compilers may not add the suffix if given an `-o'
2102228060Sbapt	# argument, so we may need to know it at that point already.
2103228060Sbapt	# Even if this section looks crufty: it has the advantage of
2104228060Sbapt	# actually working.
2105228060Sbapt	break;;
2106228060Sbapt    * )
2107228060Sbapt	break;;
2108228060Sbapt  esac
2109228060Sbaptdone
2110228060Sbapttest "$ac_cv_exeext" = no && ac_cv_exeext=
2111228060Sbapt
2112228060Sbaptelse
2113228060Sbapt  ac_file=''
2114228060Sbaptfi
2115228060Sbapt
2116228060Sbapt{ echo "$as_me:$LINENO: result: $ac_file" >&5
2117228060Sbaptecho "${ECHO_T}$ac_file" >&6; }
2118228060Sbaptif test -z "$ac_file"; then
2119228060Sbapt  echo "$as_me: failed program was:" >&5
2120228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2121228060Sbapt
2122228060Sbapt{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2123228060SbaptSee \`config.log' for more details." >&5
2124228060Sbaptecho "$as_me: error: C compiler cannot create executables
2125228060SbaptSee \`config.log' for more details." >&2;}
2126228060Sbapt   { (exit 77); exit 77; }; }
2127228060Sbaptfi
2128228060Sbapt
2129228060Sbaptac_exeext=$ac_cv_exeext
2130228060Sbapt
2131228060Sbapt# Check that the compiler produces executables we can run.  If not, either
2132228060Sbapt# the compiler is broken, or we cross compile.
2133228060Sbapt{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2134228060Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2135228060Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2136228060Sbapt# If not cross compiling, check that we can run a simple program.
2137228060Sbaptif test "$cross_compiling" != yes; then
2138228060Sbapt  if { ac_try='./$ac_file'
2139228060Sbapt  { (case "(($ac_try" in
2140228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141228060Sbapt  *) ac_try_echo=$ac_try;;
2142228060Sbaptesac
2143228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144228060Sbapt  (eval "$ac_try") 2>&5
2145228060Sbapt  ac_status=$?
2146228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147228060Sbapt  (exit $ac_status); }; }; then
2148228060Sbapt    cross_compiling=no
214958551Skris  else
2150228060Sbapt    if test "$cross_compiling" = maybe; then
2151228060Sbapt	cross_compiling=yes
2152228060Sbapt    else
2153228060Sbapt	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2154228060SbaptIf you meant to cross compile, use \`--host'.
2155228060SbaptSee \`config.log' for more details." >&5
2156228060Sbaptecho "$as_me: error: cannot run C compiled programs.
2157228060SbaptIf you meant to cross compile, use \`--host'.
2158228060SbaptSee \`config.log' for more details." >&2;}
2159228060Sbapt   { (exit 1); exit 1; }; }
2160228060Sbapt    fi
216158551Skris  fi
2162228060Sbaptfi
2163228060Sbapt{ echo "$as_me:$LINENO: result: yes" >&5
2164228060Sbaptecho "${ECHO_T}yes" >&6; }
2165228060Sbapt
2166228060Sbaptrm -f a.out a.exe conftest$ac_cv_exeext b.out
2167228060Sbaptac_clean_files=$ac_clean_files_save
2168228060Sbapt# Check that the compiler produces executables we can run.  If not, either
2169228060Sbapt# the compiler is broken, or we cross compile.
2170228060Sbapt{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2171228060Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2172228060Sbapt{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2173228060Sbaptecho "${ECHO_T}$cross_compiling" >&6; }
2174228060Sbapt
2175228060Sbapt{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2176228060Sbaptecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2177228060Sbaptif { (ac_try="$ac_link"
2178228060Sbaptcase "(($ac_try" in
2179228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180228060Sbapt  *) ac_try_echo=$ac_try;;
2181228060Sbaptesac
2182228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2183228060Sbapt  (eval "$ac_link") 2>&5
2184228060Sbapt  ac_status=$?
2185228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186228060Sbapt  (exit $ac_status); }; then
2187228060Sbapt  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188228060Sbapt# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2189228060Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with
2190228060Sbapt# `rm'.
2191228060Sbaptfor ac_file in conftest.exe conftest conftest.*; do
2192228060Sbapt  test -f "$ac_file" || continue
2193228060Sbapt  case $ac_file in
2194228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2195228060Sbapt    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196228060Sbapt	  break;;
2197228060Sbapt    * ) break;;
2198228060Sbapt  esac
2199228060Sbaptdone
220058551Skriselse
2201228060Sbapt  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2202228060SbaptSee \`config.log' for more details." >&5
2203228060Sbaptecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2204228060SbaptSee \`config.log' for more details." >&2;}
2205228060Sbapt   { (exit 1); exit 1; }; }
220658551Skrisfi
220758551Skris
2208228060Sbaptrm -f conftest$ac_cv_exeext
2209228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2210228060Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6; }
2211228060Sbapt
2212228060Sbaptrm -f conftest.$ac_ext
2213228060SbaptEXEEXT=$ac_cv_exeext
2214228060Sbaptac_exeext=$EXEEXT
2215228060Sbapt{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2216228060Sbaptecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2217228060Sbaptif test "${ac_cv_objext+set}" = set; then
2218228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2219228060Sbaptelse
2220228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2221228060Sbapt/* confdefs.h.  */
2222228060Sbapt_ACEOF
2223228060Sbaptcat confdefs.h >>conftest.$ac_ext
2224228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2225228060Sbapt/* end confdefs.h.  */
2226228060Sbapt
2227228060Sbaptint
2228228060Sbaptmain ()
2229228060Sbapt{
2230228060Sbapt
2231228060Sbapt  ;
2232228060Sbapt  return 0;
2233228060Sbapt}
2234228060Sbapt_ACEOF
2235228060Sbaptrm -f conftest.o conftest.obj
2236228060Sbaptif { (ac_try="$ac_compile"
2237228060Sbaptcase "(($ac_try" in
2238228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239228060Sbapt  *) ac_try_echo=$ac_try;;
2240228060Sbaptesac
2241228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242228060Sbapt  (eval "$ac_compile") 2>&5
2243228060Sbapt  ac_status=$?
2244228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245228060Sbapt  (exit $ac_status); }; then
2246228060Sbapt  for ac_file in conftest.o conftest.obj conftest.*; do
2247228060Sbapt  test -f "$ac_file" || continue;
2248228060Sbapt  case $ac_file in
2249228060Sbapt    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2250228060Sbapt    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251228060Sbapt       break;;
2252228060Sbapt  esac
2253228060Sbaptdone
2254228060Sbaptelse
2255228060Sbapt  echo "$as_me: failed program was:" >&5
2256228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2257228060Sbapt
2258228060Sbapt{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259228060SbaptSee \`config.log' for more details." >&5
2260228060Sbaptecho "$as_me: error: cannot compute suffix of object files: cannot compile
2261228060SbaptSee \`config.log' for more details." >&2;}
2262228060Sbapt   { (exit 1); exit 1; }; }
226358551Skrisfi
226458551Skris
2265228060Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext
2266228060Sbaptfi
2267228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268228060Sbaptecho "${ECHO_T}$ac_cv_objext" >&6; }
2269228060SbaptOBJEXT=$ac_cv_objext
2270228060Sbaptac_objext=$OBJEXT
2271228060Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2272228060Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2273228060Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then
2274228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
227558551Skriselse
2276228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2277228060Sbapt/* confdefs.h.  */
2278228060Sbapt_ACEOF
2279228060Sbaptcat confdefs.h >>conftest.$ac_ext
2280228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2281228060Sbapt/* end confdefs.h.  */
2282228060Sbapt
2283228060Sbaptint
2284228060Sbaptmain ()
2285228060Sbapt{
2286228060Sbapt#ifndef __GNUC__
2287228060Sbapt       choke me
228858551Skris#endif
2289228060Sbapt
2290228060Sbapt  ;
2291228060Sbapt  return 0;
2292228060Sbapt}
2293228060Sbapt_ACEOF
2294228060Sbaptrm -f conftest.$ac_objext
2295228060Sbaptif { (ac_try="$ac_compile"
2296228060Sbaptcase "(($ac_try" in
2297228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298228060Sbapt  *) ac_try_echo=$ac_try;;
2299228060Sbaptesac
2300228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2302228060Sbapt  ac_status=$?
2303228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2304228060Sbapt  rm -f conftest.er1
2305228060Sbapt  cat conftest.err >&5
2306228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307228060Sbapt  (exit $ac_status); } && {
2308228060Sbapt	 test -z "$ac_c_werror_flag" ||
2309228060Sbapt	 test ! -s conftest.err
2310228060Sbapt       } && test -s conftest.$ac_objext; then
2311228060Sbapt  ac_compiler_gnu=yes
231258551Skriselse
2313228060Sbapt  echo "$as_me: failed program was:" >&5
2314228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2315228060Sbapt
2316228060Sbapt	ac_compiler_gnu=no
231758551Skrisfi
2318228060Sbapt
2319228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320228060Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu
2321228060Sbapt
232258551Skrisfi
2323228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324228060Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2325228060SbaptGCC=`test $ac_compiler_gnu = yes && echo yes`
2326228060Sbaptac_test_CFLAGS=${CFLAGS+set}
2327228060Sbaptac_save_CFLAGS=$CFLAGS
2328228060Sbapt{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2329228060Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2330228060Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then
2331228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2332228060Sbaptelse
2333228060Sbapt  ac_save_c_werror_flag=$ac_c_werror_flag
2334228060Sbapt   ac_c_werror_flag=yes
2335228060Sbapt   ac_cv_prog_cc_g=no
2336228060Sbapt   CFLAGS="-g"
2337228060Sbapt   cat >conftest.$ac_ext <<_ACEOF
2338228060Sbapt/* confdefs.h.  */
2339228060Sbapt_ACEOF
2340228060Sbaptcat confdefs.h >>conftest.$ac_ext
2341228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2342228060Sbapt/* end confdefs.h.  */
234358551Skris
2344228060Sbaptint
2345228060Sbaptmain ()
2346228060Sbapt{
234758551Skris
2348228060Sbapt  ;
2349228060Sbapt  return 0;
2350228060Sbapt}
2351228060Sbapt_ACEOF
2352228060Sbaptrm -f conftest.$ac_objext
2353228060Sbaptif { (ac_try="$ac_compile"
2354228060Sbaptcase "(($ac_try" in
2355228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356228060Sbapt  *) ac_try_echo=$ac_try;;
2357228060Sbaptesac
2358228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2360228060Sbapt  ac_status=$?
2361228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2362228060Sbapt  rm -f conftest.er1
2363228060Sbapt  cat conftest.err >&5
2364228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365228060Sbapt  (exit $ac_status); } && {
2366228060Sbapt	 test -z "$ac_c_werror_flag" ||
2367228060Sbapt	 test ! -s conftest.err
2368228060Sbapt       } && test -s conftest.$ac_objext; then
2369228060Sbapt  ac_cv_prog_cc_g=yes
237067064Sobrienelse
2371228060Sbapt  echo "$as_me: failed program was:" >&5
2372228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
237367064Sobrien
2374228060Sbapt	CFLAGS=""
2375228060Sbapt      cat >conftest.$ac_ext <<_ACEOF
2376228060Sbapt/* confdefs.h.  */
2377228060Sbapt_ACEOF
2378228060Sbaptcat confdefs.h >>conftest.$ac_ext
2379228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2380228060Sbapt/* end confdefs.h.  */
2381228060Sbapt
2382228060Sbaptint
2383228060Sbaptmain ()
2384228060Sbapt{
2385228060Sbapt
2386228060Sbapt  ;
2387228060Sbapt  return 0;
2388228060Sbapt}
2389228060Sbapt_ACEOF
2390228060Sbaptrm -f conftest.$ac_objext
2391228060Sbaptif { (ac_try="$ac_compile"
2392228060Sbaptcase "(($ac_try" in
2393228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394228060Sbapt  *) ac_try_echo=$ac_try;;
2395228060Sbaptesac
2396228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2397228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2398228060Sbapt  ac_status=$?
2399228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2400228060Sbapt  rm -f conftest.er1
2401228060Sbapt  cat conftest.err >&5
2402228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403228060Sbapt  (exit $ac_status); } && {
2404228060Sbapt	 test -z "$ac_c_werror_flag" ||
2405228060Sbapt	 test ! -s conftest.err
2406228060Sbapt       } && test -s conftest.$ac_objext; then
2407228060Sbapt  :
240858551Skriselse
2409228060Sbapt  echo "$as_me: failed program was:" >&5
2410228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2411228060Sbapt
2412228060Sbapt	ac_c_werror_flag=$ac_save_c_werror_flag
2413228060Sbapt	 CFLAGS="-g"
2414228060Sbapt	 cat >conftest.$ac_ext <<_ACEOF
2415228060Sbapt/* confdefs.h.  */
2416228060Sbapt_ACEOF
2417228060Sbaptcat confdefs.h >>conftest.$ac_ext
2418228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2419228060Sbapt/* end confdefs.h.  */
2420228060Sbapt
2421228060Sbaptint
2422228060Sbaptmain ()
2423228060Sbapt{
2424228060Sbapt
2425228060Sbapt  ;
2426228060Sbapt  return 0;
2427228060Sbapt}
2428228060Sbapt_ACEOF
2429228060Sbaptrm -f conftest.$ac_objext
2430228060Sbaptif { (ac_try="$ac_compile"
2431228060Sbaptcase "(($ac_try" in
2432228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433228060Sbapt  *) ac_try_echo=$ac_try;;
2434228060Sbaptesac
2435228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2437228060Sbapt  ac_status=$?
2438228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2439228060Sbapt  rm -f conftest.er1
2440228060Sbapt  cat conftest.err >&5
2441228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442228060Sbapt  (exit $ac_status); } && {
2443228060Sbapt	 test -z "$ac_c_werror_flag" ||
2444228060Sbapt	 test ! -s conftest.err
2445228060Sbapt       } && test -s conftest.$ac_objext; then
244658551Skris  ac_cv_prog_cc_g=yes
244758551Skriselse
2448228060Sbapt  echo "$as_me: failed program was:" >&5
2449228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2450228060Sbapt
2451228060Sbapt
245258551Skrisfi
245358551Skris
2454228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
245558551Skrisfi
245658551Skris
2457228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458228060Sbaptfi
2459228060Sbapt
2460228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461228060Sbapt   ac_c_werror_flag=$ac_save_c_werror_flag
2462228060Sbaptfi
2463228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464228060Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
246567064Sobrienif test "$ac_test_CFLAGS" = set; then
2466228060Sbapt  CFLAGS=$ac_save_CFLAGS
246767064Sobrienelif test $ac_cv_prog_cc_g = yes; then
246867064Sobrien  if test "$GCC" = yes; then
246958551Skris    CFLAGS="-g -O2"
247058551Skris  else
247167064Sobrien    CFLAGS="-g"
247267064Sobrien  fi
247367064Sobrienelse
247467064Sobrien  if test "$GCC" = yes; then
247558551Skris    CFLAGS="-O2"
247667064Sobrien  else
247767064Sobrien    CFLAGS=
247858551Skris  fi
247958551Skrisfi
2480228060Sbapt{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2481228060Sbaptecho $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2482228060Sbaptif test "${ac_cv_prog_cc_c89+set}" = set; then
2483228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2484228060Sbaptelse
2485228060Sbapt  ac_cv_prog_cc_c89=no
2486228060Sbaptac_save_CC=$CC
2487228060Sbaptcat >conftest.$ac_ext <<_ACEOF
2488228060Sbapt/* confdefs.h.  */
2489228060Sbapt_ACEOF
2490228060Sbaptcat confdefs.h >>conftest.$ac_ext
2491228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2492228060Sbapt/* end confdefs.h.  */
2493228060Sbapt#include <stdarg.h>
2494228060Sbapt#include <stdio.h>
2495228060Sbapt#include <sys/types.h>
2496228060Sbapt#include <sys/stat.h>
2497228060Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498228060Sbaptstruct buf { int x; };
2499228060SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int);
2500228060Sbaptstatic char *e (p, i)
2501228060Sbapt     char **p;
2502228060Sbapt     int i;
2503228060Sbapt{
2504228060Sbapt  return p[i];
2505228060Sbapt}
2506228060Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...)
2507228060Sbapt{
2508228060Sbapt  char *s;
2509228060Sbapt  va_list v;
2510228060Sbapt  va_start (v,p);
2511228060Sbapt  s = g (p, va_arg (v,int));
2512228060Sbapt  va_end (v);
2513228060Sbapt  return s;
2514228060Sbapt}
251558551Skris
2516228060Sbapt/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517228060Sbapt   function prototypes and stuff, but not '\xHH' hex character constants.
2518228060Sbapt   These don't provoke an error unfortunately, instead are silently treated
2519228060Sbapt   as 'x'.  The following induces an error, until -std is added to get
2520228060Sbapt   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521228060Sbapt   array size at least.  It's necessary to write '\x00'==0 to get something
2522228060Sbapt   that's true only with -std.  */
2523228060Sbaptint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524228060Sbapt
2525228060Sbapt/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2526228060Sbapt   inside strings and character constants.  */
2527228060Sbapt#define FOO(x) 'x'
2528228060Sbaptint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2529228060Sbapt
2530228060Sbaptint test (int i, double x);
2531228060Sbaptstruct s1 {int (*f) (int a);};
2532228060Sbaptstruct s2 {int (*f) (double a);};
2533228060Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534228060Sbaptint argc;
2535228060Sbaptchar **argv;
2536228060Sbaptint
2537228060Sbaptmain ()
2538228060Sbapt{
2539228060Sbaptreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2540228060Sbapt  ;
2541228060Sbapt  return 0;
2542228060Sbapt}
2543228060Sbapt_ACEOF
2544228060Sbaptfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2545228060Sbapt	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546228060Sbaptdo
2547228060Sbapt  CC="$ac_save_CC $ac_arg"
2548228060Sbapt  rm -f conftest.$ac_objext
2549228060Sbaptif { (ac_try="$ac_compile"
2550228060Sbaptcase "(($ac_try" in
2551228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552228060Sbapt  *) ac_try_echo=$ac_try;;
2553228060Sbaptesac
2554228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555228060Sbapt  (eval "$ac_compile") 2>conftest.er1
2556228060Sbapt  ac_status=$?
2557228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2558228060Sbapt  rm -f conftest.er1
2559228060Sbapt  cat conftest.err >&5
2560228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561228060Sbapt  (exit $ac_status); } && {
2562228060Sbapt	 test -z "$ac_c_werror_flag" ||
2563228060Sbapt	 test ! -s conftest.err
2564228060Sbapt       } && test -s conftest.$ac_objext; then
2565228060Sbapt  ac_cv_prog_cc_c89=$ac_arg
2566228060Sbaptelse
2567228060Sbapt  echo "$as_me: failed program was:" >&5
2568228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2569228060Sbapt
2570228060Sbapt
2571228060Sbaptfi
2572228060Sbapt
2573228060Sbaptrm -f core conftest.err conftest.$ac_objext
2574228060Sbapt  test "x$ac_cv_prog_cc_c89" != "xno" && break
2575228060Sbaptdone
2576228060Sbaptrm -f conftest.$ac_ext
2577228060SbaptCC=$ac_save_CC
2578228060Sbapt
2579228060Sbaptfi
2580228060Sbapt# AC_CACHE_VAL
2581228060Sbaptcase "x$ac_cv_prog_cc_c89" in
2582228060Sbapt  x)
2583228060Sbapt    { echo "$as_me:$LINENO: result: none needed" >&5
2584228060Sbaptecho "${ECHO_T}none needed" >&6; } ;;
2585228060Sbapt  xno)
2586228060Sbapt    { echo "$as_me:$LINENO: result: unsupported" >&5
2587228060Sbaptecho "${ECHO_T}unsupported" >&6; } ;;
2588228060Sbapt  *)
2589228060Sbapt    CC="$CC $ac_cv_prog_cc_c89"
2590228060Sbapt    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2591228060Sbaptecho "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2592228060Sbaptesac
2593228060Sbapt
2594228060Sbapt
2595228060Sbaptac_ext=c
2596228060Sbaptac_cpp='$CPP $CPPFLAGS'
2597228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2600228060Sbapt
2601228060Sbapt                      ac_ext=c
2602228060Sbaptac_cpp='$CPP $CPPFLAGS'
2603228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2606228060Sbapt{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607228060Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
260858551Skris# On Suns, sometimes $CPP names a directory.
260958551Skrisif test -n "$CPP" && test -d "$CPP"; then
261058551Skris  CPP=
261158551Skrisfi
261258551Skrisif test -z "$CPP"; then
2613228060Sbapt  if test "${ac_cv_prog_CPP+set}" = set; then
2614228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
261558551Skriselse
2616228060Sbapt      # Double quotes because CPP needs to be expanded
2617228060Sbapt    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2618228060Sbapt    do
2619228060Sbapt      ac_preproc_ok=false
2620228060Sbaptfor ac_c_preproc_warn_flag in '' yes
2621228060Sbaptdo
2622228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
2623228060Sbapt  # with a fresh cross-compiler works.
2624228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2625228060Sbapt  # <limits.h> exists even on freestanding compilers.
262658551Skris  # On the NeXT, cc -E runs the code through the compiler's parser,
2627228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
2628228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2629228060Sbapt/* confdefs.h.  */
2630228060Sbapt_ACEOF
2631228060Sbaptcat confdefs.h >>conftest.$ac_ext
2632228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2633228060Sbapt/* end confdefs.h.  */
2634228060Sbapt#ifdef __STDC__
2635228060Sbapt# include <limits.h>
2636228060Sbapt#else
2637228060Sbapt# include <assert.h>
2638228060Sbapt#endif
2639228060Sbapt		     Syntax error
2640228060Sbapt_ACEOF
2641228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2642228060Sbaptcase "(($ac_try" in
2643228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644228060Sbapt  *) ac_try_echo=$ac_try;;
2645228060Sbaptesac
2646228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2648228060Sbapt  ac_status=$?
2649228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2650228060Sbapt  rm -f conftest.er1
2651228060Sbapt  cat conftest.err >&5
2652228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653228060Sbapt  (exit $ac_status); } >/dev/null && {
2654228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2655228060Sbapt	 test ! -s conftest.err
2656228060Sbapt       }; then
265758551Skris  :
265858551Skriselse
2659228060Sbapt  echo "$as_me: failed program was:" >&5
2660228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2661228060Sbapt
2662228060Sbapt  # Broken: fails on valid input.
2663228060Sbaptcontinue
2664228060Sbaptfi
2665228060Sbapt
2666228060Sbaptrm -f conftest.err conftest.$ac_ext
2667228060Sbapt
2668228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
2669228060Sbapt  # can be detected and how.
2670228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2671228060Sbapt/* confdefs.h.  */
2672228060Sbapt_ACEOF
2673228060Sbaptcat confdefs.h >>conftest.$ac_ext
2674228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2675228060Sbapt/* end confdefs.h.  */
2676228060Sbapt#include <ac_nonexistent.h>
2677228060Sbapt_ACEOF
2678228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2679228060Sbaptcase "(($ac_try" in
2680228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681228060Sbapt  *) ac_try_echo=$ac_try;;
2682228060Sbaptesac
2683228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2685228060Sbapt  ac_status=$?
2686228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2687228060Sbapt  rm -f conftest.er1
2688228060Sbapt  cat conftest.err >&5
2689228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690228060Sbapt  (exit $ac_status); } >/dev/null && {
2691228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2692228060Sbapt	 test ! -s conftest.err
2693228060Sbapt       }; then
2694228060Sbapt  # Broken: success on invalid input.
2695228060Sbaptcontinue
269658551Skriselse
2697228060Sbapt  echo "$as_me: failed program was:" >&5
2698228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2699228060Sbapt
2700228060Sbapt  # Passes both tests.
2701228060Sbaptac_preproc_ok=:
2702228060Sbaptbreak
270358551Skrisfi
2704228060Sbapt
2705228060Sbaptrm -f conftest.err conftest.$ac_ext
2706228060Sbapt
2707228060Sbaptdone
2708228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2709228060Sbaptrm -f conftest.err conftest.$ac_ext
2710228060Sbaptif $ac_preproc_ok; then
2711228060Sbapt  break
271258551Skrisfi
2713228060Sbapt
2714228060Sbapt    done
2715228060Sbapt    ac_cv_prog_CPP=$CPP
2716228060Sbapt
271767064Sobrienfi
2718228060Sbapt  CPP=$ac_cv_prog_CPP
2719228060Sbaptelse
2720228060Sbapt  ac_cv_prog_CPP=$CPP
272158551Skrisfi
2722228060Sbapt{ echo "$as_me:$LINENO: result: $CPP" >&5
2723228060Sbaptecho "${ECHO_T}$CPP" >&6; }
2724228060Sbaptac_preproc_ok=false
2725228060Sbaptfor ac_c_preproc_warn_flag in '' yes
2726228060Sbaptdo
2727228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
2728228060Sbapt  # with a fresh cross-compiler works.
2729228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2730228060Sbapt  # <limits.h> exists even on freestanding compilers.
2731228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
2732228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
2733228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2734228060Sbapt/* confdefs.h.  */
2735228060Sbapt_ACEOF
2736228060Sbaptcat confdefs.h >>conftest.$ac_ext
2737228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2738228060Sbapt/* end confdefs.h.  */
2739228060Sbapt#ifdef __STDC__
2740228060Sbapt# include <limits.h>
2741228060Sbapt#else
2742228060Sbapt# include <assert.h>
2743228060Sbapt#endif
2744228060Sbapt		     Syntax error
2745228060Sbapt_ACEOF
2746228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2747228060Sbaptcase "(($ac_try" in
2748228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749228060Sbapt  *) ac_try_echo=$ac_try;;
2750228060Sbaptesac
2751228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2753228060Sbapt  ac_status=$?
2754228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2755228060Sbapt  rm -f conftest.er1
2756228060Sbapt  cat conftest.err >&5
2757228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758228060Sbapt  (exit $ac_status); } >/dev/null && {
2759228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2760228060Sbapt	 test ! -s conftest.err
2761228060Sbapt       }; then
2762228060Sbapt  :
276358551Skriselse
2764228060Sbapt  echo "$as_me: failed program was:" >&5
2765228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2766228060Sbapt
2767228060Sbapt  # Broken: fails on valid input.
2768228060Sbaptcontinue
276958551Skrisfi
277058551Skris
2771228060Sbaptrm -f conftest.err conftest.$ac_ext
2772228060Sbapt
2773228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
2774228060Sbapt  # can be detected and how.
2775228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2776228060Sbapt/* confdefs.h.  */
2777228060Sbapt_ACEOF
2778228060Sbaptcat confdefs.h >>conftest.$ac_ext
2779228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2780228060Sbapt/* end confdefs.h.  */
2781228060Sbapt#include <ac_nonexistent.h>
2782228060Sbapt_ACEOF
2783228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
2784228060Sbaptcase "(($ac_try" in
2785228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786228060Sbapt  *) ac_try_echo=$ac_try;;
2787228060Sbaptesac
2788228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2790228060Sbapt  ac_status=$?
2791228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
2792228060Sbapt  rm -f conftest.er1
2793228060Sbapt  cat conftest.err >&5
2794228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795228060Sbapt  (exit $ac_status); } >/dev/null && {
2796228060Sbapt	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2797228060Sbapt	 test ! -s conftest.err
2798228060Sbapt       }; then
2799228060Sbapt  # Broken: success on invalid input.
2800228060Sbaptcontinue
280158551Skriselse
2802228060Sbapt  echo "$as_me: failed program was:" >&5
2803228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
2804228060Sbapt
2805228060Sbapt  # Passes both tests.
2806228060Sbaptac_preproc_ok=:
2807228060Sbaptbreak
2808228060Sbaptfi
2809228060Sbapt
2810228060Sbaptrm -f conftest.err conftest.$ac_ext
2811228060Sbapt
2812228060Sbaptdone
2813228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2814228060Sbaptrm -f conftest.err conftest.$ac_ext
2815228060Sbaptif $ac_preproc_ok; then
2816228060Sbapt  :
2817228060Sbaptelse
2818228060Sbapt  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2819228060SbaptSee \`config.log' for more details." >&5
2820228060Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2821228060SbaptSee \`config.log' for more details." >&2;}
2822228060Sbapt   { (exit 1); exit 1; }; }
2823228060Sbaptfi
2824228060Sbapt
2825228060Sbaptac_ext=c
2826228060Sbaptac_cpp='$CPP $CPPFLAGS'
2827228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
2830228060Sbapt
2831228060Sbapt                      ac_ext=cpp
2832228060Sbaptac_cpp='$CXXCPP $CPPFLAGS'
2833228060Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834228060Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835228060Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2836228060Sbaptif test -z "$CXX"; then
2837228060Sbapt  if test -n "$CCC"; then
2838228060Sbapt    CXX=$CCC
2839228060Sbapt  else
2840228060Sbapt    if test -n "$ac_tool_prefix"; then
2841228060Sbapt  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2842228060Sbapt  do
2843228060Sbapt    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844228060Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2846228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847228060Sbaptif test "${ac_cv_prog_CXX+set}" = set; then
2848228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2849228060Sbaptelse
285058551Skris  if test -n "$CXX"; then
285158551Skris  ac_cv_prog_CXX="$CXX" # Let the user override the test.
285258551Skriselse
2853228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854228060Sbaptfor as_dir in $PATH
2855228060Sbaptdo
2856228060Sbapt  IFS=$as_save_IFS
2857228060Sbapt  test -z "$as_dir" && as_dir=.
2858228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
2859228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860228060Sbapt    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2861228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862228060Sbapt    break 2
2863228060Sbapt  fi
2864228060Sbaptdone
2865228060Sbaptdone
2866228060SbaptIFS=$as_save_IFS
2867228060Sbapt
286858551Skrisfi
286958551Skrisfi
2870228060SbaptCXX=$ac_cv_prog_CXX
287158551Skrisif test -n "$CXX"; then
2872228060Sbapt  { echo "$as_me:$LINENO: result: $CXX" >&5
2873228060Sbaptecho "${ECHO_T}$CXX" >&6; }
287458551Skriselse
2875228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
2876228060Sbaptecho "${ECHO_T}no" >&6; }
287758551Skrisfi
287858551Skris
2879228060Sbapt
2880228060Sbapt    test -n "$CXX" && break
2881228060Sbapt  done
2882228060Sbaptfi
2883228060Sbaptif test -z "$CXX"; then
2884228060Sbapt  ac_ct_CXX=$CXX
2885228060Sbapt  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2886228060Sbaptdo
2887228060Sbapt  # Extract the first word of "$ac_prog", so it can be a program name with args.
2888228060Sbaptset dummy $ac_prog; ac_word=$2
2889228060Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2890228060Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891228060Sbaptif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2892228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
2893228060Sbaptelse
2894228060Sbapt  if test -n "$ac_ct_CXX"; then
2895228060Sbapt  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2896228060Sbaptelse
2897228060Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898228060Sbaptfor as_dir in $PATH
2899228060Sbaptdo
2900228060Sbapt  IFS=$as_save_IFS
2901228060Sbapt  test -z "$as_dir" && as_dir=.
2902228060Sbapt  for ac_exec_ext in '' $ac_executable_extensions; do
2903228060Sbapt  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904228060Sbapt    ac_cv_prog_ac_ct_CXX="$ac_prog"
2905228060Sbapt    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906228060Sbapt    break 2
2907228060Sbapt  fi
290858551Skrisdone
2909228060Sbaptdone
2910228060SbaptIFS=$as_save_IFS
291158551Skris
2912228060Sbaptfi
2913228060Sbaptfi
2914228060Sbaptac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2915228060Sbaptif test -n "$ac_ct_CXX"; then
2916228060Sbapt  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2917228060Sbaptecho "${ECHO_T}$ac_ct_CXX" >&6; }
2918228060Sbaptelse
2919228060Sbapt  { echo "$as_me:$LINENO: result: no" >&5
2920228060Sbaptecho "${ECHO_T}no" >&6; }
2921228060Sbaptfi
292258551Skris
292358551Skris
2924228060Sbapt  test -n "$ac_ct_CXX" && break
2925228060Sbaptdone
292658551Skris
2927228060Sbapt  if test "x$ac_ct_CXX" = x; then
2928228060Sbapt    CXX="g++"
292958551Skris  else
2930228060Sbapt    case $cross_compiling:$ac_tool_warned in
2931228060Sbaptyes:)
2932228060Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2933228060Sbaptwhose name does not start with the host triplet.  If you think this
2934228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5
2935228060Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2936228060Sbaptwhose name does not start with the host triplet.  If you think this
2937228060Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}
2938228060Sbaptac_tool_warned=yes ;;
2939228060Sbaptesac
2940228060Sbapt    CXX=$ac_ct_CXX
294158551Skris  fi
294258551Skrisfi
294358551Skris
2944228060Sbapt  fi
294558551Skrisfi
2946228060Sbapt# Provide some information about the compiler.
2947228060Sbaptecho "$as_me:$LINENO: checking for C++ compiler version" >&5
2948228060Sbaptac_compiler=`set X $ac_compile; echo $2`
2949228060Sbapt{ (ac_try="$ac_compiler --version >&5"
2950228060Sbaptcase "(($ac_try" in
2951228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952228060Sbapt  *) ac_try_echo=$ac_try;;
2953228060Sbaptesac
2954228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955228060Sbapt  (eval "$ac_compiler --version >&5") 2>&5
2956228060Sbapt  ac_status=$?
2957228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958228060Sbapt  (exit $ac_status); }
2959228060Sbapt{ (ac_try="$ac_compiler -v >&5"
2960228060Sbaptcase "(($ac_try" in
2961228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962228060Sbapt  *) ac_try_echo=$ac_try;;
2963228060Sbaptesac
2964228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965228060Sbapt  (eval "$ac_compiler -v >&5") 2>&5
2966228060Sbapt  ac_status=$?
2967228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968228060Sbapt  (exit $ac_status); }
2969228060Sbapt{ (ac_try="$ac_compiler -V >&5"
2970228060Sbaptcase "(($ac_try" in
2971228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972228060Sbapt  *) ac_try_echo=$ac_try;;
2973228060Sbaptesac
2974228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975228060Sbapt  (eval "$ac_compiler -V >&5") 2>&5
2976228060Sbapt  ac_status=$?
2977228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978228060Sbapt  (exit $ac_status); }
297958551Skris
2980228060Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2981228060Sbaptecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2982228060Sbaptif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2983228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
298458551Skriselse
2985228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
2986228060Sbapt/* confdefs.h.  */
2987228060Sbapt_ACEOF
2988228060Sbaptcat confdefs.h >>conftest.$ac_ext
2989228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
2990228060Sbapt/* end confdefs.h.  */
2991228060Sbapt
2992228060Sbaptint
2993228060Sbaptmain ()
2994228060Sbapt{
2995228060Sbapt#ifndef __GNUC__
2996228060Sbapt       choke me
299758551Skris#endif
2998228060Sbapt
2999228060Sbapt  ;
3000228060Sbapt  return 0;
3001228060Sbapt}
3002228060Sbapt_ACEOF
3003228060Sbaptrm -f conftest.$ac_objext
3004228060Sbaptif { (ac_try="$ac_compile"
3005228060Sbaptcase "(($ac_try" in
3006228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007228060Sbapt  *) ac_try_echo=$ac_try;;
3008228060Sbaptesac
3009228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3011228060Sbapt  ac_status=$?
3012228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3013228060Sbapt  rm -f conftest.er1
3014228060Sbapt  cat conftest.err >&5
3015228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016228060Sbapt  (exit $ac_status); } && {
3017228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3018228060Sbapt	 test ! -s conftest.err
3019228060Sbapt       } && test -s conftest.$ac_objext; then
3020228060Sbapt  ac_compiler_gnu=yes
302158551Skriselse
3022228060Sbapt  echo "$as_me: failed program was:" >&5
3023228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3024228060Sbapt
3025228060Sbapt	ac_compiler_gnu=no
302658551Skrisfi
3027228060Sbapt
3028228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029228060Sbaptac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3030228060Sbapt
303158551Skrisfi
3032228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3033228060Sbaptecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3034228060SbaptGXX=`test $ac_compiler_gnu = yes && echo yes`
3035228060Sbaptac_test_CXXFLAGS=${CXXFLAGS+set}
3036228060Sbaptac_save_CXXFLAGS=$CXXFLAGS
3037228060Sbapt{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3038228060Sbaptecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3039228060Sbaptif test "${ac_cv_prog_cxx_g+set}" = set; then
3040228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
3041228060Sbaptelse
3042228060Sbapt  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3043228060Sbapt   ac_cxx_werror_flag=yes
3044228060Sbapt   ac_cv_prog_cxx_g=no
3045228060Sbapt   CXXFLAGS="-g"
3046228060Sbapt   cat >conftest.$ac_ext <<_ACEOF
3047228060Sbapt/* confdefs.h.  */
3048228060Sbapt_ACEOF
3049228060Sbaptcat confdefs.h >>conftest.$ac_ext
3050228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3051228060Sbapt/* end confdefs.h.  */
305258551Skris
3053228060Sbaptint
3054228060Sbaptmain ()
3055228060Sbapt{
305658551Skris
3057228060Sbapt  ;
3058228060Sbapt  return 0;
3059228060Sbapt}
3060228060Sbapt_ACEOF
3061228060Sbaptrm -f conftest.$ac_objext
3062228060Sbaptif { (ac_try="$ac_compile"
3063228060Sbaptcase "(($ac_try" in
3064228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065228060Sbapt  *) ac_try_echo=$ac_try;;
3066228060Sbaptesac
3067228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3069228060Sbapt  ac_status=$?
3070228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3071228060Sbapt  rm -f conftest.er1
3072228060Sbapt  cat conftest.err >&5
3073228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074228060Sbapt  (exit $ac_status); } && {
3075228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3076228060Sbapt	 test ! -s conftest.err
3077228060Sbapt       } && test -s conftest.$ac_objext; then
3078228060Sbapt  ac_cv_prog_cxx_g=yes
307967064Sobrienelse
3080228060Sbapt  echo "$as_me: failed program was:" >&5
3081228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
308267064Sobrien
3083228060Sbapt	CXXFLAGS=""
3084228060Sbapt      cat >conftest.$ac_ext <<_ACEOF
3085228060Sbapt/* confdefs.h.  */
3086228060Sbapt_ACEOF
3087228060Sbaptcat confdefs.h >>conftest.$ac_ext
3088228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3089228060Sbapt/* end confdefs.h.  */
3090228060Sbapt
3091228060Sbaptint
3092228060Sbaptmain ()
3093228060Sbapt{
3094228060Sbapt
3095228060Sbapt  ;
3096228060Sbapt  return 0;
3097228060Sbapt}
3098228060Sbapt_ACEOF
3099228060Sbaptrm -f conftest.$ac_objext
3100228060Sbaptif { (ac_try="$ac_compile"
3101228060Sbaptcase "(($ac_try" in
3102228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103228060Sbapt  *) ac_try_echo=$ac_try;;
3104228060Sbaptesac
3105228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3107228060Sbapt  ac_status=$?
3108228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3109228060Sbapt  rm -f conftest.er1
3110228060Sbapt  cat conftest.err >&5
3111228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112228060Sbapt  (exit $ac_status); } && {
3113228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3114228060Sbapt	 test ! -s conftest.err
3115228060Sbapt       } && test -s conftest.$ac_objext; then
3116228060Sbapt  :
311758551Skriselse
3118228060Sbapt  echo "$as_me: failed program was:" >&5
3119228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3120228060Sbapt
3121228060Sbapt	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122228060Sbapt	 CXXFLAGS="-g"
3123228060Sbapt	 cat >conftest.$ac_ext <<_ACEOF
3124228060Sbapt/* confdefs.h.  */
3125228060Sbapt_ACEOF
3126228060Sbaptcat confdefs.h >>conftest.$ac_ext
3127228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3128228060Sbapt/* end confdefs.h.  */
3129228060Sbapt
3130228060Sbaptint
3131228060Sbaptmain ()
3132228060Sbapt{
3133228060Sbapt
3134228060Sbapt  ;
3135228060Sbapt  return 0;
3136228060Sbapt}
3137228060Sbapt_ACEOF
3138228060Sbaptrm -f conftest.$ac_objext
3139228060Sbaptif { (ac_try="$ac_compile"
3140228060Sbaptcase "(($ac_try" in
3141228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142228060Sbapt  *) ac_try_echo=$ac_try;;
3143228060Sbaptesac
3144228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3146228060Sbapt  ac_status=$?
3147228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3148228060Sbapt  rm -f conftest.er1
3149228060Sbapt  cat conftest.err >&5
3150228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151228060Sbapt  (exit $ac_status); } && {
3152228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3153228060Sbapt	 test ! -s conftest.err
3154228060Sbapt       } && test -s conftest.$ac_objext; then
315558551Skris  ac_cv_prog_cxx_g=yes
315658551Skriselse
3157228060Sbapt  echo "$as_me: failed program was:" >&5
3158228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3159228060Sbapt
3160228060Sbapt
316158551Skrisfi
316258551Skris
3163228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
316458551Skrisfi
316558551Skris
3166228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167228060Sbaptfi
3168228060Sbapt
3169228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170228060Sbapt   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171228060Sbaptfi
3172228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173228060Sbaptecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
317467064Sobrienif test "$ac_test_CXXFLAGS" = set; then
3175228060Sbapt  CXXFLAGS=$ac_save_CXXFLAGS
317667064Sobrienelif test $ac_cv_prog_cxx_g = yes; then
317767064Sobrien  if test "$GXX" = yes; then
317858551Skris    CXXFLAGS="-g -O2"
317958551Skris  else
318067064Sobrien    CXXFLAGS="-g"
318167064Sobrien  fi
318267064Sobrienelse
318367064Sobrien  if test "$GXX" = yes; then
318458551Skris    CXXFLAGS="-O2"
318567064Sobrien  else
318667064Sobrien    CXXFLAGS=
318758551Skris  fi
318858551Skrisfi
3189228060Sbaptac_ext=c
3190228060Sbaptac_cpp='$CPP $CPPFLAGS'
3191228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
319458551Skris
3195228060Sbapt                      ac_ext=cpp
3196228060Sbaptac_cpp='$CXXCPP $CPPFLAGS'
3197228060Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198228060Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199228060Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3200228060Sbapt{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3201228060Sbaptecho $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
320258551Skrisif test -z "$CXXCPP"; then
3203228060Sbapt  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3204228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
320558551Skriselse
3206228060Sbapt      # Double quotes because CXXCPP needs to be expanded
3207228060Sbapt    for CXXCPP in "$CXX -E" "/lib/cpp"
3208228060Sbapt    do
3209228060Sbapt      ac_preproc_ok=false
3210228060Sbaptfor ac_cxx_preproc_warn_flag in '' yes
3211228060Sbaptdo
3212228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
3213228060Sbapt  # with a fresh cross-compiler works.
3214228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215228060Sbapt  # <limits.h> exists even on freestanding compilers.
3216228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
3217228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
3218228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3219228060Sbapt/* confdefs.h.  */
3220228060Sbapt_ACEOF
3221228060Sbaptcat confdefs.h >>conftest.$ac_ext
3222228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3223228060Sbapt/* end confdefs.h.  */
3224228060Sbapt#ifdef __STDC__
3225228060Sbapt# include <limits.h>
3226228060Sbapt#else
3227228060Sbapt# include <assert.h>
3228228060Sbapt#endif
3229228060Sbapt		     Syntax error
3230228060Sbapt_ACEOF
3231228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3232228060Sbaptcase "(($ac_try" in
3233228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234228060Sbapt  *) ac_try_echo=$ac_try;;
3235228060Sbaptesac
3236228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238228060Sbapt  ac_status=$?
3239228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3240228060Sbapt  rm -f conftest.er1
3241228060Sbapt  cat conftest.err >&5
3242228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243228060Sbapt  (exit $ac_status); } >/dev/null && {
3244228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3245228060Sbapt	 test ! -s conftest.err
3246228060Sbapt       }; then
324758551Skris  :
324858551Skriselse
3249228060Sbapt  echo "$as_me: failed program was:" >&5
3250228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3251228060Sbapt
3252228060Sbapt  # Broken: fails on valid input.
3253228060Sbaptcontinue
325458551Skrisfi
3255228060Sbapt
3256228060Sbaptrm -f conftest.err conftest.$ac_ext
3257228060Sbapt
3258228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
3259228060Sbapt  # can be detected and how.
3260228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3261228060Sbapt/* confdefs.h.  */
3262228060Sbapt_ACEOF
3263228060Sbaptcat confdefs.h >>conftest.$ac_ext
3264228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3265228060Sbapt/* end confdefs.h.  */
3266228060Sbapt#include <ac_nonexistent.h>
3267228060Sbapt_ACEOF
3268228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3269228060Sbaptcase "(($ac_try" in
3270228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271228060Sbapt  *) ac_try_echo=$ac_try;;
3272228060Sbaptesac
3273228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3275228060Sbapt  ac_status=$?
3276228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3277228060Sbapt  rm -f conftest.er1
3278228060Sbapt  cat conftest.err >&5
3279228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280228060Sbapt  (exit $ac_status); } >/dev/null && {
3281228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3282228060Sbapt	 test ! -s conftest.err
3283228060Sbapt       }; then
3284228060Sbapt  # Broken: success on invalid input.
3285228060Sbaptcontinue
3286228060Sbaptelse
3287228060Sbapt  echo "$as_me: failed program was:" >&5
3288228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3289228060Sbapt
3290228060Sbapt  # Passes both tests.
3291228060Sbaptac_preproc_ok=:
3292228060Sbaptbreak
329358551Skrisfi
3294228060Sbapt
3295228060Sbaptrm -f conftest.err conftest.$ac_ext
3296228060Sbapt
3297228060Sbaptdone
3298228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299228060Sbaptrm -f conftest.err conftest.$ac_ext
3300228060Sbaptif $ac_preproc_ok; then
3301228060Sbapt  break
330258551Skrisfi
330358551Skris
3304228060Sbapt    done
3305228060Sbapt    ac_cv_prog_CXXCPP=$CXXCPP
3306228060Sbapt
3307228060Sbaptfi
3308228060Sbapt  CXXCPP=$ac_cv_prog_CXXCPP
3309228060Sbaptelse
3310228060Sbapt  ac_cv_prog_CXXCPP=$CXXCPP
3311228060Sbaptfi
3312228060Sbapt{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3313228060Sbaptecho "${ECHO_T}$CXXCPP" >&6; }
3314228060Sbaptac_preproc_ok=false
3315228060Sbaptfor ac_cxx_preproc_warn_flag in '' yes
3316228060Sbaptdo
3317228060Sbapt  # Use a header file that comes with gcc, so configuring glibc
3318228060Sbapt  # with a fresh cross-compiler works.
3319228060Sbapt  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320228060Sbapt  # <limits.h> exists even on freestanding compilers.
3321228060Sbapt  # On the NeXT, cc -E runs the code through the compiler's parser,
3322228060Sbapt  # not just through cpp. "Syntax error" is here to catch this case.
3323228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3324228060Sbapt/* confdefs.h.  */
3325228060Sbapt_ACEOF
3326228060Sbaptcat confdefs.h >>conftest.$ac_ext
3327228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3328228060Sbapt/* end confdefs.h.  */
3329228060Sbapt#ifdef __STDC__
3330228060Sbapt# include <limits.h>
3331228060Sbapt#else
3332228060Sbapt# include <assert.h>
3333228060Sbapt#endif
3334228060Sbapt		     Syntax error
3335228060Sbapt_ACEOF
3336228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3337228060Sbaptcase "(($ac_try" in
3338228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339228060Sbapt  *) ac_try_echo=$ac_try;;
3340228060Sbaptesac
3341228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343228060Sbapt  ac_status=$?
3344228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3345228060Sbapt  rm -f conftest.er1
3346228060Sbapt  cat conftest.err >&5
3347228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348228060Sbapt  (exit $ac_status); } >/dev/null && {
3349228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3350228060Sbapt	 test ! -s conftest.err
3351228060Sbapt       }; then
3352228060Sbapt  :
3353228060Sbaptelse
3354228060Sbapt  echo "$as_me: failed program was:" >&5
3355228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3356228060Sbapt
3357228060Sbapt  # Broken: fails on valid input.
3358228060Sbaptcontinue
3359228060Sbaptfi
3360228060Sbapt
3361228060Sbaptrm -f conftest.err conftest.$ac_ext
3362228060Sbapt
3363228060Sbapt  # OK, works on sane cases.  Now check whether nonexistent headers
3364228060Sbapt  # can be detected and how.
3365228060Sbapt  cat >conftest.$ac_ext <<_ACEOF
3366228060Sbapt/* confdefs.h.  */
3367228060Sbapt_ACEOF
3368228060Sbaptcat confdefs.h >>conftest.$ac_ext
3369228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3370228060Sbapt/* end confdefs.h.  */
3371228060Sbapt#include <ac_nonexistent.h>
3372228060Sbapt_ACEOF
3373228060Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext"
3374228060Sbaptcase "(($ac_try" in
3375228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376228060Sbapt  *) ac_try_echo=$ac_try;;
3377228060Sbaptesac
3378228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379228060Sbapt  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3380228060Sbapt  ac_status=$?
3381228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3382228060Sbapt  rm -f conftest.er1
3383228060Sbapt  cat conftest.err >&5
3384228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385228060Sbapt  (exit $ac_status); } >/dev/null && {
3386228060Sbapt	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3387228060Sbapt	 test ! -s conftest.err
3388228060Sbapt       }; then
3389228060Sbapt  # Broken: success on invalid input.
3390228060Sbaptcontinue
3391228060Sbaptelse
3392228060Sbapt  echo "$as_me: failed program was:" >&5
3393228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3394228060Sbapt
3395228060Sbapt  # Passes both tests.
3396228060Sbaptac_preproc_ok=:
3397228060Sbaptbreak
3398228060Sbaptfi
3399228060Sbapt
3400228060Sbaptrm -f conftest.err conftest.$ac_ext
3401228060Sbapt
3402228060Sbaptdone
3403228060Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404228060Sbaptrm -f conftest.err conftest.$ac_ext
3405228060Sbaptif $ac_preproc_ok; then
3406228060Sbapt  :
3407228060Sbaptelse
3408228060Sbapt  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3409228060SbaptSee \`config.log' for more details." >&5
3410228060Sbaptecho "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3411228060SbaptSee \`config.log' for more details." >&2;}
3412228060Sbapt   { (exit 1); exit 1; }; }
3413228060Sbaptfi
3414228060Sbapt
3415228060Sbaptac_ext=c
3416228060Sbaptac_cpp='$CPP $CPPFLAGS'
3417228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
3420228060Sbapt
342158551Skris                      # Find a good install program.  We prefer a C program (faster),
342258551Skris# so one script is as good as another.  But avoid the broken or
342358551Skris# incompatible versions:
342458551Skris# SysV /etc/install, /usr/sbin/install
342558551Skris# SunOS /usr/etc/install
342658551Skris# IRIX /sbin/install
342758551Skris# AIX /bin/install
342858551Skris# AFS /usr/afsws/bin/install, which mishandles nonexistent args
342958551Skris# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
343058551Skris# ./install, which can be erroneously created by make from ./install.sh.
3431228060Sbapt{ echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
3432228060Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
343358551Skrisif test -z "$INSTALL"; then
3434228060Sbaptif test "${cl_cv_path_install+set}" = set; then
3435228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
343658551Skriselse
343758551Skris    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
343858551Skris  for ac_dir in $PATH; do
343958551Skris    # Account for people who put trailing slashes in PATH elements.
344058551Skris    case "$ac_dir/" in
344158551Skris    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
344258551Skris    *)
344358551Skris      # OSF1 and SCO ODT 3.0 have their own names for install.
344458551Skris      for ac_prog in ginstall installbsd scoinst install; do
344558551Skris        if test -f $ac_dir/$ac_prog; then
344658551Skris	  if test $ac_prog = install &&
344758551Skris            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
344858551Skris	    # AIX install.  It has an incompatible calling convention.
344958551Skris	    # OSF/1 installbsd also uses dspmsg, but is usable.
345058551Skris	    :
345158551Skris	  else
345258551Skris	    if test $ac_prog = installbsd &&
345358551Skris	      grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
345458551Skris	      # AIX installbsd doesn't work without option "-g".
345558551Skris	      :
345658551Skris	    else
345767064Sobrien	      cl_cv_path_install="$ac_dir/$ac_prog -c"
345858551Skris	      break 2
345958551Skris	    fi
346058551Skris	  fi
346158551Skris	fi
346258551Skris      done
346358551Skris      ;;
346458551Skris    esac
346558551Skris  done
346658551Skris  IFS="$ac_save_ifs"
346758551Skris  # As a last resort, use cp.
346858551Skris  test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
346958551Skris
347058551Skrisfi
347158551Skris  INSTALL="$cl_cv_path_install"
347258551Skrisfi
3473228060Sbapt{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3474228060Sbaptecho "${ECHO_T}$INSTALL" >&6; }
347558551Skris# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
347658551Skris# It thinks the first close brace ends the variable substitution.
347758551Skristest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
347858551Skrisif test -z "$INSTALL_DATA"; then
347958551Skris  case "$INSTALL" in
348058551Skris    cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
348158551Skris    * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
348258551Skris  esac
348358551Skrisfi
348458551Skris
3485228060Sbapt                      { echo "$as_me:$LINENO: checking for stack-allocated variable-size arrays" >&5
3486228060Sbaptecho $ECHO_N "checking for stack-allocated variable-size arrays... $ECHO_C" >&6; }
3487228060Sbapt
3488228060Sbaptif test "${gp_cv_cxx_dynamic_array+set}" = set; then
3489228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
349058551Skriselse
349158551Skris
3492228060Sbapt
3493228060Sbaptac_ext=cpp
349458551Skrisac_cpp='$CXXCPP $CPPFLAGS'
3495228060Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496228060Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497228060Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu
349858551Skris
3499228060Sbaptcat >conftest.$ac_ext <<_ACEOF
3500228060Sbapt/* confdefs.h.  */
3501228060Sbapt_ACEOF
3502228060Sbaptcat confdefs.h >>conftest.$ac_ext
3503228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3504228060Sbapt/* end confdefs.h.  */
3505228060Sbaptint func (int n) { int dynamic_array[n]; }
3506228060Sbaptint
3507228060Sbaptmain ()
3508228060Sbapt{
350958551Skris
3510228060Sbapt  ;
3511228060Sbapt  return 0;
3512228060Sbapt}
3513228060Sbapt_ACEOF
3514228060Sbaptrm -f conftest.$ac_objext
3515228060Sbaptif { (ac_try="$ac_compile"
3516228060Sbaptcase "(($ac_try" in
3517228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518228060Sbapt  *) ac_try_echo=$ac_try;;
3519228060Sbaptesac
3520228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521228060Sbapt  (eval "$ac_compile") 2>conftest.er1
3522228060Sbapt  ac_status=$?
3523228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3524228060Sbapt  rm -f conftest.er1
3525228060Sbapt  cat conftest.err >&5
3526228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527228060Sbapt  (exit $ac_status); } && {
3528228060Sbapt	 test -z "$ac_cxx_werror_flag" ||
3529228060Sbapt	 test ! -s conftest.err
3530228060Sbapt       } && test -s conftest.$ac_objext; then
3531228060Sbapt  gp_cv_cxx_dynamic_array=yes
353258551Skriselse
3533228060Sbapt  echo "$as_me: failed program was:" >&5
3534228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3535228060Sbapt
3536228060Sbapt	gp_cv_cxx_dynamic_array=no
353758551Skrisfi
3538228060Sbapt
3539228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
354058551Skrisac_ext=c
354158551Skrisac_cpp='$CPP $CPPFLAGS'
3542228060Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543228060Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544228060Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu
354558551Skris
354658551Skris
354758551Skrisfi
354858551Skris
3549228060Sbapt{ echo "$as_me:$LINENO: result: $gp_cv_cxx_dynamic_array" >&5
3550228060Sbaptecho "${ECHO_T}$gp_cv_cxx_dynamic_array" >&6; }
3551228060Sbaptif test $gp_cv_cxx_dynamic_array = yes; then
355258551Skris
3553228060Sbaptcat >>confdefs.h <<\_ACEOF
3554228060Sbapt#define HAVE_DYNAMIC_ARRAY 1
3555228060Sbapt_ACEOF
3556228060Sbapt
355758551Skrisfi
3558228060Sbapt
3559228060Sbapt{ echo "$as_me:$LINENO: checking for rand in -lm" >&5
3560228060Sbaptecho $ECHO_N "checking for rand in -lm... $ECHO_C" >&6; }
3561228060Sbaptif test "${ac_cv_lib_m_rand+set}" = set; then
3562228060Sbapt  echo $ECHO_N "(cached) $ECHO_C" >&6
356358551Skriselse
3564228060Sbapt  ac_check_lib_save_LIBS=$LIBS
3565228060SbaptLIBS="-lm  $LIBS"
3566228060Sbaptcat >conftest.$ac_ext <<_ACEOF
3567228060Sbapt/* confdefs.h.  */
3568228060Sbapt_ACEOF
3569228060Sbaptcat confdefs.h >>conftest.$ac_ext
3570228060Sbaptcat >>conftest.$ac_ext <<_ACEOF
3571228060Sbapt/* end confdefs.h.  */
3572228060Sbapt
3573228060Sbapt/* Override any GCC internal prototype to avoid an error.
3574228060Sbapt   Use char because int might match the return type of a GCC
3575228060Sbapt   builtin and then its argument prototype would still apply.  */
3576228060Sbapt#ifdef __cplusplus
3577228060Sbaptextern "C"
3578228060Sbapt#endif
3579228060Sbaptchar rand ();
3580228060Sbaptint
3581228060Sbaptmain ()
3582228060Sbapt{
3583228060Sbaptreturn rand ();
3584228060Sbapt  ;
3585228060Sbapt  return 0;
3586228060Sbapt}
3587228060Sbapt_ACEOF
3588228060Sbaptrm -f conftest.$ac_objext conftest$ac_exeext
3589228060Sbaptif { (ac_try="$ac_link"
3590228060Sbaptcase "(($ac_try" in
3591228060Sbapt  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592228060Sbapt  *) ac_try_echo=$ac_try;;
3593228060Sbaptesac
3594228060Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595228060Sbapt  (eval "$ac_link") 2>conftest.er1
3596228060Sbapt  ac_status=$?
3597228060Sbapt  grep -v '^ *+' conftest.er1 >conftest.err
3598228060Sbapt  rm -f conftest.er1
3599228060Sbapt  cat conftest.err >&5
3600228060Sbapt  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601228060Sbapt  (exit $ac_status); } && {
3602228060Sbapt	 test -z "$ac_c_werror_flag" ||
3603228060Sbapt	 test ! -s conftest.err
3604228060Sbapt       } && test -s conftest$ac_exeext &&
3605228060Sbapt       $as_test_x conftest$ac_exeext; then
3606228060Sbapt  ac_cv_lib_m_rand=yes
360758551Skriselse
3608228060Sbapt  echo "$as_me: failed program was:" >&5
3609228060Sbaptsed 's/^/| /' conftest.$ac_ext >&5
3610228060Sbapt
3611228060Sbapt	ac_cv_lib_m_rand=no
361258551Skrisfi
3613228060Sbapt
3614228060Sbaptrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3615228060Sbapt      conftest$ac_exeext conftest.$ac_ext
3616228060SbaptLIBS=$ac_check_lib_save_LIBS
361758551Skrisfi
3618228060Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_rand" >&5
3619228060Sbaptecho "${ECHO_T}$ac_cv_lib_m_rand" >&6; }
3620228060Sbaptif test $ac_cv_lib_m_rand = yes; then
3621228060Sbapt  GPERF_LIBM="-lm"
362258551Skriselse
3623228060Sbapt  GPERF_LIBM=""
362458551Skrisfi
3625228060Sbapt
3626228060Sbapt
3627228060Sbaptac_config_files="$ac_config_files Makefile"
3628228060Sbapt
3629228060Sbaptcat >confcache <<\_ACEOF
3630228060Sbapt# This file is a shell script that caches the results of configure
3631228060Sbapt# tests run on this system so they can be shared between configure
3632228060Sbapt# scripts and configure runs, see configure's option --config-cache.
3633228060Sbapt# It is not useful on other systems.  If it contains results you don't
3634228060Sbapt# want to keep, you may remove or edit it.
3635228060Sbapt#
3636228060Sbapt# config.status only pays attention to the cache file if you give it
3637228060Sbapt# the --recheck option to rerun configure.
3638228060Sbapt#
3639228060Sbapt# `ac_cv_env_foo' variables (set or unset) will be overridden when
3640228060Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the
3641228060Sbapt# following values.
3642228060Sbapt
3643228060Sbapt_ACEOF
3644228060Sbapt
3645228060Sbapt# The following way of writing the cache mishandles newlines in values,
3646228060Sbapt# but we know of no workaround that is simple, portable, and efficient.
3647228060Sbapt# So, we kill variables containing newlines.
3648228060Sbapt# Ultrix sh set writes to stderr and can't be redirected directly,
3649228060Sbapt# and sets the high bit in the cache file unless we assign to the vars.
3650228060Sbapt(
3651228060Sbapt  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3652228060Sbapt    eval ac_val=\$$ac_var
3653228060Sbapt    case $ac_val in #(
3654228060Sbapt    *${as_nl}*)
3655228060Sbapt      case $ac_var in #(
3656228060Sbapt      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3657228060Sbaptecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3658228060Sbapt      esac
3659228060Sbapt      case $ac_var in #(
3660228060Sbapt      _ | IFS | as_nl) ;; #(
3661228060Sbapt      *) $as_unset $ac_var ;;
3662228060Sbapt      esac ;;
3663228060Sbapt    esac
3664228060Sbapt  done
3665228060Sbapt
3666228060Sbapt  (set) 2>&1 |
3667228060Sbapt    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3668228060Sbapt    *${as_nl}ac_space=\ *)
3669228060Sbapt      # `set' does not quote correctly, so add quotes (double-quote
3670228060Sbapt      # substitution turns \\\\ into \\, and sed turns \\ into \).
3671228060Sbapt      sed -n \
3672228060Sbapt	"s/'/'\\\\''/g;
3673228060Sbapt	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3674228060Sbapt      ;; #(
3675228060Sbapt    *)
3676228060Sbapt      # `set' quotes correctly as required by POSIX, so do not add quotes.
3677228060Sbapt      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3678228060Sbapt      ;;
3679228060Sbapt    esac |
3680228060Sbapt    sort
3681228060Sbapt) |
3682228060Sbapt  sed '
3683228060Sbapt     /^ac_cv_env_/b end
3684228060Sbapt     t clear
3685228060Sbapt     :clear
3686228060Sbapt     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3687228060Sbapt     t end
3688228060Sbapt     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3689228060Sbapt     :end' >>confcache
3690228060Sbaptif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3691228060Sbapt  if test -w "$cache_file"; then
3692228060Sbapt    test "x$cache_file" != "x/dev/null" &&
3693228060Sbapt      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3694228060Sbaptecho "$as_me: updating cache $cache_file" >&6;}
3695228060Sbapt    cat confcache >$cache_file
3696228060Sbapt  else
3697228060Sbapt    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3698228060Sbaptecho "$as_me: not updating unwritable cache $cache_file" >&6;}
3699228060Sbapt  fi
3700228060Sbaptfi
3701228060Sbaptrm -f confcache
3702228060Sbapt
3703228060Sbapttest "x$prefix" = xNONE && prefix=$ac_default_prefix
3704228060Sbapt# Let make expand exec_prefix.
3705228060Sbapttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3706228060Sbapt
3707228060SbaptDEFS=-DHAVE_CONFIG_H
3708228060Sbapt
3709228060Sbaptac_libobjs=
3710228060Sbaptac_ltlibobjs=
3711228060Sbaptfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3712228060Sbapt  # 1. Remove the extension, and $U if already installed.
3713228060Sbapt  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3714228060Sbapt  ac_i=`echo "$ac_i" | sed "$ac_script"`
3715228060Sbapt  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3716228060Sbapt  #    will be set to the directory where LIBOBJS objects are built.
3717228060Sbapt  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3718228060Sbapt  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
371958551Skrisdone
3720228060SbaptLIBOBJS=$ac_libobjs
372158551Skris
3722228060SbaptLTLIBOBJS=$ac_ltlibobjs
372358551Skris
372458551Skris
372558551Skris
3726228060Sbapt: ${CONFIG_STATUS=./config.status}
3727228060Sbaptac_clean_files_save=$ac_clean_files
3728228060Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS"
3729228060Sbapt{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3730228060Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;}
3731228060Sbaptcat >$CONFIG_STATUS <<_ACEOF
3732228060Sbapt#! $SHELL
3733228060Sbapt# Generated by $as_me.
3734228060Sbapt# Run this file to recreate the current configuration.
3735228060Sbapt# Compiler output produced by configure, useful for debugging
3736228060Sbapt# configure, is in config.log if it exists.
3737228060Sbapt
3738228060Sbaptdebug=false
3739228060Sbaptac_cs_recheck=false
3740228060Sbaptac_cs_silent=false
3741228060SbaptSHELL=\${CONFIG_SHELL-$SHELL}
3742228060Sbapt_ACEOF
3743228060Sbapt
3744228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
3745228060Sbapt## --------------------- ##
3746228060Sbapt## M4sh Initialization.  ##
3747228060Sbapt## --------------------- ##
3748228060Sbapt
3749228060Sbapt# Be more Bourne compatible
3750228060SbaptDUALCASE=1; export DUALCASE # for MKS sh
3751228060Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3752228060Sbapt  emulate sh
3753228060Sbapt  NULLCMD=:
3754228060Sbapt  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3755228060Sbapt  # is contrary to our usage.  Disable this feature.
3756228060Sbapt  alias -g '${1+"$@"}'='"$@"'
3757228060Sbapt  setopt NO_GLOB_SUBST
375858551Skriselse
3759228060Sbapt  case `(set -o) 2>/dev/null` in
3760228060Sbapt  *posix*) set -o posix ;;
3761228060Sbaptesac
3762228060Sbapt
376358551Skrisfi
3764228060Sbapt
3765228060Sbapt
3766228060Sbapt
3767228060Sbapt
3768228060Sbapt# PATH needs CR
3769228060Sbapt# Avoid depending upon Character Ranges.
3770228060Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3771228060Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3772228060Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3773228060Sbaptas_cr_digits='0123456789'
3774228060Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits
3775228060Sbapt
3776228060Sbapt# The user is always right.
3777228060Sbaptif test "${PATH_SEPARATOR+set}" != set; then
3778228060Sbapt  echo "#! /bin/sh" >conf$$.sh
3779228060Sbapt  echo  "exit 0"   >>conf$$.sh
3780228060Sbapt  chmod +x conf$$.sh
3781228060Sbapt  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3782228060Sbapt    PATH_SEPARATOR=';'
3783228060Sbapt  else
3784228060Sbapt    PATH_SEPARATOR=:
3785228060Sbapt  fi
3786228060Sbapt  rm -f conf$$.sh
378758551Skrisfi
378858551Skris
3789228060Sbapt# Support unset when possible.
3790228060Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3791228060Sbapt  as_unset=unset
379258551Skriselse
3793228060Sbapt  as_unset=false
379458551Skrisfi
3795228060Sbapt
3796228060Sbapt
3797228060Sbapt# IFS
3798228060Sbapt# We need space, tab and new line, in precisely that order.  Quoting is
3799228060Sbapt# there to prevent editors from complaining about space-tab.
3800228060Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3801228060Sbapt# splitting by setting IFS to empty value.)
3802228060Sbaptas_nl='
3803228060Sbapt'
3804228060SbaptIFS=" ""	$as_nl"
3805228060Sbapt
3806228060Sbapt# Find who we are.  Look in the path if we contain no directory separator.
3807228060Sbaptcase $0 in
3808228060Sbapt  *[\\/]* ) as_myself=$0 ;;
3809228060Sbapt  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810228060Sbaptfor as_dir in $PATH
3811228060Sbaptdo
3812228060Sbapt  IFS=$as_save_IFS
3813228060Sbapt  test -z "$as_dir" && as_dir=.
3814228060Sbapt  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
381558551Skrisdone
3816228060SbaptIFS=$as_save_IFS
381758551Skris
3818228060Sbapt     ;;
3819228060Sbaptesac
3820228060Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND'
3821228060Sbapt# in which case we are not to be found in the path.
3822228060Sbaptif test "x$as_myself" = x; then
3823228060Sbapt  as_myself=$0
3824228060Sbaptfi
3825228060Sbaptif test ! -f "$as_myself"; then
3826228060Sbapt  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3827228060Sbapt  { (exit 1); exit 1; }
3828228060Sbaptfi
3829228060Sbapt
3830228060Sbapt# Work around bugs in pre-3.0 UWIN ksh.
3831228060Sbaptfor as_var in ENV MAIL MAILPATH
3832228060Sbaptdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3833228060Sbaptdone
3834228060SbaptPS1='$ '
3835228060SbaptPS2='> '
3836228060SbaptPS4='+ '
3837228060Sbapt
3838228060Sbapt# NLS nuisances.
3839228060Sbaptfor as_var in \
3840228060Sbapt  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3841228060Sbapt  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3842228060Sbapt  LC_TELEPHONE LC_TIME
384358551Skrisdo
3844228060Sbapt  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3845228060Sbapt    eval $as_var=C; export $as_var
3846228060Sbapt  else
3847228060Sbapt    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3848228060Sbapt  fi
3849228060Sbaptdone
3850228060Sbapt
3851228060Sbapt# Required to use basename.
3852228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
3853228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3854228060Sbapt  as_expr=expr
385558551Skriselse
3856228060Sbapt  as_expr=false
3857228060Sbaptfi
385858551Skris
3859228060Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3860228060Sbapt  as_basename=basename
3861228060Sbaptelse
3862228060Sbapt  as_basename=false
3863228060Sbaptfi
386458551Skris
386558551Skris
3866228060Sbapt# Name of the executable.
3867228060Sbaptas_me=`$as_basename -- "$0" ||
3868228060Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3869228060Sbapt	 X"$0" : 'X\(//\)$' \| \
3870228060Sbapt	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3871228060Sbaptecho X/"$0" |
3872228060Sbapt    sed '/^.*\/\([^/][^/]*\)\/*$/{
3873228060Sbapt	    s//\1/
3874228060Sbapt	    q
3875228060Sbapt	  }
3876228060Sbapt	  /^X\/\(\/\/\)$/{
3877228060Sbapt	    s//\1/
3878228060Sbapt	    q
3879228060Sbapt	  }
3880228060Sbapt	  /^X\/\(\/\).*/{
3881228060Sbapt	    s//\1/
3882228060Sbapt	    q
3883228060Sbapt	  }
3884228060Sbapt	  s/.*/./; q'`
3885228060Sbapt
3886228060Sbapt# CDPATH.
3887228060Sbapt$as_unset CDPATH
3888228060Sbapt
3889228060Sbapt
3890228060Sbapt
3891228060Sbapt  as_lineno_1=$LINENO
3892228060Sbapt  as_lineno_2=$LINENO
3893228060Sbapt  test "x$as_lineno_1" != "x$as_lineno_2" &&
3894228060Sbapt  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3895228060Sbapt
3896228060Sbapt  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3897228060Sbapt  # uniformly replaced by the line number.  The first 'sed' inserts a
3898228060Sbapt  # line-number line after each line using $LINENO; the second 'sed'
3899228060Sbapt  # does the real work.  The second script uses 'N' to pair each
3900228060Sbapt  # line-number line with the line containing $LINENO, and appends
3901228060Sbapt  # trailing '-' during substitution so that $LINENO is not a special
3902228060Sbapt  # case at line end.
3903228060Sbapt  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3904228060Sbapt  # scripts with optimization help from Paolo Bonzini.  Blame Lee
3905228060Sbapt  # E. McMahon (1931-1989) for sed's syntax.  :-)
3906228060Sbapt  sed -n '
3907228060Sbapt    p
3908228060Sbapt    /[$]LINENO/=
3909228060Sbapt  ' <$as_myself |
3910228060Sbapt    sed '
3911228060Sbapt      s/[$]LINENO.*/&-/
3912228060Sbapt      t lineno
3913228060Sbapt      b
3914228060Sbapt      :lineno
3915228060Sbapt      N
3916228060Sbapt      :loop
3917228060Sbapt      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3918228060Sbapt      t loop
3919228060Sbapt      s/-\n.*//
3920228060Sbapt    ' >$as_me.lineno &&
3921228060Sbapt  chmod +x "$as_me.lineno" ||
3922228060Sbapt    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3923228060Sbapt   { (exit 1); exit 1; }; }
3924228060Sbapt
3925228060Sbapt  # Don't try to exec as it changes $[0], causing all sort of problems
3926228060Sbapt  # (the dirname of $[0] is not the place where we might find the
3927228060Sbapt  # original and so on.  Autoconf is especially sensitive to this).
3928228060Sbapt  . "./$as_me.lineno"
3929228060Sbapt  # Exit status is that of the last command.
3930228060Sbapt  exit
3931228060Sbapt}
3932228060Sbapt
3933228060Sbapt
3934228060Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3935228060Sbapt  as_dirname=dirname
393658551Skriselse
3937228060Sbapt  as_dirname=false
393858551Skrisfi
3939228060Sbapt
3940228060SbaptECHO_C= ECHO_N= ECHO_T=
3941228060Sbaptcase `echo -n x` in
3942228060Sbapt-n*)
3943228060Sbapt  case `echo 'x\c'` in
3944228060Sbapt  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3945228060Sbapt  *)   ECHO_C='\c';;
3946228060Sbapt  esac;;
3947228060Sbapt*)
3948228060Sbapt  ECHO_N='-n';;
3949228060Sbaptesac
3950228060Sbapt
3951228060Sbaptif expr a : '\(a\)' >/dev/null 2>&1 &&
3952228060Sbapt   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3953228060Sbapt  as_expr=expr
3954228060Sbaptelse
3955228060Sbapt  as_expr=false
395658551Skrisfi
395758551Skris
3958228060Sbaptrm -f conf$$ conf$$.exe conf$$.file
3959228060Sbaptif test -d conf$$.dir; then
3960228060Sbapt  rm -f conf$$.dir/conf$$.file
396158551Skriselse
3962228060Sbapt  rm -f conf$$.dir
3963228060Sbapt  mkdir conf$$.dir
396458551Skrisfi
3965228060Sbaptecho >conf$$.file
3966228060Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then
3967228060Sbapt  as_ln_s='ln -s'
3968228060Sbapt  # ... but there are two gotchas:
3969228060Sbapt  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3970228060Sbapt  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3971228060Sbapt  # In both cases, we have to default to `cp -p'.
3972228060Sbapt  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3973228060Sbapt    as_ln_s='cp -p'
3974228060Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then
3975228060Sbapt  as_ln_s=ln
3976228060Sbaptelse
3977228060Sbapt  as_ln_s='cp -p'
3978228060Sbaptfi
3979228060Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3980228060Sbaptrmdir conf$$.dir 2>/dev/null
398158551Skris
3982228060Sbaptif mkdir -p . 2>/dev/null; then
3983228060Sbapt  as_mkdir_p=:
3984228060Sbaptelse
3985228060Sbapt  test -d ./-p && rmdir ./-p
3986228060Sbapt  as_mkdir_p=false
398758551Skrisfi
3988228060Sbapt
3989228060Sbaptif test -x / >/dev/null 2>&1; then
3990228060Sbapt  as_test_x='test -x'
399158551Skriselse
3992228060Sbapt  if ls -dL / >/dev/null 2>&1; then
3993228060Sbapt    as_ls_L_option=L
399458551Skris  else
3995228060Sbapt    as_ls_L_option=
399658551Skris  fi
3997228060Sbapt  as_test_x='
3998228060Sbapt    eval sh -c '\''
3999228060Sbapt      if test -d "$1"; then
4000228060Sbapt        test -d "$1/.";
4001228060Sbapt      else
4002228060Sbapt	case $1 in
4003228060Sbapt        -*)set "./$1";;
4004228060Sbapt	esac;
4005228060Sbapt	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4006228060Sbapt	???[sx]*):;;*)false;;esac;fi
4007228060Sbapt    '\'' sh
4008228060Sbapt  '
400958551Skrisfi
4010228060Sbaptas_executable_p=$as_test_x
401158551Skris
4012228060Sbapt# Sed expression to map a string onto a valid CPP name.
4013228060Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
401458551Skris
4015228060Sbapt# Sed expression to map a string onto a valid variable name.
4016228060Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
401758551Skris
401858551Skris
4019228060Sbaptexec 6>&1
402058551Skris
4021228060Sbapt# Save the log message, to keep $[0] and so on meaningful, and to
4022228060Sbapt# report actual input values of CONFIG_FILES etc. instead of their
4023228060Sbapt# values after options handling.
4024228060Sbaptac_log="
4025228060SbaptThis file was extended by $as_me, which was
4026228060Sbaptgenerated by GNU Autoconf 2.61.  Invocation command line was
402758551Skris
4028228060Sbapt  CONFIG_FILES    = $CONFIG_FILES
4029228060Sbapt  CONFIG_HEADERS  = $CONFIG_HEADERS
4030228060Sbapt  CONFIG_LINKS    = $CONFIG_LINKS
4031228060Sbapt  CONFIG_COMMANDS = $CONFIG_COMMANDS
4032228060Sbapt  $ $0 $@
403358551Skris
4034228060Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q`
4035228060Sbapt"
403658551Skris
4037228060Sbapt_ACEOF
4038228060Sbapt
4039228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4040228060Sbapt# Files that config.status was made for.
4041228060Sbaptconfig_files="$ac_config_files"
4042228060Sbaptconfig_headers="$ac_config_headers"
4043228060Sbapt
4044228060Sbapt_ACEOF
4045228060Sbapt
4046228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4047228060Sbaptac_cs_usage="\
4048228060Sbapt\`$as_me' instantiates files from templates according to the
4049228060Sbaptcurrent configuration.
4050228060Sbapt
4051228060SbaptUsage: $0 [OPTIONS] [FILE]...
4052228060Sbapt
4053228060Sbapt  -h, --help       print this help, then exit
4054228060Sbapt  -V, --version    print version number and configuration settings, then exit
4055228060Sbapt  -q, --quiet      do not print progress messages
4056228060Sbapt  -d, --debug      don't remove temporary files
4057228060Sbapt      --recheck    update $as_me by reconfiguring in the same conditions
4058228060Sbapt  --file=FILE[:TEMPLATE]
4059228060Sbapt		   instantiate the configuration file FILE
4060228060Sbapt  --header=FILE[:TEMPLATE]
4061228060Sbapt		   instantiate the configuration header FILE
4062228060Sbapt
4063228060SbaptConfiguration files:
4064228060Sbapt$config_files
4065228060Sbapt
4066228060SbaptConfiguration headers:
4067228060Sbapt$config_headers
4068228060Sbapt
4069228060SbaptReport bugs to <bug-autoconf@gnu.org>."
4070228060Sbapt
4071228060Sbapt_ACEOF
4072228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4073228060Sbaptac_cs_version="\\
4074228060Sbaptconfig.status
4075228060Sbaptconfigured by $0, generated by GNU Autoconf 2.61,
4076228060Sbapt  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4077228060Sbapt
4078228060SbaptCopyright (C) 2006 Free Software Foundation, Inc.
4079228060SbaptThis config.status script is free software; the Free Software Foundation
4080228060Sbaptgives unlimited permission to copy, distribute and modify it."
4081228060Sbapt
4082228060Sbaptac_pwd='$ac_pwd'
4083228060Sbaptsrcdir='$srcdir'
4084228060Sbapt_ACEOF
4085228060Sbapt
4086228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4087228060Sbapt# If no file are specified by the user, then we need to provide default
4088228060Sbapt# value.  By we need to know if files were specified by the user.
4089228060Sbaptac_need_defaults=:
4090228060Sbaptwhile test $# != 0
409158551Skrisdo
4092228060Sbapt  case $1 in
4093228060Sbapt  --*=*)
4094228060Sbapt    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4095228060Sbapt    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4096228060Sbapt    ac_shift=:
4097228060Sbapt    ;;
4098228060Sbapt  *)
4099228060Sbapt    ac_option=$1
4100228060Sbapt    ac_optarg=$2
4101228060Sbapt    ac_shift=shift
4102228060Sbapt    ;;
4103228060Sbapt  esac
4104228060Sbapt
4105228060Sbapt  case $ac_option in
4106228060Sbapt  # Handling of the options.
410758551Skris  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4108228060Sbapt    ac_cs_recheck=: ;;
4109228060Sbapt  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4110228060Sbapt    echo "$ac_cs_version"; exit ;;
4111228060Sbapt  --debug | --debu | --deb | --de | --d | -d )
4112228060Sbapt    debug=: ;;
4113228060Sbapt  --file | --fil | --fi | --f )
4114228060Sbapt    $ac_shift
4115228060Sbapt    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4116228060Sbapt    ac_need_defaults=false;;
4117228060Sbapt  --header | --heade | --head | --hea )
4118228060Sbapt    $ac_shift
4119228060Sbapt    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4120228060Sbapt    ac_need_defaults=false;;
4121228060Sbapt  --he | --h)
4122228060Sbapt    # Conflict between --help and --header
4123228060Sbapt    { echo "$as_me: error: ambiguous option: $1
4124228060SbaptTry \`$0 --help' for more information." >&2
4125228060Sbapt   { (exit 1); exit 1; }; };;
4126228060Sbapt  --help | --hel | -h )
4127228060Sbapt    echo "$ac_cs_usage"; exit ;;
4128228060Sbapt  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4129228060Sbapt  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4130228060Sbapt    ac_cs_silent=: ;;
4131228060Sbapt
4132228060Sbapt  # This is an error.
4133228060Sbapt  -*) { echo "$as_me: error: unrecognized option: $1
4134228060SbaptTry \`$0 --help' for more information." >&2
4135228060Sbapt   { (exit 1); exit 1; }; } ;;
4136228060Sbapt
4137228060Sbapt  *) ac_config_targets="$ac_config_targets $1"
4138228060Sbapt     ac_need_defaults=false ;;
4139228060Sbapt
414058551Skris  esac
4141228060Sbapt  shift
414258551Skrisdone
414358551Skris
4144228060Sbaptac_configure_extra_args=
414558551Skris
4146228060Sbaptif $ac_cs_silent; then
4147228060Sbapt  exec 6>/dev/null
4148228060Sbapt  ac_configure_extra_args="$ac_configure_extra_args --silent"
4149228060Sbaptfi
415058551Skris
4151228060Sbapt_ACEOF
4152228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4153228060Sbaptif \$ac_cs_recheck; then
4154228060Sbapt  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4155228060Sbapt  CONFIG_SHELL=$SHELL
4156228060Sbapt  export CONFIG_SHELL
4157228060Sbapt  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4158228060Sbaptfi
415958551Skris
4160228060Sbapt_ACEOF
4161228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4162228060Sbaptexec 5>>config.log
4163228060Sbapt{
4164228060Sbapt  echo
4165228060Sbapt  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4166228060Sbapt## Running $as_me. ##
4167228060Sbapt_ASBOX
4168228060Sbapt  echo "$ac_log"
4169228060Sbapt} >&5
417058551Skris
4171228060Sbapt_ACEOF
4172228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4173228060Sbapt_ACEOF
417458551Skris
4175228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4176228060Sbapt
4177228060Sbapt# Handling of arguments.
4178228060Sbaptfor ac_config_target in $ac_config_targets
4179228060Sbaptdo
4180228060Sbapt  case $ac_config_target in
4181228060Sbapt    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4182228060Sbapt    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4183228060Sbapt
4184228060Sbapt  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4185228060Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
4186228060Sbapt   { (exit 1); exit 1; }; };;
4187228060Sbapt  esac
418858551Skrisdone
4189228060Sbapt
4190228060Sbapt
4191228060Sbapt# If the user did not use the arguments to specify the items to instantiate,
4192228060Sbapt# then the envvar interface is used.  Set only those that are not.
4193228060Sbapt# We use the long form for the default assignment because of an extremely
4194228060Sbapt# bizarre bug on SunOS 4.1.3.
4195228060Sbaptif $ac_need_defaults; then
4196228060Sbapt  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4197228060Sbapt  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
419858551Skrisfi
419958551Skris
4200228060Sbapt# Have a temporary directory for convenience.  Make it in the build tree
4201228060Sbapt# simply because there is no reason against having it here, and in addition,
4202228060Sbapt# creating and moving files from /tmp can sometimes cause problems.
4203228060Sbapt# Hook for its removal unless debugging.
4204228060Sbapt# Note that there is a small window in which the directory will not be cleaned:
4205228060Sbapt# after its creation but before its name has been assigned to `$tmp'.
4206228060Sbapt$debug ||
4207228060Sbapt{
4208228060Sbapt  tmp=
4209228060Sbapt  trap 'exit_status=$?
4210228060Sbapt  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4211228060Sbapt' 0
4212228060Sbapt  trap '{ (exit 1); exit 1; }' 1 2 13 15
4213228060Sbapt}
4214228060Sbapt# Create a (secure) tmp directory for tmp files.
421558551Skris
4216228060Sbapt{
4217228060Sbapt  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4218228060Sbapt  test -n "$tmp" && test -d "$tmp"
4219228060Sbapt}  ||
4220228060Sbapt{
4221228060Sbapt  tmp=./conf$$-$RANDOM
4222228060Sbapt  (umask 077 && mkdir "$tmp")
4223228060Sbapt} ||
4224228060Sbapt{
4225228060Sbapt   echo "$me: cannot create a temporary directory in ." >&2
4226228060Sbapt   { (exit 1); exit 1; }
4227228060Sbapt}
422858551Skris
4229228060Sbapt#
4230228060Sbapt# Set up the sed scripts for CONFIG_FILES section.
4231228060Sbapt#
423258551Skris
4233228060Sbapt# No need to generate the scripts if there are no CONFIG_FILES.
4234228060Sbapt# This happens for instance when ./config.status config.h
4235228060Sbaptif test -n "$CONFIG_FILES"; then
4236228060Sbapt
4237228060Sbapt_ACEOF
4238228060Sbapt
4239228060Sbapt
4240228060Sbapt
4241228060Sbaptac_delim='%!_!# '
4242228060Sbaptfor ac_last_try in false false false false false :; do
4243228060Sbapt  cat >conf$$subs.sed <<_ACEOF
4244228060SbaptSHELL!$SHELL$ac_delim
4245228060SbaptPATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4246228060SbaptPACKAGE_NAME!$PACKAGE_NAME$ac_delim
4247228060SbaptPACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4248228060SbaptPACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4249228060SbaptPACKAGE_STRING!$PACKAGE_STRING$ac_delim
4250228060SbaptPACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4251228060Sbaptexec_prefix!$exec_prefix$ac_delim
4252228060Sbaptprefix!$prefix$ac_delim
4253228060Sbaptprogram_transform_name!$program_transform_name$ac_delim
4254228060Sbaptbindir!$bindir$ac_delim
4255228060Sbaptsbindir!$sbindir$ac_delim
4256228060Sbaptlibexecdir!$libexecdir$ac_delim
4257228060Sbaptdatarootdir!$datarootdir$ac_delim
4258228060Sbaptdatadir!$datadir$ac_delim
4259228060Sbaptsysconfdir!$sysconfdir$ac_delim
4260228060Sbaptsharedstatedir!$sharedstatedir$ac_delim
4261228060Sbaptlocalstatedir!$localstatedir$ac_delim
4262228060Sbaptincludedir!$includedir$ac_delim
4263228060Sbaptoldincludedir!$oldincludedir$ac_delim
4264228060Sbaptdocdir!$docdir$ac_delim
4265228060Sbaptinfodir!$infodir$ac_delim
4266228060Sbapthtmldir!$htmldir$ac_delim
4267228060Sbaptdvidir!$dvidir$ac_delim
4268228060Sbaptpdfdir!$pdfdir$ac_delim
4269228060Sbaptpsdir!$psdir$ac_delim
4270228060Sbaptlibdir!$libdir$ac_delim
4271228060Sbaptlocaledir!$localedir$ac_delim
4272228060Sbaptmandir!$mandir$ac_delim
4273228060SbaptDEFS!$DEFS$ac_delim
4274228060SbaptECHO_C!$ECHO_C$ac_delim
4275228060SbaptECHO_N!$ECHO_N$ac_delim
4276228060SbaptECHO_T!$ECHO_T$ac_delim
4277228060SbaptLIBS!$LIBS$ac_delim
4278228060Sbaptbuild_alias!$build_alias$ac_delim
4279228060Sbapthost_alias!$host_alias$ac_delim
4280228060Sbapttarget_alias!$target_alias$ac_delim
4281228060SbaptSET_MAKE!$SET_MAKE$ac_delim
4282228060SbaptCC!$CC$ac_delim
4283228060SbaptCFLAGS!$CFLAGS$ac_delim
4284228060SbaptLDFLAGS!$LDFLAGS$ac_delim
4285228060SbaptCPPFLAGS!$CPPFLAGS$ac_delim
4286228060Sbaptac_ct_CC!$ac_ct_CC$ac_delim
4287228060SbaptEXEEXT!$EXEEXT$ac_delim
4288228060SbaptOBJEXT!$OBJEXT$ac_delim
4289228060SbaptCPP!$CPP$ac_delim
4290228060SbaptCXX!$CXX$ac_delim
4291228060SbaptCXXFLAGS!$CXXFLAGS$ac_delim
4292228060Sbaptac_ct_CXX!$ac_ct_CXX$ac_delim
4293228060SbaptCXXCPP!$CXXCPP$ac_delim
4294228060SbaptINSTALL!$INSTALL$ac_delim
4295228060SbaptINSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4296228060SbaptINSTALL_DATA!$INSTALL_DATA$ac_delim
4297228060SbaptGPERF_LIBM!$GPERF_LIBM$ac_delim
4298228060SbaptLIBOBJS!$LIBOBJS$ac_delim
4299228060SbaptLTLIBOBJS!$LTLIBOBJS$ac_delim
4300228060Sbapt_ACEOF
4301228060Sbapt
4302228060Sbapt  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
4303228060Sbapt    break
4304228060Sbapt  elif $ac_last_try; then
4305228060Sbapt    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4306228060Sbaptecho "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4307228060Sbapt   { (exit 1); exit 1; }; }
430858551Skris  else
4309228060Sbapt    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
431058551Skris  fi
4311228060Sbaptdone
431258551Skris
4313228060Sbaptac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4314228060Sbaptif test -n "$ac_eof"; then
4315228060Sbapt  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4316228060Sbapt  ac_eof=`expr $ac_eof + 1`
4317228060Sbaptfi
431858551Skris
4319228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4320228060Sbaptcat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4321228060Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4322228060Sbapt_ACEOF
4323228060Sbaptsed '
4324228060Sbapts/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4325228060Sbapts/^/s,@/; s/!/@,|#_!!_#|/
4326228060Sbapt:n
4327228060Sbaptt n
4328228060Sbapts/'"$ac_delim"'$/,g/; t
4329228060Sbapts/$/\\/; p
4330228060SbaptN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4331228060Sbapt' >>$CONFIG_STATUS <conf$$subs.sed
4332228060Sbaptrm -f conf$$subs.sed
4333228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4334228060Sbapt:end
4335228060Sbapts/|#_!!_#|//g
4336228060SbaptCEOF$ac_eof
4337228060Sbapt_ACEOF
433858551Skris
4339228060Sbapt
4340228060Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir),
4341228060Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4342228060Sbapt# trailing colons and then remove the whole line if VPATH becomes empty
4343228060Sbapt# (actually we leave an empty line to preserve line numbers).
4344228060Sbaptif test "x$srcdir" = x.; then
4345228060Sbapt  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4346228060Sbapts/:*\$(srcdir):*/:/
4347228060Sbapts/:*\${srcdir}:*/:/
4348228060Sbapts/:*@srcdir@:*/:/
4349228060Sbapts/^\([^=]*=[	 ]*\):*/\1/
4350228060Sbapts/:*$//
4351228060Sbapts/^[^=]*=[	 ]*$//
4352228060Sbapt}'
4353228060Sbaptfi
4354228060Sbapt
4355228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4356228060Sbaptfi # test -n "$CONFIG_FILES"
4357228060Sbapt
4358228060Sbapt
4359228060Sbaptfor ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
4360228060Sbaptdo
4361228060Sbapt  case $ac_tag in
4362228060Sbapt  :[FHLC]) ac_mode=$ac_tag; continue;;
436358551Skris  esac
4364228060Sbapt  case $ac_mode$ac_tag in
4365228060Sbapt  :[FHL]*:*);;
4366228060Sbapt  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4367228060Sbaptecho "$as_me: error: Invalid tag $ac_tag." >&2;}
4368228060Sbapt   { (exit 1); exit 1; }; };;
4369228060Sbapt  :[FH]-) ac_tag=-:-;;
4370228060Sbapt  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4371228060Sbapt  esac
4372228060Sbapt  ac_save_IFS=$IFS
4373228060Sbapt  IFS=:
4374228060Sbapt  set x $ac_tag
4375228060Sbapt  IFS=$ac_save_IFS
4376228060Sbapt  shift
4377228060Sbapt  ac_file=$1
4378228060Sbapt  shift
437958551Skris
4380228060Sbapt  case $ac_mode in
4381228060Sbapt  :L) ac_source=$1;;
4382228060Sbapt  :[FH])
4383228060Sbapt    ac_file_inputs=
4384228060Sbapt    for ac_f
4385228060Sbapt    do
4386228060Sbapt      case $ac_f in
4387228060Sbapt      -) ac_f="$tmp/stdin";;
4388228060Sbapt      *) # Look for the file first in the build tree, then in the source tree
4389228060Sbapt	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4390228060Sbapt	 # because $ac_f cannot contain `:'.
4391228060Sbapt	 test -f "$ac_f" ||
4392228060Sbapt	   case $ac_f in
4393228060Sbapt	   [\\/$]*) false;;
4394228060Sbapt	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4395228060Sbapt	   esac ||
4396228060Sbapt	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4397228060Sbaptecho "$as_me: error: cannot find input file: $ac_f" >&2;}
4398228060Sbapt   { (exit 1); exit 1; }; };;
4399228060Sbapt      esac
4400228060Sbapt      ac_file_inputs="$ac_file_inputs $ac_f"
4401228060Sbapt    done
440258551Skris
4403228060Sbapt    # Let's still pretend it is `configure' which instantiates (i.e., don't
4404228060Sbapt    # use $as_me), people would be surprised to read:
4405228060Sbapt    #    /* config.h.  Generated by config.status.  */
4406228060Sbapt    configure_input="Generated from "`IFS=:
4407228060Sbapt	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4408228060Sbapt    if test x"$ac_file" != x-; then
4409228060Sbapt      configure_input="$ac_file.  $configure_input"
4410228060Sbapt      { echo "$as_me:$LINENO: creating $ac_file" >&5
4411228060Sbaptecho "$as_me: creating $ac_file" >&6;}
4412228060Sbapt    fi
441358551Skris
4414228060Sbapt    case $ac_tag in
4415228060Sbapt    *:-:* | *:-) cat >"$tmp/stdin";;
4416228060Sbapt    esac
4417228060Sbapt    ;;
441858551Skris  esac
441958551Skris
4420228060Sbapt  ac_dir=`$as_dirname -- "$ac_file" ||
4421228060Sbapt$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4422228060Sbapt	 X"$ac_file" : 'X\(//\)[^/]' \| \
4423228060Sbapt	 X"$ac_file" : 'X\(//\)$' \| \
4424228060Sbapt	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4425228060Sbaptecho X"$ac_file" |
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  { as_dir="$ac_dir"
4444228060Sbapt  case $as_dir in #(
4445228060Sbapt  -*) as_dir=./$as_dir;;
4446228060Sbapt  esac
4447228060Sbapt  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4448228060Sbapt    as_dirs=
4449228060Sbapt    while :; do
4450228060Sbapt      case $as_dir in #(
4451228060Sbapt      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4452228060Sbapt      *) as_qdir=$as_dir;;
4453228060Sbapt      esac
4454228060Sbapt      as_dirs="'$as_qdir' $as_dirs"
4455228060Sbapt      as_dir=`$as_dirname -- "$as_dir" ||
4456228060Sbapt$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4457228060Sbapt	 X"$as_dir" : 'X\(//\)[^/]' \| \
4458228060Sbapt	 X"$as_dir" : 'X\(//\)$' \| \
4459228060Sbapt	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4460228060Sbaptecho X"$as_dir" |
4461228060Sbapt    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4462228060Sbapt	    s//\1/
4463228060Sbapt	    q
4464228060Sbapt	  }
4465228060Sbapt	  /^X\(\/\/\)[^/].*/{
4466228060Sbapt	    s//\1/
4467228060Sbapt	    q
4468228060Sbapt	  }
4469228060Sbapt	  /^X\(\/\/\)$/{
4470228060Sbapt	    s//\1/
4471228060Sbapt	    q
4472228060Sbapt	  }
4473228060Sbapt	  /^X\(\/\).*/{
4474228060Sbapt	    s//\1/
4475228060Sbapt	    q
4476228060Sbapt	  }
4477228060Sbapt	  s/.*/./; q'`
4478228060Sbapt      test -d "$as_dir" && break
4479228060Sbapt    done
4480228060Sbapt    test -z "$as_dirs" || eval "mkdir $as_dirs"
4481228060Sbapt  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4482228060Sbaptecho "$as_me: error: cannot create directory $as_dir" >&2;}
4483228060Sbapt   { (exit 1); exit 1; }; }; }
4484228060Sbapt  ac_builddir=.
448558551Skris
4486228060Sbaptcase "$ac_dir" in
4487228060Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4488228060Sbapt*)
4489228060Sbapt  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4490228060Sbapt  # A ".." for each directory in $ac_dir_suffix.
4491228060Sbapt  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4492228060Sbapt  case $ac_top_builddir_sub in
4493228060Sbapt  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4494228060Sbapt  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4495228060Sbapt  esac ;;
4496228060Sbaptesac
4497228060Sbaptac_abs_top_builddir=$ac_pwd
4498228060Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix
4499228060Sbapt# for backward compatibility:
4500228060Sbaptac_top_builddir=$ac_top_build_prefix
450158551Skris
4502228060Sbaptcase $srcdir in
4503228060Sbapt  .)  # We are building in place.
4504228060Sbapt    ac_srcdir=.
4505228060Sbapt    ac_top_srcdir=$ac_top_builddir_sub
4506228060Sbapt    ac_abs_top_srcdir=$ac_pwd ;;
4507228060Sbapt  [\\/]* | ?:[\\/]* )  # Absolute name.
4508228060Sbapt    ac_srcdir=$srcdir$ac_dir_suffix;
4509228060Sbapt    ac_top_srcdir=$srcdir
4510228060Sbapt    ac_abs_top_srcdir=$srcdir ;;
4511228060Sbapt  *) # Relative name.
4512228060Sbapt    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4513228060Sbapt    ac_top_srcdir=$ac_top_build_prefix$srcdir
4514228060Sbapt    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4515228060Sbaptesac
4516228060Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
451758551Skris
451858551Skris
4519228060Sbapt  case $ac_mode in
4520228060Sbapt  :F)
4521228060Sbapt  #
4522228060Sbapt  # CONFIG_FILE
4523228060Sbapt  #
4524228060Sbapt
4525228060Sbapt_ACEOF
4526228060Sbapt
4527228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4528228060Sbapt# If the template does not know about datarootdir, expand it.
4529228060Sbapt# FIXME: This hack should be removed a few years after 2.60.
4530228060Sbaptac_datarootdir_hack=; ac_datarootdir_seen=
4531228060Sbapt
4532228060Sbaptcase `sed -n '/datarootdir/ {
4533228060Sbapt  p
4534228060Sbapt  q
4535228060Sbapt}
4536228060Sbapt/@datadir@/p
4537228060Sbapt/@docdir@/p
4538228060Sbapt/@infodir@/p
4539228060Sbapt/@localedir@/p
4540228060Sbapt/@mandir@/p
4541228060Sbapt' $ac_file_inputs` in
4542228060Sbapt*datarootdir*) ac_datarootdir_seen=yes;;
4543228060Sbapt*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4544228060Sbapt  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4545228060Sbaptecho "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4546228060Sbapt_ACEOF
4547228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4548228060Sbapt  ac_datarootdir_hack='
4549228060Sbapt  s&@datadir@&$datadir&g
4550228060Sbapt  s&@docdir@&$docdir&g
4551228060Sbapt  s&@infodir@&$infodir&g
4552228060Sbapt  s&@localedir@&$localedir&g
4553228060Sbapt  s&@mandir@&$mandir&g
4554228060Sbapt    s&\\\${datarootdir}&$datarootdir&g' ;;
4555228060Sbaptesac
4556228060Sbapt_ACEOF
4557228060Sbapt
4558228060Sbapt# Neutralize VPATH when `$srcdir' = `.'.
4559228060Sbapt# Shell code in configure.ac might set extrasub.
4560228060Sbapt# FIXME: do we really want to maintain this feature?
4561228060Sbaptcat >>$CONFIG_STATUS <<_ACEOF
4562228060Sbapt  sed "$ac_vpsub
4563228060Sbapt$extrasub
4564228060Sbapt_ACEOF
4565228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4566228060Sbapt:t
4567228060Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4568228060Sbapts&@configure_input@&$configure_input&;t t
4569228060Sbapts&@top_builddir@&$ac_top_builddir_sub&;t t
4570228060Sbapts&@srcdir@&$ac_srcdir&;t t
4571228060Sbapts&@abs_srcdir@&$ac_abs_srcdir&;t t
4572228060Sbapts&@top_srcdir@&$ac_top_srcdir&;t t
4573228060Sbapts&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4574228060Sbapts&@builddir@&$ac_builddir&;t t
4575228060Sbapts&@abs_builddir@&$ac_abs_builddir&;t t
4576228060Sbapts&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4577228060Sbapt$ac_datarootdir_hack
4578228060Sbapt" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4579228060Sbapt
4580228060Sbapttest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4581228060Sbapt  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4582228060Sbapt  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4583228060Sbapt  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4584228060Sbaptwhich seems to be undefined.  Please make sure it is defined." >&5
4585228060Sbaptecho "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4586228060Sbaptwhich seems to be undefined.  Please make sure it is defined." >&2;}
4587228060Sbapt
4588228060Sbapt  rm -f "$tmp/stdin"
4589228060Sbapt  case $ac_file in
4590228060Sbapt  -) cat "$tmp/out"; rm -f "$tmp/out";;
4591228060Sbapt  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4592228060Sbapt  esac
4593228060Sbapt ;;
4594228060Sbapt  :H)
4595228060Sbapt  #
4596228060Sbapt  # CONFIG_HEADER
4597228060Sbapt  #
4598228060Sbapt_ACEOF
4599228060Sbapt
4600228060Sbapt# Transform confdefs.h into a sed script `conftest.defines', that
4601228060Sbapt# substitutes the proper values into config.h.in to produce config.h.
4602228060Sbaptrm -f conftest.defines conftest.tail
4603228060Sbapt# First, append a space to every undef/define line, to ease matching.
4604228060Sbaptecho 's/$/ /' >conftest.defines
4605228060Sbapt# Then, protect against being on the right side of a sed subst, or in
4606228060Sbapt# an unquoted here document, in config.status.  If some macros were
4607228060Sbapt# called several times there might be several #defines for the same
4608228060Sbapt# symbol, which is useless.  But do not sort them, since the last
4609228060Sbapt# AC_DEFINE must be honored.
4610228060Sbaptac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4611228060Sbapt# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4612228060Sbapt# NAME is the cpp macro being defined, VALUE is the value it is being given.
4613228060Sbapt# PARAMS is the parameter list in the macro definition--in most cases, it's
4614228060Sbapt# just an empty string.
4615228060Sbaptac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
4616228060Sbaptac_dB='\\)[	 (].*,\\1define\\2'
4617228060Sbaptac_dC=' '
4618228060Sbaptac_dD=' ,'
4619228060Sbapt
4620228060Sbaptuniq confdefs.h |
4621228060Sbapt  sed -n '
4622228060Sbapt	t rset
4623228060Sbapt	:rset
4624228060Sbapt	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
4625228060Sbapt	t ok
4626228060Sbapt	d
4627228060Sbapt	:ok
4628228060Sbapt	s/[\\&,]/\\&/g
4629228060Sbapt	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4630228060Sbapt	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4631228060Sbapt  ' >>conftest.defines
4632228060Sbapt
4633228060Sbapt# Remove the space that was appended to ease matching.
4634228060Sbapt# Then replace #undef with comments.  This is necessary, for
463558551Skris# example, in the case of _POSIX_SOURCE, which is predefined and required
463658551Skris# on some systems where configure will not decide to define it.
4637228060Sbapt# (The regexp can be short, since the line contains either #define or #undef.)
4638228060Sbaptecho 's/ $//
4639228060Sbapts,^[	 #]*u.*,/* & */,' >>conftest.defines
464058551Skris
4641228060Sbapt# Break up conftest.defines:
4642228060Sbaptac_max_sed_lines=50
464358551Skris
4644228060Sbapt# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4645228060Sbapt# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4646228060Sbapt# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4647228060Sbapt# et cetera.
4648228060Sbaptac_in='$ac_file_inputs'
4649228060Sbaptac_out='"$tmp/out1"'
4650228060Sbaptac_nxt='"$tmp/out2"'
4651228060Sbapt
465258551Skriswhile :
465358551Skrisdo
4654228060Sbapt  # Write a here document:
4655228060Sbapt    cat >>$CONFIG_STATUS <<_ACEOF
4656228060Sbapt    # First, check the format of the line:
4657228060Sbapt    cat >"\$tmp/defines.sed" <<\\CEOF
4658228060Sbapt/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
4659228060Sbapt/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
4660228060Sbaptb
4661228060Sbapt:def
4662228060Sbapt_ACEOF
4663228060Sbapt  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
466458551Skris  echo 'CEOF
4665228060Sbapt    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4666228060Sbapt  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4667228060Sbapt  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4668228060Sbapt  grep . conftest.tail >/dev/null || break
4669228060Sbapt  rm -f conftest.defines
4670228060Sbapt  mv conftest.tail conftest.defines
467158551Skrisdone
4672228060Sbaptrm -f conftest.defines conftest.tail
467358551Skris
4674228060Sbaptecho "ac_result=$ac_in" >>$CONFIG_STATUS
4675228060Sbaptcat >>$CONFIG_STATUS <<\_ACEOF
4676228060Sbapt  if test x"$ac_file" != x-; then
4677228060Sbapt    echo "/* $configure_input  */" >"$tmp/config.h"
4678228060Sbapt    cat "$ac_result" >>"$tmp/config.h"
4679228060Sbapt    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4680228060Sbapt      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4681228060Sbaptecho "$as_me: $ac_file is unchanged" >&6;}
4682228060Sbapt    else
4683228060Sbapt      rm -f $ac_file
4684228060Sbapt      mv "$tmp/config.h" $ac_file
4685228060Sbapt    fi
468658551Skris  else
4687228060Sbapt    echo "/* $configure_input  */"
4688228060Sbapt    cat "$ac_result"
468958551Skris  fi
4690228060Sbapt  rm -f "$tmp/out12"
4691228060Sbapt ;;
469258551Skris
469358551Skris
4694228060Sbapt  esac
469558551Skris
4696228060Sbaptdone # for ac_tag
4697228060Sbapt
4698228060Sbapt
4699228060Sbapt{ (exit 0); exit 0; }
4700228060Sbapt_ACEOF
470158551Skrischmod +x $CONFIG_STATUS
4702228060Sbaptac_clean_files=$ac_clean_files_save
470358551Skris
4704228060Sbapt
4705228060Sbapt# configure is writing to config.log, and then calls config.status.
4706228060Sbapt# config.status does its own redirection, appending to config.log.
4707228060Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open
4708228060Sbapt# by configure, so config.status won't be able to write to it; its
4709228060Sbapt# output is simply discarded.  So we exec the FD to /dev/null,
4710228060Sbapt# effectively closing config.log, so it can be properly (re)opened and
4711228060Sbapt# appended to by config.status.  When coming back to configure, we
4712228060Sbapt# need to make the FD available again.
4713228060Sbaptif test "$no_create" != yes; then
4714228060Sbapt  ac_cs_success=:
4715228060Sbapt  ac_config_status_args=
4716228060Sbapt  test "$silent" = yes &&
4717228060Sbapt    ac_config_status_args="$ac_config_status_args --quiet"
4718228060Sbapt  exec 5>/dev/null
4719228060Sbapt  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4720228060Sbapt  exec 5>>config.log
4721228060Sbapt  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4722228060Sbapt  # would make configure fail if this is the last instruction.
4723228060Sbapt  $ac_cs_success || { (exit 1); exit 1; }
4724228060Sbaptfi
4725228060Sbapt
4726