OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [readline/] [examples/] [rlfe/] [configure] - Blame information for rev 857

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.