]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/bvi/bvi-1.3.1/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / bvi / bvi-1.3.1 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- bvi-1.3.1/configure.in~configure
7 +++ bvi-1.3.1/configure.in
8 @@ -20,6 +20,9 @@
9  
10  
11  dnl Some curses specials
12 +AC_DEFINE(NEED_PUTC_CHAR, [], [Description])
13 +AC_DEFINE(HAVE_CURSES_H, [], [Description])
14 +
15  dnl Solaris needs for tputs 'putc(char)' instead of 'putc(int)'
16  case "$host_os" in
17  solaris*)
18 @@ -47,9 +50,6 @@
19  AC_CHECK_HEADERS(fcntl.h termcap.h termio.h termios.h unistd.h)
20  
21  dnl Check if ncurses requested
22 -_cppflags="${CPPFLAGS}"
23 -_ldflags="${LDFLAGS}"
24 -
25  AC_ARG_WITH(ncurses,
26  [  --with-ncurses[=DIR]    path to ncurses],[
27    if test "$withval" != "no"; then
28 @@ -62,13 +62,12 @@
29      AC_CHECK_LIB(ncurses, initscr,
30          AC_DEFINE(HAVE_NCURSES_H) LIBS="${LIBS} -lncurses",
31          AC_CHECK_LIB(curses, initscr,
32 -        AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses",
33 -        AC_MSG_ERROR([bvi requires the curses library]))),
34 -    AC_CHECK_HEADER(curses.h,
35 -        AC_CHECK_LIB(curses, initscr,
36 -               AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses",
37 -               AC_MSG_ERROR([bvi requires the curses library])),
38 -               AC_MSG_ERROR([bvi requires the curses library])))
39 +            AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses",
40 +            AC_MSG_ERROR([bvi requires the curses library])
41 +       )
42 +    ),
43 +    AC_MSG_ERROR([bvi requires the curses library])
44 +)
45  
46  dnl Checks for typedefs, structures, and compiler characteristics.
47  dnl AC_TYPE_SIZE_T
48 --- bvi-1.3.1/configure~configure
49 +++ bvi-1.3.1/configure
50 @@ -1,12 +1,81 @@
51  #! /bin/sh
52  # Guess values for system-dependent variables and create Makefiles.
53 -# Generated by Autoconf 2.52.
54 +# Generated by GNU Autoconf 2.57.
55  #
56 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
57 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
58  # Free Software Foundation, Inc.
59  # This configure script is free software; the Free Software Foundation
60  # gives unlimited permission to copy, distribute and modify it.
61 +## --------------------- ##
62 +## M4sh Initialization.  ##
63 +## --------------------- ##
64  
65 +# Be Bourne compatible
66 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
67 +  emulate sh
68 +  NULLCMD=:
69 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
70 +  # is contrary to our usage.  Disable this feature.
71 +  alias -g '${1+"$@"}'='"$@"'
72 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73 +  set -o posix
74 +fi
75 +
76 +# Support unset when possible.
77 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
78 +  as_unset=unset
79 +else
80 +  as_unset=false
81 +fi
82 +
83 +
84 +# Work around bugs in pre-3.0 UWIN ksh.
85 +$as_unset ENV MAIL MAILPATH
86 +PS1='$ '
87 +PS2='> '
88 +PS4='+ '
89 +
90 +# NLS nuisances.
91 +for as_var in \
92 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
93 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
94 +  LC_TELEPHONE LC_TIME
95 +do
96 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
97 +    eval $as_var=C; export $as_var
98 +  else
99 +    $as_unset $as_var
100 +  fi
101 +done
102 +
103 +# Required to use basename.
104 +if expr a : '\(a\)' >/dev/null 2>&1; then
105 +  as_expr=expr
106 +else
107 +  as_expr=false
108 +fi
109 +
110 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
111 +  as_basename=basename
112 +else
113 +  as_basename=false
114 +fi
115 +
116 +
117 +# Name of the executable.
118 +as_me=`$as_basename "$0" ||
119 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
120 +        X"$0" : 'X\(//\)$' \| \
121 +        X"$0" : 'X\(/\)$' \| \
122 +        .     : '\(.\)' 2>/dev/null ||
123 +echo X/"$0" |
124 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
125 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
126 +         /^X\/\(\/\).*/{ s//\1/; q; }
127 +         s/.*/./; q'`
128 +
129 +
130 +# PATH needs CR, and LINENO needs CR and PATH.
131  # Avoid depending upon Character Ranges.
132  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
133  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
134 @@ -14,22 +83,113 @@
135  as_cr_digits='0123456789'
136  as_cr_alnum=$as_cr_Letters$as_cr_digits
137  
138 -# Sed expression to map a string onto a valid variable name.
139 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
140 +# The user is always right.
141 +if test "${PATH_SEPARATOR+set}" != set; then
142 +  echo "#! /bin/sh" >conf$$.sh
143 +  echo  "exit 0"   >>conf$$.sh
144 +  chmod +x conf$$.sh
145 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
146 +    PATH_SEPARATOR=';'
147 +  else
148 +    PATH_SEPARATOR=:
149 +  fi
150 +  rm -f conf$$.sh
151 +fi
152  
153 -# Sed expression to map a string onto a valid CPP name.
154 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
155  
156 -# Be Bourne compatible
157 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
158 -  emulate sh
159 -  NULLCMD=:
160 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
161 -  set -o posix
162 -fi
163 +  as_lineno_1=$LINENO
164 +  as_lineno_2=$LINENO
165 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
166 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
167 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
168 +  # Find who we are.  Look in the path if we contain no path at all
169 +  # relative or not.
170 +  case $0 in
171 +    *[\\/]* ) as_myself=$0 ;;
172 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
173 +for as_dir in $PATH
174 +do
175 +  IFS=$as_save_IFS
176 +  test -z "$as_dir" && as_dir=.
177 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
178 +done
179 +
180 +       ;;
181 +  esac
182 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
183 +  # in which case we are not to be found in the path.
184 +  if test "x$as_myself" = x; then
185 +    as_myself=$0
186 +  fi
187 +  if test ! -f "$as_myself"; then
188 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
189 +   { (exit 1); exit 1; }; }
190 +  fi
191 +  case $CONFIG_SHELL in
192 +  '')
193 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 +do
196 +  IFS=$as_save_IFS
197 +  test -z "$as_dir" && as_dir=.
198 +  for as_base in sh bash ksh sh5; do
199 +        case $as_dir in
200 +        /*)
201 +          if ("$as_dir/$as_base" -c '
202 +  as_lineno_1=$LINENO
203 +  as_lineno_2=$LINENO
204 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
205 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
206 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
207 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
208 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
209 +            CONFIG_SHELL=$as_dir/$as_base
210 +            export CONFIG_SHELL
211 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
212 +          fi;;
213 +        esac
214 +       done
215 +done
216 +;;
217 +  esac
218 +
219 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
220 +  # uniformly replaced by the line number.  The first 'sed' inserts a
221 +  # line-number line before each line; the second 'sed' does the real
222 +  # work.  The second script uses 'N' to pair each line-number line
223 +  # with the numbered line, and appends trailing '-' during
224 +  # substitution so that $LINENO is not a special case at line end.
225 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
226 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
227 +  sed '=' <$as_myself |
228 +    sed '
229 +      N
230 +      s,$,-,
231 +      : loop
232 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
233 +      t loop
234 +      s,-$,,
235 +      s,^['$as_cr_digits']*\n,,
236 +    ' >$as_me.lineno &&
237 +  chmod +x $as_me.lineno ||
238 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
239 +   { (exit 1); exit 1; }; }
240 +
241 +  # Don't try to exec as it changes $[0], causing all sort of problems
242 +  # (the dirname of $[0] is not the place where we might find the
243 +  # original and so on.  Autoconf is especially sensible to this).
244 +  . ./$as_me.lineno
245 +  # Exit status is that of the last command.
246 +  exit
247 +}
248  
249 -# Name of the executable.
250 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
251 +
252 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
253 +  *c*,-n*) ECHO_N= ECHO_C='
254 +' ECHO_T='     ' ;;
255 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
256 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
257 +esac
258  
259  if expr a : '\(a\)' >/dev/null 2>&1; then
260    as_expr=expr
261 @@ -55,24 +215,20 @@
262  fi
263  rm -f conf$$ conf$$.exe conf$$.file
264  
265 -as_executable_p="test -f"
266 -
267 -# Support unset when possible.
268 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
269 -  as_unset=unset
270 +if mkdir -p . 2>/dev/null; then
271 +  as_mkdir_p=:
272  else
273 -  as_unset=false
274 +  as_mkdir_p=false
275  fi
276  
277 -# NLS nuisances.
278 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
279 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
280 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
281 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
282 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
283 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
284 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
285 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
286 +as_executable_p="test -f"
287 +
288 +# Sed expression to map a string onto a valid CPP name.
289 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
290 +
291 +# Sed expression to map a string onto a valid variable name.
292 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
293 +
294  
295  # IFS
296  # We need space, tab and new line, in precisely that order.
297 @@ -81,7 +237,8 @@
298  IFS="  $as_nl"
299  
300  # CDPATH.
301 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
302 +$as_unset CDPATH
303 +
304  
305  # Name of the host.
306  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
307 @@ -94,9 +251,11 @@
308  # Initializations.
309  #
310  ac_default_prefix=/usr/local
311 +ac_config_libobj_dir=.
312  cross_compiling=no
313  subdirs=
314 -MFLAGS= MAKEFLAGS=
315 +MFLAGS=
316 +MAKEFLAGS=
317  SHELL=${CONFIG_SHELL-/bin/sh}
318  
319  # Maximum number of lines to put in a shell here document.
320 @@ -104,6 +263,13 @@
321  # only ac_max_sed_lines should be used.
322  : ${ac_max_here_lines=38}
323  
324 +# Identity of this package.
325 +PACKAGE_NAME=
326 +PACKAGE_TARNAME=
327 +PACKAGE_VERSION=
328 +PACKAGE_STRING=
329 +PACKAGE_BUGREPORT=
330 +
331  ac_unique_file="bvi.c"
332  # Factoring default headers for most tests.
333  ac_includes_default="\
334 @@ -142,6 +308,9 @@
335  # include <unistd.h>
336  #endif"
337  
338 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
339 +ac_subst_files=''
340 +
341  # Initialize some variables set by options.
342  ac_init_help=
343  ac_init_version=false
344 @@ -180,13 +349,6 @@
345  infodir='${prefix}/info'
346  mandir='${prefix}/man'
347  
348 -# Identity of this package.
349 -PACKAGE_NAME=
350 -PACKAGE_TARNAME=
351 -PACKAGE_VERSION=
352 -PACKAGE_STRING=
353 -PACKAGE_BUGREPORT=
354 -
355  ac_prev=
356  for ac_option
357  do
358 @@ -319,7 +481,7 @@
359      with_fp=no ;;
360  
361    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
362 -  | --no-cr | --no-c)
363 +  | --no-cr | --no-c | -n)
364      no_create=yes ;;
365  
366    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
367 @@ -498,7 +660,7 @@
368    eval ac_val=$`echo $ac_var`
369    case $ac_val in
370      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
371 -    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
372 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
373     { (exit 1); exit 1; }; };;
374    esac
375  done
376 @@ -510,18 +672,19 @@
377    eval ac_val=$`echo $ac_var`
378    case $ac_val in
379      [\\/$]* | ?:[\\/]* ) ;;
380 -    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
381 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
382     { (exit 1); exit 1; }; };;
383    esac
384  done
385  
386  # There might be people who depend on the old broken behavior: `$host'
387  # used to hold the argument of --host etc.
388 +# FIXME: To remove some day.
389  build=$build_alias
390  host=$host_alias
391  target=$target_alias
392  
393 -# FIXME: should be removed in autoconf 3.0.
394 +# FIXME: To remove some day.
395  if test "x$host_alias" != x; then
396    if test "x$build_alias" = x; then
397      cross_compiling=maybe
398 @@ -537,13 +700,23 @@
399  
400  test "$silent" = yes && exec 6>/dev/null
401  
402 +
403  # Find the source files, if location was not specified.
404  if test -z "$srcdir"; then
405    ac_srcdir_defaulted=yes
406    # Try the directory containing this script, then its parent.
407 -  ac_prog=$0
408 -  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
409 -  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
410 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
411 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
412 +         X"$0" : 'X\(//\)[^/]' \| \
413 +         X"$0" : 'X\(//\)$' \| \
414 +         X"$0" : 'X\(/\)' \| \
415 +         .     : '\(.\)' 2>/dev/null ||
416 +echo X"$0" |
417 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
418 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
419 +         /^X\(\/\/\)$/{ s//\1/; q; }
420 +         /^X\(\/\).*/{ s//\1/; q; }
421 +         s/.*/./; q'`
422    srcdir=$ac_confdir
423    if test ! -r $srcdir/$ac_unique_file; then
424      srcdir=..
425 @@ -553,13 +726,16 @@
426  fi
427  if test ! -r $srcdir/$ac_unique_file; then
428    if test "$ac_srcdir_defaulted" = yes; then
429 -    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
430 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
431     { (exit 1); exit 1; }; }
432    else
433 -    { echo "$as_me: error: cannot find sources in $srcdir" >&2
434 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
435     { (exit 1); exit 1; }; }
436    fi
437  fi
438 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
439 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
440 +   { (exit 1); exit 1; }; }
441  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
442  ac_env_build_alias_set=${build_alias+set}
443  ac_env_build_alias_value=$build_alias
444 @@ -600,7 +776,7 @@
445  if test "$ac_init_help" = "long"; then
446    # Omit some internal or obsolete options to make the list less imposing.
447    # This message is too long to be a string in the A/UX 3.1 sh.
448 -  cat <<EOF
449 +  cat <<_ACEOF
450  \`configure' configures this package to adapt to many kinds of systems.
451  
452  Usage: $0 [OPTION]... [VAR=VALUE]...
453 @@ -621,9 +797,9 @@
454    -n, --no-create         do not create output files
455        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
456  
457 -EOF
458 +_ACEOF
459  
460 -  cat <<EOF
461 +  cat <<_ACEOF
462  Installation directories:
463    --prefix=PREFIX         install architecture-independent files in PREFIX
464                            [$ac_default_prefix]
465 @@ -650,19 +826,19 @@
466    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
467    --infodir=DIR          info documentation [PREFIX/info]
468    --mandir=DIR           man documentation [PREFIX/man]
469 -EOF
470 +_ACEOF
471  
472 -  cat <<\EOF
473 +  cat <<\_ACEOF
474  
475  System types:
476    --build=BUILD     configure for building on BUILD [guessed]
477 -  --host=HOST       build programs to run on HOST [BUILD]
478 -EOF
479 +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
480 +_ACEOF
481  fi
482  
483  if test -n "$ac_init_help"; then
484  
485 -  cat <<\EOF
486 +  cat <<\_ACEOF
487  
488  Optional Packages:
489    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
490 @@ -681,40 +857,60 @@
491  Use these variables to override the choices made by `configure' or to help
492  it to find libraries and programs with nonstandard names/locations.
493  
494 -EOF
495 +_ACEOF
496  fi
497  
498  if test "$ac_init_help" = "recursive"; then
499    # If there are subdirs, report their specific --help.
500    ac_popdir=`pwd`
501 -  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
502 -    cd $ac_subdir
503 -    # A "../" for each directory in /$ac_subdir.
504 -    ac_dots=`echo $ac_subdir |
505 -             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
506 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
507 +    test -d $ac_dir || continue
508 +    ac_builddir=.
509  
510 -    case $srcdir in
511 -    .) # No --srcdir option.  We are building in place.
512 -      ac_sub_srcdir=$srcdir ;;
513 -    [\\/]* | ?:[\\/]* ) # Absolute path.
514 -      ac_sub_srcdir=$srcdir/$ac_subdir ;;
515 -    *) # Relative path.
516 -      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
517 -    esac
518 +if test "$ac_dir" != .; then
519 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
520 +  # A "../" for each directory in $ac_dir_suffix.
521 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
522 +else
523 +  ac_dir_suffix= ac_top_builddir=
524 +fi
525 +
526 +case $srcdir in
527 +  .)  # No --srcdir option.  We are building in place.
528 +    ac_srcdir=.
529 +    if test -z "$ac_top_builddir"; then
530 +       ac_top_srcdir=.
531 +    else
532 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
533 +    fi ;;
534 +  [\\/]* | ?:[\\/]* )  # Absolute path.
535 +    ac_srcdir=$srcdir$ac_dir_suffix;
536 +    ac_top_srcdir=$srcdir ;;
537 +  *) # Relative path.
538 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
539 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
540 +esac
541 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
542 +# absolute.
543 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
544 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
545 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
546 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
547  
548 +    cd $ac_dir
549      # Check for guested configure; otherwise get Cygnus style configure.
550 -    if test -f $ac_sub_srcdir/configure.gnu; then
551 +    if test -f $ac_srcdir/configure.gnu; then
552        echo
553 -      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
554 -    elif test -f $ac_sub_srcdir/configure; then
555 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
556 +    elif test -f $ac_srcdir/configure; then
557        echo
558 -      $SHELL $ac_sub_srcdir/configure  --help=recursive
559 -    elif test -f $ac_sub_srcdir/configure.ac ||
560 -           test -f $ac_sub_srcdir/configure.in; then
561 +      $SHELL $ac_srcdir/configure  --help=recursive
562 +    elif test -f $ac_srcdir/configure.ac ||
563 +           test -f $ac_srcdir/configure.in; then
564        echo
565        $ac_configure --help
566      else
567 -      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
568 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
569      fi
570      cd $ac_popdir
571    done
572 @@ -722,31 +918,31 @@
573  
574  test -n "$ac_init_help" && exit 0
575  if $ac_init_version; then
576 -  cat <<\EOF
577 +  cat <<\_ACEOF
578  
579 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
580 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
581  Free Software Foundation, Inc.
582  This configure script is free software; the Free Software Foundation
583  gives unlimited permission to copy, distribute and modify it.
584 -EOF
585 +_ACEOF
586    exit 0
587  fi
588  exec 5>config.log
589 -cat >&5 <<EOF
590 +cat >&5 <<_ACEOF
591  This file contains any messages produced by compilers while
592  running configure, to aid debugging if configure makes a mistake.
593  
594  It was created by $as_me, which was
595 -generated by GNU Autoconf 2.52.  Invocation command line was
596 +generated by GNU Autoconf 2.57.  Invocation command line was
597  
598    $ $0 $@
599  
600 -EOF
601 +_ACEOF
602  {
603  cat <<_ASUNAME
604 -## ---------- ##
605 -## Platform.  ##
606 -## ---------- ##
607 +## --------- ##
608 +## Platform. ##
609 +## --------- ##
610  
611  hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
612  uname -m = `(uname -m) 2>/dev/null || echo unknown`
613 @@ -765,51 +961,96 @@
614  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
615  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
616  
617 -PATH = $PATH
618 -
619  _ASUNAME
620 +
621 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
622 +for as_dir in $PATH
623 +do
624 +  IFS=$as_save_IFS
625 +  test -z "$as_dir" && as_dir=.
626 +  echo "PATH: $as_dir"
627 +done
628 +
629  } >&5
630  
631 -cat >&5 <<EOF
632 -## ------------ ##
633 -## Core tests.  ##
634 -## ------------ ##
635 +cat >&5 <<_ACEOF
636 +
637 +
638 +## ----------- ##
639 +## Core tests. ##
640 +## ----------- ##
641 +
642 +_ACEOF
643  
644 -EOF
645  
646  # Keep a trace of the command line.
647  # Strip out --no-create and --no-recursion so they do not pile up.
648 +# Strip out --silent because we don't want to record it for future runs.
649  # Also quote any args containing shell meta-characters.
650 +# Make two passes to allow for proper duplicate-argument suppression.
651  ac_configure_args=
652 +ac_configure_args0=
653 +ac_configure_args1=
654  ac_sep=
655 -for ac_arg
656 +ac_must_keep_next=false
657 +for ac_pass in 1 2
658  do
659 -  case $ac_arg in
660 -  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 -  | --no-cr | --no-c) ;;
662 -  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663 -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
664 -  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
665 -    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
666 -    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
667 -    ac_sep=" " ;;
668 -  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
669 -     ac_sep=" " ;;
670 -  esac
671 -  # Get rid of the leading space.
672 +  for ac_arg
673 +  do
674 +    case $ac_arg in
675 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
676 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
677 +    | -silent | --silent | --silen | --sile | --sil)
678 +      continue ;;
679 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
680 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
681 +    esac
682 +    case $ac_pass in
683 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
684 +    2)
685 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
686 +      if test $ac_must_keep_next = true; then
687 +        ac_must_keep_next=false # Got value, back to normal.
688 +      else
689 +        case $ac_arg in
690 +          *=* | --config-cache | -C | -disable-* | --disable-* \
691 +          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
692 +          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
693 +          | -with-* | --with-* | -without-* | --without-* | --x)
694 +            case "$ac_configure_args0 " in
695 +              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
696 +            esac
697 +            ;;
698 +          -* ) ac_must_keep_next=true ;;
699 +        esac
700 +      fi
701 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
702 +      # Get rid of the leading space.
703 +      ac_sep=" "
704 +      ;;
705 +    esac
706 +  done
707  done
708 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
709 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
710  
711  # When interrupted or exit'd, cleanup temporary files, and complete
712  # config.log.  We remove comments because anyway the quotes in there
713  # would cause problems or look ugly.
714 +# WARNING: Be sure not to use single quotes in there, as some shells,
715 +# such as our DU 5.0 friend, will then `close' the trap.
716  trap 'exit_status=$?
717    # Save into config.log some information that might help in debugging.
718 -  echo >&5
719 -  echo "## ----------------- ##" >&5
720 -  echo "## Cache variables.  ##" >&5
721 -  echo "## ----------------- ##" >&5
722 -  echo >&5
723 -  # The following way of writing the cache mishandles newlines in values,
724 +  {
725 +    echo
726 +
727 +    cat <<\_ASBOX
728 +## ---------------- ##
729 +## Cache variables. ##
730 +## ---------------- ##
731 +_ASBOX
732 +    echo
733 +    # The following way of writing the cache mishandles newlines in values,
734  {
735    (set) 2>&1 |
736      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
737 @@ -823,21 +1064,53 @@
738          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
739        ;;
740      esac;
741 -} >&5
742 -  sed "/^$/d" confdefs.h >conftest.log
743 -  if test -s conftest.log; then
744 -    echo >&5
745 -    echo "## ------------ ##" >&5
746 -    echo "## confdefs.h.  ##" >&5
747 -    echo "## ------------ ##" >&5
748 -    echo >&5
749 -    cat conftest.log >&5
750 -  fi
751 -  (echo; echo) >&5
752 -  test "$ac_signal" != 0 &&
753 -    echo "$as_me: caught signal $ac_signal" >&5
754 -  echo "$as_me: exit $exit_status" >&5
755 -  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
756 +}
757 +    echo
758 +
759 +    cat <<\_ASBOX
760 +## ----------------- ##
761 +## Output variables. ##
762 +## ----------------- ##
763 +_ASBOX
764 +    echo
765 +    for ac_var in $ac_subst_vars
766 +    do
767 +      eval ac_val=$`echo $ac_var`
768 +      echo "$ac_var='"'"'$ac_val'"'"'"
769 +    done | sort
770 +    echo
771 +
772 +    if test -n "$ac_subst_files"; then
773 +      cat <<\_ASBOX
774 +## ------------- ##
775 +## Output files. ##
776 +## ------------- ##
777 +_ASBOX
778 +      echo
779 +      for ac_var in $ac_subst_files
780 +      do
781 +       eval ac_val=$`echo $ac_var`
782 +        echo "$ac_var='"'"'$ac_val'"'"'"
783 +      done | sort
784 +      echo
785 +    fi
786 +
787 +    if test -s confdefs.h; then
788 +      cat <<\_ASBOX
789 +## ----------- ##
790 +## confdefs.h. ##
791 +## ----------- ##
792 +_ASBOX
793 +      echo
794 +      sed "/^$/d" confdefs.h | sort
795 +      echo
796 +    fi
797 +    test "$ac_signal" != 0 &&
798 +      echo "$as_me: caught signal $ac_signal"
799 +    echo "$as_me: exit $exit_status"
800 +  } >&5
801 +  rm -f core core.* *.core &&
802 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
803      exit $exit_status
804       ' 0
805  for ac_signal in 1 2 13 15; do
806 @@ -850,6 +1123,33 @@
807  # AIX cpp loses on an empty file, so make sure it contains at least a newline.
808  echo >confdefs.h
809  
810 +# Predefined preprocessor variables.
811 +
812 +cat >>confdefs.h <<_ACEOF
813 +#define PACKAGE_NAME "$PACKAGE_NAME"
814 +_ACEOF
815 +
816 +
817 +cat >>confdefs.h <<_ACEOF
818 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
819 +_ACEOF
820 +
821 +
822 +cat >>confdefs.h <<_ACEOF
823 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
824 +_ACEOF
825 +
826 +
827 +cat >>confdefs.h <<_ACEOF
828 +#define PACKAGE_STRING "$PACKAGE_STRING"
829 +_ACEOF
830 +
831 +
832 +cat >>confdefs.h <<_ACEOF
833 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
834 +_ACEOF
835 +
836 +
837  # Let the site file select an alternate cache file if it wants to.
838  # Prefer explicitly selected file to automatically selected ones.
839  if test -z "$CONFIG_SITE"; then
840 @@ -861,9 +1161,9 @@
841  fi
842  for ac_site_file in $CONFIG_SITE; do
843    if test -r "$ac_site_file"; then
844 -    { echo "$as_me:864: loading site script $ac_site_file" >&5
845 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
846  echo "$as_me: loading site script $ac_site_file" >&6;}
847 -    cat "$ac_site_file" >&5
848 +    sed 's/^/| /' "$ac_site_file" >&5
849      . "$ac_site_file"
850    fi
851  done
852 @@ -872,7 +1172,7 @@
853    # Some versions of bash will fail to source /dev/null (special
854    # files actually), so we avoid doing that.
855    if test -f "$cache_file"; then
856 -    { echo "$as_me:875: loading cache $cache_file" >&5
857 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
858  echo "$as_me: loading cache $cache_file" >&6;}
859      case $cache_file in
860        [\\/]* | ?:[\\/]* ) . $cache_file;;
861 @@ -880,7 +1180,7 @@
862      esac
863    fi
864  else
865 -  { echo "$as_me:883: creating cache $cache_file" >&5
866 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
867  echo "$as_me: creating cache $cache_file" >&6;}
868    >$cache_file
869  fi
870 @@ -896,42 +1196,42 @@
871    eval ac_new_val="\$ac_env_${ac_var}_value"
872    case $ac_old_set,$ac_new_set in
873      set,)
874 -      { echo "$as_me:899: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
875 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
876  echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
877        ac_cache_corrupted=: ;;
878      ,set)
879 -      { echo "$as_me:903: error: \`$ac_var' was not set in the previous run" >&5
880 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
881  echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
882        ac_cache_corrupted=: ;;
883      ,);;
884      *)
885        if test "x$ac_old_val" != "x$ac_new_val"; then
886 -        { echo "$as_me:909: error: \`$ac_var' has changed since the previous run:" >&5
887 +        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
888  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
889 -        { echo "$as_me:911:   former value:  $ac_old_val" >&5
890 +        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
891  echo "$as_me:   former value:  $ac_old_val" >&2;}
892 -        { echo "$as_me:913:   current value: $ac_new_val" >&5
893 +        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
894  echo "$as_me:   current value: $ac_new_val" >&2;}
895          ac_cache_corrupted=:
896        fi;;
897    esac
898 -  # Pass precious variables to config.status.  It doesn't matter if
899 -  # we pass some twice (in addition to the command line arguments).
900 +  # Pass precious variables to config.status.
901    if test "$ac_new_set" = set; then
902      case $ac_new_val in
903      *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
904 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
905 -      ac_configure_args="$ac_configure_args '$ac_arg'"
906 -      ;;
907 -    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
908 -       ;;
909 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
910 +    *) ac_arg=$ac_var=$ac_new_val ;;
911 +    esac
912 +    case " $ac_configure_args " in
913 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
914 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
915      esac
916    fi
917  done
918  if $ac_cache_corrupted; then
919 -  { echo "$as_me:932: error: changes in the environment can compromise the build" >&5
920 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
921  echo "$as_me: error: changes in the environment can compromise the build" >&2;}
922 -  { { echo "$as_me:934: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
923 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
924  echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
925     { (exit 1); exit 1; }; }
926  fi
927 @@ -942,28 +1242,27 @@
928  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
929  ac_compiler_gnu=$ac_cv_c_compiler_gnu
930  
931 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
932 -  *c*,-n*) ECHO_N= ECHO_C='
933 -' ECHO_T='     ' ;;
934 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
935 -  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
936 -esac
937 -echo "#! $SHELL" >conftest.sh
938 -echo  "exit 0"   >>conftest.sh
939 -chmod +x conftest.sh
940 -if { (echo "$as_me:954: PATH=\".;.\"; conftest.sh") >&5
941 -  (PATH=".;."; conftest.sh) 2>&5
942 -  ac_status=$?
943 -  echo "$as_me:957: \$? = $ac_status" >&5
944 -  (exit $ac_status); }; then
945 -  ac_path_separator=';'
946 -else
947 -  ac_path_separator=:
948 -fi
949 -PATH_SEPARATOR="$ac_path_separator"
950 -rm -f conftest.sh
951  
952 -ac_config_headers="$ac_config_headers config.h"
953 +
954 +
955 +
956 +
957 +
958 +
959 +
960 +
961 +
962 +
963 +
964 +
965 +
966 +
967 +
968 +
969 +
970 +
971 +          ac_config_headers="$ac_config_headers config.h"
972 +
973  
974  ac_aux_dir=
975  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 @@ -982,7 +1281,7 @@
977    fi
978  done
979  if test -z "$ac_aux_dir"; then
980 -  { { echo "$as_me:985: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
981 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
982  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
983     { (exit 1); exit 1; }; }
984  fi
985 @@ -992,11 +1291,11 @@
986  
987  # Make sure we can run config.sub.
988  $ac_config_sub sun4 >/dev/null 2>&1 ||
989 -  { { echo "$as_me:995: error: cannot run $ac_config_sub" >&5
990 +  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
991  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
992     { (exit 1); exit 1; }; }
993  
994 -echo "$as_me:999: checking build system type" >&5
995 +echo "$as_me:$LINENO: checking build system type" >&5
996  echo $ECHO_N "checking build system type... $ECHO_C" >&6
997  if test "${ac_cv_build+set}" = set; then
998    echo $ECHO_N "(cached) $ECHO_C" >&6
999 @@ -1005,23 +1304,24 @@
1000  test -z "$ac_cv_build_alias" &&
1001    ac_cv_build_alias=`$ac_config_guess`
1002  test -z "$ac_cv_build_alias" &&
1003 -  { { echo "$as_me:1008: error: cannot guess build type; you must specify one" >&5
1004 +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1005  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1006     { (exit 1); exit 1; }; }
1007  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1008 -  { { echo "$as_me:1012: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1009 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1010 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1011 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1012     { (exit 1); exit 1; }; }
1013  
1014  fi
1015 -echo "$as_me:1017: result: $ac_cv_build" >&5
1016 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1017  echo "${ECHO_T}$ac_cv_build" >&6
1018  build=$ac_cv_build
1019  build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020  build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021  build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022  
1023 -echo "$as_me:1024: checking host system type" >&5
1024 +
1025 +echo "$as_me:$LINENO: checking host system type" >&5
1026  echo $ECHO_N "checking host system type... $ECHO_C" >&6
1027  if test "${ac_cv_host+set}" = set; then
1028    echo $ECHO_N "(cached) $ECHO_C" >&6
1029 @@ -1030,21 +1330,23 @@
1030  test -z "$ac_cv_host_alias" &&
1031    ac_cv_host_alias=$ac_cv_build_alias
1032  ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1033 -  { { echo "$as_me:1033: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1034 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1035  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1036     { (exit 1); exit 1; }; }
1037  
1038  fi
1039 -echo "$as_me:1038: result: $ac_cv_host" >&5
1040 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1041  echo "${ECHO_T}$ac_cv_host" >&6
1042  host=$ac_cv_host
1043  host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044  host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045  host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046  
1047 +
1048 +
1049  case "$host_os" in
1050  sunos4*)
1051 -       echo "$as_me:1047: result: \"using /usr/5bin/cc\"" >&5
1052 +       echo "$as_me:$LINENO: result: \"using /usr/5bin/cc\"" >&5
1053  echo "${ECHO_T}\"using /usr/5bin/cc\"" >&6
1054         CC="/usr/5bin/cc"
1055         ac_objext="o"
1056 @@ -1058,7 +1360,7 @@
1057  if test -n "$ac_tool_prefix"; then
1058    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1059  set dummy ${ac_tool_prefix}gcc; ac_word=$2
1060 -echo "$as_me:1061: checking for $ac_word" >&5
1061 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1062  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1063  if test "${ac_cv_prog_CC+set}" = set; then
1064    echo $ECHO_N "(cached) $ECHO_C" >&6
1065 @@ -1066,25 +1368,28 @@
1066    if test -n "$CC"; then
1067    ac_cv_prog_CC="$CC" # Let the user override the test.
1068  else
1069 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1070 -ac_dummy="$PATH"
1071 -for ac_dir in $ac_dummy; do
1072 -  IFS=$ac_save_IFS
1073 -  test -z "$ac_dir" && ac_dir=.
1074 -  $as_executable_p "$ac_dir/$ac_word" || continue
1075 -ac_cv_prog_CC="${ac_tool_prefix}gcc"
1076 -echo "$as_me:1076: found $ac_dir/$ac_word" >&5
1077 -break
1078 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1079 +for as_dir in $PATH
1080 +do
1081 +  IFS=$as_save_IFS
1082 +  test -z "$as_dir" && as_dir=.
1083 +  for ac_exec_ext in '' $ac_executable_extensions; do
1084 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1085 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1086 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1087 +    break 2
1088 +  fi
1089 +done
1090  done
1091  
1092  fi
1093  fi
1094  CC=$ac_cv_prog_CC
1095  if test -n "$CC"; then
1096 -  echo "$as_me:1084: result: $CC" >&5
1097 +  echo "$as_me:$LINENO: result: $CC" >&5
1098  echo "${ECHO_T}$CC" >&6
1099  else
1100 -  echo "$as_me:1087: result: no" >&5
1101 +  echo "$as_me:$LINENO: result: no" >&5
1102  echo "${ECHO_T}no" >&6
1103  fi
1104  
1105 @@ -1093,7 +1398,7 @@
1106    ac_ct_CC=$CC
1107    # Extract the first word of "gcc", so it can be a program name with args.
1108  set dummy gcc; ac_word=$2
1109 -echo "$as_me:1096: checking for $ac_word" >&5
1110 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1111  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1112  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1113    echo $ECHO_N "(cached) $ECHO_C" >&6
1114 @@ -1101,25 +1406,28 @@
1115    if test -n "$ac_ct_CC"; then
1116    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1117  else
1118 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1119 -ac_dummy="$PATH"
1120 -for ac_dir in $ac_dummy; do
1121 -  IFS=$ac_save_IFS
1122 -  test -z "$ac_dir" && ac_dir=.
1123 -  $as_executable_p "$ac_dir/$ac_word" || continue
1124 -ac_cv_prog_ac_ct_CC="gcc"
1125 -echo "$as_me:1111: found $ac_dir/$ac_word" >&5
1126 -break
1127 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1128 +for as_dir in $PATH
1129 +do
1130 +  IFS=$as_save_IFS
1131 +  test -z "$as_dir" && as_dir=.
1132 +  for ac_exec_ext in '' $ac_executable_extensions; do
1133 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1134 +    ac_cv_prog_ac_ct_CC="gcc"
1135 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1136 +    break 2
1137 +  fi
1138 +done
1139  done
1140  
1141  fi
1142  fi
1143  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1144  if test -n "$ac_ct_CC"; then
1145 -  echo "$as_me:1119: result: $ac_ct_CC" >&5
1146 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1147  echo "${ECHO_T}$ac_ct_CC" >&6
1148  else
1149 -  echo "$as_me:1122: result: no" >&5
1150 +  echo "$as_me:$LINENO: result: no" >&5
1151  echo "${ECHO_T}no" >&6
1152  fi
1153  
1154 @@ -1132,7 +1440,7 @@
1155    if test -n "$ac_tool_prefix"; then
1156    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1157  set dummy ${ac_tool_prefix}cc; ac_word=$2
1158 -echo "$as_me:1135: checking for $ac_word" >&5
1159 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1160  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161  if test "${ac_cv_prog_CC+set}" = set; then
1162    echo $ECHO_N "(cached) $ECHO_C" >&6
1163 @@ -1140,25 +1448,28 @@
1164    if test -n "$CC"; then
1165    ac_cv_prog_CC="$CC" # Let the user override the test.
1166  else
1167 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1168 -ac_dummy="$PATH"
1169 -for ac_dir in $ac_dummy; do
1170 -  IFS=$ac_save_IFS
1171 -  test -z "$ac_dir" && ac_dir=.
1172 -  $as_executable_p "$ac_dir/$ac_word" || continue
1173 -ac_cv_prog_CC="${ac_tool_prefix}cc"
1174 -echo "$as_me:1150: found $ac_dir/$ac_word" >&5
1175 -break
1176 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177 +for as_dir in $PATH
1178 +do
1179 +  IFS=$as_save_IFS
1180 +  test -z "$as_dir" && as_dir=.
1181 +  for ac_exec_ext in '' $ac_executable_extensions; do
1182 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1183 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
1184 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1185 +    break 2
1186 +  fi
1187 +done
1188  done
1189  
1190  fi
1191  fi
1192  CC=$ac_cv_prog_CC
1193  if test -n "$CC"; then
1194 -  echo "$as_me:1158: result: $CC" >&5
1195 +  echo "$as_me:$LINENO: result: $CC" >&5
1196  echo "${ECHO_T}$CC" >&6
1197  else
1198 -  echo "$as_me:1161: result: no" >&5
1199 +  echo "$as_me:$LINENO: result: no" >&5
1200  echo "${ECHO_T}no" >&6
1201  fi
1202  
1203 @@ -1167,7 +1478,7 @@
1204    ac_ct_CC=$CC
1205    # Extract the first word of "cc", so it can be a program name with args.
1206  set dummy cc; ac_word=$2
1207 -echo "$as_me:1170: checking for $ac_word" >&5
1208 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1209  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1210  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1211    echo $ECHO_N "(cached) $ECHO_C" >&6
1212 @@ -1175,25 +1486,28 @@
1213    if test -n "$ac_ct_CC"; then
1214    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1215  else
1216 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1217 -ac_dummy="$PATH"
1218 -for ac_dir in $ac_dummy; do
1219 -  IFS=$ac_save_IFS
1220 -  test -z "$ac_dir" && ac_dir=.
1221 -  $as_executable_p "$ac_dir/$ac_word" || continue
1222 -ac_cv_prog_ac_ct_CC="cc"
1223 -echo "$as_me:1185: found $ac_dir/$ac_word" >&5
1224 -break
1225 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 +for as_dir in $PATH
1227 +do
1228 +  IFS=$as_save_IFS
1229 +  test -z "$as_dir" && as_dir=.
1230 +  for ac_exec_ext in '' $ac_executable_extensions; do
1231 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1232 +    ac_cv_prog_ac_ct_CC="cc"
1233 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1234 +    break 2
1235 +  fi
1236 +done
1237  done
1238  
1239  fi
1240  fi
1241  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1242  if test -n "$ac_ct_CC"; then
1243 -  echo "$as_me:1193: result: $ac_ct_CC" >&5
1244 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1245  echo "${ECHO_T}$ac_ct_CC" >&6
1246  else
1247 -  echo "$as_me:1196: result: no" >&5
1248 +  echo "$as_me:$LINENO: result: no" >&5
1249  echo "${ECHO_T}no" >&6
1250  fi
1251  
1252 @@ -1206,7 +1520,7 @@
1253  if test -z "$CC"; then
1254    # Extract the first word of "cc", so it can be a program name with args.
1255  set dummy cc; ac_word=$2
1256 -echo "$as_me:1209: checking for $ac_word" >&5
1257 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1258  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259  if test "${ac_cv_prog_CC+set}" = set; then
1260    echo $ECHO_N "(cached) $ECHO_C" >&6
1261 @@ -1215,19 +1529,22 @@
1262    ac_cv_prog_CC="$CC" # Let the user override the test.
1263  else
1264    ac_prog_rejected=no
1265 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1266 -ac_dummy="$PATH"
1267 -for ac_dir in $ac_dummy; do
1268 -  IFS=$ac_save_IFS
1269 -  test -z "$ac_dir" && ac_dir=.
1270 -  $as_executable_p "$ac_dir/$ac_word" || continue
1271 -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1272 -  ac_prog_rejected=yes
1273 -  continue
1274 -fi
1275 -ac_cv_prog_CC="cc"
1276 -echo "$as_me:1229: found $ac_dir/$ac_word" >&5
1277 -break
1278 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1279 +for as_dir in $PATH
1280 +do
1281 +  IFS=$as_save_IFS
1282 +  test -z "$as_dir" && as_dir=.
1283 +  for ac_exec_ext in '' $ac_executable_extensions; do
1284 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1285 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1286 +       ac_prog_rejected=yes
1287 +       continue
1288 +     fi
1289 +    ac_cv_prog_CC="cc"
1290 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1291 +    break 2
1292 +  fi
1293 +done
1294  done
1295  
1296  if test $ac_prog_rejected = yes; then
1297 @@ -1239,19 +1556,17 @@
1298      # However, it has the same basename, so the bogon will be chosen
1299      # first if we set CC to just the basename; use the full file name.
1300      shift
1301 -    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1302 -    shift
1303 -    ac_cv_prog_CC="$@"
1304 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1305    fi
1306  fi
1307  fi
1308  fi
1309  CC=$ac_cv_prog_CC
1310  if test -n "$CC"; then
1311 -  echo "$as_me:1251: result: $CC" >&5
1312 +  echo "$as_me:$LINENO: result: $CC" >&5
1313  echo "${ECHO_T}$CC" >&6
1314  else
1315 -  echo "$as_me:1254: result: no" >&5
1316 +  echo "$as_me:$LINENO: result: no" >&5
1317  echo "${ECHO_T}no" >&6
1318  fi
1319  
1320 @@ -1262,7 +1577,7 @@
1321    do
1322      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1323  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1324 -echo "$as_me:1265: checking for $ac_word" >&5
1325 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1326  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327  if test "${ac_cv_prog_CC+set}" = set; then
1328    echo $ECHO_N "(cached) $ECHO_C" >&6
1329 @@ -1270,25 +1585,28 @@
1330    if test -n "$CC"; then
1331    ac_cv_prog_CC="$CC" # Let the user override the test.
1332  else
1333 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1334 -ac_dummy="$PATH"
1335 -for ac_dir in $ac_dummy; do
1336 -  IFS=$ac_save_IFS
1337 -  test -z "$ac_dir" && ac_dir=.
1338 -  $as_executable_p "$ac_dir/$ac_word" || continue
1339 -ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1340 -echo "$as_me:1280: found $ac_dir/$ac_word" >&5
1341 -break
1342 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 +for as_dir in $PATH
1344 +do
1345 +  IFS=$as_save_IFS
1346 +  test -z "$as_dir" && as_dir=.
1347 +  for ac_exec_ext in '' $ac_executable_extensions; do
1348 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1349 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1350 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1351 +    break 2
1352 +  fi
1353 +done
1354  done
1355  
1356  fi
1357  fi
1358  CC=$ac_cv_prog_CC
1359  if test -n "$CC"; then
1360 -  echo "$as_me:1288: result: $CC" >&5
1361 +  echo "$as_me:$LINENO: result: $CC" >&5
1362  echo "${ECHO_T}$CC" >&6
1363  else
1364 -  echo "$as_me:1291: result: no" >&5
1365 +  echo "$as_me:$LINENO: result: no" >&5
1366  echo "${ECHO_T}no" >&6
1367  fi
1368  
1369 @@ -1301,7 +1619,7 @@
1370  do
1371    # Extract the first word of "$ac_prog", so it can be a program name with args.
1372  set dummy $ac_prog; ac_word=$2
1373 -echo "$as_me:1304: checking for $ac_word" >&5
1374 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1375  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1377    echo $ECHO_N "(cached) $ECHO_C" >&6
1378 @@ -1309,25 +1627,28 @@
1379    if test -n "$ac_ct_CC"; then
1380    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1381  else
1382 -  ac_save_IFS=$IFS; IFS=$ac_path_separator
1383 -ac_dummy="$PATH"
1384 -for ac_dir in $ac_dummy; do
1385 -  IFS=$ac_save_IFS
1386 -  test -z "$ac_dir" && ac_dir=.
1387 -  $as_executable_p "$ac_dir/$ac_word" || continue
1388 -ac_cv_prog_ac_ct_CC="$ac_prog"
1389 -echo "$as_me:1319: found $ac_dir/$ac_word" >&5
1390 -break
1391 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 +for as_dir in $PATH
1393 +do
1394 +  IFS=$as_save_IFS
1395 +  test -z "$as_dir" && as_dir=.
1396 +  for ac_exec_ext in '' $ac_executable_extensions; do
1397 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398 +    ac_cv_prog_ac_ct_CC="$ac_prog"
1399 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 +    break 2
1401 +  fi
1402 +done
1403  done
1404  
1405  fi
1406  fi
1407  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408  if test -n "$ac_ct_CC"; then
1409 -  echo "$as_me:1327: result: $ac_ct_CC" >&5
1410 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1411  echo "${ECHO_T}$ac_ct_CC" >&6
1412  else
1413 -  echo "$as_me:1330: result: no" >&5
1414 +  echo "$as_me:$LINENO: result: no" >&5
1415  echo "${ECHO_T}no" >&6
1416  fi
1417  
1418 @@ -1339,33 +1660,40 @@
1419  
1420  fi
1421  
1422 -test -z "$CC" && { { echo "$as_me:1342: error: no acceptable cc found in \$PATH" >&5
1423 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1424 +
1425 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1426 +See \`config.log' for more details." >&5
1427 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1428 +See \`config.log' for more details." >&2;}
1429     { (exit 1); exit 1; }; }
1430  
1431  # Provide some information about the compiler.
1432 -echo "$as_me:1347:" \
1433 +echo "$as_me:$LINENO:" \
1434       "checking for C compiler version" >&5
1435  ac_compiler=`set X $ac_compile; echo $2`
1436 -{ (eval echo "$as_me:1350: \"$ac_compiler --version </dev/null >&5\"") >&5
1437 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1438    (eval $ac_compiler --version </dev/null >&5) 2>&5
1439    ac_status=$?
1440 -  echo "$as_me:1353: \$? = $ac_status" >&5
1441 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1442    (exit $ac_status); }
1443 -{ (eval echo "$as_me:1355: \"$ac_compiler -v </dev/null >&5\"") >&5
1444 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1445    (eval $ac_compiler -v </dev/null >&5) 2>&5
1446    ac_status=$?
1447 -  echo "$as_me:1358: \$? = $ac_status" >&5
1448 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1449    (exit $ac_status); }
1450 -{ (eval echo "$as_me:1360: \"$ac_compiler -V </dev/null >&5\"") >&5
1451 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1452    (eval $ac_compiler -V </dev/null >&5) 2>&5
1453    ac_status=$?
1454 -  echo "$as_me:1363: \$? = $ac_status" >&5
1455 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1456    (exit $ac_status); }
1457  
1458  cat >conftest.$ac_ext <<_ACEOF
1459 -#line 1367 "configure"
1460 -#include "confdefs.h"
1461 +#line $LINENO "configure"
1462 +/* confdefs.h.  */
1463 +_ACEOF
1464 +cat confdefs.h >>conftest.$ac_ext
1465 +cat >>conftest.$ac_ext <<_ACEOF
1466 +/* end confdefs.h.  */
1467  
1468  int
1469  main ()
1470 @@ -1376,100 +1704,120 @@
1471  }
1472  _ACEOF
1473  ac_clean_files_save=$ac_clean_files
1474 -ac_clean_files="$ac_clean_files a.out a.exe"
1475 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
1476  # Try to create an executable without -o first, disregard a.out.
1477  # It will help us diagnose broken compilers, and finding out an intuition
1478  # of exeext.
1479 -echo "$as_me:1383: checking for C compiler default output" >&5
1480 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
1481  echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1482  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1483 -if { (eval echo "$as_me:1386: \"$ac_link_default\"") >&5
1484 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1485    (eval $ac_link_default) 2>&5
1486    ac_status=$?
1487 -  echo "$as_me:1389: \$? = $ac_status" >&5
1488 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1489    (exit $ac_status); }; then
1490    # Find the output, starting from the most likely.  This scheme is
1491  # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1492  # resort.
1493 -for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1494 -                ls a.out conftest 2>/dev/null;
1495 -                ls a.* conftest.* 2>/dev/null`; do
1496 +
1497 +# Be careful to initialize this variable, since it used to be cached.
1498 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1499 +ac_cv_exeext=
1500 +# b.out is created by i960 compilers.
1501 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1502 +do
1503 +  test -f "$ac_file" || continue
1504    case $ac_file in
1505 -    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1506 -    a.out ) # We found the default executable, but exeext='' is most
1507 -            # certainly right.
1508 -            break;;
1509 -    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1510 -          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1511 -          export ac_cv_exeext
1512 -          break;;
1513 -    * ) break;;
1514 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1515 +        ;;
1516 +    conftest.$ac_ext )
1517 +        # This is the source file.
1518 +        ;;
1519 +    [ab].out )
1520 +        # We found the default executable, but exeext='' is most
1521 +        # certainly right.
1522 +        break;;
1523 +    *.* )
1524 +        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1525 +        # FIXME: I believe we export ac_cv_exeext for Libtool,
1526 +        # but it would be cool to find out if it's true.  Does anybody
1527 +        # maintain Libtool? --akim.
1528 +        export ac_cv_exeext
1529 +        break;;
1530 +    * )
1531 +        break;;
1532    esac
1533  done
1534  else
1535    echo "$as_me: failed program was:" >&5
1536 -cat conftest.$ac_ext >&5
1537 -{ { echo "$as_me:1412: error: C compiler cannot create executables" >&5
1538 -echo "$as_me: error: C compiler cannot create executables" >&2;}
1539 +sed 's/^/| /' conftest.$ac_ext >&5
1540 +
1541 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1542 +See \`config.log' for more details." >&5
1543 +echo "$as_me: error: C compiler cannot create executables
1544 +See \`config.log' for more details." >&2;}
1545     { (exit 77); exit 77; }; }
1546  fi
1547  
1548  ac_exeext=$ac_cv_exeext
1549 -echo "$as_me:1418: result: $ac_file" >&5
1550 +echo "$as_me:$LINENO: result: $ac_file" >&5
1551  echo "${ECHO_T}$ac_file" >&6
1552  
1553  # Check the compiler produces executables we can run.  If not, either
1554  # the compiler is broken, or we cross compile.
1555 -echo "$as_me:1423: checking whether the C compiler works" >&5
1556 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1557  echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1558  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1559  # If not cross compiling, check that we can run a simple program.
1560  if test "$cross_compiling" != yes; then
1561    if { ac_try='./$ac_file'
1562 -  { (eval echo "$as_me:1429: \"$ac_try\"") >&5
1563 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1564    (eval $ac_try) 2>&5
1565    ac_status=$?
1566 -  echo "$as_me:1432: \$? = $ac_status" >&5
1567 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1568    (exit $ac_status); }; }; then
1569      cross_compiling=no
1570    else
1571      if test "$cross_compiling" = maybe; then
1572         cross_compiling=yes
1573      else
1574 -       { { echo "$as_me:1439: error: cannot run C compiled programs.
1575 -If you meant to cross compile, use \`--host'." >&5
1576 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1577 +If you meant to cross compile, use \`--host'.
1578 +See \`config.log' for more details." >&5
1579  echo "$as_me: error: cannot run C compiled programs.
1580 -If you meant to cross compile, use \`--host'." >&2;}
1581 +If you meant to cross compile, use \`--host'.
1582 +See \`config.log' for more details." >&2;}
1583     { (exit 1); exit 1; }; }
1584      fi
1585    fi
1586  fi
1587 -echo "$as_me:1447: result: yes" >&5
1588 +echo "$as_me:$LINENO: result: yes" >&5
1589  echo "${ECHO_T}yes" >&6
1590  
1591 -rm -f a.out a.exe conftest$ac_cv_exeext
1592 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
1593  ac_clean_files=$ac_clean_files_save
1594  # Check the compiler produces executables we can run.  If not, either
1595  # the compiler is broken, or we cross compile.
1596 -echo "$as_me:1454: checking whether we are cross compiling" >&5
1597 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1598  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1599 -echo "$as_me:1456: result: $cross_compiling" >&5
1600 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
1601  echo "${ECHO_T}$cross_compiling" >&6
1602  
1603 -echo "$as_me:1459: checking for executable suffix" >&5
1604 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1605 -if { (eval echo "$as_me:1461: \"$ac_link\"") >&5
1606 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
1607 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1608 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1609    (eval $ac_link) 2>&5
1610    ac_status=$?
1611 -  echo "$as_me:1464: \$? = $ac_status" >&5
1612 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613    (exit $ac_status); }; then
1614    # If both `conftest.exe' and `conftest' are `present' (well, observable)
1615  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1616  # work properly (i.e., refer to `conftest.exe'), while it won't with
1617  # `rm'.
1618 -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1619 +for ac_file in conftest.exe conftest conftest.*; do
1620 +  test -f "$ac_file" || continue
1621    case $ac_file in
1622 -    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1623 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1624      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1625            export ac_cv_exeext
1626            break;;
1627 @@ -1477,26 +1825,32 @@
1628    esac
1629  done
1630  else
1631 -  { { echo "$as_me:1480: error: cannot compute EXEEXT: cannot compile and link" >&5
1632 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1633 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1634 +See \`config.log' for more details." >&5
1635 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1636 +See \`config.log' for more details." >&2;}
1637     { (exit 1); exit 1; }; }
1638  fi
1639  
1640  rm -f conftest$ac_cv_exeext
1641 -echo "$as_me:1486: result: $ac_cv_exeext" >&5
1642 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1643  echo "${ECHO_T}$ac_cv_exeext" >&6
1644  
1645  rm -f conftest.$ac_ext
1646  EXEEXT=$ac_cv_exeext
1647  ac_exeext=$EXEEXT
1648 -echo "$as_me:1492: checking for object suffix" >&5
1649 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1650 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
1651 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1652  if test "${ac_cv_objext+set}" = set; then
1653    echo $ECHO_N "(cached) $ECHO_C" >&6
1654  else
1655    cat >conftest.$ac_ext <<_ACEOF
1656 -#line 1498 "configure"
1657 -#include "confdefs.h"
1658 +#line $LINENO "configure"
1659 +/* confdefs.h.  */
1660 +_ACEOF
1661 +cat confdefs.h >>conftest.$ac_ext
1662 +cat >>conftest.$ac_ext <<_ACEOF
1663 +/* end confdefs.h.  */
1664  
1665  int
1666  main ()
1667 @@ -1507,40 +1861,47 @@
1668  }
1669  _ACEOF
1670  rm -f conftest.o conftest.obj
1671 -if { (eval echo "$as_me:1510: \"$ac_compile\"") >&5
1672 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1673    (eval $ac_compile) 2>&5
1674    ac_status=$?
1675 -  echo "$as_me:1513: \$? = $ac_status" >&5
1676 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677    (exit $ac_status); }; then
1678    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1679    case $ac_file in
1680 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1681 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1682      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1683         break;;
1684    esac
1685  done
1686  else
1687    echo "$as_me: failed program was:" >&5
1688 -cat conftest.$ac_ext >&5
1689 -{ { echo "$as_me:1525: error: cannot compute OBJEXT: cannot compile" >&5
1690 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1691 +sed 's/^/| /' conftest.$ac_ext >&5
1692 +
1693 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1694 +See \`config.log' for more details." >&5
1695 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
1696 +See \`config.log' for more details." >&2;}
1697     { (exit 1); exit 1; }; }
1698  fi
1699  
1700  rm -f conftest.$ac_cv_objext conftest.$ac_ext
1701  fi
1702 -echo "$as_me:1532: result: $ac_cv_objext" >&5
1703 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1704  echo "${ECHO_T}$ac_cv_objext" >&6
1705  OBJEXT=$ac_cv_objext
1706  ac_objext=$OBJEXT
1707 -echo "$as_me:1536: checking whether we are using the GNU C compiler" >&5
1708 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1709  echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1710  if test "${ac_cv_c_compiler_gnu+set}" = set; then
1711    echo $ECHO_N "(cached) $ECHO_C" >&6
1712  else
1713    cat >conftest.$ac_ext <<_ACEOF
1714 -#line 1542 "configure"
1715 -#include "confdefs.h"
1716 +#line $LINENO "configure"
1717 +/* confdefs.h.  */
1718 +_ACEOF
1719 +cat confdefs.h >>conftest.$ac_ext
1720 +cat >>conftest.$ac_ext <<_ACEOF
1721 +/* end confdefs.h.  */
1722  
1723  int
1724  main ()
1725 @@ -1554,41 +1915,46 @@
1726  }
1727  _ACEOF
1728  rm -f conftest.$ac_objext
1729 -if { (eval echo "$as_me:1557: \"$ac_compile\"") >&5
1730 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1731    (eval $ac_compile) 2>&5
1732    ac_status=$?
1733 -  echo "$as_me:1560: \$? = $ac_status" >&5
1734 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735    (exit $ac_status); } &&
1736           { ac_try='test -s conftest.$ac_objext'
1737 -  { (eval echo "$as_me:1563: \"$ac_try\"") >&5
1738 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1739    (eval $ac_try) 2>&5
1740    ac_status=$?
1741 -  echo "$as_me:1566: \$? = $ac_status" >&5
1742 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743    (exit $ac_status); }; }; then
1744    ac_compiler_gnu=yes
1745  else
1746    echo "$as_me: failed program was:" >&5
1747 -cat conftest.$ac_ext >&5
1748 +sed 's/^/| /' conftest.$ac_ext >&5
1749 +
1750  ac_compiler_gnu=no
1751  fi
1752  rm -f conftest.$ac_objext conftest.$ac_ext
1753  ac_cv_c_compiler_gnu=$ac_compiler_gnu
1754  
1755  fi
1756 -echo "$as_me:1578: result: $ac_cv_c_compiler_gnu" >&5
1757 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1758  echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1759  GCC=`test $ac_compiler_gnu = yes && echo yes`
1760  ac_test_CFLAGS=${CFLAGS+set}
1761  ac_save_CFLAGS=$CFLAGS
1762  CFLAGS="-g"
1763 -echo "$as_me:1584: checking whether $CC accepts -g" >&5
1764 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1765  echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1766  if test "${ac_cv_prog_cc_g+set}" = set; then
1767    echo $ECHO_N "(cached) $ECHO_C" >&6
1768  else
1769    cat >conftest.$ac_ext <<_ACEOF
1770 -#line 1590 "configure"
1771 -#include "confdefs.h"
1772 +#line $LINENO "configure"
1773 +/* confdefs.h.  */
1774 +_ACEOF
1775 +cat confdefs.h >>conftest.$ac_ext
1776 +cat >>conftest.$ac_ext <<_ACEOF
1777 +/* end confdefs.h.  */
1778  
1779  int
1780  main ()
1781 @@ -1599,26 +1965,27 @@
1782  }
1783  _ACEOF
1784  rm -f conftest.$ac_objext
1785 -if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5
1786 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1787    (eval $ac_compile) 2>&5
1788    ac_status=$?
1789 -  echo "$as_me:1605: \$? = $ac_status" >&5
1790 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791    (exit $ac_status); } &&
1792           { ac_try='test -s conftest.$ac_objext'
1793 -  { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1794 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795    (eval $ac_try) 2>&5
1796    ac_status=$?
1797 -  echo "$as_me:1611: \$? = $ac_status" >&5
1798 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799    (exit $ac_status); }; }; then
1800    ac_cv_prog_cc_g=yes
1801  else
1802    echo "$as_me: failed program was:" >&5
1803 -cat conftest.$ac_ext >&5
1804 +sed 's/^/| /' conftest.$ac_ext >&5
1805 +
1806  ac_cv_prog_cc_g=no
1807  fi
1808  rm -f conftest.$ac_objext conftest.$ac_ext
1809  fi
1810 -echo "$as_me:1621: result: $ac_cv_prog_cc_g" >&5
1811 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1812  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1813  if test "$ac_test_CFLAGS" = set; then
1814    CFLAGS=$ac_save_CFLAGS
1815 @@ -1635,6 +2002,102 @@
1816      CFLAGS=
1817    fi
1818  fi
1819 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1820 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1821 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
1822 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1823 +else
1824 +  ac_cv_prog_cc_stdc=no
1825 +ac_save_CC=$CC
1826 +cat >conftest.$ac_ext <<_ACEOF
1827 +#line $LINENO "configure"
1828 +/* confdefs.h.  */
1829 +_ACEOF
1830 +cat confdefs.h >>conftest.$ac_ext
1831 +cat >>conftest.$ac_ext <<_ACEOF
1832 +/* end confdefs.h.  */
1833 +#include <stdarg.h>
1834 +#include <stdio.h>
1835 +#include <sys/types.h>
1836 +#include <sys/stat.h>
1837 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1838 +struct buf { int x; };
1839 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1840 +static char *e (p, i)
1841 +     char **p;
1842 +     int i;
1843 +{
1844 +  return p[i];
1845 +}
1846 +static char *f (char * (*g) (char **, int), char **p, ...)
1847 +{
1848 +  char *s;
1849 +  va_list v;
1850 +  va_start (v,p);
1851 +  s = g (p, va_arg (v,int));
1852 +  va_end (v);
1853 +  return s;
1854 +}
1855 +int test (int i, double x);
1856 +struct s1 {int (*f) (int a);};
1857 +struct s2 {int (*f) (double a);};
1858 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1859 +int argc;
1860 +char **argv;
1861 +int
1862 +main ()
1863 +{
1864 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1865 +  ;
1866 +  return 0;
1867 +}
1868 +_ACEOF
1869 +# Don't try gcc -ansi; that turns off useful extensions and
1870 +# breaks some systems' header files.
1871 +# AIX                  -qlanglvl=ansi
1872 +# Ultrix and OSF/1     -std1
1873 +# HP-UX 10.20 and later        -Ae
1874 +# HP-UX older versions -Aa -D_HPUX_SOURCE
1875 +# SVR4                 -Xc -D__EXTENSIONS__
1876 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1877 +do
1878 +  CC="$ac_save_CC $ac_arg"
1879 +  rm -f conftest.$ac_objext
1880 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1881 +  (eval $ac_compile) 2>&5
1882 +  ac_status=$?
1883 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 +  (exit $ac_status); } &&
1885 +         { ac_try='test -s conftest.$ac_objext'
1886 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 +  (eval $ac_try) 2>&5
1888 +  ac_status=$?
1889 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 +  (exit $ac_status); }; }; then
1891 +  ac_cv_prog_cc_stdc=$ac_arg
1892 +break
1893 +else
1894 +  echo "$as_me: failed program was:" >&5
1895 +sed 's/^/| /' conftest.$ac_ext >&5
1896 +
1897 +fi
1898 +rm -f conftest.$ac_objext
1899 +done
1900 +rm -f conftest.$ac_ext conftest.$ac_objext
1901 +CC=$ac_save_CC
1902 +
1903 +fi
1904 +
1905 +case "x$ac_cv_prog_cc_stdc" in
1906 +  x|xno)
1907 +    echo "$as_me:$LINENO: result: none needed" >&5
1908 +echo "${ECHO_T}none needed" >&6 ;;
1909 +  *)
1910 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1911 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1912 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
1913 +esac
1914 +
1915  # Some people use a C++ compiler to compile C.  Since we use `exit',
1916  # in C++ we need to declare it.  In case someone uses the same compiler
1917  # for both compiling C and C++ we need to have the C++ compiler decide
1918 @@ -1645,16 +2108,16 @@
1919  #endif
1920  _ACEOF
1921  rm -f conftest.$ac_objext
1922 -if { (eval echo "$as_me:1648: \"$ac_compile\"") >&5
1923 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924    (eval $ac_compile) 2>&5
1925    ac_status=$?
1926 -  echo "$as_me:1651: \$? = $ac_status" >&5
1927 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928    (exit $ac_status); } &&
1929           { ac_try='test -s conftest.$ac_objext'
1930 -  { (eval echo "$as_me:1654: \"$ac_try\"") >&5
1931 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932    (eval $ac_try) 2>&5
1933    ac_status=$?
1934 -  echo "$as_me:1657: \$? = $ac_status" >&5
1935 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936    (exit $ac_status); }; }; then
1937    for ac_declaration in \
1938     ''\
1939 @@ -1666,8 +2129,12 @@
1940     'void exit (int);'
1941  do
1942    cat >conftest.$ac_ext <<_ACEOF
1943 -#line 1669 "configure"
1944 -#include "confdefs.h"
1945 +#line $LINENO "configure"
1946 +/* confdefs.h.  */
1947 +_ACEOF
1948 +cat confdefs.h >>conftest.$ac_ext
1949 +cat >>conftest.$ac_ext <<_ACEOF
1950 +/* end confdefs.h.  */
1951  #include <stdlib.h>
1952  $ac_declaration
1953  int
1954 @@ -1679,27 +2146,32 @@
1955  }
1956  _ACEOF
1957  rm -f conftest.$ac_objext
1958 -if { (eval echo "$as_me:1682: \"$ac_compile\"") >&5
1959 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960    (eval $ac_compile) 2>&5
1961    ac_status=$?
1962 -  echo "$as_me:1685: \$? = $ac_status" >&5
1963 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964    (exit $ac_status); } &&
1965           { ac_try='test -s conftest.$ac_objext'
1966 -  { (eval echo "$as_me:1688: \"$ac_try\"") >&5
1967 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968    (eval $ac_try) 2>&5
1969    ac_status=$?
1970 -  echo "$as_me:1691: \$? = $ac_status" >&5
1971 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972    (exit $ac_status); }; }; then
1973    :
1974  else
1975    echo "$as_me: failed program was:" >&5
1976 -cat conftest.$ac_ext >&5
1977 +sed 's/^/| /' conftest.$ac_ext >&5
1978 +
1979  continue
1980  fi
1981  rm -f conftest.$ac_objext conftest.$ac_ext
1982    cat >conftest.$ac_ext <<_ACEOF
1983 -#line 1701 "configure"
1984 -#include "confdefs.h"
1985 +#line $LINENO "configure"
1986 +/* confdefs.h.  */
1987 +_ACEOF
1988 +cat confdefs.h >>conftest.$ac_ext
1989 +cat >>conftest.$ac_ext <<_ACEOF
1990 +/* end confdefs.h.  */
1991  $ac_declaration
1992  int
1993  main ()
1994 @@ -1710,21 +2182,22 @@
1995  }
1996  _ACEOF
1997  rm -f conftest.$ac_objext
1998 -if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5
1999 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000    (eval $ac_compile) 2>&5
2001    ac_status=$?
2002 -  echo "$as_me:1716: \$? = $ac_status" >&5
2003 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004    (exit $ac_status); } &&
2005           { ac_try='test -s conftest.$ac_objext'
2006 -  { (eval echo "$as_me:1719: \"$ac_try\"") >&5
2007 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008    (eval $ac_try) 2>&5
2009    ac_status=$?
2010 -  echo "$as_me:1722: \$? = $ac_status" >&5
2011 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012    (exit $ac_status); }; }; then
2013    break
2014  else
2015    echo "$as_me: failed program was:" >&5
2016 -cat conftest.$ac_ext >&5
2017 +sed 's/^/| /' conftest.$ac_ext >&5
2018 +
2019  fi
2020  rm -f conftest.$ac_objext conftest.$ac_ext
2021  done
2022 @@ -1737,7 +2210,8 @@
2023  
2024  else
2025    echo "$as_me: failed program was:" >&5
2026 -cat conftest.$ac_ext >&5
2027 +sed 's/^/| /' conftest.$ac_ext >&5
2028 +
2029  fi
2030  rm -f conftest.$ac_objext conftest.$ac_ext
2031  ac_ext=c
2032 @@ -1749,18 +2223,31 @@
2033         ;;
2034  esac
2035  
2036 +
2037 +
2038 +cat >>confdefs.h <<\_ACEOF
2039 +#define NEED_PUTC_CHAR
2040 +_ACEOF
2041 +
2042 +
2043 +cat >>confdefs.h <<\_ACEOF
2044 +#define HAVE_CURSES_H
2045 +_ACEOF
2046 +
2047 +
2048  case "$host_os" in
2049  solaris*)
2050         CPPFLAGS="${CPPFLAGS} -D_MSE_INT_H"
2051 -       cat >>confdefs.h <<\EOF
2052 +       cat >>confdefs.h <<\_ACEOF
2053  #define NEED_PUTC_CHAR 1
2054 -EOF
2055 +_ACEOF
2056  
2057         ;;
2058  hpux9*) DEFS=${DEFS-"-DMINICURSES"}
2059         ;;
2060  esac
2061  
2062 +
2063  # Find a good install program.  We prefer a C program (faster),
2064  # so one script is as good as another.  But avoid the broken or
2065  # incompatible versions:
2066 @@ -1773,43 +2260,48 @@
2067  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2068  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2069  # ./install, which can be erroneously created by make from ./install.sh.
2070 -echo "$as_me:1776: checking for a BSD compatible install" >&5
2071 -echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2072 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2073 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2074  if test -z "$INSTALL"; then
2075  if test "${ac_cv_path_install+set}" = set; then
2076    echo $ECHO_N "(cached) $ECHO_C" >&6
2077  else
2078 -    ac_save_IFS=$IFS; IFS=$ac_path_separator
2079 -  for ac_dir in $PATH; do
2080 -    IFS=$ac_save_IFS
2081 -    # Account for people who put trailing slashes in PATH elements.
2082 -    case $ac_dir/ in
2083 -    / | ./ | .// | /cC/* \
2084 -    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2085 -    | /usr/ucb/* ) ;;
2086 -    *)
2087 -      # OSF1 and SCO ODT 3.0 have their own names for install.
2088 -      # Don't use installbsd from OSF since it installs stuff as root
2089 -      # by default.
2090 -      for ac_prog in ginstall scoinst install; do
2091 -        if $as_executable_p "$ac_dir/$ac_prog"; then
2092 -         if test $ac_prog = install &&
2093 -            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2094 -           # AIX install.  It has an incompatible calling convention.
2095 -           :
2096 -         elif test $ac_prog = install &&
2097 -           grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2098 -           # program-specific install script used by HP pwplus--don't use.
2099 -           :
2100 -         else
2101 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
2102 -           break 2
2103 -         fi
2104 -       fi
2105 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 +for as_dir in $PATH
2107 +do
2108 +  IFS=$as_save_IFS
2109 +  test -z "$as_dir" && as_dir=.
2110 +  # Account for people who put trailing slashes in PATH elements.
2111 +case $as_dir/ in
2112 +  ./ | .// | /cC/* | \
2113 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2114 +  /usr/ucb/* ) ;;
2115 +  *)
2116 +    # OSF1 and SCO ODT 3.0 have their own names for install.
2117 +    # Don't use installbsd from OSF since it installs stuff as root
2118 +    # by default.
2119 +    for ac_prog in ginstall scoinst install; do
2120 +      for ac_exec_ext in '' $ac_executable_extensions; do
2121 +        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2122 +          if test $ac_prog = install &&
2123 +            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 +            # AIX install.  It has an incompatible calling convention.
2125 +            :
2126 +          elif test $ac_prog = install &&
2127 +            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128 +            # program-specific install script used by HP pwplus--don't use.
2129 +            :
2130 +          else
2131 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2132 +            break 3
2133 +          fi
2134 +        fi
2135        done
2136 -      ;;
2137 -    esac
2138 -  done
2139 +    done
2140 +    ;;
2141 +esac
2142 +done
2143 +
2144  
2145  fi
2146    if test "${ac_cv_path_install+set}" = set; then
2147 @@ -1822,7 +2314,7 @@
2148      INSTALL=$ac_install_sh
2149    fi
2150  fi
2151 -echo "$as_me:1825: result: $INSTALL" >&5
2152 +echo "$as_me:$LINENO: result: $INSTALL" >&5
2153  echo "${ECHO_T}$INSTALL" >&6
2154  
2155  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2156 @@ -1833,12 +2325,14 @@
2157  
2158  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2159  
2160 +
2161 +
2162  ac_ext=c
2163  ac_cpp='$CPP $CPPFLAGS'
2164  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 -echo "$as_me:1841: checking how to run the C preprocessor" >&5
2168 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2169  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2170  # On Suns, sometimes $CPP names a directory.
2171  if test -n "$CPP" && test -d "$CPP"; then
2172 @@ -1856,21 +2350,31 @@
2173  do
2174    # Use a header file that comes with gcc, so configuring glibc
2175    # with a fresh cross-compiler works.
2176 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2177 +  # <limits.h> exists even on freestanding compilers.
2178    # On the NeXT, cc -E runs the code through the compiler's parser,
2179    # not just through cpp. "Syntax error" is here to catch this case.
2180    cat >conftest.$ac_ext <<_ACEOF
2181 -#line 1862 "configure"
2182 -#include "confdefs.h"
2183 -#include <assert.h>
2184 +#line $LINENO "configure"
2185 +/* confdefs.h.  */
2186 +_ACEOF
2187 +cat confdefs.h >>conftest.$ac_ext
2188 +cat >>conftest.$ac_ext <<_ACEOF
2189 +/* end confdefs.h.  */
2190 +#ifdef __STDC__
2191 +# include <limits.h>
2192 +#else
2193 +# include <assert.h>
2194 +#endif
2195                       Syntax error
2196  _ACEOF
2197 -if { (eval echo "$as_me:1867: \"$ac_cpp conftest.$ac_ext\"") >&5
2198 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200    ac_status=$?
2201 -  egrep -v '^ *\+' conftest.er1 >conftest.err
2202 +  grep -v '^ *+' conftest.er1 >conftest.err
2203    rm -f conftest.er1
2204    cat conftest.err >&5
2205 -  echo "$as_me:1873: \$? = $ac_status" >&5
2206 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207    (exit $ac_status); } >/dev/null; then
2208    if test -s conftest.err; then
2209      ac_cpp_err=$ac_c_preproc_warn_flag
2210 @@ -1884,7 +2388,8 @@
2211    :
2212  else
2213    echo "$as_me: failed program was:" >&5
2214 -  cat conftest.$ac_ext >&5
2215 +sed 's/^/| /' conftest.$ac_ext >&5
2216 +
2217    # Broken: fails on valid input.
2218  continue
2219  fi
2220 @@ -1893,17 +2398,21 @@
2221    # OK, works on sane cases.  Now check whether non-existent headers
2222    # can be detected and how.
2223    cat >conftest.$ac_ext <<_ACEOF
2224 -#line 1896 "configure"
2225 -#include "confdefs.h"
2226 +#line $LINENO "configure"
2227 +/* confdefs.h.  */
2228 +_ACEOF
2229 +cat confdefs.h >>conftest.$ac_ext
2230 +cat >>conftest.$ac_ext <<_ACEOF
2231 +/* end confdefs.h.  */
2232  #include <ac_nonexistent.h>
2233  _ACEOF
2234 -if { (eval echo "$as_me:1900: \"$ac_cpp conftest.$ac_ext\"") >&5
2235 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2236    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2237    ac_status=$?
2238 -  egrep -v '^ *\+' conftest.er1 >conftest.err
2239 +  grep -v '^ *+' conftest.er1 >conftest.err
2240    rm -f conftest.er1
2241    cat conftest.err >&5
2242 -  echo "$as_me:1906: \$? = $ac_status" >&5
2243 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244    (exit $ac_status); } >/dev/null; then
2245    if test -s conftest.err; then
2246      ac_cpp_err=$ac_c_preproc_warn_flag
2247 @@ -1918,7 +2427,8 @@
2248  continue
2249  else
2250    echo "$as_me: failed program was:" >&5
2251 -  cat conftest.$ac_ext >&5
2252 +sed 's/^/| /' conftest.$ac_ext >&5
2253 +
2254    # Passes both tests.
2255  ac_preproc_ok=:
2256  break
2257 @@ -1940,28 +2450,38 @@
2258  else
2259    ac_cv_prog_CPP=$CPP
2260  fi
2261 -echo "$as_me:1943: result: $CPP" >&5
2262 +echo "$as_me:$LINENO: result: $CPP" >&5
2263  echo "${ECHO_T}$CPP" >&6
2264  ac_preproc_ok=false
2265  for ac_c_preproc_warn_flag in '' yes
2266  do
2267    # Use a header file that comes with gcc, so configuring glibc
2268    # with a fresh cross-compiler works.
2269 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2270 +  # <limits.h> exists even on freestanding compilers.
2271    # On the NeXT, cc -E runs the code through the compiler's parser,
2272    # not just through cpp. "Syntax error" is here to catch this case.
2273    cat >conftest.$ac_ext <<_ACEOF
2274 -#line 1953 "configure"
2275 -#include "confdefs.h"
2276 -#include <assert.h>
2277 +#line $LINENO "configure"
2278 +/* confdefs.h.  */
2279 +_ACEOF
2280 +cat confdefs.h >>conftest.$ac_ext
2281 +cat >>conftest.$ac_ext <<_ACEOF
2282 +/* end confdefs.h.  */
2283 +#ifdef __STDC__
2284 +# include <limits.h>
2285 +#else
2286 +# include <assert.h>
2287 +#endif
2288                       Syntax error
2289  _ACEOF
2290 -if { (eval echo "$as_me:1958: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2292    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293    ac_status=$?
2294 -  egrep -v '^ *\+' conftest.er1 >conftest.err
2295 +  grep -v '^ *+' conftest.er1 >conftest.err
2296    rm -f conftest.er1
2297    cat conftest.err >&5
2298 -  echo "$as_me:1964: \$? = $ac_status" >&5
2299 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300    (exit $ac_status); } >/dev/null; then
2301    if test -s conftest.err; then
2302      ac_cpp_err=$ac_c_preproc_warn_flag
2303 @@ -1975,7 +2495,8 @@
2304    :
2305  else
2306    echo "$as_me: failed program was:" >&5
2307 -  cat conftest.$ac_ext >&5
2308 +sed 's/^/| /' conftest.$ac_ext >&5
2309 +
2310    # Broken: fails on valid input.
2311  continue
2312  fi
2313 @@ -1984,17 +2505,21 @@
2314    # OK, works on sane cases.  Now check whether non-existent headers
2315    # can be detected and how.
2316    cat >conftest.$ac_ext <<_ACEOF
2317 -#line 1987 "configure"
2318 -#include "confdefs.h"
2319 +#line $LINENO "configure"
2320 +/* confdefs.h.  */
2321 +_ACEOF
2322 +cat confdefs.h >>conftest.$ac_ext
2323 +cat >>conftest.$ac_ext <<_ACEOF
2324 +/* end confdefs.h.  */
2325  #include <ac_nonexistent.h>
2326  _ACEOF
2327 -if { (eval echo "$as_me:1991: \"$ac_cpp conftest.$ac_ext\"") >&5
2328 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2330    ac_status=$?
2331 -  egrep -v '^ *\+' conftest.er1 >conftest.err
2332 +  grep -v '^ *+' conftest.er1 >conftest.err
2333    rm -f conftest.er1
2334    cat conftest.err >&5
2335 -  echo "$as_me:1997: \$? = $ac_status" >&5
2336 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337    (exit $ac_status); } >/dev/null; then
2338    if test -s conftest.err; then
2339      ac_cpp_err=$ac_c_preproc_warn_flag
2340 @@ -2009,7 +2534,8 @@
2341  continue
2342  else
2343    echo "$as_me: failed program was:" >&5
2344 -  cat conftest.$ac_ext >&5
2345 +sed 's/^/| /' conftest.$ac_ext >&5
2346 +
2347    # Passes both tests.
2348  ac_preproc_ok=:
2349  break
2350 @@ -2022,8 +2548,10 @@
2351  if $ac_preproc_ok; then
2352    :
2353  else
2354 -  { { echo "$as_me:2025: error: C preprocessor \"$CPP\" fails sanity check" >&5
2355 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2356 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2357 +See \`config.log' for more details." >&5
2358 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2359 +See \`config.log' for more details." >&2;}
2360     { (exit 1); exit 1; }; }
2361  fi
2362  
2363 @@ -2033,55 +2561,82 @@
2364  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366  
2367 -echo "$as_me:2036: checking for ANSI C header files" >&5
2368 +
2369 +echo "$as_me:$LINENO: checking for egrep" >&5
2370 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2371 +if test "${ac_cv_prog_egrep+set}" = set; then
2372 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2373 +else
2374 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2375 +    then ac_cv_prog_egrep='grep -E'
2376 +    else ac_cv_prog_egrep='egrep'
2377 +    fi
2378 +fi
2379 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2380 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2381 + EGREP=$ac_cv_prog_egrep
2382 +
2383 +
2384 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2385  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2386  if test "${ac_cv_header_stdc+set}" = set; then
2387    echo $ECHO_N "(cached) $ECHO_C" >&6
2388  else
2389    cat >conftest.$ac_ext <<_ACEOF
2390 -#line 2042 "configure"
2391 -#include "confdefs.h"
2392 +#line $LINENO "configure"
2393 +/* confdefs.h.  */
2394 +_ACEOF
2395 +cat confdefs.h >>conftest.$ac_ext
2396 +cat >>conftest.$ac_ext <<_ACEOF
2397 +/* end confdefs.h.  */
2398  #include <stdlib.h>
2399  #include <stdarg.h>
2400  #include <string.h>
2401  #include <float.h>
2402  
2403 +int
2404 +main ()
2405 +{
2406 +
2407 +  ;
2408 +  return 0;
2409 +}
2410  _ACEOF
2411 -if { (eval echo "$as_me:2050: \"$ac_cpp conftest.$ac_ext\"") >&5
2412 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2413 +rm -f conftest.$ac_objext
2414 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 +  (eval $ac_compile) 2>&5
2416    ac_status=$?
2417 -  egrep -v '^ *\+' conftest.er1 >conftest.err
2418 -  rm -f conftest.er1
2419 -  cat conftest.err >&5
2420 -  echo "$as_me:2056: \$? = $ac_status" >&5
2421 -  (exit $ac_status); } >/dev/null; then
2422 -  if test -s conftest.err; then
2423 -    ac_cpp_err=$ac_c_preproc_warn_flag
2424 -  else
2425 -    ac_cpp_err=
2426 -  fi
2427 -else
2428 -  ac_cpp_err=yes
2429 -fi
2430 -if test -z "$ac_cpp_err"; then
2431 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 +  (exit $ac_status); } &&
2433 +         { ac_try='test -s conftest.$ac_objext'
2434 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 +  (eval $ac_try) 2>&5
2436 +  ac_status=$?
2437 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 +  (exit $ac_status); }; }; then
2439    ac_cv_header_stdc=yes
2440  else
2441    echo "$as_me: failed program was:" >&5
2442 -  cat conftest.$ac_ext >&5
2443 -  ac_cv_header_stdc=no
2444 +sed 's/^/| /' conftest.$ac_ext >&5
2445 +
2446 +ac_cv_header_stdc=no
2447  fi
2448 -rm -f conftest.err conftest.$ac_ext
2449 +rm -f conftest.$ac_objext conftest.$ac_ext
2450  
2451  if test $ac_cv_header_stdc = yes; then
2452    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2453    cat >conftest.$ac_ext <<_ACEOF
2454 -#line 2078 "configure"
2455 -#include "confdefs.h"
2456 +#line $LINENO "configure"
2457 +/* confdefs.h.  */
2458 +_ACEOF
2459 +cat confdefs.h >>conftest.$ac_ext
2460 +cat >>conftest.$ac_ext <<_ACEOF
2461 +/* end confdefs.h.  */
2462  #include <string.h>
2463  
2464  _ACEOF
2465  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2466 -  egrep "memchr" >/dev/null 2>&1; then
2467 +  $EGREP "memchr" >/dev/null 2>&1; then
2468    :
2469  else
2470    ac_cv_header_stdc=no
2471 @@ -2093,13 +2648,17 @@
2472  if test $ac_cv_header_stdc = yes; then
2473    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2474    cat >conftest.$ac_ext <<_ACEOF
2475 -#line 2096 "configure"
2476 -#include "confdefs.h"
2477 +#line $LINENO "configure"
2478 +/* confdefs.h.  */
2479 +_ACEOF
2480 +cat confdefs.h >>conftest.$ac_ext
2481 +cat >>conftest.$ac_ext <<_ACEOF
2482 +/* end confdefs.h.  */
2483  #include <stdlib.h>
2484  
2485  _ACEOF
2486  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2487 -  egrep "free" >/dev/null 2>&1; then
2488 +  $EGREP "free" >/dev/null 2>&1; then
2489    :
2490  else
2491    ac_cv_header_stdc=no
2492 @@ -2114,14 +2673,19 @@
2493    :
2494  else
2495    cat >conftest.$ac_ext <<_ACEOF
2496 -#line 2117 "configure"
2497 -#include "confdefs.h"
2498 +#line $LINENO "configure"
2499 +/* confdefs.h.  */
2500 +_ACEOF
2501 +cat confdefs.h >>conftest.$ac_ext
2502 +cat >>conftest.$ac_ext <<_ACEOF
2503 +/* end confdefs.h.  */
2504  #include <ctype.h>
2505  #if ((' ' & 0x0FF) == 0x020)
2506  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2507  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2508  #else
2509 -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2510 +# define ISLOWER(c) \
2511 +                   (('a' <= (c) && (c) <= 'i') \
2512                       || ('j' <= (c) && (c) <= 'r') \
2513                       || ('s' <= (c) && (c) <= 'z'))
2514  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2515 @@ -2140,92 +2704,114 @@
2516  }
2517  _ACEOF
2518  rm -f conftest$ac_exeext
2519 -if { (eval echo "$as_me:2143: \"$ac_link\"") >&5
2520 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2521    (eval $ac_link) 2>&5
2522    ac_status=$?
2523 -  echo "$as_me:2146: \$? = $ac_status" >&5
2524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2526 -  { (eval echo "$as_me:2148: \"$ac_try\"") >&5
2527 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528    (eval $ac_try) 2>&5
2529    ac_status=$?
2530 -  echo "$as_me:2151: \$? = $ac_status" >&5
2531 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532    (exit $ac_status); }; }; then
2533    :
2534  else
2535    echo "$as_me: program exited with status $ac_status" >&5
2536  echo "$as_me: failed program was:" >&5
2537 -cat conftest.$ac_ext >&5
2538 +sed 's/^/| /' conftest.$ac_ext >&5
2539 +
2540 +( exit $ac_status )
2541  ac_cv_header_stdc=no
2542  fi
2543 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2544 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2545  fi
2546  fi
2547  fi
2548 -echo "$as_me:2164: result: $ac_cv_header_stdc" >&5
2549 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2550  echo "${ECHO_T}$ac_cv_header_stdc" >&6
2551  if test $ac_cv_header_stdc = yes; then
2552  
2553 -cat >>confdefs.h <<\EOF
2554 +cat >>confdefs.h <<\_ACEOF
2555  #define STDC_HEADERS 1
2556 -EOF
2557 +_ACEOF
2558  
2559  fi
2560  
2561  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2562  
2563 +
2564 +
2565 +
2566 +
2567 +
2568 +
2569 +
2570 +
2571  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2572                    inttypes.h stdint.h unistd.h
2573  do
2574  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2575 -echo "$as_me:2180: checking for $ac_header" >&5
2576 +echo "$as_me:$LINENO: checking for $ac_header" >&5
2577  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2578  if eval "test \"\${$as_ac_Header+set}\" = set"; then
2579    echo $ECHO_N "(cached) $ECHO_C" >&6
2580  else
2581    cat >conftest.$ac_ext <<_ACEOF
2582 -#line 2186 "configure"
2583 -#include "confdefs.h"
2584 +#line $LINENO "configure"
2585 +/* confdefs.h.  */
2586 +_ACEOF
2587 +cat confdefs.h >>conftest.$ac_ext
2588 +cat >>conftest.$ac_ext <<_ACEOF
2589 +/* end confdefs.h.  */
2590  $ac_includes_default
2591 +
2592  #include <$ac_header>
2593  _ACEOF
2594  rm -f conftest.$ac_objext
2595 -if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
2596 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597    (eval $ac_compile) 2>&5
2598    ac_status=$?
2599 -  echo "$as_me:2195: \$? = $ac_status" >&5
2600 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601    (exit $ac_status); } &&
2602           { ac_try='test -s conftest.$ac_objext'
2603 -  { (eval echo "$as_me:2198: \"$ac_try\"") >&5
2604 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605    (eval $ac_try) 2>&5
2606    ac_status=$?
2607 -  echo "$as_me:2201: \$? = $ac_status" >&5
2608 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609    (exit $ac_status); }; }; then
2610    eval "$as_ac_Header=yes"
2611  else
2612    echo "$as_me: failed program was:" >&5
2613 -cat conftest.$ac_ext >&5
2614 +sed 's/^/| /' conftest.$ac_ext >&5
2615 +
2616  eval "$as_ac_Header=no"
2617  fi
2618  rm -f conftest.$ac_objext conftest.$ac_ext
2619  fi
2620 -echo "$as_me:2211: result: `eval echo '${'$as_ac_Header'}'`" >&5
2621 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2622  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2623  if test `eval echo '${'$as_ac_Header'}'` = yes; then
2624 -  cat >>confdefs.h <<EOF
2625 +  cat >>confdefs.h <<_ACEOF
2626  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2627 -EOF
2628 +_ACEOF
2629  
2630  fi
2631 +
2632  done
2633  
2634 -echo "$as_me:2221: checking for int" >&5
2635 +
2636 +echo "$as_me:$LINENO: checking for int" >&5
2637  echo $ECHO_N "checking for int... $ECHO_C" >&6
2638  if test "${ac_cv_type_int+set}" = set; then
2639    echo $ECHO_N "(cached) $ECHO_C" >&6
2640  else
2641    cat >conftest.$ac_ext <<_ACEOF
2642 -#line 2227 "configure"
2643 -#include "confdefs.h"
2644 +#line $LINENO "configure"
2645 +/* confdefs.h.  */
2646 +_ACEOF
2647 +cat confdefs.h >>conftest.$ac_ext
2648 +cat >>conftest.$ac_ext <<_ACEOF
2649 +/* end confdefs.h.  */
2650  $ac_includes_default
2651  int
2652  main ()
2653 @@ -2239,209 +2825,328 @@
2654  }
2655  _ACEOF
2656  rm -f conftest.$ac_objext
2657 -if { (eval echo "$as_me:2242: \"$ac_compile\"") >&5
2658 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659    (eval $ac_compile) 2>&5
2660    ac_status=$?
2661 -  echo "$as_me:2245: \$? = $ac_status" >&5
2662 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663    (exit $ac_status); } &&
2664           { ac_try='test -s conftest.$ac_objext'
2665 -  { (eval echo "$as_me:2248: \"$ac_try\"") >&5
2666 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667    (eval $ac_try) 2>&5
2668    ac_status=$?
2669 -  echo "$as_me:2251: \$? = $ac_status" >&5
2670 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671    (exit $ac_status); }; }; then
2672    ac_cv_type_int=yes
2673  else
2674    echo "$as_me: failed program was:" >&5
2675 -cat conftest.$ac_ext >&5
2676 +sed 's/^/| /' conftest.$ac_ext >&5
2677 +
2678  ac_cv_type_int=no
2679  fi
2680  rm -f conftest.$ac_objext conftest.$ac_ext
2681  fi
2682 -echo "$as_me:2261: result: $ac_cv_type_int" >&5
2683 +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
2684  echo "${ECHO_T}$ac_cv_type_int" >&6
2685  
2686 -echo "$as_me:2264: checking size of int" >&5
2687 +echo "$as_me:$LINENO: checking size of int" >&5
2688  echo $ECHO_N "checking size of int... $ECHO_C" >&6
2689  if test "${ac_cv_sizeof_int+set}" = set; then
2690    echo $ECHO_N "(cached) $ECHO_C" >&6
2691  else
2692    if test "$ac_cv_type_int" = yes; then
2693 +  # The cast to unsigned long works around a bug in the HP C Compiler
2694 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2695 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2696 +  # This bug is HP SR number 8606223364.
2697    if test "$cross_compiling" = yes; then
2698    # Depending upon the size, compute the lo and hi bounds.
2699  cat >conftest.$ac_ext <<_ACEOF
2700 -#line 2273 "configure"
2701 -#include "confdefs.h"
2702 +#line $LINENO "configure"
2703 +/* confdefs.h.  */
2704 +_ACEOF
2705 +cat confdefs.h >>conftest.$ac_ext
2706 +cat >>conftest.$ac_ext <<_ACEOF
2707 +/* end confdefs.h.  */
2708  $ac_includes_default
2709  int
2710  main ()
2711  {
2712 -int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
2713 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
2714 +test_array [0] = 0
2715 +
2716    ;
2717    return 0;
2718  }
2719  _ACEOF
2720  rm -f conftest.$ac_objext
2721 -if { (eval echo "$as_me:2285: \"$ac_compile\"") >&5
2722 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723    (eval $ac_compile) 2>&5
2724    ac_status=$?
2725 -  echo "$as_me:2288: \$? = $ac_status" >&5
2726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727    (exit $ac_status); } &&
2728           { ac_try='test -s conftest.$ac_objext'
2729 -  { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2730 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731    (eval $ac_try) 2>&5
2732    ac_status=$?
2733 -  echo "$as_me:2294: \$? = $ac_status" >&5
2734 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735    (exit $ac_status); }; }; then
2736    ac_lo=0 ac_mid=0
2737    while :; do
2738      cat >conftest.$ac_ext <<_ACEOF
2739 -#line 2299 "configure"
2740 -#include "confdefs.h"
2741 +#line $LINENO "configure"
2742 +/* confdefs.h.  */
2743 +_ACEOF
2744 +cat confdefs.h >>conftest.$ac_ext
2745 +cat >>conftest.$ac_ext <<_ACEOF
2746 +/* end confdefs.h.  */
2747  $ac_includes_default
2748  int
2749  main ()
2750  {
2751 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2752 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
2753 +test_array [0] = 0
2754 +
2755    ;
2756    return 0;
2757  }
2758  _ACEOF
2759  rm -f conftest.$ac_objext
2760 -if { (eval echo "$as_me:2311: \"$ac_compile\"") >&5
2761 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762    (eval $ac_compile) 2>&5
2763    ac_status=$?
2764 -  echo "$as_me:2314: \$? = $ac_status" >&5
2765 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766    (exit $ac_status); } &&
2767           { ac_try='test -s conftest.$ac_objext'
2768 -  { (eval echo "$as_me:2317: \"$ac_try\"") >&5
2769 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770    (eval $ac_try) 2>&5
2771    ac_status=$?
2772 -  echo "$as_me:2320: \$? = $ac_status" >&5
2773 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774    (exit $ac_status); }; }; then
2775    ac_hi=$ac_mid; break
2776  else
2777    echo "$as_me: failed program was:" >&5
2778 -cat conftest.$ac_ext >&5
2779 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2780 +sed 's/^/| /' conftest.$ac_ext >&5
2781 +
2782 +ac_lo=`expr $ac_mid + 1`
2783 +                    if test $ac_lo -le $ac_mid; then
2784 +                      ac_lo= ac_hi=
2785 +                      break
2786 +                    fi
2787 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
2788  fi
2789  rm -f conftest.$ac_objext conftest.$ac_ext
2790    done
2791  else
2792    echo "$as_me: failed program was:" >&5
2793 -cat conftest.$ac_ext >&5
2794 -ac_hi=-1 ac_mid=-1
2795 +sed 's/^/| /' conftest.$ac_ext >&5
2796 +
2797 +cat >conftest.$ac_ext <<_ACEOF
2798 +#line $LINENO "configure"
2799 +/* confdefs.h.  */
2800 +_ACEOF
2801 +cat confdefs.h >>conftest.$ac_ext
2802 +cat >>conftest.$ac_ext <<_ACEOF
2803 +/* end confdefs.h.  */
2804 +$ac_includes_default
2805 +int
2806 +main ()
2807 +{
2808 +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
2809 +test_array [0] = 0
2810 +
2811 +  ;
2812 +  return 0;
2813 +}
2814 +_ACEOF
2815 +rm -f conftest.$ac_objext
2816 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 +  (eval $ac_compile) 2>&5
2818 +  ac_status=$?
2819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 +  (exit $ac_status); } &&
2821 +         { ac_try='test -s conftest.$ac_objext'
2822 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 +  (eval $ac_try) 2>&5
2824 +  ac_status=$?
2825 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 +  (exit $ac_status); }; }; then
2827 +  ac_hi=-1 ac_mid=-1
2828    while :; do
2829      cat >conftest.$ac_ext <<_ACEOF
2830 -#line 2336 "configure"
2831 -#include "confdefs.h"
2832 +#line $LINENO "configure"
2833 +/* confdefs.h.  */
2834 +_ACEOF
2835 +cat confdefs.h >>conftest.$ac_ext
2836 +cat >>conftest.$ac_ext <<_ACEOF
2837 +/* end confdefs.h.  */
2838  $ac_includes_default
2839  int
2840  main ()
2841  {
2842 -int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
2843 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
2844 +test_array [0] = 0
2845 +
2846    ;
2847    return 0;
2848  }
2849  _ACEOF
2850  rm -f conftest.$ac_objext
2851 -if { (eval echo "$as_me:2348: \"$ac_compile\"") >&5
2852 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853    (eval $ac_compile) 2>&5
2854    ac_status=$?
2855 -  echo "$as_me:2351: \$? = $ac_status" >&5
2856 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857    (exit $ac_status); } &&
2858           { ac_try='test -s conftest.$ac_objext'
2859 -  { (eval echo "$as_me:2354: \"$ac_try\"") >&5
2860 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861    (eval $ac_try) 2>&5
2862    ac_status=$?
2863 -  echo "$as_me:2357: \$? = $ac_status" >&5
2864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865    (exit $ac_status); }; }; then
2866    ac_lo=$ac_mid; break
2867  else
2868    echo "$as_me: failed program was:" >&5
2869 -cat conftest.$ac_ext >&5
2870 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
2871 +sed 's/^/| /' conftest.$ac_ext >&5
2872 +
2873 +ac_hi=`expr '(' $ac_mid ')' - 1`
2874 +                       if test $ac_mid -le $ac_hi; then
2875 +                         ac_lo= ac_hi=
2876 +                         break
2877 +                       fi
2878 +                       ac_mid=`expr 2 '*' $ac_mid`
2879  fi
2880  rm -f conftest.$ac_objext conftest.$ac_ext
2881    done
2882 +else
2883 +  echo "$as_me: failed program was:" >&5
2884 +sed 's/^/| /' conftest.$ac_ext >&5
2885 +
2886 +ac_lo= ac_hi=
2887 +fi
2888 +rm -f conftest.$ac_objext conftest.$ac_ext
2889  fi
2890  rm -f conftest.$ac_objext conftest.$ac_ext
2891  # Binary search between lo and hi bounds.
2892  while test "x$ac_lo" != "x$ac_hi"; do
2893    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2894    cat >conftest.$ac_ext <<_ACEOF
2895 -#line 2373 "configure"
2896 -#include "confdefs.h"
2897 +#line $LINENO "configure"
2898 +/* confdefs.h.  */
2899 +_ACEOF
2900 +cat confdefs.h >>conftest.$ac_ext
2901 +cat >>conftest.$ac_ext <<_ACEOF
2902 +/* end confdefs.h.  */
2903  $ac_includes_default
2904  int
2905  main ()
2906  {
2907 -int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2908 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
2909 +test_array [0] = 0
2910 +
2911    ;
2912    return 0;
2913  }
2914  _ACEOF
2915  rm -f conftest.$ac_objext
2916 -if { (eval echo "$as_me:2385: \"$ac_compile\"") >&5
2917 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918    (eval $ac_compile) 2>&5
2919    ac_status=$?
2920 -  echo "$as_me:2388: \$? = $ac_status" >&5
2921 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922    (exit $ac_status); } &&
2923           { ac_try='test -s conftest.$ac_objext'
2924 -  { (eval echo "$as_me:2391: \"$ac_try\"") >&5
2925 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926    (eval $ac_try) 2>&5
2927    ac_status=$?
2928 -  echo "$as_me:2394: \$? = $ac_status" >&5
2929 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930    (exit $ac_status); }; }; then
2931    ac_hi=$ac_mid
2932  else
2933    echo "$as_me: failed program was:" >&5
2934 -cat conftest.$ac_ext >&5
2935 -ac_lo=`expr $ac_mid + 1`
2936 +sed 's/^/| /' conftest.$ac_ext >&5
2937 +
2938 +ac_lo=`expr '(' $ac_mid ')' + 1`
2939  fi
2940  rm -f conftest.$ac_objext conftest.$ac_ext
2941  done
2942 -ac_cv_sizeof_int=$ac_lo
2943 +case $ac_lo in
2944 +?*) ac_cv_sizeof_int=$ac_lo;;
2945 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
2946 +See \`config.log' for more details." >&5
2947 +echo "$as_me: error: cannot compute sizeof (int), 77
2948 +See \`config.log' for more details." >&2;}
2949 +   { (exit 1); exit 1; }; } ;;
2950 +esac
2951  else
2952    if test "$cross_compiling" = yes; then
2953 -  { { echo "$as_me:2407: error: cannot run test program while cross compiling" >&5
2954 -echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2955 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2956 +See \`config.log' for more details." >&5
2957 +echo "$as_me: error: cannot run test program while cross compiling
2958 +See \`config.log' for more details." >&2;}
2959     { (exit 1); exit 1; }; }
2960  else
2961    cat >conftest.$ac_ext <<_ACEOF
2962 -#line 2412 "configure"
2963 -#include "confdefs.h"
2964 +#line $LINENO "configure"
2965 +/* confdefs.h.  */
2966 +_ACEOF
2967 +cat confdefs.h >>conftest.$ac_ext
2968 +cat >>conftest.$ac_ext <<_ACEOF
2969 +/* end confdefs.h.  */
2970  $ac_includes_default
2971 +long longval () { return (long) (sizeof (int)); }
2972 +unsigned long ulongval () { return (long) (sizeof (int)); }
2973 +#include <stdio.h>
2974 +#include <stdlib.h>
2975  int
2976  main ()
2977  {
2978 -FILE *f = fopen ("conftest.val", "w");
2979 -if (!f)
2980 -  exit (1);
2981 -fprintf (f, "%d", (sizeof (int)));
2982 -fclose (f);
2983 +
2984 +  FILE *f = fopen ("conftest.val", "w");
2985 +  if (! f)
2986 +    exit (1);
2987 +  if (((long) (sizeof (int))) < 0)
2988 +    {
2989 +      long i = longval ();
2990 +      if (i != ((long) (sizeof (int))))
2991 +       exit (1);
2992 +      fprintf (f, "%ld\n", i);
2993 +    }
2994 +  else
2995 +    {
2996 +      unsigned long i = ulongval ();
2997 +      if (i != ((long) (sizeof (int))))
2998 +       exit (1);
2999 +      fprintf (f, "%lu\n", i);
3000 +    }
3001 +  exit (ferror (f) || fclose (f) != 0);
3002 +
3003    ;
3004    return 0;
3005  }
3006  _ACEOF
3007  rm -f conftest$ac_exeext
3008 -if { (eval echo "$as_me:2428: \"$ac_link\"") >&5
3009 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3010    (eval $ac_link) 2>&5
3011    ac_status=$?
3012 -  echo "$as_me:2431: \$? = $ac_status" >&5
3013 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3015 -  { (eval echo "$as_me:2433: \"$ac_try\"") >&5
3016 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017    (eval $ac_try) 2>&5
3018    ac_status=$?
3019 -  echo "$as_me:2436: \$? = $ac_status" >&5
3020 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021    (exit $ac_status); }; }; then
3022    ac_cv_sizeof_int=`cat conftest.val`
3023  else
3024    echo "$as_me: program exited with status $ac_status" >&5
3025  echo "$as_me: failed program was:" >&5
3026 -cat conftest.$ac_ext >&5
3027 +sed 's/^/| /' conftest.$ac_ext >&5
3028 +
3029 +( exit $ac_status )
3030 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3031 +See \`config.log' for more details." >&5
3032 +echo "$as_me: error: cannot compute sizeof (int), 77
3033 +See \`config.log' for more details." >&2;}
3034 +   { (exit 1); exit 1; }; }
3035  fi
3036 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3037 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3038  fi
3039  fi
3040  rm -f conftest.val
3041 @@ -2449,20 +3154,25 @@
3042    ac_cv_sizeof_int=0
3043  fi
3044  fi
3045 -echo "$as_me:2452: result: $ac_cv_sizeof_int" >&5
3046 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3047  echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3048 -cat >>confdefs.h <<EOF
3049 +cat >>confdefs.h <<_ACEOF
3050  #define SIZEOF_INT $ac_cv_sizeof_int
3051 -EOF
3052 +_ACEOF
3053  
3054 -echo "$as_me:2458: checking for long" >&5
3055 +
3056 +echo "$as_me:$LINENO: checking for long" >&5
3057  echo $ECHO_N "checking for long... $ECHO_C" >&6
3058  if test "${ac_cv_type_long+set}" = set; then
3059    echo $ECHO_N "(cached) $ECHO_C" >&6
3060  else
3061    cat >conftest.$ac_ext <<_ACEOF
3062 -#line 2464 "configure"
3063 -#include "confdefs.h"
3064 +#line $LINENO "configure"
3065 +/* confdefs.h.  */
3066 +_ACEOF
3067 +cat confdefs.h >>conftest.$ac_ext
3068 +cat >>conftest.$ac_ext <<_ACEOF
3069 +/* end confdefs.h.  */
3070  $ac_includes_default
3071  int
3072  main ()
3073 @@ -2476,209 +3186,328 @@
3074  }
3075  _ACEOF
3076  rm -f conftest.$ac_objext
3077 -if { (eval echo "$as_me:2479: \"$ac_compile\"") >&5
3078 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079    (eval $ac_compile) 2>&5
3080    ac_status=$?
3081 -  echo "$as_me:2482: \$? = $ac_status" >&5
3082 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083    (exit $ac_status); } &&
3084           { ac_try='test -s conftest.$ac_objext'
3085 -  { (eval echo "$as_me:2485: \"$ac_try\"") >&5
3086 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087    (eval $ac_try) 2>&5
3088    ac_status=$?
3089 -  echo "$as_me:2488: \$? = $ac_status" >&5
3090 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091    (exit $ac_status); }; }; then
3092    ac_cv_type_long=yes
3093  else
3094    echo "$as_me: failed program was:" >&5
3095 -cat conftest.$ac_ext >&5
3096 +sed 's/^/| /' conftest.$ac_ext >&5
3097 +
3098  ac_cv_type_long=no
3099  fi
3100  rm -f conftest.$ac_objext conftest.$ac_ext
3101  fi
3102 -echo "$as_me:2498: result: $ac_cv_type_long" >&5
3103 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3104  echo "${ECHO_T}$ac_cv_type_long" >&6
3105  
3106 -echo "$as_me:2501: checking size of long" >&5
3107 +echo "$as_me:$LINENO: checking size of long" >&5
3108  echo $ECHO_N "checking size of long... $ECHO_C" >&6
3109  if test "${ac_cv_sizeof_long+set}" = set; then
3110    echo $ECHO_N "(cached) $ECHO_C" >&6
3111  else
3112    if test "$ac_cv_type_long" = yes; then
3113 +  # The cast to unsigned long works around a bug in the HP C Compiler
3114 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3115 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3116 +  # This bug is HP SR number 8606223364.
3117    if test "$cross_compiling" = yes; then
3118    # Depending upon the size, compute the lo and hi bounds.
3119  cat >conftest.$ac_ext <<_ACEOF
3120 -#line 2510 "configure"
3121 -#include "confdefs.h"
3122 +#line $LINENO "configure"
3123 +/* confdefs.h.  */
3124 +_ACEOF
3125 +cat confdefs.h >>conftest.$ac_ext
3126 +cat >>conftest.$ac_ext <<_ACEOF
3127 +/* end confdefs.h.  */
3128  $ac_includes_default
3129  int
3130  main ()
3131  {
3132 -int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3133 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3134 +test_array [0] = 0
3135 +
3136    ;
3137    return 0;
3138  }
3139  _ACEOF
3140  rm -f conftest.$ac_objext
3141 -if { (eval echo "$as_me:2522: \"$ac_compile\"") >&5
3142 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143    (eval $ac_compile) 2>&5
3144    ac_status=$?
3145 -  echo "$as_me:2525: \$? = $ac_status" >&5
3146 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147    (exit $ac_status); } &&
3148           { ac_try='test -s conftest.$ac_objext'
3149 -  { (eval echo "$as_me:2528: \"$ac_try\"") >&5
3150 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151    (eval $ac_try) 2>&5
3152    ac_status=$?
3153 -  echo "$as_me:2531: \$? = $ac_status" >&5
3154 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155    (exit $ac_status); }; }; then
3156    ac_lo=0 ac_mid=0
3157    while :; do
3158      cat >conftest.$ac_ext <<_ACEOF
3159 -#line 2536 "configure"
3160 -#include "confdefs.h"
3161 +#line $LINENO "configure"
3162 +/* confdefs.h.  */
3163 +_ACEOF
3164 +cat confdefs.h >>conftest.$ac_ext
3165 +cat >>conftest.$ac_ext <<_ACEOF
3166 +/* end confdefs.h.  */
3167  $ac_includes_default
3168  int
3169  main ()
3170  {
3171 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3172 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3173 +test_array [0] = 0
3174 +
3175    ;
3176    return 0;
3177  }
3178  _ACEOF
3179  rm -f conftest.$ac_objext
3180 -if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5
3181 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182    (eval $ac_compile) 2>&5
3183    ac_status=$?
3184 -  echo "$as_me:2551: \$? = $ac_status" >&5
3185 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186    (exit $ac_status); } &&
3187           { ac_try='test -s conftest.$ac_objext'
3188 -  { (eval echo "$as_me:2554: \"$ac_try\"") >&5
3189 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190    (eval $ac_try) 2>&5
3191    ac_status=$?
3192 -  echo "$as_me:2557: \$? = $ac_status" >&5
3193 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194    (exit $ac_status); }; }; then
3195    ac_hi=$ac_mid; break
3196  else
3197    echo "$as_me: failed program was:" >&5
3198 -cat conftest.$ac_ext >&5
3199 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3200 +sed 's/^/| /' conftest.$ac_ext >&5
3201 +
3202 +ac_lo=`expr $ac_mid + 1`
3203 +                    if test $ac_lo -le $ac_mid; then
3204 +                      ac_lo= ac_hi=
3205 +                      break
3206 +                    fi
3207 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
3208  fi
3209  rm -f conftest.$ac_objext conftest.$ac_ext
3210    done
3211  else
3212    echo "$as_me: failed program was:" >&5
3213 -cat conftest.$ac_ext >&5
3214 -ac_hi=-1 ac_mid=-1
3215 +sed 's/^/| /' conftest.$ac_ext >&5
3216 +
3217 +cat >conftest.$ac_ext <<_ACEOF
3218 +#line $LINENO "configure"
3219 +/* confdefs.h.  */
3220 +_ACEOF
3221 +cat confdefs.h >>conftest.$ac_ext
3222 +cat >>conftest.$ac_ext <<_ACEOF
3223 +/* end confdefs.h.  */
3224 +$ac_includes_default
3225 +int
3226 +main ()
3227 +{
3228 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3229 +test_array [0] = 0
3230 +
3231 +  ;
3232 +  return 0;
3233 +}
3234 +_ACEOF
3235 +rm -f conftest.$ac_objext
3236 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 +  (eval $ac_compile) 2>&5
3238 +  ac_status=$?
3239 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 +  (exit $ac_status); } &&
3241 +         { ac_try='test -s conftest.$ac_objext'
3242 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 +  (eval $ac_try) 2>&5
3244 +  ac_status=$?
3245 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 +  (exit $ac_status); }; }; then
3247 +  ac_hi=-1 ac_mid=-1
3248    while :; do
3249      cat >conftest.$ac_ext <<_ACEOF
3250 -#line 2573 "configure"
3251 -#include "confdefs.h"
3252 +#line $LINENO "configure"
3253 +/* confdefs.h.  */
3254 +_ACEOF
3255 +cat confdefs.h >>conftest.$ac_ext
3256 +cat >>conftest.$ac_ext <<_ACEOF
3257 +/* end confdefs.h.  */
3258  $ac_includes_default
3259  int
3260  main ()
3261  {
3262 -int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3263 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3264 +test_array [0] = 0
3265 +
3266    ;
3267    return 0;
3268  }
3269  _ACEOF
3270  rm -f conftest.$ac_objext
3271 -if { (eval echo "$as_me:2585: \"$ac_compile\"") >&5
3272 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273    (eval $ac_compile) 2>&5
3274    ac_status=$?
3275 -  echo "$as_me:2588: \$? = $ac_status" >&5
3276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277    (exit $ac_status); } &&
3278           { ac_try='test -s conftest.$ac_objext'
3279 -  { (eval echo "$as_me:2591: \"$ac_try\"") >&5
3280 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281    (eval $ac_try) 2>&5
3282    ac_status=$?
3283 -  echo "$as_me:2594: \$? = $ac_status" >&5
3284 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285    (exit $ac_status); }; }; then
3286    ac_lo=$ac_mid; break
3287  else
3288    echo "$as_me: failed program was:" >&5
3289 -cat conftest.$ac_ext >&5
3290 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3291 +sed 's/^/| /' conftest.$ac_ext >&5
3292 +
3293 +ac_hi=`expr '(' $ac_mid ')' - 1`
3294 +                       if test $ac_mid -le $ac_hi; then
3295 +                         ac_lo= ac_hi=
3296 +                         break
3297 +                       fi
3298 +                       ac_mid=`expr 2 '*' $ac_mid`
3299  fi
3300  rm -f conftest.$ac_objext conftest.$ac_ext
3301    done
3302 +else
3303 +  echo "$as_me: failed program was:" >&5
3304 +sed 's/^/| /' conftest.$ac_ext >&5
3305 +
3306 +ac_lo= ac_hi=
3307 +fi
3308 +rm -f conftest.$ac_objext conftest.$ac_ext
3309  fi
3310  rm -f conftest.$ac_objext conftest.$ac_ext
3311  # Binary search between lo and hi bounds.
3312  while test "x$ac_lo" != "x$ac_hi"; do
3313    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3314    cat >conftest.$ac_ext <<_ACEOF
3315 -#line 2610 "configure"
3316 -#include "confdefs.h"
3317 +#line $LINENO "configure"
3318 +/* confdefs.h.  */
3319 +_ACEOF
3320 +cat confdefs.h >>conftest.$ac_ext
3321 +cat >>conftest.$ac_ext <<_ACEOF
3322 +/* end confdefs.h.  */
3323  $ac_includes_default
3324  int
3325  main ()
3326  {
3327 -int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3328 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3329 +test_array [0] = 0
3330 +
3331    ;
3332    return 0;
3333  }
3334  _ACEOF
3335  rm -f conftest.$ac_objext
3336 -if { (eval echo "$as_me:2622: \"$ac_compile\"") >&5
3337 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338    (eval $ac_compile) 2>&5
3339    ac_status=$?
3340 -  echo "$as_me:2625: \$? = $ac_status" >&5
3341 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342    (exit $ac_status); } &&
3343           { ac_try='test -s conftest.$ac_objext'
3344 -  { (eval echo "$as_me:2628: \"$ac_try\"") >&5
3345 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346    (eval $ac_try) 2>&5
3347    ac_status=$?
3348 -  echo "$as_me:2631: \$? = $ac_status" >&5
3349 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350    (exit $ac_status); }; }; then
3351    ac_hi=$ac_mid
3352  else
3353    echo "$as_me: failed program was:" >&5
3354 -cat conftest.$ac_ext >&5
3355 -ac_lo=`expr $ac_mid + 1`
3356 +sed 's/^/| /' conftest.$ac_ext >&5
3357 +
3358 +ac_lo=`expr '(' $ac_mid ')' + 1`
3359  fi
3360  rm -f conftest.$ac_objext conftest.$ac_ext
3361  done
3362 -ac_cv_sizeof_long=$ac_lo
3363 +case $ac_lo in
3364 +?*) ac_cv_sizeof_long=$ac_lo;;
3365 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3366 +See \`config.log' for more details." >&5
3367 +echo "$as_me: error: cannot compute sizeof (long), 77
3368 +See \`config.log' for more details." >&2;}
3369 +   { (exit 1); exit 1; }; } ;;
3370 +esac
3371  else
3372    if test "$cross_compiling" = yes; then
3373 -  { { echo "$as_me:2644: error: cannot run test program while cross compiling" >&5
3374 -echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3375 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3376 +See \`config.log' for more details." >&5
3377 +echo "$as_me: error: cannot run test program while cross compiling
3378 +See \`config.log' for more details." >&2;}
3379     { (exit 1); exit 1; }; }
3380  else
3381    cat >conftest.$ac_ext <<_ACEOF
3382 -#line 2649 "configure"
3383 -#include "confdefs.h"
3384 +#line $LINENO "configure"
3385 +/* confdefs.h.  */
3386 +_ACEOF
3387 +cat confdefs.h >>conftest.$ac_ext
3388 +cat >>conftest.$ac_ext <<_ACEOF
3389 +/* end confdefs.h.  */
3390  $ac_includes_default
3391 +long longval () { return (long) (sizeof (long)); }
3392 +unsigned long ulongval () { return (long) (sizeof (long)); }
3393 +#include <stdio.h>
3394 +#include <stdlib.h>
3395  int
3396  main ()
3397  {
3398 -FILE *f = fopen ("conftest.val", "w");
3399 -if (!f)
3400 -  exit (1);
3401 -fprintf (f, "%d", (sizeof (long)));
3402 -fclose (f);
3403 +
3404 +  FILE *f = fopen ("conftest.val", "w");
3405 +  if (! f)
3406 +    exit (1);
3407 +  if (((long) (sizeof (long))) < 0)
3408 +    {
3409 +      long i = longval ();
3410 +      if (i != ((long) (sizeof (long))))
3411 +       exit (1);
3412 +      fprintf (f, "%ld\n", i);
3413 +    }
3414 +  else
3415 +    {
3416 +      unsigned long i = ulongval ();
3417 +      if (i != ((long) (sizeof (long))))
3418 +       exit (1);
3419 +      fprintf (f, "%lu\n", i);
3420 +    }
3421 +  exit (ferror (f) || fclose (f) != 0);
3422 +
3423    ;
3424    return 0;
3425  }
3426  _ACEOF
3427  rm -f conftest$ac_exeext
3428 -if { (eval echo "$as_me:2665: \"$ac_link\"") >&5
3429 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430    (eval $ac_link) 2>&5
3431    ac_status=$?
3432 -  echo "$as_me:2668: \$? = $ac_status" >&5
3433 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3435 -  { (eval echo "$as_me:2670: \"$ac_try\"") >&5
3436 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437    (eval $ac_try) 2>&5
3438    ac_status=$?
3439 -  echo "$as_me:2673: \$? = $ac_status" >&5
3440 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441    (exit $ac_status); }; }; then
3442    ac_cv_sizeof_long=`cat conftest.val`
3443  else
3444    echo "$as_me: program exited with status $ac_status" >&5
3445  echo "$as_me: failed program was:" >&5
3446 -cat conftest.$ac_ext >&5
3447 +sed 's/^/| /' conftest.$ac_ext >&5
3448 +
3449 +( exit $ac_status )
3450 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3451 +See \`config.log' for more details." >&5
3452 +echo "$as_me: error: cannot compute sizeof (long), 77
3453 +See \`config.log' for more details." >&2;}
3454 +   { (exit 1); exit 1; }; }
3455  fi
3456 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3457 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3458  fi
3459  fi
3460  rm -f conftest.val
3461 @@ -2686,20 +3515,25 @@
3462    ac_cv_sizeof_long=0
3463  fi
3464  fi
3465 -echo "$as_me:2689: result: $ac_cv_sizeof_long" >&5
3466 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3467  echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3468 -cat >>confdefs.h <<EOF
3469 +cat >>confdefs.h <<_ACEOF
3470  #define SIZEOF_LONG $ac_cv_sizeof_long
3471 -EOF
3472 +_ACEOF
3473  
3474 -echo "$as_me:2695: checking for void *" >&5
3475 +
3476 +echo "$as_me:$LINENO: checking for void *" >&5
3477  echo $ECHO_N "checking for void *... $ECHO_C" >&6
3478  if test "${ac_cv_type_void_p+set}" = set; then
3479    echo $ECHO_N "(cached) $ECHO_C" >&6
3480  else
3481    cat >conftest.$ac_ext <<_ACEOF
3482 -#line 2701 "configure"
3483 -#include "confdefs.h"
3484 +#line $LINENO "configure"
3485 +/* confdefs.h.  */
3486 +_ACEOF
3487 +cat confdefs.h >>conftest.$ac_ext
3488 +cat >>conftest.$ac_ext <<_ACEOF
3489 +/* end confdefs.h.  */
3490  $ac_includes_default
3491  int
3492  main ()
3493 @@ -2713,209 +3547,328 @@
3494  }
3495  _ACEOF
3496  rm -f conftest.$ac_objext
3497 -if { (eval echo "$as_me:2716: \"$ac_compile\"") >&5
3498 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499    (eval $ac_compile) 2>&5
3500    ac_status=$?
3501 -  echo "$as_me:2719: \$? = $ac_status" >&5
3502 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503    (exit $ac_status); } &&
3504           { ac_try='test -s conftest.$ac_objext'
3505 -  { (eval echo "$as_me:2722: \"$ac_try\"") >&5
3506 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507    (eval $ac_try) 2>&5
3508    ac_status=$?
3509 -  echo "$as_me:2725: \$? = $ac_status" >&5
3510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511    (exit $ac_status); }; }; then
3512    ac_cv_type_void_p=yes
3513  else
3514    echo "$as_me: failed program was:" >&5
3515 -cat conftest.$ac_ext >&5
3516 +sed 's/^/| /' conftest.$ac_ext >&5
3517 +
3518  ac_cv_type_void_p=no
3519  fi
3520  rm -f conftest.$ac_objext conftest.$ac_ext
3521  fi
3522 -echo "$as_me:2735: result: $ac_cv_type_void_p" >&5
3523 +echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3524  echo "${ECHO_T}$ac_cv_type_void_p" >&6
3525  
3526 -echo "$as_me:2738: checking size of void *" >&5
3527 +echo "$as_me:$LINENO: checking size of void *" >&5
3528  echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3529  if test "${ac_cv_sizeof_void_p+set}" = set; then
3530    echo $ECHO_N "(cached) $ECHO_C" >&6
3531  else
3532    if test "$ac_cv_type_void_p" = yes; then
3533 +  # The cast to unsigned long works around a bug in the HP C Compiler
3534 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3535 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3536 +  # This bug is HP SR number 8606223364.
3537    if test "$cross_compiling" = yes; then
3538    # Depending upon the size, compute the lo and hi bounds.
3539  cat >conftest.$ac_ext <<_ACEOF
3540 -#line 2747 "configure"
3541 -#include "confdefs.h"
3542 +#line $LINENO "configure"
3543 +/* confdefs.h.  */
3544 +_ACEOF
3545 +cat confdefs.h >>conftest.$ac_ext
3546 +cat >>conftest.$ac_ext <<_ACEOF
3547 +/* end confdefs.h.  */
3548  $ac_includes_default
3549  int
3550  main ()
3551  {
3552 -int _array_ [1 - 2 * !((sizeof (void *)) >= 0)]
3553 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3554 +test_array [0] = 0
3555 +
3556    ;
3557    return 0;
3558  }
3559  _ACEOF
3560  rm -f conftest.$ac_objext
3561 -if { (eval echo "$as_me:2759: \"$ac_compile\"") >&5
3562 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563    (eval $ac_compile) 2>&5
3564    ac_status=$?
3565 -  echo "$as_me:2762: \$? = $ac_status" >&5
3566 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567    (exit $ac_status); } &&
3568           { ac_try='test -s conftest.$ac_objext'
3569 -  { (eval echo "$as_me:2765: \"$ac_try\"") >&5
3570 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571    (eval $ac_try) 2>&5
3572    ac_status=$?
3573 -  echo "$as_me:2768: \$? = $ac_status" >&5
3574 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575    (exit $ac_status); }; }; then
3576    ac_lo=0 ac_mid=0
3577    while :; do
3578      cat >conftest.$ac_ext <<_ACEOF
3579 -#line 2773 "configure"
3580 -#include "confdefs.h"
3581 +#line $LINENO "configure"
3582 +/* confdefs.h.  */
3583 +_ACEOF
3584 +cat confdefs.h >>conftest.$ac_ext
3585 +cat >>conftest.$ac_ext <<_ACEOF
3586 +/* end confdefs.h.  */
3587  $ac_includes_default
3588  int
3589  main ()
3590  {
3591 -int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
3592 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3593 +test_array [0] = 0
3594 +
3595    ;
3596    return 0;
3597  }
3598  _ACEOF
3599  rm -f conftest.$ac_objext
3600 -if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5
3601 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602    (eval $ac_compile) 2>&5
3603    ac_status=$?
3604 -  echo "$as_me:2788: \$? = $ac_status" >&5
3605 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606    (exit $ac_status); } &&
3607           { ac_try='test -s conftest.$ac_objext'
3608 -  { (eval echo "$as_me:2791: \"$ac_try\"") >&5
3609 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610    (eval $ac_try) 2>&5
3611    ac_status=$?
3612 -  echo "$as_me:2794: \$? = $ac_status" >&5
3613 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614    (exit $ac_status); }; }; then
3615    ac_hi=$ac_mid; break
3616  else
3617    echo "$as_me: failed program was:" >&5
3618 -cat conftest.$ac_ext >&5
3619 -ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3620 +sed 's/^/| /' conftest.$ac_ext >&5
3621 +
3622 +ac_lo=`expr $ac_mid + 1`
3623 +                    if test $ac_lo -le $ac_mid; then
3624 +                      ac_lo= ac_hi=
3625 +                      break
3626 +                    fi
3627 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
3628  fi
3629  rm -f conftest.$ac_objext conftest.$ac_ext
3630    done
3631  else
3632    echo "$as_me: failed program was:" >&5
3633 -cat conftest.$ac_ext >&5
3634 -ac_hi=-1 ac_mid=-1
3635 +sed 's/^/| /' conftest.$ac_ext >&5
3636 +
3637 +cat >conftest.$ac_ext <<_ACEOF
3638 +#line $LINENO "configure"
3639 +/* confdefs.h.  */
3640 +_ACEOF
3641 +cat confdefs.h >>conftest.$ac_ext
3642 +cat >>conftest.$ac_ext <<_ACEOF
3643 +/* end confdefs.h.  */
3644 +$ac_includes_default
3645 +int
3646 +main ()
3647 +{
3648 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3649 +test_array [0] = 0
3650 +
3651 +  ;
3652 +  return 0;
3653 +}
3654 +_ACEOF
3655 +rm -f conftest.$ac_objext
3656 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 +  (eval $ac_compile) 2>&5
3658 +  ac_status=$?
3659 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 +  (exit $ac_status); } &&
3661 +         { ac_try='test -s conftest.$ac_objext'
3662 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 +  (eval $ac_try) 2>&5
3664 +  ac_status=$?
3665 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 +  (exit $ac_status); }; }; then
3667 +  ac_hi=-1 ac_mid=-1
3668    while :; do
3669      cat >conftest.$ac_ext <<_ACEOF
3670 -#line 2810 "configure"
3671 -#include "confdefs.h"
3672 +#line $LINENO "configure"
3673 +/* confdefs.h.  */
3674 +_ACEOF
3675 +cat confdefs.h >>conftest.$ac_ext
3676 +cat >>conftest.$ac_ext <<_ACEOF
3677 +/* end confdefs.h.  */
3678  $ac_includes_default
3679  int
3680  main ()
3681  {
3682 -int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)]
3683 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3684 +test_array [0] = 0
3685 +
3686    ;
3687    return 0;
3688  }
3689  _ACEOF
3690  rm -f conftest.$ac_objext
3691 -if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
3692 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693    (eval $ac_compile) 2>&5
3694    ac_status=$?
3695 -  echo "$as_me:2825: \$? = $ac_status" >&5
3696 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697    (exit $ac_status); } &&
3698           { ac_try='test -s conftest.$ac_objext'
3699 -  { (eval echo "$as_me:2828: \"$ac_try\"") >&5
3700 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701    (eval $ac_try) 2>&5
3702    ac_status=$?
3703 -  echo "$as_me:2831: \$? = $ac_status" >&5
3704 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705    (exit $ac_status); }; }; then
3706    ac_lo=$ac_mid; break
3707  else
3708    echo "$as_me: failed program was:" >&5
3709 -cat conftest.$ac_ext >&5
3710 -ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3711 +sed 's/^/| /' conftest.$ac_ext >&5
3712 +
3713 +ac_hi=`expr '(' $ac_mid ')' - 1`
3714 +                       if test $ac_mid -le $ac_hi; then
3715 +                         ac_lo= ac_hi=
3716 +                         break
3717 +                       fi
3718 +                       ac_mid=`expr 2 '*' $ac_mid`
3719  fi
3720  rm -f conftest.$ac_objext conftest.$ac_ext
3721    done
3722 +else
3723 +  echo "$as_me: failed program was:" >&5
3724 +sed 's/^/| /' conftest.$ac_ext >&5
3725 +
3726 +ac_lo= ac_hi=
3727 +fi
3728 +rm -f conftest.$ac_objext conftest.$ac_ext
3729  fi
3730  rm -f conftest.$ac_objext conftest.$ac_ext
3731  # Binary search between lo and hi bounds.
3732  while test "x$ac_lo" != "x$ac_hi"; do
3733    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3734    cat >conftest.$ac_ext <<_ACEOF
3735 -#line 2847 "configure"
3736 -#include "confdefs.h"
3737 +#line $LINENO "configure"
3738 +/* confdefs.h.  */
3739 +_ACEOF
3740 +cat confdefs.h >>conftest.$ac_ext
3741 +cat >>conftest.$ac_ext <<_ACEOF
3742 +/* end confdefs.h.  */
3743  $ac_includes_default
3744  int
3745  main ()
3746  {
3747 -int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
3748 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3749 +test_array [0] = 0
3750 +
3751    ;
3752    return 0;
3753  }
3754  _ACEOF
3755  rm -f conftest.$ac_objext
3756 -if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
3757 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758    (eval $ac_compile) 2>&5
3759    ac_status=$?
3760 -  echo "$as_me:2862: \$? = $ac_status" >&5
3761 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762    (exit $ac_status); } &&
3763           { ac_try='test -s conftest.$ac_objext'
3764 -  { (eval echo "$as_me:2865: \"$ac_try\"") >&5
3765 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766    (eval $ac_try) 2>&5
3767    ac_status=$?
3768 -  echo "$as_me:2868: \$? = $ac_status" >&5
3769 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770    (exit $ac_status); }; }; then
3771    ac_hi=$ac_mid
3772  else
3773    echo "$as_me: failed program was:" >&5
3774 -cat conftest.$ac_ext >&5
3775 -ac_lo=`expr $ac_mid + 1`
3776 +sed 's/^/| /' conftest.$ac_ext >&5
3777 +
3778 +ac_lo=`expr '(' $ac_mid ')' + 1`
3779  fi
3780  rm -f conftest.$ac_objext conftest.$ac_ext
3781  done
3782 -ac_cv_sizeof_void_p=$ac_lo
3783 +case $ac_lo in
3784 +?*) ac_cv_sizeof_void_p=$ac_lo;;
3785 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3786 +See \`config.log' for more details." >&5
3787 +echo "$as_me: error: cannot compute sizeof (void *), 77
3788 +See \`config.log' for more details." >&2;}
3789 +   { (exit 1); exit 1; }; } ;;
3790 +esac
3791  else
3792    if test "$cross_compiling" = yes; then
3793 -  { { echo "$as_me:2881: error: cannot run test program while cross compiling" >&5
3794 -echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3795 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3796 +See \`config.log' for more details." >&5
3797 +echo "$as_me: error: cannot run test program while cross compiling
3798 +See \`config.log' for more details." >&2;}
3799     { (exit 1); exit 1; }; }
3800  else
3801    cat >conftest.$ac_ext <<_ACEOF
3802 -#line 2886 "configure"
3803 -#include "confdefs.h"
3804 +#line $LINENO "configure"
3805 +/* confdefs.h.  */
3806 +_ACEOF
3807 +cat confdefs.h >>conftest.$ac_ext
3808 +cat >>conftest.$ac_ext <<_ACEOF
3809 +/* end confdefs.h.  */
3810  $ac_includes_default
3811 +long longval () { return (long) (sizeof (void *)); }
3812 +unsigned long ulongval () { return (long) (sizeof (void *)); }
3813 +#include <stdio.h>
3814 +#include <stdlib.h>
3815  int
3816  main ()
3817  {
3818 -FILE *f = fopen ("conftest.val", "w");
3819 -if (!f)
3820 -  exit (1);
3821 -fprintf (f, "%d", (sizeof (void *)));
3822 -fclose (f);
3823 +
3824 +  FILE *f = fopen ("conftest.val", "w");
3825 +  if (! f)
3826 +    exit (1);
3827 +  if (((long) (sizeof (void *))) < 0)
3828 +    {
3829 +      long i = longval ();
3830 +      if (i != ((long) (sizeof (void *))))
3831 +       exit (1);
3832 +      fprintf (f, "%ld\n", i);
3833 +    }
3834 +  else
3835 +    {
3836 +      unsigned long i = ulongval ();
3837 +      if (i != ((long) (sizeof (void *))))
3838 +       exit (1);
3839 +      fprintf (f, "%lu\n", i);
3840 +    }
3841 +  exit (ferror (f) || fclose (f) != 0);
3842 +
3843    ;
3844    return 0;
3845  }
3846  _ACEOF
3847  rm -f conftest$ac_exeext
3848 -if { (eval echo "$as_me:2902: \"$ac_link\"") >&5
3849 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850    (eval $ac_link) 2>&5
3851    ac_status=$?
3852 -  echo "$as_me:2905: \$? = $ac_status" >&5
3853 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3855 -  { (eval echo "$as_me:2907: \"$ac_try\"") >&5
3856 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857    (eval $ac_try) 2>&5
3858    ac_status=$?
3859 -  echo "$as_me:2910: \$? = $ac_status" >&5
3860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861    (exit $ac_status); }; }; then
3862    ac_cv_sizeof_void_p=`cat conftest.val`
3863  else
3864    echo "$as_me: program exited with status $ac_status" >&5
3865  echo "$as_me: failed program was:" >&5
3866 -cat conftest.$ac_ext >&5
3867 +sed 's/^/| /' conftest.$ac_ext >&5
3868 +
3869 +( exit $ac_status )
3870 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3871 +See \`config.log' for more details." >&5
3872 +echo "$as_me: error: cannot compute sizeof (void *), 77
3873 +See \`config.log' for more details." >&2;}
3874 +   { (exit 1); exit 1; }; }
3875  fi
3876 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3878  fi
3879  fi
3880  rm -f conftest.val
3881 @@ -2923,20 +3876,26 @@
3882    ac_cv_sizeof_void_p=0
3883  fi
3884  fi
3885 -echo "$as_me:2926: result: $ac_cv_sizeof_void_p" >&5
3886 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3887  echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3888 -cat >>confdefs.h <<EOF
3889 +cat >>confdefs.h <<_ACEOF
3890  #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3891 -EOF
3892 +_ACEOF
3893  
3894 -echo "$as_me:2932: checking for size_t" >&5
3895 +
3896 +
3897 +echo "$as_me:$LINENO: checking for size_t" >&5
3898  echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3899  if test "${ac_cv_type_size_t+set}" = set; then
3900    echo $ECHO_N "(cached) $ECHO_C" >&6
3901  else
3902    cat >conftest.$ac_ext <<_ACEOF
3903 -#line 2938 "configure"
3904 -#include "confdefs.h"
3905 +#line $LINENO "configure"
3906 +/* confdefs.h.  */
3907 +_ACEOF
3908 +cat confdefs.h >>conftest.$ac_ext
3909 +cat >>conftest.$ac_ext <<_ACEOF
3910 +/* end confdefs.h.  */
3911  $ac_includes_default
3912  int
3913  main ()
3914 @@ -2950,45 +3909,50 @@
3915  }
3916  _ACEOF
3917  rm -f conftest.$ac_objext
3918 -if { (eval echo "$as_me:2953: \"$ac_compile\"") >&5
3919 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920    (eval $ac_compile) 2>&5
3921    ac_status=$?
3922 -  echo "$as_me:2956: \$? = $ac_status" >&5
3923 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924    (exit $ac_status); } &&
3925           { ac_try='test -s conftest.$ac_objext'
3926 -  { (eval echo "$as_me:2959: \"$ac_try\"") >&5
3927 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928    (eval $ac_try) 2>&5
3929    ac_status=$?
3930 -  echo "$as_me:2962: \$? = $ac_status" >&5
3931 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932    (exit $ac_status); }; }; then
3933    ac_cv_type_size_t=yes
3934  else
3935    echo "$as_me: failed program was:" >&5
3936 -cat conftest.$ac_ext >&5
3937 +sed 's/^/| /' conftest.$ac_ext >&5
3938 +
3939  ac_cv_type_size_t=no
3940  fi
3941  rm -f conftest.$ac_objext conftest.$ac_ext
3942  fi
3943 -echo "$as_me:2972: result: $ac_cv_type_size_t" >&5
3944 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3945  echo "${ECHO_T}$ac_cv_type_size_t" >&6
3946  if test $ac_cv_type_size_t = yes; then
3947    :
3948  else
3949  
3950 -cat >>confdefs.h <<EOF
3951 +cat >>confdefs.h <<_ACEOF
3952  #define size_t unsigned int
3953 -EOF
3954 +_ACEOF
3955  
3956  fi
3957  
3958 -echo "$as_me:2984: checking for off_t" >&5
3959 +echo "$as_me:$LINENO: checking for off_t" >&5
3960  echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3961  if test "${ac_cv_type_off_t+set}" = set; then
3962    echo $ECHO_N "(cached) $ECHO_C" >&6
3963  else
3964    cat >conftest.$ac_ext <<_ACEOF
3965 -#line 2990 "configure"
3966 -#include "confdefs.h"
3967 +#line $LINENO "configure"
3968 +/* confdefs.h.  */
3969 +_ACEOF
3970 +cat confdefs.h >>conftest.$ac_ext
3971 +cat >>conftest.$ac_ext <<_ACEOF
3972 +/* end confdefs.h.  */
3973  $ac_includes_default
3974  int
3975  main ()
3976 @@ -3002,86 +3966,99 @@
3977  }
3978  _ACEOF
3979  rm -f conftest.$ac_objext
3980 -if { (eval echo "$as_me:3005: \"$ac_compile\"") >&5
3981 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982    (eval $ac_compile) 2>&5
3983    ac_status=$?
3984 -  echo "$as_me:3008: \$? = $ac_status" >&5
3985 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986    (exit $ac_status); } &&
3987           { ac_try='test -s conftest.$ac_objext'
3988 -  { (eval echo "$as_me:3011: \"$ac_try\"") >&5
3989 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990    (eval $ac_try) 2>&5
3991    ac_status=$?
3992 -  echo "$as_me:3014: \$? = $ac_status" >&5
3993 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994    (exit $ac_status); }; }; then
3995    ac_cv_type_off_t=yes
3996  else
3997    echo "$as_me: failed program was:" >&5
3998 -cat conftest.$ac_ext >&5
3999 +sed 's/^/| /' conftest.$ac_ext >&5
4000 +
4001  ac_cv_type_off_t=no
4002  fi
4003  rm -f conftest.$ac_objext conftest.$ac_ext
4004  fi
4005 -echo "$as_me:3024: result: $ac_cv_type_off_t" >&5
4006 +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4007  echo "${ECHO_T}$ac_cv_type_off_t" >&6
4008  if test $ac_cv_type_off_t = yes; then
4009    :
4010  else
4011  
4012 -cat >>confdefs.h <<EOF
4013 +cat >>confdefs.h <<_ACEOF
4014  #define off_t int
4015 -EOF
4016 +_ACEOF
4017  
4018  fi
4019  
4020 -echo "$as_me:3036: checking for ANSI C header files" >&5
4021 +
4022 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024  if test "${ac_cv_header_stdc+set}" = set; then
4025    echo $ECHO_N "(cached) $ECHO_C" >&6
4026  else
4027    cat >conftest.$ac_ext <<_ACEOF
4028 -#line 3042 "configure"
4029 -#include "confdefs.h"
4030 +#line $LINENO "configure"
4031 +/* confdefs.h.  */
4032 +_ACEOF
4033 +cat confdefs.h >>conftest.$ac_ext
4034 +cat >>conftest.$ac_ext <<_ACEOF
4035 +/* end confdefs.h.  */
4036  #include <stdlib.h>
4037  #include <stdarg.h>
4038  #include <string.h>
4039  #include <float.h>
4040  
4041 +int
4042 +main ()
4043 +{
4044 +
4045 +  ;
4046 +  return 0;
4047 +}
4048  _ACEOF
4049 -if { (eval echo "$as_me:3050: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4051 +rm -f conftest.$ac_objext
4052 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 +  (eval $ac_compile) 2>&5
4054    ac_status=$?
4055 -  egrep -v '^ *\+' conftest.er1 >conftest.err
4056 -  rm -f conftest.er1
4057 -  cat conftest.err >&5
4058 -  echo "$as_me:3056: \$? = $ac_status" >&5
4059 -  (exit $ac_status); } >/dev/null; then
4060 -  if test -s conftest.err; then
4061 -    ac_cpp_err=$ac_c_preproc_warn_flag
4062 -  else
4063 -    ac_cpp_err=
4064 -  fi
4065 -else
4066 -  ac_cpp_err=yes
4067 -fi
4068 -if test -z "$ac_cpp_err"; then
4069 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 +  (exit $ac_status); } &&
4071 +         { ac_try='test -s conftest.$ac_objext'
4072 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 +  (eval $ac_try) 2>&5
4074 +  ac_status=$?
4075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 +  (exit $ac_status); }; }; then
4077    ac_cv_header_stdc=yes
4078  else
4079    echo "$as_me: failed program was:" >&5
4080 -  cat conftest.$ac_ext >&5
4081 -  ac_cv_header_stdc=no
4082 +sed 's/^/| /' conftest.$ac_ext >&5
4083 +
4084 +ac_cv_header_stdc=no
4085  fi
4086 -rm -f conftest.err conftest.$ac_ext
4087 +rm -f conftest.$ac_objext conftest.$ac_ext
4088  
4089  if test $ac_cv_header_stdc = yes; then
4090    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091    cat >conftest.$ac_ext <<_ACEOF
4092 -#line 3078 "configure"
4093 -#include "confdefs.h"
4094 +#line $LINENO "configure"
4095 +/* confdefs.h.  */
4096 +_ACEOF
4097 +cat confdefs.h >>conftest.$ac_ext
4098 +cat >>conftest.$ac_ext <<_ACEOF
4099 +/* end confdefs.h.  */
4100  #include <string.h>
4101  
4102  _ACEOF
4103  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 -  egrep "memchr" >/dev/null 2>&1; then
4105 +  $EGREP "memchr" >/dev/null 2>&1; then
4106    :
4107  else
4108    ac_cv_header_stdc=no
4109 @@ -3093,13 +4070,17 @@
4110  if test $ac_cv_header_stdc = yes; then
4111    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112    cat >conftest.$ac_ext <<_ACEOF
4113 -#line 3096 "configure"
4114 -#include "confdefs.h"
4115 +#line $LINENO "configure"
4116 +/* confdefs.h.  */
4117 +_ACEOF
4118 +cat confdefs.h >>conftest.$ac_ext
4119 +cat >>conftest.$ac_ext <<_ACEOF
4120 +/* end confdefs.h.  */
4121  #include <stdlib.h>
4122  
4123  _ACEOF
4124  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 -  egrep "free" >/dev/null 2>&1; then
4126 +  $EGREP "free" >/dev/null 2>&1; then
4127    :
4128  else
4129    ac_cv_header_stdc=no
4130 @@ -3114,14 +4095,19 @@
4131    :
4132  else
4133    cat >conftest.$ac_ext <<_ACEOF
4134 -#line 3117 "configure"
4135 -#include "confdefs.h"
4136 +#line $LINENO "configure"
4137 +/* confdefs.h.  */
4138 +_ACEOF
4139 +cat confdefs.h >>conftest.$ac_ext
4140 +cat >>conftest.$ac_ext <<_ACEOF
4141 +/* end confdefs.h.  */
4142  #include <ctype.h>
4143  #if ((' ' & 0x0FF) == 0x020)
4144  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4145  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4146  #else
4147 -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4148 +# define ISLOWER(c) \
4149 +                   (('a' <= (c) && (c) <= 'i') \
4150                       || ('j' <= (c) && (c) <= 'r') \
4151                       || ('s' <= (c) && (c) <= 'z'))
4152  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 @@ -3140,57 +4126,111 @@
4154  }
4155  _ACEOF
4156  rm -f conftest$ac_exeext
4157 -if { (eval echo "$as_me:3143: \"$ac_link\"") >&5
4158 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159    (eval $ac_link) 2>&5
4160    ac_status=$?
4161 -  echo "$as_me:3146: \$? = $ac_status" >&5
4162 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164 -  { (eval echo "$as_me:3148: \"$ac_try\"") >&5
4165 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166    (eval $ac_try) 2>&5
4167    ac_status=$?
4168 -  echo "$as_me:3151: \$? = $ac_status" >&5
4169 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170    (exit $ac_status); }; }; then
4171    :
4172  else
4173    echo "$as_me: program exited with status $ac_status" >&5
4174  echo "$as_me: failed program was:" >&5
4175 -cat conftest.$ac_ext >&5
4176 +sed 's/^/| /' conftest.$ac_ext >&5
4177 +
4178 +( exit $ac_status )
4179  ac_cv_header_stdc=no
4180  fi
4181 -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4182 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183  fi
4184  fi
4185  fi
4186 -echo "$as_me:3164: result: $ac_cv_header_stdc" >&5
4187 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4188  echo "${ECHO_T}$ac_cv_header_stdc" >&6
4189  if test $ac_cv_header_stdc = yes; then
4190  
4191 -cat >>confdefs.h <<\EOF
4192 +cat >>confdefs.h <<\_ACEOF
4193  #define STDC_HEADERS 1
4194 -EOF
4195 +_ACEOF
4196  
4197  fi
4198  
4199 +
4200 +
4201 +
4202 +
4203 +
4204  for ac_header in fcntl.h termcap.h termio.h termios.h unistd.h
4205  do
4206  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207 -echo "$as_me:3177: checking for $ac_header" >&5
4208 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
4210  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4211  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4212    echo $ECHO_N "(cached) $ECHO_C" >&6
4213 +fi
4214 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216  else
4217 -  cat >conftest.$ac_ext <<_ACEOF
4218 -#line 3183 "configure"
4219 -#include "confdefs.h"
4220 +  # Is the header compilable?
4221 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
4222 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4223 +cat >conftest.$ac_ext <<_ACEOF
4224 +#line $LINENO "configure"
4225 +/* confdefs.h.  */
4226 +_ACEOF
4227 +cat confdefs.h >>conftest.$ac_ext
4228 +cat >>conftest.$ac_ext <<_ACEOF
4229 +/* end confdefs.h.  */
4230 +$ac_includes_default
4231  #include <$ac_header>
4232  _ACEOF
4233 -if { (eval echo "$as_me:3187: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 +rm -f conftest.$ac_objext
4235 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 +  (eval $ac_compile) 2>&5
4237 +  ac_status=$?
4238 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 +  (exit $ac_status); } &&
4240 +         { ac_try='test -s conftest.$ac_objext'
4241 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 +  (eval $ac_try) 2>&5
4243 +  ac_status=$?
4244 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 +  (exit $ac_status); }; }; then
4246 +  ac_header_compiler=yes
4247 +else
4248 +  echo "$as_me: failed program was:" >&5
4249 +sed 's/^/| /' conftest.$ac_ext >&5
4250 +
4251 +ac_header_compiler=no
4252 +fi
4253 +rm -f conftest.$ac_objext conftest.$ac_ext
4254 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 +echo "${ECHO_T}$ac_header_compiler" >&6
4256 +
4257 +# Is the header present?
4258 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 +cat >conftest.$ac_ext <<_ACEOF
4261 +#line $LINENO "configure"
4262 +/* confdefs.h.  */
4263 +_ACEOF
4264 +cat confdefs.h >>conftest.$ac_ext
4265 +cat >>conftest.$ac_ext <<_ACEOF
4266 +/* end confdefs.h.  */
4267 +#include <$ac_header>
4268 +_ACEOF
4269 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271    ac_status=$?
4272 -  egrep -v '^ *\+' conftest.er1 >conftest.err
4273 +  grep -v '^ *+' conftest.er1 >conftest.err
4274    rm -f conftest.er1
4275    cat conftest.err >&5
4276 -  echo "$as_me:3193: \$? = $ac_status" >&5
4277 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278    (exit $ac_status); } >/dev/null; then
4279    if test -s conftest.err; then
4280      ac_cpp_err=$ac_c_preproc_warn_flag
4281 @@ -3201,26 +4241,71 @@
4282    ac_cpp_err=yes
4283  fi
4284  if test -z "$ac_cpp_err"; then
4285 -  eval "$as_ac_Header=yes"
4286 +  ac_header_preproc=yes
4287  else
4288    echo "$as_me: failed program was:" >&5
4289 -  cat conftest.$ac_ext >&5
4290 -  eval "$as_ac_Header=no"
4291 +sed 's/^/| /' conftest.$ac_ext >&5
4292 +
4293 +  ac_header_preproc=no
4294  fi
4295  rm -f conftest.err conftest.$ac_ext
4296 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4297 +echo "${ECHO_T}$ac_header_preproc" >&6
4298 +
4299 +# So?  What about this header?
4300 +case $ac_header_compiler:$ac_header_preproc in
4301 +  yes:no )
4302 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4303 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4304 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4305 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4306 +    (
4307 +      cat <<\_ASBOX
4308 +## ------------------------------------ ##
4309 +## Report this to bug-autoconf@gnu.org. ##
4310 +## ------------------------------------ ##
4311 +_ASBOX
4312 +    ) |
4313 +      sed "s/^/$as_me: WARNING:     /" >&2
4314 +    ;;
4315 +  no:yes )
4316 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4317 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4318 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4319 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4320 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4321 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4322 +    (
4323 +      cat <<\_ASBOX
4324 +## ------------------------------------ ##
4325 +## Report this to bug-autoconf@gnu.org. ##
4326 +## ------------------------------------ ##
4327 +_ASBOX
4328 +    ) |
4329 +      sed "s/^/$as_me: WARNING:     /" >&2
4330 +    ;;
4331 +esac
4332 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4333 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4334 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4336 +else
4337 +  eval "$as_ac_Header=$ac_header_preproc"
4338  fi
4339 -echo "$as_me:3212: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 +
4343 +fi
4344  if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345 -  cat >>confdefs.h <<EOF
4346 +  cat >>confdefs.h <<_ACEOF
4347  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 -EOF
4349 +_ACEOF
4350  
4351  fi
4352 +
4353  done
4354  
4355 -_cppflags="${CPPFLAGS}"
4356 -_ldflags="${LDFLAGS}"
4357 +
4358  
4359  # Check whether --with-ncurses or --without-ncurses was given.
4360  if test "${with_ncurses+set}" = set; then
4361 @@ -3233,23 +4318,70 @@
4362  
4363  fi;
4364  
4365 -echo "$as_me:3236: checking for ncurses.h" >&5
4366 +if test "${ac_cv_header_ncurses_h+set}" = set; then
4367 +  echo "$as_me:$LINENO: checking for ncurses.h" >&5
4368  echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6
4369  if test "${ac_cv_header_ncurses_h+set}" = set; then
4370    echo $ECHO_N "(cached) $ECHO_C" >&6
4371 +fi
4372 +echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
4373 +echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6
4374  else
4375 -  cat >conftest.$ac_ext <<_ACEOF
4376 -#line 3242 "configure"
4377 -#include "confdefs.h"
4378 +  # Is the header compilable?
4379 +echo "$as_me:$LINENO: checking ncurses.h usability" >&5
4380 +echo $ECHO_N "checking ncurses.h usability... $ECHO_C" >&6
4381 +cat >conftest.$ac_ext <<_ACEOF
4382 +#line $LINENO "configure"
4383 +/* confdefs.h.  */
4384 +_ACEOF
4385 +cat confdefs.h >>conftest.$ac_ext
4386 +cat >>conftest.$ac_ext <<_ACEOF
4387 +/* end confdefs.h.  */
4388 +$ac_includes_default
4389  #include <ncurses.h>
4390  _ACEOF
4391 -if { (eval echo "$as_me:3246: \"$ac_cpp conftest.$ac_ext\"") >&5
4392 +rm -f conftest.$ac_objext
4393 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 +  (eval $ac_compile) 2>&5
4395 +  ac_status=$?
4396 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 +  (exit $ac_status); } &&
4398 +         { ac_try='test -s conftest.$ac_objext'
4399 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 +  (eval $ac_try) 2>&5
4401 +  ac_status=$?
4402 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 +  (exit $ac_status); }; }; then
4404 +  ac_header_compiler=yes
4405 +else
4406 +  echo "$as_me: failed program was:" >&5
4407 +sed 's/^/| /' conftest.$ac_ext >&5
4408 +
4409 +ac_header_compiler=no
4410 +fi
4411 +rm -f conftest.$ac_objext conftest.$ac_ext
4412 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4413 +echo "${ECHO_T}$ac_header_compiler" >&6
4414 +
4415 +# Is the header present?
4416 +echo "$as_me:$LINENO: checking ncurses.h presence" >&5
4417 +echo $ECHO_N "checking ncurses.h presence... $ECHO_C" >&6
4418 +cat >conftest.$ac_ext <<_ACEOF
4419 +#line $LINENO "configure"
4420 +/* confdefs.h.  */
4421 +_ACEOF
4422 +cat confdefs.h >>conftest.$ac_ext
4423 +cat >>conftest.$ac_ext <<_ACEOF
4424 +/* end confdefs.h.  */
4425 +#include <ncurses.h>
4426 +_ACEOF
4427 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429    ac_status=$?
4430 -  egrep -v '^ *\+' conftest.er1 >conftest.err
4431 +  grep -v '^ *+' conftest.er1 >conftest.err
4432    rm -f conftest.er1
4433    cat conftest.err >&5
4434 -  echo "$as_me:3252: \$? = $ac_status" >&5
4435 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436    (exit $ac_status); } >/dev/null; then
4437    if test -s conftest.err; then
4438      ac_cpp_err=$ac_c_preproc_warn_flag
4439 @@ -3260,18 +4392,63 @@
4440    ac_cpp_err=yes
4441  fi
4442  if test -z "$ac_cpp_err"; then
4443 -  ac_cv_header_ncurses_h=yes
4444 +  ac_header_preproc=yes
4445  else
4446    echo "$as_me: failed program was:" >&5
4447 -  cat conftest.$ac_ext >&5
4448 -  ac_cv_header_ncurses_h=no
4449 +sed 's/^/| /' conftest.$ac_ext >&5
4450 +
4451 +  ac_header_preproc=no
4452  fi
4453  rm -f conftest.err conftest.$ac_ext
4454 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4455 +echo "${ECHO_T}$ac_header_preproc" >&6
4456 +
4457 +# So?  What about this header?
4458 +case $ac_header_compiler:$ac_header_preproc in
4459 +  yes:no )
4460 +    { echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5
4461 +echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4462 +    { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
4463 +echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
4464 +    (
4465 +      cat <<\_ASBOX
4466 +## ------------------------------------ ##
4467 +## Report this to bug-autoconf@gnu.org. ##
4468 +## ------------------------------------ ##
4469 +_ASBOX
4470 +    ) |
4471 +      sed "s/^/$as_me: WARNING:     /" >&2
4472 +    ;;
4473 +  no:yes )
4474 +    { echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5
4475 +echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;}
4476 +    { echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5
4477 +echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;}
4478 +    { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
4479 +echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
4480 +    (
4481 +      cat <<\_ASBOX
4482 +## ------------------------------------ ##
4483 +## Report this to bug-autoconf@gnu.org. ##
4484 +## ------------------------------------ ##
4485 +_ASBOX
4486 +    ) |
4487 +      sed "s/^/$as_me: WARNING:     /" >&2
4488 +    ;;
4489 +esac
4490 +echo "$as_me:$LINENO: checking for ncurses.h" >&5
4491 +echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6
4492 +if test "${ac_cv_header_ncurses_h+set}" = set; then
4493 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4494 +else
4495 +  ac_cv_header_ncurses_h=$ac_header_preproc
4496  fi
4497 -echo "$as_me:3271: result: $ac_cv_header_ncurses_h" >&5
4498 +echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
4499  echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6
4500 +
4501 +fi
4502  if test $ac_cv_header_ncurses_h = yes; then
4503 -  echo "$as_me:3274: checking for initscr in -lncurses" >&5
4504 +  echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4505  echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4506  if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4507    echo $ECHO_N "(cached) $ECHO_C" >&6
4508 @@ -3279,8 +4456,12 @@
4509    ac_check_lib_save_LIBS=$LIBS
4510  LIBS="-lncurses  $LIBS"
4511  cat >conftest.$ac_ext <<_ACEOF
4512 -#line 3282 "configure"
4513 -#include "confdefs.h"
4514 +#line $LINENO "configure"
4515 +/* confdefs.h.  */
4516 +_ACEOF
4517 +cat confdefs.h >>conftest.$ac_ext
4518 +cat >>conftest.$ac_ext <<_ACEOF
4519 +/* end confdefs.h.  */
4520  
4521  /* Override any gcc2 internal prototype to avoid an error.  */
4522  #ifdef __cplusplus
4523 @@ -3298,35 +4479,36 @@
4524  }
4525  _ACEOF
4526  rm -f conftest.$ac_objext conftest$ac_exeext
4527 -if { (eval echo "$as_me:3301: \"$ac_link\"") >&5
4528 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529    (eval $ac_link) 2>&5
4530    ac_status=$?
4531 -  echo "$as_me:3304: \$? = $ac_status" >&5
4532 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533    (exit $ac_status); } &&
4534           { ac_try='test -s conftest$ac_exeext'
4535 -  { (eval echo "$as_me:3307: \"$ac_try\"") >&5
4536 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537    (eval $ac_try) 2>&5
4538    ac_status=$?
4539 -  echo "$as_me:3310: \$? = $ac_status" >&5
4540 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541    (exit $ac_status); }; }; then
4542    ac_cv_lib_ncurses_initscr=yes
4543  else
4544    echo "$as_me: failed program was:" >&5
4545 -cat conftest.$ac_ext >&5
4546 +sed 's/^/| /' conftest.$ac_ext >&5
4547 +
4548  ac_cv_lib_ncurses_initscr=no
4549  fi
4550  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4551  LIBS=$ac_check_lib_save_LIBS
4552  fi
4553 -echo "$as_me:3321: result: $ac_cv_lib_ncurses_initscr" >&5
4554 +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4555  echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4556  if test $ac_cv_lib_ncurses_initscr = yes; then
4557 -  cat >>confdefs.h <<\EOF
4558 +  cat >>confdefs.h <<\_ACEOF
4559  #define HAVE_NCURSES_H 1
4560 -EOF
4561 +_ACEOF
4562   LIBS="${LIBS} -lncurses"
4563  else
4564 -  echo "$as_me:3329: checking for initscr in -lcurses" >&5
4565 +  echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
4566  echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
4567  if test "${ac_cv_lib_curses_initscr+set}" = set; then
4568    echo $ECHO_N "(cached) $ECHO_C" >&6
4569 @@ -3334,8 +4516,12 @@
4570    ac_check_lib_save_LIBS=$LIBS
4571  LIBS="-lcurses  $LIBS"
4572  cat >conftest.$ac_ext <<_ACEOF
4573 -#line 3337 "configure"
4574 -#include "confdefs.h"
4575 +#line $LINENO "configure"
4576 +/* confdefs.h.  */
4577 +_ACEOF
4578 +cat confdefs.h >>conftest.$ac_ext
4579 +cat >>conftest.$ac_ext <<_ACEOF
4580 +/* end confdefs.h.  */
4581  
4582  /* Override any gcc2 internal prototype to avoid an error.  */
4583  #ifdef __cplusplus
4584 @@ -3353,217 +4539,142 @@
4585  }
4586  _ACEOF
4587  rm -f conftest.$ac_objext conftest$ac_exeext
4588 -if { (eval echo "$as_me:3356: \"$ac_link\"") >&5
4589 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590    (eval $ac_link) 2>&5
4591    ac_status=$?
4592 -  echo "$as_me:3359: \$? = $ac_status" >&5
4593 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594    (exit $ac_status); } &&
4595           { ac_try='test -s conftest$ac_exeext'
4596 -  { (eval echo "$as_me:3362: \"$ac_try\"") >&5
4597 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598    (eval $ac_try) 2>&5
4599    ac_status=$?
4600 -  echo "$as_me:3365: \$? = $ac_status" >&5
4601 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602    (exit $ac_status); }; }; then
4603    ac_cv_lib_curses_initscr=yes
4604  else
4605    echo "$as_me: failed program was:" >&5
4606 -cat conftest.$ac_ext >&5
4607 +sed 's/^/| /' conftest.$ac_ext >&5
4608 +
4609  ac_cv_lib_curses_initscr=no
4610  fi
4611  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4612  LIBS=$ac_check_lib_save_LIBS
4613  fi
4614 -echo "$as_me:3376: result: $ac_cv_lib_curses_initscr" >&5
4615 +echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
4616  echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
4617  if test $ac_cv_lib_curses_initscr = yes; then
4618 -  cat >>confdefs.h <<\EOF
4619 +  cat >>confdefs.h <<\_ACEOF
4620  #define HAVE_CURSES_H 1
4621 -EOF
4622 +_ACEOF
4623   LIBS="${LIBS} -lcurses"
4624  else
4625 -  { { echo "$as_me:3384: error: bvi requires the curses library" >&5
4626 +  { { echo "$as_me:$LINENO: error: bvi requires the curses library" >&5
4627  echo "$as_me: error: bvi requires the curses library" >&2;}
4628     { (exit 1); exit 1; }; }
4629 -fi
4630  
4631  fi
4632  
4633 -else
4634 -  echo "$as_me:3392: checking for curses.h" >&5
4635 -echo $ECHO_N "checking for curses.h... $ECHO_C" >&6
4636 -if test "${ac_cv_header_curses_h+set}" = set; then
4637 -  echo $ECHO_N "(cached) $ECHO_C" >&6
4638 -else
4639 -  cat >conftest.$ac_ext <<_ACEOF
4640 -#line 3398 "configure"
4641 -#include "confdefs.h"
4642 -#include <curses.h>
4643 -_ACEOF
4644 -if { (eval echo "$as_me:3402: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646 -  ac_status=$?
4647 -  egrep -v '^ *\+' conftest.er1 >conftest.err
4648 -  rm -f conftest.er1
4649 -  cat conftest.err >&5
4650 -  echo "$as_me:3408: \$? = $ac_status" >&5
4651 -  (exit $ac_status); } >/dev/null; then
4652 -  if test -s conftest.err; then
4653 -    ac_cpp_err=$ac_c_preproc_warn_flag
4654 -  else
4655 -    ac_cpp_err=
4656 -  fi
4657 -else
4658 -  ac_cpp_err=yes
4659 -fi
4660 -if test -z "$ac_cpp_err"; then
4661 -  ac_cv_header_curses_h=yes
4662 -else
4663 -  echo "$as_me: failed program was:" >&5
4664 -  cat conftest.$ac_ext >&5
4665 -  ac_cv_header_curses_h=no
4666 -fi
4667 -rm -f conftest.err conftest.$ac_ext
4668 -fi
4669 -echo "$as_me:3427: result: $ac_cv_header_curses_h" >&5
4670 -echo "${ECHO_T}$ac_cv_header_curses_h" >&6
4671 -if test $ac_cv_header_curses_h = yes; then
4672 -  echo "$as_me:3430: checking for initscr in -lcurses" >&5
4673 -echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
4674 -if test "${ac_cv_lib_curses_initscr+set}" = set; then
4675 -  echo $ECHO_N "(cached) $ECHO_C" >&6
4676 -else
4677 -  ac_check_lib_save_LIBS=$LIBS
4678 -LIBS="-lcurses  $LIBS"
4679 -cat >conftest.$ac_ext <<_ACEOF
4680 -#line 3438 "configure"
4681 -#include "confdefs.h"
4682  
4683 -/* Override any gcc2 internal prototype to avoid an error.  */
4684 -#ifdef __cplusplus
4685 -extern "C"
4686 -#endif
4687 -/* We use char because int might match the return type of a gcc2
4688 -   builtin and then its argument prototype would still apply.  */
4689 -char initscr ();
4690 -int
4691 -main ()
4692 -{
4693 -initscr ();
4694 -  ;
4695 -  return 0;
4696 -}
4697 -_ACEOF
4698 -rm -f conftest.$ac_objext conftest$ac_exeext
4699 -if { (eval echo "$as_me:3457: \"$ac_link\"") >&5
4700 -  (eval $ac_link) 2>&5
4701 -  ac_status=$?
4702 -  echo "$as_me:3460: \$? = $ac_status" >&5
4703 -  (exit $ac_status); } &&
4704 -         { ac_try='test -s conftest$ac_exeext'
4705 -  { (eval echo "$as_me:3463: \"$ac_try\"") >&5
4706 -  (eval $ac_try) 2>&5
4707 -  ac_status=$?
4708 -  echo "$as_me:3466: \$? = $ac_status" >&5
4709 -  (exit $ac_status); }; }; then
4710 -  ac_cv_lib_curses_initscr=yes
4711 -else
4712 -  echo "$as_me: failed program was:" >&5
4713 -cat conftest.$ac_ext >&5
4714 -ac_cv_lib_curses_initscr=no
4715 -fi
4716 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4717 -LIBS=$ac_check_lib_save_LIBS
4718 -fi
4719 -echo "$as_me:3477: result: $ac_cv_lib_curses_initscr" >&5
4720 -echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
4721 -if test $ac_cv_lib_curses_initscr = yes; then
4722 -  cat >>confdefs.h <<\EOF
4723 -#define HAVE_CURSES_H 1
4724 -EOF
4725 - LIBS="${LIBS} -lcurses"
4726 -else
4727 -  { { echo "$as_me:3485: error: bvi requires the curses library" >&5
4728 -echo "$as_me: error: bvi requires the curses library" >&2;}
4729 -   { (exit 1); exit 1; }; }
4730  fi
4731  
4732  else
4733 -  { { echo "$as_me:3491: error: bvi requires the curses library" >&5
4734 +  { { echo "$as_me:$LINENO: error: bvi requires the curses library" >&5
4735  echo "$as_me: error: bvi requires the curses library" >&2;}
4736     { (exit 1); exit 1; }; }
4737 -fi
4738  
4739  fi
4740  
4741 +
4742 +
4743 +
4744 +
4745 +
4746 +
4747 +
4748  for ac_func in strdup strtol strerror memmove
4749  do
4750  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751 -echo "$as_me:3501: checking for $ac_func" >&5
4752 +echo "$as_me:$LINENO: checking for $ac_func" >&5
4753  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4754  if eval "test \"\${$as_ac_var+set}\" = set"; then
4755    echo $ECHO_N "(cached) $ECHO_C" >&6
4756  else
4757    cat >conftest.$ac_ext <<_ACEOF
4758 -#line 3507 "configure"
4759 -#include "confdefs.h"
4760 +#line $LINENO "configure"
4761 +/* confdefs.h.  */
4762 +_ACEOF
4763 +cat confdefs.h >>conftest.$ac_ext
4764 +cat >>conftest.$ac_ext <<_ACEOF
4765 +/* end confdefs.h.  */
4766  /* System header to define __stub macros and hopefully few prototypes,
4767 -    which can conflict with char $ac_func (); below.  */
4768 -#include <assert.h>
4769 +    which can conflict with char $ac_func (); below.
4770 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 +    <limits.h> exists even on freestanding compilers.  */
4772 +#ifdef __STDC__
4773 +# include <limits.h>
4774 +#else
4775 +# include <assert.h>
4776 +#endif
4777  /* Override any gcc2 internal prototype to avoid an error.  */
4778  #ifdef __cplusplus
4779  extern "C"
4780 +{
4781  #endif
4782  /* We use char because int might match the return type of a gcc2
4783     builtin and then its argument prototype would still apply.  */
4784  char $ac_func ();
4785 -char (*f) ();
4786 -
4787 -int
4788 -main ()
4789 -{
4790  /* The GNU C library defines this for functions which it implements
4791      to always fail with ENOSYS.  Some functions are actually named
4792      something starting with __ and the normal name is an alias.  */
4793  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4794  choke me
4795  #else
4796 -f = $ac_func;
4797 +char (*f) () = $ac_func;
4798 +#endif
4799 +#ifdef __cplusplus
4800 +}
4801  #endif
4802  
4803 +int
4804 +main ()
4805 +{
4806 +return f != $ac_func;
4807    ;
4808    return 0;
4809  }
4810  _ACEOF
4811  rm -f conftest.$ac_objext conftest$ac_exeext
4812 -if { (eval echo "$as_me:3538: \"$ac_link\"") >&5
4813 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4814    (eval $ac_link) 2>&5
4815    ac_status=$?
4816 -  echo "$as_me:3541: \$? = $ac_status" >&5
4817 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818    (exit $ac_status); } &&
4819           { ac_try='test -s conftest$ac_exeext'
4820 -  { (eval echo "$as_me:3544: \"$ac_try\"") >&5
4821 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822    (eval $ac_try) 2>&5
4823    ac_status=$?
4824 -  echo "$as_me:3547: \$? = $ac_status" >&5
4825 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826    (exit $ac_status); }; }; then
4827    eval "$as_ac_var=yes"
4828  else
4829    echo "$as_me: failed program was:" >&5
4830 -cat conftest.$ac_ext >&5
4831 +sed 's/^/| /' conftest.$ac_ext >&5
4832 +
4833  eval "$as_ac_var=no"
4834  fi
4835  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4836  fi
4837 -echo "$as_me:3557: result: `eval echo '${'$as_ac_var'}'`" >&5
4838 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4839  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4840  if test `eval echo '${'$as_ac_var'}'` = yes; then
4841 -  cat >>confdefs.h <<EOF
4842 +  cat >>confdefs.h <<_ACEOF
4843  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844 -EOF
4845 +_ACEOF
4846  
4847  fi
4848  done
4849  
4850 +
4851  # Find a good install program.  We prefer a C program (faster),
4852  # so one script is as good as another.  But avoid the broken or
4853  # incompatible versions:
4854 @@ -3576,43 +4687,48 @@
4855  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4856  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4857  # ./install, which can be erroneously created by make from ./install.sh.
4858 -echo "$as_me:3579: checking for a BSD compatible install" >&5
4859 -echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4860 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4861 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4862  if test -z "$INSTALL"; then
4863  if test "${ac_cv_path_install+set}" = set; then
4864    echo $ECHO_N "(cached) $ECHO_C" >&6
4865  else
4866 -    ac_save_IFS=$IFS; IFS=$ac_path_separator
4867 -  for ac_dir in $PATH; do
4868 -    IFS=$ac_save_IFS
4869 -    # Account for people who put trailing slashes in PATH elements.
4870 -    case $ac_dir/ in
4871 -    / | ./ | .// | /cC/* \
4872 -    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4873 -    | /usr/ucb/* ) ;;
4874 -    *)
4875 -      # OSF1 and SCO ODT 3.0 have their own names for install.
4876 -      # Don't use installbsd from OSF since it installs stuff as root
4877 -      # by default.
4878 -      for ac_prog in ginstall scoinst install; do
4879 -        if $as_executable_p "$ac_dir/$ac_prog"; then
4880 -         if test $ac_prog = install &&
4881 -            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4882 -           # AIX install.  It has an incompatible calling convention.
4883 -           :
4884 -         elif test $ac_prog = install &&
4885 -           grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4886 -           # program-specific install script used by HP pwplus--don't use.
4887 -           :
4888 -         else
4889 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
4890 -           break 2
4891 -         fi
4892 -       fi
4893 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 +for as_dir in $PATH
4895 +do
4896 +  IFS=$as_save_IFS
4897 +  test -z "$as_dir" && as_dir=.
4898 +  # Account for people who put trailing slashes in PATH elements.
4899 +case $as_dir/ in
4900 +  ./ | .// | /cC/* | \
4901 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4902 +  /usr/ucb/* ) ;;
4903 +  *)
4904 +    # OSF1 and SCO ODT 3.0 have their own names for install.
4905 +    # Don't use installbsd from OSF since it installs stuff as root
4906 +    # by default.
4907 +    for ac_prog in ginstall scoinst install; do
4908 +      for ac_exec_ext in '' $ac_executable_extensions; do
4909 +        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4910 +          if test $ac_prog = install &&
4911 +            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4912 +            # AIX install.  It has an incompatible calling convention.
4913 +            :
4914 +          elif test $ac_prog = install &&
4915 +            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4916 +            # program-specific install script used by HP pwplus--don't use.
4917 +            :
4918 +          else
4919 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4920 +            break 3
4921 +          fi
4922 +        fi
4923        done
4924 -      ;;
4925 -    esac
4926 -  done
4927 +    done
4928 +    ;;
4929 +esac
4930 +done
4931 +
4932  
4933  fi
4934    if test "${ac_cv_path_install+set}" = set; then
4935 @@ -3625,7 +4741,7 @@
4936      INSTALL=$ac_install_sh
4937    fi
4938  fi
4939 -echo "$as_me:3628: result: $INSTALL" >&5
4940 +echo "$as_me:$LINENO: result: $INSTALL" >&5
4941  echo "${ECHO_T}$INSTALL" >&6
4942  
4943  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4944 @@ -3636,7 +4752,8 @@
4945  
4946  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4947  
4948 -ac_config_files="$ac_config_files Makefile"
4949 +
4950 +          ac_config_files="$ac_config_files Makefile"
4951  
4952  cat >confcache <<\_ACEOF
4953  # This file is a shell script that caches the results of configure
4954 @@ -3648,7 +4765,7 @@
4955  # config.status only pays attention to the cache file if you give it
4956  # the --recheck option to rerun configure.
4957  #
4958 -# `ac_cv_env_foo' variables (set or unset) will be overriden when
4959 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
4960  # loading this file, other *unset* `ac_cv_foo' will be assigned the
4961  # following values.
4962  
4963 @@ -3683,7 +4800,7 @@
4964       t end
4965       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4966       : end' >>confcache
4967 -if cmp -s $cache_file confcache; then :; else
4968 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
4969    if test -w $cache_file; then
4970      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4971      cat confcache >$cache_file
4972 @@ -3714,35 +4831,227 @@
4973  
4974  DEFS=-DHAVE_CONFIG_H
4975  
4976 +ac_libobjs=
4977 +ac_ltlibobjs=
4978 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4979 +  # 1. Remove the extension, and $U if already installed.
4980 +  ac_i=`echo "$ac_i" |
4981 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4982 +  # 2. Add them.
4983 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4984 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4985 +done
4986 +LIBOBJS=$ac_libobjs
4987 +
4988 +LTLIBOBJS=$ac_ltlibobjs
4989 +
4990 +
4991 +
4992  : ${CONFIG_STATUS=./config.status}
4993  ac_clean_files_save=$ac_clean_files
4994  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4995 -{ echo "$as_me:3720: creating $CONFIG_STATUS" >&5
4996 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4997  echo "$as_me: creating $CONFIG_STATUS" >&6;}
4998  cat >$CONFIG_STATUS <<_ACEOF
4999  #! $SHELL
5000 -# Generated automatically by configure.
5001 +# Generated by $as_me.
5002  # Run this file to recreate the current configuration.
5003  # Compiler output produced by configure, useful for debugging
5004  # configure, is in config.log if it exists.
5005  
5006  debug=false
5007 +ac_cs_recheck=false
5008 +ac_cs_silent=false
5009  SHELL=\${CONFIG_SHELL-$SHELL}
5010 -ac_cs_invocation="\$0 \$@"
5011 -
5012  _ACEOF
5013  
5014  cat >>$CONFIG_STATUS <<\_ACEOF
5015 +## --------------------- ##
5016 +## M4sh Initialization.  ##
5017 +## --------------------- ##
5018 +
5019  # Be Bourne compatible
5020  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5021    emulate sh
5022    NULLCMD=:
5023 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5024 +  # is contrary to our usage.  Disable this feature.
5025 +  alias -g '${1+"$@"}'='"$@"'
5026  elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5027    set -o posix
5028  fi
5029  
5030 +# Support unset when possible.
5031 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5032 +  as_unset=unset
5033 +else
5034 +  as_unset=false
5035 +fi
5036 +
5037 +
5038 +# Work around bugs in pre-3.0 UWIN ksh.
5039 +$as_unset ENV MAIL MAILPATH
5040 +PS1='$ '
5041 +PS2='> '
5042 +PS4='+ '
5043 +
5044 +# NLS nuisances.
5045 +for as_var in \
5046 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5047 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5048 +  LC_TELEPHONE LC_TIME
5049 +do
5050 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5051 +    eval $as_var=C; export $as_var
5052 +  else
5053 +    $as_unset $as_var
5054 +  fi
5055 +done
5056 +
5057 +# Required to use basename.
5058 +if expr a : '\(a\)' >/dev/null 2>&1; then
5059 +  as_expr=expr
5060 +else
5061 +  as_expr=false
5062 +fi
5063 +
5064 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5065 +  as_basename=basename
5066 +else
5067 +  as_basename=false
5068 +fi
5069 +
5070 +
5071  # Name of the executable.
5072 -as_me=`echo "$0" |sed 's,.*[\\/],,'`
5073 +as_me=`$as_basename "$0" ||
5074 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5075 +        X"$0" : 'X\(//\)$' \| \
5076 +        X"$0" : 'X\(/\)$' \| \
5077 +        .     : '\(.\)' 2>/dev/null ||
5078 +echo X/"$0" |
5079 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5080 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
5081 +         /^X\/\(\/\).*/{ s//\1/; q; }
5082 +         s/.*/./; q'`
5083 +
5084 +
5085 +# PATH needs CR, and LINENO needs CR and PATH.
5086 +# Avoid depending upon Character Ranges.
5087 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5088 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5089 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5090 +as_cr_digits='0123456789'
5091 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5092 +
5093 +# The user is always right.
5094 +if test "${PATH_SEPARATOR+set}" != set; then
5095 +  echo "#! /bin/sh" >conf$$.sh
5096 +  echo  "exit 0"   >>conf$$.sh
5097 +  chmod +x conf$$.sh
5098 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5099 +    PATH_SEPARATOR=';'
5100 +  else
5101 +    PATH_SEPARATOR=:
5102 +  fi
5103 +  rm -f conf$$.sh
5104 +fi
5105 +
5106 +
5107 +  as_lineno_1=$LINENO
5108 +  as_lineno_2=$LINENO
5109 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5110 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
5111 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5112 +  # Find who we are.  Look in the path if we contain no path at all
5113 +  # relative or not.
5114 +  case $0 in
5115 +    *[\\/]* ) as_myself=$0 ;;
5116 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 +for as_dir in $PATH
5118 +do
5119 +  IFS=$as_save_IFS
5120 +  test -z "$as_dir" && as_dir=.
5121 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5122 +done
5123 +
5124 +       ;;
5125 +  esac
5126 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
5127 +  # in which case we are not to be found in the path.
5128 +  if test "x$as_myself" = x; then
5129 +    as_myself=$0
5130 +  fi
5131 +  if test ! -f "$as_myself"; then
5132 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5133 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5134 +   { (exit 1); exit 1; }; }
5135 +  fi
5136 +  case $CONFIG_SHELL in
5137 +  '')
5138 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5140 +do
5141 +  IFS=$as_save_IFS
5142 +  test -z "$as_dir" && as_dir=.
5143 +  for as_base in sh bash ksh sh5; do
5144 +        case $as_dir in
5145 +        /*)
5146 +          if ("$as_dir/$as_base" -c '
5147 +  as_lineno_1=$LINENO
5148 +  as_lineno_2=$LINENO
5149 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5150 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
5151 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5152 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5153 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5154 +            CONFIG_SHELL=$as_dir/$as_base
5155 +            export CONFIG_SHELL
5156 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5157 +          fi;;
5158 +        esac
5159 +       done
5160 +done
5161 +;;
5162 +  esac
5163 +
5164 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5165 +  # uniformly replaced by the line number.  The first 'sed' inserts a
5166 +  # line-number line before each line; the second 'sed' does the real
5167 +  # work.  The second script uses 'N' to pair each line-number line
5168 +  # with the numbered line, and appends trailing '-' during
5169 +  # substitution so that $LINENO is not a special case at line end.
5170 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5171 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5172 +  sed '=' <$as_myself |
5173 +    sed '
5174 +      N
5175 +      s,$,-,
5176 +      : loop
5177 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5178 +      t loop
5179 +      s,-$,,
5180 +      s,^['$as_cr_digits']*\n,,
5181 +    ' >$as_me.lineno &&
5182 +  chmod +x $as_me.lineno ||
5183 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5184 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5185 +   { (exit 1); exit 1; }; }
5186 +
5187 +  # Don't try to exec as it changes $[0], causing all sort of problems
5188 +  # (the dirname of $[0] is not the place where we might find the
5189 +  # original and so on.  Autoconf is especially sensible to this).
5190 +  . ./$as_me.lineno
5191 +  # Exit status is that of the last command.
5192 +  exit
5193 +}
5194 +
5195 +
5196 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5197 +  *c*,-n*) ECHO_N= ECHO_C='
5198 +' ECHO_T='     ' ;;
5199 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5200 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5201 +esac
5202  
5203  if expr a : '\(a\)' >/dev/null 2>&1; then
5204    as_expr=expr
5205 @@ -3768,24 +5077,20 @@
5206  fi
5207  rm -f conf$$ conf$$.exe conf$$.file
5208  
5209 -as_executable_p="test -f"
5210 -
5211 -# Support unset when possible.
5212 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5213 -  as_unset=unset
5214 +if mkdir -p . 2>/dev/null; then
5215 +  as_mkdir_p=:
5216  else
5217 -  as_unset=false
5218 +  as_mkdir_p=false
5219  fi
5220  
5221 -# NLS nuisances.
5222 -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5223 -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5224 -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5225 -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5226 -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5227 -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5228 -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5229 -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5230 +as_executable_p="test -f"
5231 +
5232 +# Sed expression to map a string onto a valid CPP name.
5233 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5234 +
5235 +# Sed expression to map a string onto a valid variable name.
5236 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5237 +
5238  
5239  # IFS
5240  # We need space, tab and new line, in precisely that order.
5241 @@ -3794,10 +5099,34 @@
5242  IFS="  $as_nl"
5243  
5244  # CDPATH.
5245 -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5246 +$as_unset CDPATH
5247  
5248  exec 6>&1
5249  
5250 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
5251 +# report actual input values of CONFIG_FILES etc. instead of their
5252 +# values after options handling.  Logging --version etc. is OK.
5253 +exec 5>>config.log
5254 +{
5255 +  echo
5256 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5257 +## Running $as_me. ##
5258 +_ASBOX
5259 +} >&5
5260 +cat >&5 <<_CSEOF
5261 +
5262 +This file was extended by $as_me, which was
5263 +generated by GNU Autoconf 2.57.  Invocation command line was
5264 +
5265 +  CONFIG_FILES    = $CONFIG_FILES
5266 +  CONFIG_HEADERS  = $CONFIG_HEADERS
5267 +  CONFIG_LINKS    = $CONFIG_LINKS
5268 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
5269 +  $ $0 $@
5270 +
5271 +_CSEOF
5272 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5273 +echo >&5
5274  _ACEOF
5275  
5276  # Files that config.status was made for.
5277 @@ -3817,7 +5146,7 @@
5278    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5279  fi
5280  
5281 -cat >>$CONFIG_STATUS <<\EOF
5282 +cat >>$CONFIG_STATUS <<\_ACEOF
5283  
5284  ac_cs_usage="\
5285  \`$as_me' instantiates files from templates according to the
5286 @@ -3827,6 +5156,7 @@
5287  
5288    -h, --help       print this help, then exit
5289    -V, --version    print version number, then exit
5290 +  -q, --quiet      do not print progress messages
5291    -d, --debug      don't remove temporary files
5292        --recheck    update $as_me by reconfiguring in the same conditions
5293    --file=FILE[:TEMPLATE]
5294 @@ -3841,12 +5171,12 @@
5295  $config_headers
5296  
5297  Report bugs to <bug-autoconf@gnu.org>."
5298 -EOF
5299 +_ACEOF
5300  
5301 -cat >>$CONFIG_STATUS <<EOF
5302 +cat >>$CONFIG_STATUS <<_ACEOF
5303  ac_cs_version="\\
5304  config.status
5305 -configured by $0, generated by GNU Autoconf 2.52,
5306 +configured by $0, generated by GNU Autoconf 2.57,
5307    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5308  
5309  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5310 @@ -3855,9 +5185,9 @@
5311  gives unlimited permission to copy, distribute and modify it."
5312  srcdir=$srcdir
5313  INSTALL="$INSTALL"
5314 -EOF
5315 +_ACEOF
5316  
5317 -cat >>$CONFIG_STATUS <<\EOF
5318 +cat >>$CONFIG_STATUS <<\_ACEOF
5319  # If no file are specified by the user, then we need to provide default
5320  # value.  By we need to know if files were specified by the user.
5321  ac_need_defaults=:
5322 @@ -3867,30 +5197,30 @@
5323    --*=*)
5324      ac_option=`expr "x$1" : 'x\([^=]*\)='`
5325      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5326 -    shift
5327 -    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5328 -    shift
5329 +    ac_shift=:
5330 +    ;;
5331 +  -*)
5332 +    ac_option=$1
5333 +    ac_optarg=$2
5334 +    ac_shift=shift
5335      ;;
5336 -  -*);;
5337    *) # This is not an option, so the user has probably given explicit
5338       # arguments.
5339 +     ac_option=$1
5340       ac_need_defaults=false;;
5341    esac
5342  
5343 -  case $1 in
5344 +  case $ac_option in
5345    # Handling of the options.
5346 -EOF
5347 -cat >>$CONFIG_STATUS <<EOF
5348 +_ACEOF
5349 +cat >>$CONFIG_STATUS <<\_ACEOF
5350    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5351 -    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5352 -    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5353 -EOF
5354 -cat >>$CONFIG_STATUS <<\EOF
5355 +    ac_cs_recheck=: ;;
5356    --version | --vers* | -V )
5357      echo "$ac_cs_version"; exit 0 ;;
5358    --he | --h)
5359      # Conflict between --help and --header
5360 -    { { echo "$as_me:3893: error: ambiguous option: $1
5361 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5362  Try \`$0 --help' for more information." >&5
5363  echo "$as_me: error: ambiguous option: $1
5364  Try \`$0 --help' for more information." >&2;}
5365 @@ -3900,16 +5230,19 @@
5366    --debug | --d* | -d )
5367      debug=: ;;
5368    --file | --fil | --fi | --f )
5369 -    shift
5370 -    CONFIG_FILES="$CONFIG_FILES $1"
5371 +    $ac_shift
5372 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5373      ac_need_defaults=false;;
5374    --header | --heade | --head | --hea )
5375 -    shift
5376 -    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5377 +    $ac_shift
5378 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5379      ac_need_defaults=false;;
5380 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5381 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5382 +    ac_cs_silent=: ;;
5383  
5384    # This is an error.
5385 -  -*) { { echo "$as_me:3912: error: unrecognized option: $1
5386 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5387  Try \`$0 --help' for more information." >&5
5388  echo "$as_me: error: unrecognized option: $1
5389  Try \`$0 --help' for more information." >&2;}
5390 @@ -3921,32 +5254,34 @@
5391    shift
5392  done
5393  
5394 -exec 5>>config.log
5395 -cat >&5 << _ACEOF
5396 +ac_configure_extra_args=
5397  
5398 -## ----------------------- ##
5399 -## Running config.status.  ##
5400 -## ----------------------- ##
5401 +if $ac_cs_silent; then
5402 +  exec 6>/dev/null
5403 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
5404 +fi
5405  
5406 -This file was extended by $as_me 2.52, executed with
5407 -  CONFIG_FILES    = $CONFIG_FILES
5408 -  CONFIG_HEADERS  = $CONFIG_HEADERS
5409 -  CONFIG_LINKS    = $CONFIG_LINKS
5410 -  CONFIG_COMMANDS = $CONFIG_COMMANDS
5411 -  > $ac_cs_invocation
5412 -on `(hostname || uname -n) 2>/dev/null | sed 1q`
5413 +_ACEOF
5414 +cat >>$CONFIG_STATUS <<_ACEOF
5415 +if \$ac_cs_recheck; then
5416 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5417 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5418 +fi
5419  
5420  _ACEOF
5421 -EOF
5422  
5423 -cat >>$CONFIG_STATUS <<\EOF
5424 +
5425 +
5426 +
5427 +
5428 +cat >>$CONFIG_STATUS <<\_ACEOF
5429  for ac_config_target in $ac_config_targets
5430  do
5431    case "$ac_config_target" in
5432    # Handling of arguments.
5433    "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5434    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5435 -  *) { { echo "$as_me:3949: error: invalid argument: $ac_config_target" >&5
5436 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5437  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5438     { (exit 1); exit 1; }; };;
5439    esac
5440 @@ -3961,6 +5296,9 @@
5441    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5442  fi
5443  
5444 +# Have a temporary directory for convenience.  Make it in the build tree
5445 +# simply because there is no reason to put it here, and in addition,
5446 +# creating and moving files from /tmp can sometimes cause problems.
5447  # Create a temporary directory, and hook for its removal unless debugging.
5448  $debug ||
5449  {
5450 @@ -3969,23 +5307,23 @@
5451  }
5452  
5453  # Create a (secure) tmp directory for tmp files.
5454 -: ${TMPDIR=/tmp}
5455 +
5456  {
5457 -  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5458 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5459    test -n "$tmp" && test -d "$tmp"
5460  }  ||
5461  {
5462 -  tmp=$TMPDIR/cs$$-$RANDOM
5463 +  tmp=./confstat$$-$RANDOM
5464    (umask 077 && mkdir $tmp)
5465  } ||
5466  {
5467 -   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5468 +   echo "$me: cannot create a temporary directory in ." >&2
5469     { (exit 1); exit 1; }
5470  }
5471  
5472 -EOF
5473 +_ACEOF
5474  
5475 -cat >>$CONFIG_STATUS <<EOF
5476 +cat >>$CONFIG_STATUS <<_ACEOF
5477  
5478  #
5479  # CONFIG_FILES section.
5480 @@ -3998,6 +5336,12 @@
5481    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5482     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5483  s,@SHELL@,$SHELL,;t t
5484 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5485 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5486 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5487 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5488 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5489 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5490  s,@exec_prefix@,$exec_prefix,;t t
5491  s,@prefix@,$prefix,;t t
5492  s,@program_transform_name@,$program_transform_name,;t t
5493 @@ -4013,19 +5357,13 @@
5494  s,@oldincludedir@,$oldincludedir,;t t
5495  s,@infodir@,$infodir,;t t
5496  s,@mandir@,$mandir,;t t
5497 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5498 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5499 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5500 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5501 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5502  s,@build_alias@,$build_alias,;t t
5503  s,@host_alias@,$host_alias,;t t
5504  s,@target_alias@,$target_alias,;t t
5505 +s,@DEFS@,$DEFS,;t t
5506  s,@ECHO_C@,$ECHO_C,;t t
5507  s,@ECHO_N@,$ECHO_N,;t t
5508  s,@ECHO_T@,$ECHO_T,;t t
5509 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5510 -s,@DEFS@,$DEFS,;t t
5511  s,@LIBS@,$LIBS,;t t
5512  s,@build@,$build,;t t
5513  s,@build_cpu@,$build_cpu,;t t
5514 @@ -4046,11 +5384,14 @@
5515  s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5516  s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5517  s,@CPP@,$CPP,;t t
5518 +s,@EGREP@,$EGREP,;t t
5519 +s,@LIBOBJS@,$LIBOBJS,;t t
5520 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5521  CEOF
5522  
5523 -EOF
5524 +_ACEOF
5525  
5526 -  cat >>$CONFIG_STATUS <<\EOF
5527 +  cat >>$CONFIG_STATUS <<\_ACEOF
5528    # Split the substitutions into bite-sized pieces for seds with
5529    # small command number limits, like on Digital OSF/1 and HP-UX.
5530    ac_max_sed_lines=48
5531 @@ -4089,8 +5430,8 @@
5532    fi
5533  fi # test -n "$CONFIG_FILES"
5534  
5535 -EOF
5536 -cat >>$CONFIG_STATUS <<\EOF
5537 +_ACEOF
5538 +cat >>$CONFIG_STATUS <<\_ACEOF
5539  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5540    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5541    case $ac_file in
5542 @@ -4104,7 +5445,8 @@
5543    esac
5544  
5545    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5546 -  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5547 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5548 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5549           X"$ac_file" : 'X\(//\)[^/]' \| \
5550           X"$ac_file" : 'X\(//\)$' \| \
5551           X"$ac_file" : 'X\(/\)' \| \
5552 @@ -4115,60 +5457,84 @@
5553           /^X\(\/\/\)$/{ s//\1/; q; }
5554           /^X\(\/\).*/{ s//\1/; q; }
5555           s/.*/./; q'`
5556 -  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5557 -    { case "$ac_dir" in
5558 -  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5559 -  *)                      as_incr_dir=.;;
5560 -esac
5561 -as_dummy="$ac_dir"
5562 -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5563 -  case $as_mkdir_dir in
5564 -    # Skip DOS drivespec
5565 -    ?:) as_incr_dir=$as_mkdir_dir ;;
5566 -    *)
5567 -      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5568 -      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5569 -    ;;
5570 -  esac
5571 -done; }
5572 -
5573 -    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5574 -    # A "../" for each directory in $ac_dir_suffix.
5575 -    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5576 +  { if $as_mkdir_p; then
5577 +    mkdir -p "$ac_dir"
5578    else
5579 -    ac_dir_suffix= ac_dots=
5580 -  fi
5581 +    as_dir="$ac_dir"
5582 +    as_dirs=
5583 +    while test ! -d "$as_dir"; do
5584 +      as_dirs="$as_dir $as_dirs"
5585 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5586 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5587 +         X"$as_dir" : 'X\(//\)[^/]' \| \
5588 +         X"$as_dir" : 'X\(//\)$' \| \
5589 +         X"$as_dir" : 'X\(/\)' \| \
5590 +         .     : '\(.\)' 2>/dev/null ||
5591 +echo X"$as_dir" |
5592 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5593 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5594 +         /^X\(\/\/\)$/{ s//\1/; q; }
5595 +         /^X\(\/\).*/{ s//\1/; q; }
5596 +         s/.*/./; q'`
5597 +    done
5598 +    test ! -n "$as_dirs" || mkdir $as_dirs
5599 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5600 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5601 +   { (exit 1); exit 1; }; }; }
5602  
5603 -  case $srcdir in
5604 -  .)  ac_srcdir=.
5605 -      if test -z "$ac_dots"; then
5606 -         ac_top_srcdir=.
5607 -      else
5608 -         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5609 -      fi ;;
5610 -  [\\/]* | ?:[\\/]* )
5611 -      ac_srcdir=$srcdir$ac_dir_suffix;
5612 -      ac_top_srcdir=$srcdir ;;
5613 +  ac_builddir=.
5614 +
5615 +if test "$ac_dir" != .; then
5616 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5617 +  # A "../" for each directory in $ac_dir_suffix.
5618 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5619 +else
5620 +  ac_dir_suffix= ac_top_builddir=
5621 +fi
5622 +
5623 +case $srcdir in
5624 +  .)  # No --srcdir option.  We are building in place.
5625 +    ac_srcdir=.
5626 +    if test -z "$ac_top_builddir"; then
5627 +       ac_top_srcdir=.
5628 +    else
5629 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5630 +    fi ;;
5631 +  [\\/]* | ?:[\\/]* )  # Absolute path.
5632 +    ac_srcdir=$srcdir$ac_dir_suffix;
5633 +    ac_top_srcdir=$srcdir ;;
5634    *) # Relative path.
5635 -    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5636 -    ac_top_srcdir=$ac_dots$srcdir ;;
5637 -  esac
5638 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5639 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5640 +esac
5641 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5642 +# absolute.
5643 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5644 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5645 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5646 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5647 +
5648  
5649    case $INSTALL in
5650    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5651 -  *) ac_INSTALL=$ac_dots$INSTALL ;;
5652 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5653    esac
5654  
5655    if test x"$ac_file" != x-; then
5656 -    { echo "$as_me:4163: creating $ac_file" >&5
5657 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
5658  echo "$as_me: creating $ac_file" >&6;}
5659      rm -f "$ac_file"
5660    fi
5661    # Let's still pretend it is `configure' which instantiates (i.e., don't
5662    # use $as_me), people would be surprised to read:
5663 -  #    /* config.h.  Generated automatically by config.status.  */
5664 -  configure_input="Generated automatically from `echo $ac_file_in |
5665 -                                                 sed 's,.*/,,'` by configure."
5666 +  #    /* config.h.  Generated by config.status.  */
5667 +  if test x"$ac_file" = x-; then
5668 +    configure_input=
5669 +  else
5670 +    configure_input="$ac_file.  "
5671 +  fi
5672 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
5673 +                                     sed 's,.*/,,'` by configure."
5674  
5675    # First look for the input files in the build tree, otherwise in the
5676    # src tree.
5677 @@ -4178,7 +5544,7 @@
5678        -) echo $tmp/stdin ;;
5679        [\\/$]*)
5680           # Absolute (can't be DOS-style, as IFS=:)
5681 -         test -f "$f" || { { echo "$as_me:4181: error: cannot find input file: $f" >&5
5682 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5683  echo "$as_me: error: cannot find input file: $f" >&2;}
5684     { (exit 1); exit 1; }; }
5685           echo $f;;
5686 @@ -4191,23 +5557,29 @@
5687             echo $srcdir/$f
5688           else
5689             # /dev/null tree
5690 -           { { echo "$as_me:4194: error: cannot find input file: $f" >&5
5691 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5692  echo "$as_me: error: cannot find input file: $f" >&2;}
5693     { (exit 1); exit 1; }; }
5694           fi;;
5695        esac
5696      done` || { (exit 1); exit 1; }
5697 -EOF
5698 -cat >>$CONFIG_STATUS <<EOF
5699 +_ACEOF
5700 +cat >>$CONFIG_STATUS <<_ACEOF
5701    sed "$ac_vpsub
5702  $extrasub
5703 -EOF
5704 -cat >>$CONFIG_STATUS <<\EOF
5705 +_ACEOF
5706 +cat >>$CONFIG_STATUS <<\_ACEOF
5707  :t
5708  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5709  s,@configure_input@,$configure_input,;t t
5710  s,@srcdir@,$ac_srcdir,;t t
5711 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
5712  s,@top_srcdir@,$ac_top_srcdir,;t t
5713 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5714 +s,@builddir@,$ac_builddir,;t t
5715 +s,@abs_builddir@,$ac_abs_builddir,;t t
5716 +s,@top_builddir@,$ac_top_builddir,;t t
5717 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5718  s,@INSTALL@,$ac_INSTALL,;t t
5719  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5720    rm -f $tmp/stdin
5721 @@ -4219,8 +5591,8 @@
5722    fi
5723  
5724  done
5725 -EOF
5726 -cat >>$CONFIG_STATUS <<\EOF
5727 +_ACEOF
5728 +cat >>$CONFIG_STATUS <<\_ACEOF
5729  
5730  #
5731  # CONFIG_HEADER section.
5732 @@ -4252,7 +5624,7 @@
5733    * )   ac_file_in=$ac_file.in ;;
5734    esac
5735  
5736 -  test x"$ac_file" != x- && { echo "$as_me:4255: creating $ac_file" >&5
5737 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5738  echo "$as_me: creating $ac_file" >&6;}
5739  
5740    # First look for the input files in the build tree, otherwise in the
5741 @@ -4263,7 +5635,7 @@
5742        -) echo $tmp/stdin ;;
5743        [\\/$]*)
5744           # Absolute (can't be DOS-style, as IFS=:)
5745 -         test -f "$f" || { { echo "$as_me:4266: error: cannot find input file: $f" >&5
5746 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5747  echo "$as_me: error: cannot find input file: $f" >&2;}
5748     { (exit 1); exit 1; }; }
5749           echo $f;;
5750 @@ -4276,7 +5648,7 @@
5751             echo $srcdir/$f
5752           else
5753             # /dev/null tree
5754 -           { { echo "$as_me:4279: error: cannot find input file: $f" >&5
5755 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5756  echo "$as_me: error: cannot find input file: $f" >&2;}
5757     { (exit 1); exit 1; }; }
5758           fi;;
5759 @@ -4285,7 +5657,7 @@
5760    # Remove the trailing spaces.
5761    sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
5762  
5763 -EOF
5764 +_ACEOF
5765  
5766  # Transform confdefs.h into two sed scripts, `conftest.defines' and
5767  # `conftest.undefs', that substitutes the proper values into
5768 @@ -4301,16 +5673,16 @@
5769  # `end' is used to avoid that the second main sed command (meant for
5770  # 0-ary CPP macros) applies to n-ary macro definitions.
5771  # See the Autoconf documentation for `clear'.
5772 -cat >confdef2sed.sed <<\EOF
5773 +cat >confdef2sed.sed <<\_ACEOF
5774  s/[\\&,]/\\&/g
5775  s,[\\$`],\\&,g
5776  t clear
5777  : clear
5778 -s,^[   ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5779 +s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5780  t end
5781  s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5782  : end
5783 -EOF
5784 +_ACEOF
5785  # If some macros were called several times there might be several times
5786  # the same #defines, which is useless.  Nevertheless, we may not want to
5787  # sort them, since we want the *last* AC-DEFINE to be honored.
5788 @@ -4321,14 +5693,14 @@
5789  # This sed command replaces #undef with comments.  This is necessary, for
5790  # example, in the case of _POSIX_SOURCE, which is predefined and required
5791  # on some systems where configure will not decide to define it.
5792 -cat >>conftest.undefs <<\EOF
5793 +cat >>conftest.undefs <<\_ACEOF
5794  s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5795 -EOF
5796 +_ACEOF
5797  
5798  # Break up conftest.defines because some shells have a limit on the size
5799  # of here documents, and old seds have small limits too (100 cmds).
5800  echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5801 -echo '  if egrep "^[   ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5802 +echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5803  echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5804  echo '  :' >>$CONFIG_STATUS
5805  rm -f conftest.tail
5806 @@ -4352,7 +5724,7 @@
5807    mv conftest.tail conftest.defines
5808  done
5809  rm -f conftest.defines
5810 -echo '  fi # egrep' >>$CONFIG_STATUS
5811 +echo '  fi # grep' >>$CONFIG_STATUS
5812  echo >>$CONFIG_STATUS
5813  
5814  # Break up conftest.undefs because some shells have a limit on the size
5815 @@ -4380,23 +5752,24 @@
5816  done
5817  rm -f conftest.undefs
5818  
5819 -cat >>$CONFIG_STATUS <<\EOF
5820 +cat >>$CONFIG_STATUS <<\_ACEOF
5821    # Let's still pretend it is `configure' which instantiates (i.e., don't
5822    # use $as_me), people would be surprised to read:
5823 -  #    /* config.h.  Generated automatically by config.status.  */
5824 +  #    /* config.h.  Generated by config.status.  */
5825    if test x"$ac_file" = x-; then
5826 -    echo "/* Generated automatically by configure.  */" >$tmp/config.h
5827 +    echo "/* Generated by configure.  */" >$tmp/config.h
5828    else
5829 -    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5830 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5831    fi
5832    cat $tmp/in >>$tmp/config.h
5833    rm -f $tmp/in
5834    if test x"$ac_file" != x-; then
5835 -    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5836 -      { echo "$as_me:4396: $ac_file is unchanged" >&5
5837 +    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5838 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5839  echo "$as_me: $ac_file is unchanged" >&6;}
5840      else
5841 -      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5842 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5843 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5844           X"$ac_file" : 'X\(//\)[^/]' \| \
5845           X"$ac_file" : 'X\(//\)$' \| \
5846           X"$ac_file" : 'X\(/\)' \| \
5847 @@ -4407,24 +5780,31 @@
5848           /^X\(\/\/\)$/{ s//\1/; q; }
5849           /^X\(\/\).*/{ s//\1/; q; }
5850           s/.*/./; q'`
5851 -      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5852 -        { case "$ac_dir" in
5853 -  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5854 -  *)                      as_incr_dir=.;;
5855 -esac
5856 -as_dummy="$ac_dir"
5857 -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5858 -  case $as_mkdir_dir in
5859 -    # Skip DOS drivespec
5860 -    ?:) as_incr_dir=$as_mkdir_dir ;;
5861 -    *)
5862 -      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5863 -      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5864 -    ;;
5865 -  esac
5866 -done; }
5867 +      { if $as_mkdir_p; then
5868 +    mkdir -p "$ac_dir"
5869 +  else
5870 +    as_dir="$ac_dir"
5871 +    as_dirs=
5872 +    while test ! -d "$as_dir"; do
5873 +      as_dirs="$as_dir $as_dirs"
5874 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5875 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5876 +         X"$as_dir" : 'X\(//\)[^/]' \| \
5877 +         X"$as_dir" : 'X\(//\)$' \| \
5878 +         X"$as_dir" : 'X\(/\)' \| \
5879 +         .     : '\(.\)' 2>/dev/null ||
5880 +echo X"$as_dir" |
5881 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5882 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5883 +         /^X\(\/\/\)$/{ s//\1/; q; }
5884 +         /^X\(\/\).*/{ s//\1/; q; }
5885 +         s/.*/./; q'`
5886 +    done
5887 +    test ! -n "$as_dirs" || mkdir $as_dirs
5888 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5889 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5890 +   { (exit 1); exit 1; }; }; }
5891  
5892 -      fi
5893        rm -f $ac_file
5894        mv $tmp/config.h $ac_file
5895      fi
5896 @@ -4433,15 +5813,16 @@
5897      rm -f $tmp/config.h
5898    fi
5899  done
5900 -EOF
5901 +_ACEOF
5902  
5903 -cat >>$CONFIG_STATUS <<\EOF
5904 +cat >>$CONFIG_STATUS <<\_ACEOF
5905  
5906  { (exit 0); exit 0; }
5907 -EOF
5908 +_ACEOF
5909  chmod +x $CONFIG_STATUS
5910  ac_clean_files=$ac_clean_files_save
5911  
5912 +
5913  # configure is writing to config.log, and then calls config.status.
5914  # config.status does its own redirection, appending to config.log.
5915  # Unfortunately, on DOS this fails, as config.log is still kept open
5916 @@ -4452,8 +5833,11 @@
5917  # need to make the FD available again.
5918  if test "$no_create" != yes; then
5919    ac_cs_success=:
5920 +  ac_config_status_args=
5921 +  test "$silent" = yes &&
5922 +    ac_config_status_args="$ac_config_status_args --quiet"
5923    exec 5>/dev/null
5924 -  $SHELL $CONFIG_STATUS || ac_cs_success=false
5925 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5926    exec 5>>config.log
5927    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5928    # would make configure fail if this is the last instruction.