~ubuntu-branches/ubuntu/raring/less/raring-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schoepf
  • Date: 2002-04-04 16:43:52 UTC
  • Revision ID: james.westby@ubuntu.com-20020404164352-qldq048yoc7x5sd5
Tags: upstream-374
ImportĀ upstreamĀ versionĀ 374

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local}  Select a regular expression library  [auto]"
 
16
ac_help="$ac_help
 
17
  --with-editor=PROGRAM   use PROGRAM as the default editor [vi]"
 
18
 
 
19
# Initialize some variables set by options.
 
20
# The variables have the same names as the options, with
 
21
# dashes changed to underlines.
 
22
build=NONE
 
23
cache_file=./config.cache
 
24
exec_prefix=NONE
 
25
host=NONE
 
26
no_create=
 
27
nonopt=NONE
 
28
no_recursion=
 
29
prefix=NONE
 
30
program_prefix=NONE
 
31
program_suffix=NONE
 
32
program_transform_name=s,x,x,
 
33
silent=
 
34
site=
 
35
srcdir=
 
36
target=NONE
 
37
verbose=
 
38
x_includes=NONE
 
39
x_libraries=NONE
 
40
bindir='${exec_prefix}/bin'
 
41
sbindir='${exec_prefix}/sbin'
 
42
libexecdir='${exec_prefix}/libexec'
 
43
datadir='${prefix}/share'
 
44
sysconfdir='${prefix}/etc'
 
45
sharedstatedir='${prefix}/com'
 
46
localstatedir='${prefix}/var'
 
47
libdir='${exec_prefix}/lib'
 
48
includedir='${prefix}/include'
 
49
oldincludedir='/usr/include'
 
50
infodir='${prefix}/info'
 
51
mandir='${prefix}/man'
 
52
 
 
53
# Initialize some other variables.
 
54
subdirs=
 
55
MFLAGS= MAKEFLAGS=
 
56
SHELL=${CONFIG_SHELL-/bin/sh}
 
57
# Maximum number of lines to put in a shell here document.
 
58
ac_max_here_lines=12
 
59
 
 
60
ac_prev=
 
61
for ac_option
 
62
do
 
63
 
 
64
  # If the previous option needs an argument, assign it.
 
65
  if test -n "$ac_prev"; then
 
66
    eval "$ac_prev=\$ac_option"
 
67
    ac_prev=
 
68
    continue
 
69
  fi
 
70
 
 
71
  case "$ac_option" in
 
72
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
73
  *) ac_optarg= ;;
 
74
  esac
 
75
 
 
76
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
77
 
 
78
  case "$ac_option" in
 
79
 
 
80
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
81
    ac_prev=bindir ;;
 
82
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
83
    bindir="$ac_optarg" ;;
 
84
 
 
85
  -build | --build | --buil | --bui | --bu)
 
86
    ac_prev=build ;;
 
87
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
88
    build="$ac_optarg" ;;
 
89
 
 
90
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
91
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
92
    ac_prev=cache_file ;;
 
93
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
94
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
95
    cache_file="$ac_optarg" ;;
 
96
 
 
97
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
98
    ac_prev=datadir ;;
 
99
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
100
  | --da=*)
 
101
    datadir="$ac_optarg" ;;
 
102
 
 
103
  -disable-* | --disable-*)
 
104
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
105
    # Reject names that are not valid shell variable names.
 
106
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
107
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
108
    fi
 
109
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
110
    eval "enable_${ac_feature}=no" ;;
 
111
 
 
112
  -enable-* | --enable-*)
 
113
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
114
    # Reject names that are not valid shell variable names.
 
115
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
116
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
117
    fi
 
118
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
119
    case "$ac_option" in
 
120
      *=*) ;;
 
121
      *) ac_optarg=yes ;;
 
122
    esac
 
123
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
124
 
 
125
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
126
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
127
  | --exec | --exe | --ex)
 
128
    ac_prev=exec_prefix ;;
 
129
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
130
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
131
  | --exec=* | --exe=* | --ex=*)
 
132
    exec_prefix="$ac_optarg" ;;
 
133
 
 
134
  -gas | --gas | --ga | --g)
 
135
    # Obsolete; use --with-gas.
 
136
    with_gas=yes ;;
 
137
 
 
138
  -help | --help | --hel | --he)
 
139
    # Omit some internal or obsolete options to make the list less imposing.
 
140
    # This message is too long to be a string in the A/UX 3.1 sh.
 
141
    cat << EOF
 
142
Usage: configure [options] [host]
 
143
Options: [defaults in brackets after descriptions]
 
144
Configuration:
 
145
  --cache-file=FILE       cache test results in FILE
 
146
  --help                  print this message
 
147
  --no-create             do not create output files
 
148
  --quiet, --silent       do not print \`checking...' messages
 
149
  --version               print the version of autoconf that created configure
 
150
Directory and file names:
 
151
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
152
                          [$ac_default_prefix]
 
153
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
154
                          [same as prefix]
 
155
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
156
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
157
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
158
  --datadir=DIR           read-only architecture-independent data in DIR
 
159
                          [PREFIX/share]
 
160
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
161
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
162
                          [PREFIX/com]
 
163
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
164
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
165
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
166
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
167
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
168
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
169
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
170
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
171
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
172
  --program-transform-name=PROGRAM
 
173
                          run sed PROGRAM on installed program names
 
174
EOF
 
175
    cat << EOF
 
176
Host type:
 
177
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
178
  --host=HOST             configure for HOST [guessed]
 
179
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
180
Features and packages:
 
181
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
182
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
183
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
184
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
185
  --x-includes=DIR        X include files are in DIR
 
186
  --x-libraries=DIR       X library files are in DIR
 
187
EOF
 
188
    if test -n "$ac_help"; then
 
189
      echo "--enable and --with options recognized:$ac_help"
 
190
    fi
 
191
    exit 0 ;;
 
192
 
 
193
  -host | --host | --hos | --ho)
 
194
    ac_prev=host ;;
 
195
  -host=* | --host=* | --hos=* | --ho=*)
 
196
    host="$ac_optarg" ;;
 
197
 
 
198
  -includedir | --includedir | --includedi | --included | --include \
 
199
  | --includ | --inclu | --incl | --inc)
 
200
    ac_prev=includedir ;;
 
201
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
202
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
203
    includedir="$ac_optarg" ;;
 
204
 
 
205
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
206
    ac_prev=infodir ;;
 
207
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
208
    infodir="$ac_optarg" ;;
 
209
 
 
210
  -libdir | --libdir | --libdi | --libd)
 
211
    ac_prev=libdir ;;
 
212
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
213
    libdir="$ac_optarg" ;;
 
214
 
 
215
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
216
  | --libexe | --libex | --libe)
 
217
    ac_prev=libexecdir ;;
 
218
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
219
  | --libexe=* | --libex=* | --libe=*)
 
220
    libexecdir="$ac_optarg" ;;
 
221
 
 
222
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
223
  | --localstate | --localstat | --localsta | --localst \
 
224
  | --locals | --local | --loca | --loc | --lo)
 
225
    ac_prev=localstatedir ;;
 
226
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
227
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
228
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
229
    localstatedir="$ac_optarg" ;;
 
230
 
 
231
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
232
    ac_prev=mandir ;;
 
233
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
234
    mandir="$ac_optarg" ;;
 
235
 
 
236
  -nfp | --nfp | --nf)
 
237
    # Obsolete; use --without-fp.
 
238
    with_fp=no ;;
 
239
 
 
240
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
241
  | --no-cr | --no-c)
 
242
    no_create=yes ;;
 
243
 
 
244
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
245
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
246
    no_recursion=yes ;;
 
247
 
 
248
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
249
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
250
  | --oldin | --oldi | --old | --ol | --o)
 
251
    ac_prev=oldincludedir ;;
 
252
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
253
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
254
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
255
    oldincludedir="$ac_optarg" ;;
 
256
 
 
257
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
258
    ac_prev=prefix ;;
 
259
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
260
    prefix="$ac_optarg" ;;
 
261
 
 
262
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
263
  | --program-pre | --program-pr | --program-p)
 
264
    ac_prev=program_prefix ;;
 
265
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
266
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
267
    program_prefix="$ac_optarg" ;;
 
268
 
 
269
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
270
  | --program-suf | --program-su | --program-s)
 
271
    ac_prev=program_suffix ;;
 
272
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
273
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
274
    program_suffix="$ac_optarg" ;;
 
275
 
 
276
  -program-transform-name | --program-transform-name \
 
277
  | --program-transform-nam | --program-transform-na \
 
278
  | --program-transform-n | --program-transform- \
 
279
  | --program-transform | --program-transfor \
 
280
  | --program-transfo | --program-transf \
 
281
  | --program-trans | --program-tran \
 
282
  | --progr-tra | --program-tr | --program-t)
 
283
    ac_prev=program_transform_name ;;
 
284
  -program-transform-name=* | --program-transform-name=* \
 
285
  | --program-transform-nam=* | --program-transform-na=* \
 
286
  | --program-transform-n=* | --program-transform-=* \
 
287
  | --program-transform=* | --program-transfor=* \
 
288
  | --program-transfo=* | --program-transf=* \
 
289
  | --program-trans=* | --program-tran=* \
 
290
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
291
    program_transform_name="$ac_optarg" ;;
 
292
 
 
293
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
294
  | -silent | --silent | --silen | --sile | --sil)
 
295
    silent=yes ;;
 
296
 
 
297
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
298
    ac_prev=sbindir ;;
 
299
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
300
  | --sbi=* | --sb=*)
 
301
    sbindir="$ac_optarg" ;;
 
302
 
 
303
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
304
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
305
  | --sharedst | --shareds | --shared | --share | --shar \
 
306
  | --sha | --sh)
 
307
    ac_prev=sharedstatedir ;;
 
308
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
309
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
310
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
311
  | --sha=* | --sh=*)
 
312
    sharedstatedir="$ac_optarg" ;;
 
313
 
 
314
  -site | --site | --sit)
 
315
    ac_prev=site ;;
 
316
  -site=* | --site=* | --sit=*)
 
317
    site="$ac_optarg" ;;
 
318
 
 
319
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
320
    ac_prev=srcdir ;;
 
321
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
322
    srcdir="$ac_optarg" ;;
 
323
 
 
324
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
325
  | --syscon | --sysco | --sysc | --sys | --sy)
 
326
    ac_prev=sysconfdir ;;
 
327
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
328
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
329
    sysconfdir="$ac_optarg" ;;
 
330
 
 
331
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
332
    ac_prev=target ;;
 
333
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
334
    target="$ac_optarg" ;;
 
335
 
 
336
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
337
    verbose=yes ;;
 
338
 
 
339
  -version | --version | --versio | --versi | --vers)
 
340
    echo "configure generated by autoconf version 2.13"
 
341
    exit 0 ;;
 
342
 
 
343
  -with-* | --with-*)
 
344
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
345
    # Reject names that are not valid shell variable names.
 
346
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
347
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
348
    fi
 
349
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
350
    case "$ac_option" in
 
351
      *=*) ;;
 
352
      *) ac_optarg=yes ;;
 
353
    esac
 
354
    eval "with_${ac_package}='$ac_optarg'" ;;
 
355
 
 
356
  -without-* | --without-*)
 
357
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
358
    # Reject names that are not valid shell variable names.
 
359
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
360
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
361
    fi
 
362
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
363
    eval "with_${ac_package}=no" ;;
 
364
 
 
365
  --x)
 
366
    # Obsolete; use --with-x.
 
367
    with_x=yes ;;
 
368
 
 
369
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
370
  | --x-incl | --x-inc | --x-in | --x-i)
 
371
    ac_prev=x_includes ;;
 
372
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
373
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
374
    x_includes="$ac_optarg" ;;
 
375
 
 
376
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
377
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
378
    ac_prev=x_libraries ;;
 
379
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
380
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
381
    x_libraries="$ac_optarg" ;;
 
382
 
 
383
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
384
    ;;
 
385
 
 
386
  *)
 
387
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
388
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
389
    fi
 
390
    if test "x$nonopt" != xNONE; then
 
391
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
392
    fi
 
393
    nonopt="$ac_option"
 
394
    ;;
 
395
 
 
396
  esac
 
397
done
 
398
 
 
399
if test -n "$ac_prev"; then
 
400
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
401
fi
 
402
 
 
403
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
404
 
 
405
# File descriptor usage:
 
406
# 0 standard input
 
407
# 1 file creation
 
408
# 2 errors and warnings
 
409
# 3 some systems may open it to /dev/tty
 
410
# 4 used on the Kubota Titan
 
411
# 6 checking for... messages and results
 
412
# 5 compiler messages saved in config.log
 
413
if test "$silent" = yes; then
 
414
  exec 6>/dev/null
 
415
else
 
416
  exec 6>&1
 
417
fi
 
418
exec 5>./config.log
 
419
 
 
420
echo "\
 
421
This file contains any messages produced by compilers while
 
422
running configure, to aid debugging if configure makes a mistake.
 
423
" 1>&5
 
424
 
 
425
# Strip out --no-create and --no-recursion so they do not pile up.
 
426
# Also quote any args containing shell metacharacters.
 
427
ac_configure_args=
 
428
for ac_arg
 
429
do
 
430
  case "$ac_arg" in
 
431
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
432
  | --no-cr | --no-c) ;;
 
433
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
434
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
435
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
436
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
437
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
438
  esac
 
439
done
 
440
 
 
441
# NLS nuisances.
 
442
# Only set these to C if already set.  These must not be set unconditionally
 
443
# because not all systems understand e.g. LANG=C (notably SCO).
 
444
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
445
# Non-C LC_CTYPE values break the ctype check.
 
446
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
447
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
448
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
449
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
450
 
 
451
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
452
rm -rf conftest* confdefs.h
 
453
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
454
echo > confdefs.h
 
455
 
 
456
# A filename unique to this package, relative to the directory that
 
457
# configure is in, which we can look for to find out if srcdir is correct.
 
458
ac_unique_file=forwback.c
 
459
 
 
460
# Find the source files, if location was not specified.
 
461
if test -z "$srcdir"; then
 
462
  ac_srcdir_defaulted=yes
 
463
  # Try the directory containing this script, then its parent.
 
464
  ac_prog=$0
 
465
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
466
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
467
  srcdir=$ac_confdir
 
468
  if test ! -r $srcdir/$ac_unique_file; then
 
469
    srcdir=..
 
470
  fi
 
471
else
 
472
  ac_srcdir_defaulted=no
 
473
fi
 
474
if test ! -r $srcdir/$ac_unique_file; then
 
475
  if test "$ac_srcdir_defaulted" = yes; then
 
476
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
477
  else
 
478
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
479
  fi
 
480
fi
 
481
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
482
 
 
483
# Prefer explicitly selected file to automatically selected ones.
 
484
if test -z "$CONFIG_SITE"; then
 
485
  if test "x$prefix" != xNONE; then
 
486
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
487
  else
 
488
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
489
  fi
 
490
fi
 
491
for ac_site_file in $CONFIG_SITE; do
 
492
  if test -r "$ac_site_file"; then
 
493
    echo "loading site script $ac_site_file"
 
494
    . "$ac_site_file"
 
495
  fi
 
496
done
 
497
 
 
498
if test -r "$cache_file"; then
 
499
  echo "loading cache $cache_file"
 
500
  . $cache_file
 
501
else
 
502
  echo "creating cache $cache_file"
 
503
  > $cache_file
 
504
fi
 
505
 
 
506
ac_ext=c
 
507
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
508
ac_cpp='$CPP $CPPFLAGS'
 
509
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
510
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
511
cross_compiling=$ac_cv_prog_cc_cross
 
512
 
 
513
ac_exeext=
 
514
ac_objext=o
 
515
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
516
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
517
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
518
    ac_n= ac_c='
 
519
' ac_t='        '
 
520
  else
 
521
    ac_n=-n ac_c= ac_t=
 
522
  fi
 
523
else
 
524
  ac_n= ac_c='\c' ac_t=
 
525
fi
 
526
 
 
527
 
 
528
 
 
529
 
 
530
# Extract the first word of "gcc", so it can be a program name with args.
 
531
set dummy gcc; ac_word=$2
 
532
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
533
echo "configure:534: checking for $ac_word" >&5
 
534
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
535
  echo $ac_n "(cached) $ac_c" 1>&6
 
536
else
 
537
  if test -n "$CC"; then
 
538
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
539
else
 
540
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
541
  ac_dummy="$PATH"
 
542
  for ac_dir in $ac_dummy; do
 
543
    test -z "$ac_dir" && ac_dir=.
 
544
    if test -f $ac_dir/$ac_word; then
 
545
      ac_cv_prog_CC="gcc"
 
546
      break
 
547
    fi
 
548
  done
 
549
  IFS="$ac_save_ifs"
 
550
fi
 
551
fi
 
552
CC="$ac_cv_prog_CC"
 
553
if test -n "$CC"; then
 
554
  echo "$ac_t""$CC" 1>&6
 
555
else
 
556
  echo "$ac_t""no" 1>&6
 
557
fi
 
558
 
 
559
if test -z "$CC"; then
 
560
  # Extract the first word of "cc", so it can be a program name with args.
 
561
set dummy cc; ac_word=$2
 
562
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
563
echo "configure:564: checking for $ac_word" >&5
 
564
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
565
  echo $ac_n "(cached) $ac_c" 1>&6
 
566
else
 
567
  if test -n "$CC"; then
 
568
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
569
else
 
570
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
571
  ac_prog_rejected=no
 
572
  ac_dummy="$PATH"
 
573
  for ac_dir in $ac_dummy; do
 
574
    test -z "$ac_dir" && ac_dir=.
 
575
    if test -f $ac_dir/$ac_word; then
 
576
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
577
        ac_prog_rejected=yes
 
578
        continue
 
579
      fi
 
580
      ac_cv_prog_CC="cc"
 
581
      break
 
582
    fi
 
583
  done
 
584
  IFS="$ac_save_ifs"
 
585
if test $ac_prog_rejected = yes; then
 
586
  # We found a bogon in the path, so make sure we never use it.
 
587
  set dummy $ac_cv_prog_CC
 
588
  shift
 
589
  if test $# -gt 0; then
 
590
    # We chose a different compiler from the bogus one.
 
591
    # However, it has the same basename, so the bogon will be chosen
 
592
    # first if we set CC to just the basename; use the full file name.
 
593
    shift
 
594
    set dummy "$ac_dir/$ac_word" "$@"
 
595
    shift
 
596
    ac_cv_prog_CC="$@"
 
597
  fi
 
598
fi
 
599
fi
 
600
fi
 
601
CC="$ac_cv_prog_CC"
 
602
if test -n "$CC"; then
 
603
  echo "$ac_t""$CC" 1>&6
 
604
else
 
605
  echo "$ac_t""no" 1>&6
 
606
fi
 
607
 
 
608
  if test -z "$CC"; then
 
609
    case "`uname -s`" in
 
610
    *win32* | *WIN32*)
 
611
      # Extract the first word of "cl", so it can be a program name with args.
 
612
set dummy cl; ac_word=$2
 
613
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
614
echo "configure:615: checking for $ac_word" >&5
 
615
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
616
  echo $ac_n "(cached) $ac_c" 1>&6
 
617
else
 
618
  if test -n "$CC"; then
 
619
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
620
else
 
621
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
622
  ac_dummy="$PATH"
 
623
  for ac_dir in $ac_dummy; do
 
624
    test -z "$ac_dir" && ac_dir=.
 
625
    if test -f $ac_dir/$ac_word; then
 
626
      ac_cv_prog_CC="cl"
 
627
      break
 
628
    fi
 
629
  done
 
630
  IFS="$ac_save_ifs"
 
631
fi
 
632
fi
 
633
CC="$ac_cv_prog_CC"
 
634
if test -n "$CC"; then
 
635
  echo "$ac_t""$CC" 1>&6
 
636
else
 
637
  echo "$ac_t""no" 1>&6
 
638
fi
 
639
 ;;
 
640
    esac
 
641
  fi
 
642
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
643
fi
 
644
 
 
645
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
646
echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
647
 
 
648
ac_ext=c
 
649
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
650
ac_cpp='$CPP $CPPFLAGS'
 
651
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
652
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
653
cross_compiling=$ac_cv_prog_cc_cross
 
654
 
 
655
cat > conftest.$ac_ext << EOF
 
656
 
 
657
#line 658 "configure"
 
658
#include "confdefs.h"
 
659
 
 
660
main(){return(0);}
 
661
EOF
 
662
if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
663
  ac_cv_prog_cc_works=yes
 
664
  # If we can't run a trivial program, we are probably using a cross compiler.
 
665
  if (./conftest; exit) 2>/dev/null; then
 
666
    ac_cv_prog_cc_cross=no
 
667
  else
 
668
    ac_cv_prog_cc_cross=yes
 
669
  fi
 
670
else
 
671
  echo "configure: failed program was:" >&5
 
672
  cat conftest.$ac_ext >&5
 
673
  ac_cv_prog_cc_works=no
 
674
fi
 
675
rm -fr conftest*
 
676
ac_ext=c
 
677
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
678
ac_cpp='$CPP $CPPFLAGS'
 
679
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
680
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
681
cross_compiling=$ac_cv_prog_cc_cross
 
682
 
 
683
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
684
if test $ac_cv_prog_cc_works = no; then
 
685
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
686
fi
 
687
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
688
echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
689
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
690
cross_compiling=$ac_cv_prog_cc_cross
 
691
 
 
692
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
693
echo "configure:694: checking whether we are using GNU C" >&5
 
694
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
695
  echo $ac_n "(cached) $ac_c" 1>&6
 
696
else
 
697
  cat > conftest.c <<EOF
 
698
#ifdef __GNUC__
 
699
  yes;
 
700
#endif
 
701
EOF
 
702
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
703
  ac_cv_prog_gcc=yes
 
704
else
 
705
  ac_cv_prog_gcc=no
 
706
fi
 
707
fi
 
708
 
 
709
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
710
 
 
711
if test $ac_cv_prog_gcc = yes; then
 
712
  GCC=yes
 
713
else
 
714
  GCC=
 
715
fi
 
716
 
 
717
ac_test_CFLAGS="${CFLAGS+set}"
 
718
ac_save_CFLAGS="$CFLAGS"
 
719
CFLAGS=
 
720
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
721
echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
 
722
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
723
  echo $ac_n "(cached) $ac_c" 1>&6
 
724
else
 
725
  echo 'void f(){}' > conftest.c
 
726
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
727
  ac_cv_prog_cc_g=yes
 
728
else
 
729
  ac_cv_prog_cc_g=no
 
730
fi
 
731
rm -f conftest*
 
732
 
 
733
fi
 
734
 
 
735
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
736
if test "$ac_test_CFLAGS" = set; then
 
737
  CFLAGS="$ac_save_CFLAGS"
 
738
elif test $ac_cv_prog_cc_g = yes; then
 
739
  if test "$GCC" = yes; then
 
740
    CFLAGS="-g -O2"
 
741
  else
 
742
    CFLAGS="-g"
 
743
  fi
 
744
else
 
745
  if test "$GCC" = yes; then
 
746
    CFLAGS="-O2"
 
747
  else
 
748
    CFLAGS=
 
749
  fi
 
750
fi
 
751
 
 
752
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
 
753
echo "configure:754: checking for POSIXized ISC" >&5
 
754
if test -d /etc/conf/kconfig.d &&
 
755
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
 
756
then
 
757
  echo "$ac_t""yes" 1>&6
 
758
  ISC=yes # If later tests want to check for ISC.
 
759
  cat >> confdefs.h <<\EOF
 
760
#define _POSIX_SOURCE 1
 
761
EOF
 
762
 
 
763
  if test "$GCC" = yes; then
 
764
    CC="$CC -posix"
 
765
  else
 
766
    CC="$CC -Xp"
 
767
  fi
 
768
else
 
769
  echo "$ac_t""no" 1>&6
 
770
  ISC=
 
771
fi
 
772
 
 
773
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
774
echo "configure:775: checking how to run the C preprocessor" >&5
 
775
# On Suns, sometimes $CPP names a directory.
 
776
if test -n "$CPP" && test -d "$CPP"; then
 
777
  CPP=
 
778
fi
 
779
if test -z "$CPP"; then
 
780
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
781
  echo $ac_n "(cached) $ac_c" 1>&6
 
782
else
 
783
    # This must be in double quotes, not single quotes, because CPP may get
 
784
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
785
  CPP="${CC-cc} -E"
 
786
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
787
  # not just through cpp.
 
788
  cat > conftest.$ac_ext <<EOF
 
789
#line 790 "configure"
 
790
#include "confdefs.h"
 
791
#include <assert.h>
 
792
Syntax Error
 
793
EOF
 
794
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
795
{ (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
796
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
797
if test -z "$ac_err"; then
 
798
  :
 
799
else
 
800
  echo "$ac_err" >&5
 
801
  echo "configure: failed program was:" >&5
 
802
  cat conftest.$ac_ext >&5
 
803
  rm -rf conftest*
 
804
  CPP="${CC-cc} -E -traditional-cpp"
 
805
  cat > conftest.$ac_ext <<EOF
 
806
#line 807 "configure"
 
807
#include "confdefs.h"
 
808
#include <assert.h>
 
809
Syntax Error
 
810
EOF
 
811
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
812
{ (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
813
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
814
if test -z "$ac_err"; then
 
815
  :
 
816
else
 
817
  echo "$ac_err" >&5
 
818
  echo "configure: failed program was:" >&5
 
819
  cat conftest.$ac_ext >&5
 
820
  rm -rf conftest*
 
821
  CPP="${CC-cc} -nologo -E"
 
822
  cat > conftest.$ac_ext <<EOF
 
823
#line 824 "configure"
 
824
#include "confdefs.h"
 
825
#include <assert.h>
 
826
Syntax Error
 
827
EOF
 
828
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
829
{ (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
830
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
831
if test -z "$ac_err"; then
 
832
  :
 
833
else
 
834
  echo "$ac_err" >&5
 
835
  echo "configure: failed program was:" >&5
 
836
  cat conftest.$ac_ext >&5
 
837
  rm -rf conftest*
 
838
  CPP=/lib/cpp
 
839
fi
 
840
rm -f conftest*
 
841
fi
 
842
rm -f conftest*
 
843
fi
 
844
rm -f conftest*
 
845
  ac_cv_prog_CPP="$CPP"
 
846
fi
 
847
  CPP="$ac_cv_prog_CPP"
 
848
else
 
849
  ac_cv_prog_CPP="$CPP"
 
850
fi
 
851
echo "$ac_t""$CPP" 1>&6
 
852
 
 
853
if test $ac_cv_prog_gcc = yes; then
 
854
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
 
855
echo "configure:856: checking whether ${CC-cc} needs -traditional" >&5
 
856
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
 
857
  echo $ac_n "(cached) $ac_c" 1>&6
 
858
else
 
859
    ac_pattern="Autoconf.*'x'"
 
860
  cat > conftest.$ac_ext <<EOF
 
861
#line 862 "configure"
 
862
#include "confdefs.h"
 
863
#include <sgtty.h>
 
864
Autoconf TIOCGETP
 
865
EOF
 
866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
867
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
868
  rm -rf conftest*
 
869
  ac_cv_prog_gcc_traditional=yes
 
870
else
 
871
  rm -rf conftest*
 
872
  ac_cv_prog_gcc_traditional=no
 
873
fi
 
874
rm -f conftest*
 
875
 
 
876
 
 
877
  if test $ac_cv_prog_gcc_traditional = no; then
 
878
    cat > conftest.$ac_ext <<EOF
 
879
#line 880 "configure"
 
880
#include "confdefs.h"
 
881
#include <termio.h>
 
882
Autoconf TCGETA
 
883
EOF
 
884
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
885
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
886
  rm -rf conftest*
 
887
  ac_cv_prog_gcc_traditional=yes
 
888
fi
 
889
rm -f conftest*
 
890
 
 
891
  fi
 
892
fi
 
893
 
 
894
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
 
895
  if test $ac_cv_prog_gcc_traditional = yes; then
 
896
    CC="$CC -traditional"
 
897
  fi
 
898
fi
 
899
 
 
900
ac_aux_dir=
 
901
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
902
  if test -f $ac_dir/install-sh; then
 
903
    ac_aux_dir=$ac_dir
 
904
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
905
    break
 
906
  elif test -f $ac_dir/install.sh; then
 
907
    ac_aux_dir=$ac_dir
 
908
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
909
    break
 
910
  fi
 
911
done
 
912
if test -z "$ac_aux_dir"; then
 
913
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
914
fi
 
915
ac_config_guess=$ac_aux_dir/config.guess
 
916
ac_config_sub=$ac_aux_dir/config.sub
 
917
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
918
 
 
919
# Find a good install program.  We prefer a C program (faster),
 
920
# so one script is as good as another.  But avoid the broken or
 
921
# incompatible versions:
 
922
# SysV /etc/install, /usr/sbin/install
 
923
# SunOS /usr/etc/install
 
924
# IRIX /sbin/install
 
925
# AIX /bin/install
 
926
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
927
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
928
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
929
# ./install, which can be erroneously created by make from ./install.sh.
 
930
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
931
echo "configure:932: checking for a BSD compatible install" >&5
 
932
if test -z "$INSTALL"; then
 
933
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
934
  echo $ac_n "(cached) $ac_c" 1>&6
 
935
else
 
936
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
937
  for ac_dir in $PATH; do
 
938
    # Account for people who put trailing slashes in PATH elements.
 
939
    case "$ac_dir/" in
 
940
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
941
    *)
 
942
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
943
      # Don't use installbsd from OSF since it installs stuff as root
 
944
      # by default.
 
945
      for ac_prog in ginstall scoinst install; do
 
946
        if test -f $ac_dir/$ac_prog; then
 
947
          if test $ac_prog = install &&
 
948
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
949
            # AIX install.  It has an incompatible calling convention.
 
950
            :
 
951
          else
 
952
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
953
            break 2
 
954
          fi
 
955
        fi
 
956
      done
 
957
      ;;
 
958
    esac
 
959
  done
 
960
  IFS="$ac_save_IFS"
 
961
 
 
962
fi
 
963
  if test "${ac_cv_path_install+set}" = set; then
 
964
    INSTALL="$ac_cv_path_install"
 
965
  else
 
966
    # As a last resort, use the slow shell script.  We don't cache a
 
967
    # path for INSTALL within a source directory, because that will
 
968
    # break other packages using the cache if that directory is
 
969
    # removed, or if the path is relative.
 
970
    INSTALL="$ac_install_sh"
 
971
  fi
 
972
fi
 
973
echo "$ac_t""$INSTALL" 1>&6
 
974
 
 
975
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
976
# It thinks the first close brace ends the variable substitution.
 
977
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
978
 
 
979
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
980
 
 
981
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
982
 
 
983
 
 
984
 
 
985
echo $ac_n "checking for initscr in -lxcurses""... $ac_c" 1>&6
 
986
echo "configure:987: checking for initscr in -lxcurses" >&5
 
987
ac_lib_var=`echo xcurses'_'initscr | sed 'y%./+-%__p_%'`
 
988
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
989
  echo $ac_n "(cached) $ac_c" 1>&6
 
990
else
 
991
  ac_save_LIBS="$LIBS"
 
992
LIBS="-lxcurses  $LIBS"
 
993
cat > conftest.$ac_ext <<EOF
 
994
#line 995 "configure"
 
995
#include "confdefs.h"
 
996
/* Override any gcc2 internal prototype to avoid an error.  */
 
997
/* We use char because int might match the return type of a gcc2
 
998
    builtin and then its argument prototype would still apply.  */
 
999
char initscr();
 
1000
 
 
1001
int main() {
 
1002
initscr()
 
1003
; return 0; }
 
1004
EOF
 
1005
if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1006
  rm -rf conftest*
 
1007
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1008
else
 
1009
  echo "configure: failed program was:" >&5
 
1010
  cat conftest.$ac_ext >&5
 
1011
  rm -rf conftest*
 
1012
  eval "ac_cv_lib_$ac_lib_var=no"
 
1013
fi
 
1014
rm -f conftest*
 
1015
LIBS="$ac_save_LIBS"
 
1016
 
 
1017
fi
 
1018
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1019
  echo "$ac_t""yes" 1>&6
 
1020
  have_xcurses=yes
 
1021
else
 
1022
  echo "$ac_t""no" 1>&6
 
1023
have_xcurses=no
 
1024
fi
 
1025
 
 
1026
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
 
1027
echo "configure:1028: checking for initscr in -lncurses" >&5
 
1028
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
 
1029
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1030
  echo $ac_n "(cached) $ac_c" 1>&6
 
1031
else
 
1032
  ac_save_LIBS="$LIBS"
 
1033
LIBS="-lncurses  $LIBS"
 
1034
cat > conftest.$ac_ext <<EOF
 
1035
#line 1036 "configure"
 
1036
#include "confdefs.h"
 
1037
/* Override any gcc2 internal prototype to avoid an error.  */
 
1038
/* We use char because int might match the return type of a gcc2
 
1039
    builtin and then its argument prototype would still apply.  */
 
1040
char initscr();
 
1041
 
 
1042
int main() {
 
1043
initscr()
 
1044
; return 0; }
 
1045
EOF
 
1046
if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1047
  rm -rf conftest*
 
1048
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1049
else
 
1050
  echo "configure: failed program was:" >&5
 
1051
  cat conftest.$ac_ext >&5
 
1052
  rm -rf conftest*
 
1053
  eval "ac_cv_lib_$ac_lib_var=no"
 
1054
fi
 
1055
rm -f conftest*
 
1056
LIBS="$ac_save_LIBS"
 
1057
 
 
1058
fi
 
1059
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1060
  echo "$ac_t""yes" 1>&6
 
1061
  have_ncurses=yes
 
1062
else
 
1063
  echo "$ac_t""no" 1>&6
 
1064
have_ncurses=no
 
1065
fi
 
1066
 
 
1067
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
 
1068
echo "configure:1069: checking for initscr in -lcurses" >&5
 
1069
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
 
1070
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1071
  echo $ac_n "(cached) $ac_c" 1>&6
 
1072
else
 
1073
  ac_save_LIBS="$LIBS"
 
1074
LIBS="-lcurses  $LIBS"
 
1075
cat > conftest.$ac_ext <<EOF
 
1076
#line 1077 "configure"
 
1077
#include "confdefs.h"
 
1078
/* Override any gcc2 internal prototype to avoid an error.  */
 
1079
/* We use char because int might match the return type of a gcc2
 
1080
    builtin and then its argument prototype would still apply.  */
 
1081
char initscr();
 
1082
 
 
1083
int main() {
 
1084
initscr()
 
1085
; return 0; }
 
1086
EOF
 
1087
if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1088
  rm -rf conftest*
 
1089
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1090
else
 
1091
  echo "configure: failed program was:" >&5
 
1092
  cat conftest.$ac_ext >&5
 
1093
  rm -rf conftest*
 
1094
  eval "ac_cv_lib_$ac_lib_var=no"
 
1095
fi
 
1096
rm -f conftest*
 
1097
LIBS="$ac_save_LIBS"
 
1098
 
 
1099
fi
 
1100
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1101
  echo "$ac_t""yes" 1>&6
 
1102
  have_curses=yes
 
1103
else
 
1104
  echo "$ac_t""no" 1>&6
 
1105
have_curses=no
 
1106
fi
 
1107
 
 
1108
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
 
1109
echo "configure:1110: checking for tgetent in -ltermcap" >&5
 
1110
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
 
1111
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1112
  echo $ac_n "(cached) $ac_c" 1>&6
 
1113
else
 
1114
  ac_save_LIBS="$LIBS"
 
1115
LIBS="-ltermcap  $LIBS"
 
1116
cat > conftest.$ac_ext <<EOF
 
1117
#line 1118 "configure"
 
1118
#include "confdefs.h"
 
1119
/* Override any gcc2 internal prototype to avoid an error.  */
 
1120
/* We use char because int might match the return type of a gcc2
 
1121
    builtin and then its argument prototype would still apply.  */
 
1122
char tgetent();
 
1123
 
 
1124
int main() {
 
1125
tgetent()
 
1126
; return 0; }
 
1127
EOF
 
1128
if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1129
  rm -rf conftest*
 
1130
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1131
else
 
1132
  echo "configure: failed program was:" >&5
 
1133
  cat conftest.$ac_ext >&5
 
1134
  rm -rf conftest*
 
1135
  eval "ac_cv_lib_$ac_lib_var=no"
 
1136
fi
 
1137
rm -f conftest*
 
1138
LIBS="$ac_save_LIBS"
 
1139
 
 
1140
fi
 
1141
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1142
  echo "$ac_t""yes" 1>&6
 
1143
  have_termcap=yes
 
1144
else
 
1145
  echo "$ac_t""no" 1>&6
 
1146
have_termcap=no
 
1147
fi
 
1148
 
 
1149
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
 
1150
echo "configure:1151: checking for tgetent in -ltermlib" >&5
 
1151
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
 
1152
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1153
  echo $ac_n "(cached) $ac_c" 1>&6
 
1154
else
 
1155
  ac_save_LIBS="$LIBS"
 
1156
LIBS="-ltermlib  $LIBS"
 
1157
cat > conftest.$ac_ext <<EOF
 
1158
#line 1159 "configure"
 
1159
#include "confdefs.h"
 
1160
/* Override any gcc2 internal prototype to avoid an error.  */
 
1161
/* We use char because int might match the return type of a gcc2
 
1162
    builtin and then its argument prototype would still apply.  */
 
1163
char tgetent();
 
1164
 
 
1165
int main() {
 
1166
tgetent()
 
1167
; return 0; }
 
1168
EOF
 
1169
if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1170
  rm -rf conftest*
 
1171
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1172
else
 
1173
  echo "configure: failed program was:" >&5
 
1174
  cat conftest.$ac_ext >&5
 
1175
  rm -rf conftest*
 
1176
  eval "ac_cv_lib_$ac_lib_var=no"
 
1177
fi
 
1178
rm -f conftest*
 
1179
LIBS="$ac_save_LIBS"
 
1180
 
 
1181
fi
 
1182
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1183
  echo "$ac_t""yes" 1>&6
 
1184
  have_termlib=yes
 
1185
else
 
1186
  echo "$ac_t""no" 1>&6
 
1187
have_termlib=no
 
1188
fi
 
1189
 
 
1190
echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
 
1191
echo "configure:1192: checking for regcmp in -lgen" >&5
 
1192
ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
 
1193
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1194
  echo $ac_n "(cached) $ac_c" 1>&6
 
1195
else
 
1196
  ac_save_LIBS="$LIBS"
 
1197
LIBS="-lgen  $LIBS"
 
1198
cat > conftest.$ac_ext <<EOF
 
1199
#line 1200 "configure"
 
1200
#include "confdefs.h"
 
1201
/* Override any gcc2 internal prototype to avoid an error.  */
 
1202
/* We use char because int might match the return type of a gcc2
 
1203
    builtin and then its argument prototype would still apply.  */
 
1204
char regcmp();
 
1205
 
 
1206
int main() {
 
1207
regcmp()
 
1208
; return 0; }
 
1209
EOF
 
1210
if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1211
  rm -rf conftest*
 
1212
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1213
else
 
1214
  echo "configure: failed program was:" >&5
 
1215
  cat conftest.$ac_ext >&5
 
1216
  rm -rf conftest*
 
1217
  eval "ac_cv_lib_$ac_lib_var=no"
 
1218
fi
 
1219
rm -f conftest*
 
1220
LIBS="$ac_save_LIBS"
 
1221
 
 
1222
fi
 
1223
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1224
  echo "$ac_t""yes" 1>&6
 
1225
    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1226
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1227
  cat >> confdefs.h <<EOF
 
1228
#define $ac_tr_lib 1
 
1229
EOF
 
1230
 
 
1231
  LIBS="-lgen $LIBS"
 
1232
 
 
1233
else
 
1234
  echo "$ac_t""no" 1>&6
 
1235
fi
 
1236
 
 
1237
echo $ac_n "checking for regcmp in -lintl""... $ac_c" 1>&6
 
1238
echo "configure:1239: checking for regcmp in -lintl" >&5
 
1239
ac_lib_var=`echo intl'_'regcmp | sed 'y%./+-%__p_%'`
 
1240
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1241
  echo $ac_n "(cached) $ac_c" 1>&6
 
1242
else
 
1243
  ac_save_LIBS="$LIBS"
 
1244
LIBS="-lintl  $LIBS"
 
1245
cat > conftest.$ac_ext <<EOF
 
1246
#line 1247 "configure"
 
1247
#include "confdefs.h"
 
1248
/* Override any gcc2 internal prototype to avoid an error.  */
 
1249
/* We use char because int might match the return type of a gcc2
 
1250
    builtin and then its argument prototype would still apply.  */
 
1251
char regcmp();
 
1252
 
 
1253
int main() {
 
1254
regcmp()
 
1255
; return 0; }
 
1256
EOF
 
1257
if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1258
  rm -rf conftest*
 
1259
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1260
else
 
1261
  echo "configure: failed program was:" >&5
 
1262
  cat conftest.$ac_ext >&5
 
1263
  rm -rf conftest*
 
1264
  eval "ac_cv_lib_$ac_lib_var=no"
 
1265
fi
 
1266
rm -f conftest*
 
1267
LIBS="$ac_save_LIBS"
 
1268
 
 
1269
fi
 
1270
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1271
  echo "$ac_t""yes" 1>&6
 
1272
    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1273
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1274
  cat >> confdefs.h <<EOF
 
1275
#define $ac_tr_lib 1
 
1276
EOF
 
1277
 
 
1278
  LIBS="-lintl $LIBS"
 
1279
 
 
1280
else
 
1281
  echo "$ac_t""no" 1>&6
 
1282
fi
 
1283
 
 
1284
echo $ac_n "checking for regcmp in -lPW""... $ac_c" 1>&6
 
1285
echo "configure:1286: checking for regcmp in -lPW" >&5
 
1286
ac_lib_var=`echo PW'_'regcmp | sed 'y%./+-%__p_%'`
 
1287
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1288
  echo $ac_n "(cached) $ac_c" 1>&6
 
1289
else
 
1290
  ac_save_LIBS="$LIBS"
 
1291
LIBS="-lPW  $LIBS"
 
1292
cat > conftest.$ac_ext <<EOF
 
1293
#line 1294 "configure"
 
1294
#include "confdefs.h"
 
1295
/* Override any gcc2 internal prototype to avoid an error.  */
 
1296
/* We use char because int might match the return type of a gcc2
 
1297
    builtin and then its argument prototype would still apply.  */
 
1298
char regcmp();
 
1299
 
 
1300
int main() {
 
1301
regcmp()
 
1302
; return 0; }
 
1303
EOF
 
1304
if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1305
  rm -rf conftest*
 
1306
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1307
else
 
1308
  echo "configure: failed program was:" >&5
 
1309
  cat conftest.$ac_ext >&5
 
1310
  rm -rf conftest*
 
1311
  eval "ac_cv_lib_$ac_lib_var=no"
 
1312
fi
 
1313
rm -f conftest*
 
1314
LIBS="$ac_save_LIBS"
 
1315
 
 
1316
fi
 
1317
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1318
  echo "$ac_t""yes" 1>&6
 
1319
    ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1320
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1321
  cat >> confdefs.h <<EOF
 
1322
#define $ac_tr_lib 1
 
1323
EOF
 
1324
 
 
1325
  LIBS="-lPW $LIBS"
 
1326
 
 
1327
else
 
1328
  echo "$ac_t""no" 1>&6
 
1329
fi
 
1330
 
 
1331
 
 
1332
echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6
 
1333
echo "configure:1334: checking for working terminal libraries" >&5
 
1334
TERMLIBS=
 
1335
 
 
1336
curses_broken=0
 
1337
if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
 
1338
if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
 
1339
   curses_broken=1
 
1340
fi
 
1341
if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
 
1342
   curses_broken=1
 
1343
fi
 
1344
fi
 
1345
 
 
1346
if test $curses_broken = 0; then
 
1347
if test "x$TERMLIBS" = x; then
 
1348
  if test $have_xcurses = yes; then
 
1349
    TERMLIBS="-lxcurses"
 
1350
    SAVE_LIBS=$LIBS
 
1351
    LIBS="$LIBS $TERMLIBS"
 
1352
    cat > conftest.$ac_ext <<EOF
 
1353
#line 1354 "configure"
 
1354
#include "confdefs.h"
 
1355
 
 
1356
int main() {
 
1357
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1358
; return 0; }
 
1359
EOF
 
1360
if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1361
  rm -rf conftest*
 
1362
  termok=yes
 
1363
else
 
1364
  echo "configure: failed program was:" >&5
 
1365
  cat conftest.$ac_ext >&5
 
1366
  rm -rf conftest*
 
1367
  termok=no
 
1368
fi
 
1369
rm -f conftest*
 
1370
    LIBS=$SAVE_LIBS
 
1371
    if test $termok = no; then TERMLIBS=""; fi
 
1372
  fi
 
1373
fi
 
1374
 
 
1375
if test "x$TERMLIBS" = x; then
 
1376
  if test $have_ncurses = yes; then
 
1377
    TERMLIBS="-lncurses"
 
1378
    SAVE_LIBS=$LIBS
 
1379
    LIBS="$LIBS $TERMLIBS"
 
1380
    cat > conftest.$ac_ext <<EOF
 
1381
#line 1382 "configure"
 
1382
#include "confdefs.h"
 
1383
 
 
1384
int main() {
 
1385
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1386
; return 0; }
 
1387
EOF
 
1388
if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1389
  rm -rf conftest*
 
1390
  termok=yes
 
1391
else
 
1392
  echo "configure: failed program was:" >&5
 
1393
  cat conftest.$ac_ext >&5
 
1394
  rm -rf conftest*
 
1395
  termok=no
 
1396
fi
 
1397
rm -f conftest*
 
1398
    LIBS=$SAVE_LIBS
 
1399
    if test $termok = no; then TERMLIBS=""; fi
 
1400
  fi
 
1401
fi
 
1402
 
 
1403
if test "x$TERMLIBS" = x; then
 
1404
  if test $have_curses = yes; then
 
1405
    TERMLIBS="-lcurses"
 
1406
    SAVE_LIBS=$LIBS
 
1407
    LIBS="$LIBS $TERMLIBS"
 
1408
    cat > conftest.$ac_ext <<EOF
 
1409
#line 1410 "configure"
 
1410
#include "confdefs.h"
 
1411
 
 
1412
int main() {
 
1413
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1414
; return 0; }
 
1415
EOF
 
1416
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1417
  rm -rf conftest*
 
1418
  termok=yes
 
1419
else
 
1420
  echo "configure: failed program was:" >&5
 
1421
  cat conftest.$ac_ext >&5
 
1422
  rm -rf conftest*
 
1423
  termok=no
 
1424
fi
 
1425
rm -f conftest*
 
1426
    LIBS=$SAVE_LIBS
 
1427
    if test $termok = no; then TERMLIBS=""; fi
 
1428
  fi
 
1429
fi
 
1430
 
 
1431
if test "x$TERMLIBS" = x; then
 
1432
  if test $have_curses = yes; then
 
1433
  if test $have_termcap = yes; then
 
1434
    TERMLIBS="-lcurses -ltermcap"
 
1435
    SAVE_LIBS=$LIBS
 
1436
    LIBS="$LIBS $TERMLIBS"
 
1437
    cat > conftest.$ac_ext <<EOF
 
1438
#line 1439 "configure"
 
1439
#include "confdefs.h"
 
1440
 
 
1441
int main() {
 
1442
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1443
; return 0; }
 
1444
EOF
 
1445
if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1446
  rm -rf conftest*
 
1447
  termok=yes
 
1448
else
 
1449
  echo "configure: failed program was:" >&5
 
1450
  cat conftest.$ac_ext >&5
 
1451
  rm -rf conftest*
 
1452
  termok=no
 
1453
fi
 
1454
rm -f conftest*
 
1455
    LIBS=$SAVE_LIBS
 
1456
    if test $termok = no; then TERMLIBS=""; fi
 
1457
  fi
 
1458
  fi
 
1459
fi
 
1460
fi
 
1461
 
 
1462
if test "x$TERMLIBS" = x; then
 
1463
  if test $have_termcap = yes; then
 
1464
    TERMLIBS="-ltermcap"
 
1465
    SAVE_LIBS=$LIBS
 
1466
    LIBS="$LIBS $TERMLIBS"
 
1467
    cat > conftest.$ac_ext <<EOF
 
1468
#line 1469 "configure"
 
1469
#include "confdefs.h"
 
1470
 
 
1471
int main() {
 
1472
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1473
; return 0; }
 
1474
EOF
 
1475
if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1476
  rm -rf conftest*
 
1477
  termok=yes
 
1478
else
 
1479
  echo "configure: failed program was:" >&5
 
1480
  cat conftest.$ac_ext >&5
 
1481
  rm -rf conftest*
 
1482
  termok=no
 
1483
fi
 
1484
rm -f conftest*
 
1485
    LIBS=$SAVE_LIBS
 
1486
    if test $termok = no; then TERMLIBS=""; fi
 
1487
  fi
 
1488
fi
 
1489
 
 
1490
if test "x$TERMLIBS" = x; then
 
1491
  if test $have_termlib = yes; then
 
1492
    TERMLIBS="-lcurses -ltermlib"
 
1493
    SAVE_LIBS=$LIBS
 
1494
    LIBS="$LIBS $TERMLIBS"
 
1495
    cat > conftest.$ac_ext <<EOF
 
1496
#line 1497 "configure"
 
1497
#include "confdefs.h"
 
1498
 
 
1499
int main() {
 
1500
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
 
1501
; return 0; }
 
1502
EOF
 
1503
if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1504
  rm -rf conftest*
 
1505
  termok=yes
 
1506
else
 
1507
  echo "configure: failed program was:" >&5
 
1508
  cat conftest.$ac_ext >&5
 
1509
  rm -rf conftest*
 
1510
  termok=no
 
1511
fi
 
1512
rm -f conftest*
 
1513
    LIBS=$SAVE_LIBS
 
1514
    if test $termok = no; then TERMLIBS=""; fi
 
1515
  fi
 
1516
fi
 
1517
 
 
1518
if test "x$TERMLIBS" = x; then
 
1519
  echo "$ac_t""Cannot find terminal libraries - configure failed" 1>&6
 
1520
  exit 1
 
1521
fi
 
1522
echo "$ac_t""using $TERMLIBS" 1>&6
 
1523
LIBS="$LIBS $TERMLIBS"
 
1524
 
 
1525
 
 
1526
for ac_hdr in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
 
1527
do
 
1528
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1529
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1530
echo "configure:1531: checking for $ac_hdr" >&5
 
1531
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1532
  echo $ac_n "(cached) $ac_c" 1>&6
 
1533
else
 
1534
  cat > conftest.$ac_ext <<EOF
 
1535
#line 1536 "configure"
 
1536
#include "confdefs.h"
 
1537
#include <$ac_hdr>
 
1538
EOF
 
1539
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1540
{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1541
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1542
if test -z "$ac_err"; then
 
1543
  rm -rf conftest*
 
1544
  eval "ac_cv_header_$ac_safe=yes"
 
1545
else
 
1546
  echo "$ac_err" >&5
 
1547
  echo "configure: failed program was:" >&5
 
1548
  cat conftest.$ac_ext >&5
 
1549
  rm -rf conftest*
 
1550
  eval "ac_cv_header_$ac_safe=no"
 
1551
fi
 
1552
rm -f conftest*
 
1553
fi
 
1554
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1555
  echo "$ac_t""yes" 1>&6
 
1556
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1557
  cat >> confdefs.h <<EOF
 
1558
#define $ac_tr_hdr 1
 
1559
EOF
 
1560
 
 
1561
else
 
1562
  echo "$ac_t""no" 1>&6
 
1563
fi
 
1564
done
 
1565
 
 
1566
 
 
1567
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1568
echo "configure:1569: checking for ANSI C header files" >&5
 
1569
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1570
  echo $ac_n "(cached) $ac_c" 1>&6
 
1571
else
 
1572
  cat > conftest.$ac_ext <<EOF
 
1573
#line 1574 "configure"
 
1574
#include "confdefs.h"
 
1575
#include <stdlib.h>
 
1576
#include <stdarg.h>
 
1577
#include <string.h>
 
1578
#include <float.h>
 
1579
EOF
 
1580
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1581
{ (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1582
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1583
if test -z "$ac_err"; then
 
1584
  rm -rf conftest*
 
1585
  ac_cv_header_stdc=yes
 
1586
else
 
1587
  echo "$ac_err" >&5
 
1588
  echo "configure: failed program was:" >&5
 
1589
  cat conftest.$ac_ext >&5
 
1590
  rm -rf conftest*
 
1591
  ac_cv_header_stdc=no
 
1592
fi
 
1593
rm -f conftest*
 
1594
 
 
1595
if test $ac_cv_header_stdc = yes; then
 
1596
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1597
cat > conftest.$ac_ext <<EOF
 
1598
#line 1599 "configure"
 
1599
#include "confdefs.h"
 
1600
#include <string.h>
 
1601
EOF
 
1602
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1603
  egrep "memchr" >/dev/null 2>&1; then
 
1604
  :
 
1605
else
 
1606
  rm -rf conftest*
 
1607
  ac_cv_header_stdc=no
 
1608
fi
 
1609
rm -f conftest*
 
1610
 
 
1611
fi
 
1612
 
 
1613
if test $ac_cv_header_stdc = yes; then
 
1614
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1615
cat > conftest.$ac_ext <<EOF
 
1616
#line 1617 "configure"
 
1617
#include "confdefs.h"
 
1618
#include <stdlib.h>
 
1619
EOF
 
1620
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1621
  egrep "free" >/dev/null 2>&1; then
 
1622
  :
 
1623
else
 
1624
  rm -rf conftest*
 
1625
  ac_cv_header_stdc=no
 
1626
fi
 
1627
rm -f conftest*
 
1628
 
 
1629
fi
 
1630
 
 
1631
if test $ac_cv_header_stdc = yes; then
 
1632
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1633
if test "$cross_compiling" = yes; then
 
1634
  :
 
1635
else
 
1636
  cat > conftest.$ac_ext <<EOF
 
1637
#line 1638 "configure"
 
1638
#include "confdefs.h"
 
1639
#include <ctype.h>
 
1640
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1641
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1642
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1643
int main () { int i; for (i = 0; i < 256; i++)
 
1644
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1645
exit (0); }
 
1646
 
 
1647
EOF
 
1648
if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1649
then
 
1650
  :
 
1651
else
 
1652
  echo "configure: failed program was:" >&5
 
1653
  cat conftest.$ac_ext >&5
 
1654
  rm -fr conftest*
 
1655
  ac_cv_header_stdc=no
 
1656
fi
 
1657
rm -fr conftest*
 
1658
fi
 
1659
 
 
1660
fi
 
1661
fi
 
1662
 
 
1663
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1664
if test $ac_cv_header_stdc = yes; then
 
1665
  cat >> confdefs.h <<\EOF
 
1666
#define STDC_HEADERS 1
 
1667
EOF
 
1668
 
 
1669
fi
 
1670
 
 
1671
echo $ac_n "checking for off_t""... $ac_c" 1>&6
 
1672
echo "configure:1673: checking for off_t" >&5
 
1673
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 
1674
  echo $ac_n "(cached) $ac_c" 1>&6
 
1675
else
 
1676
  cat > conftest.$ac_ext <<EOF
 
1677
#line 1678 "configure"
 
1678
#include "confdefs.h"
 
1679
#include <sys/types.h>
 
1680
#if STDC_HEADERS
 
1681
#include <stdlib.h>
 
1682
#include <stddef.h>
 
1683
#endif
 
1684
EOF
 
1685
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1686
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1687
  rm -rf conftest*
 
1688
  ac_cv_type_off_t=yes
 
1689
else
 
1690
  rm -rf conftest*
 
1691
  ac_cv_type_off_t=no
 
1692
fi
 
1693
rm -f conftest*
 
1694
 
 
1695
fi
 
1696
echo "$ac_t""$ac_cv_type_off_t" 1>&6
 
1697
if test $ac_cv_type_off_t = no; then
 
1698
  cat >> confdefs.h <<\EOF
 
1699
#define off_t long
 
1700
EOF
 
1701
 
 
1702
fi
 
1703
 
 
1704
echo $ac_n "checking for void""... $ac_c" 1>&6
 
1705
echo "configure:1706: checking for void" >&5
 
1706
cat > conftest.$ac_ext <<EOF
 
1707
#line 1708 "configure"
 
1708
#include "confdefs.h"
 
1709
 
 
1710
int main() {
 
1711
void *foo = 0;
 
1712
; return 0; }
 
1713
EOF
 
1714
if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1715
  rm -rf conftest*
 
1716
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1717
#define HAVE_VOID 1
 
1718
EOF
 
1719
 
 
1720
else
 
1721
  echo "configure: failed program was:" >&5
 
1722
  cat conftest.$ac_ext >&5
 
1723
  rm -rf conftest*
 
1724
  echo "$ac_t""no" 1>&6
 
1725
fi
 
1726
rm -f conftest*
 
1727
echo $ac_n "checking for const""... $ac_c" 1>&6
 
1728
echo "configure:1729: checking for const" >&5
 
1729
cat > conftest.$ac_ext <<EOF
 
1730
#line 1731 "configure"
 
1731
#include "confdefs.h"
 
1732
 
 
1733
int main() {
 
1734
const int foo = 0;
 
1735
; return 0; }
 
1736
EOF
 
1737
if { (eval echo configure:1738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1738
  rm -rf conftest*
 
1739
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1740
#define HAVE_CONST 1
 
1741
EOF
 
1742
 
 
1743
else
 
1744
  echo "configure: failed program was:" >&5
 
1745
  cat conftest.$ac_ext >&5
 
1746
  rm -rf conftest*
 
1747
  echo "$ac_t""no" 1>&6
 
1748
fi
 
1749
rm -f conftest*
 
1750
echo $ac_n "checking for time_t""... $ac_c" 1>&6
 
1751
echo "configure:1752: checking for time_t" >&5
 
1752
cat > conftest.$ac_ext <<EOF
 
1753
#line 1754 "configure"
 
1754
#include "confdefs.h"
 
1755
#include <time.h>
 
1756
int main() {
 
1757
time_t t = 0;
 
1758
; return 0; }
 
1759
EOF
 
1760
if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1761
  rm -rf conftest*
 
1762
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1763
#define HAVE_TIME_T 1
 
1764
EOF
 
1765
 
 
1766
else
 
1767
  echo "configure: failed program was:" >&5
 
1768
  cat conftest.$ac_ext >&5
 
1769
  rm -rf conftest*
 
1770
  echo "$ac_t""no" 1>&6
 
1771
fi
 
1772
rm -f conftest*
 
1773
 
 
1774
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
1775
echo "configure:1776: checking return type of signal handlers" >&5
 
1776
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
1777
  echo $ac_n "(cached) $ac_c" 1>&6
 
1778
else
 
1779
  cat > conftest.$ac_ext <<EOF
 
1780
#line 1781 "configure"
 
1781
#include "confdefs.h"
 
1782
#include <sys/types.h>
 
1783
#include <signal.h>
 
1784
#ifdef signal
 
1785
#undef signal
 
1786
#endif
 
1787
#ifdef __cplusplus
 
1788
extern "C" void (*signal (int, void (*)(int)))(int);
 
1789
#else
 
1790
void (*signal ()) ();
 
1791
#endif
 
1792
 
 
1793
int main() {
 
1794
int i;
 
1795
; return 0; }
 
1796
EOF
 
1797
if { (eval echo configure:1798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1798
  rm -rf conftest*
 
1799
  ac_cv_type_signal=void
 
1800
else
 
1801
  echo "configure: failed program was:" >&5
 
1802
  cat conftest.$ac_ext >&5
 
1803
  rm -rf conftest*
 
1804
  ac_cv_type_signal=int
 
1805
fi
 
1806
rm -f conftest*
 
1807
fi
 
1808
 
 
1809
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
1810
cat >> confdefs.h <<EOF
 
1811
#define RETSIGTYPE $ac_cv_type_signal
 
1812
EOF
 
1813
 
 
1814
 
 
1815
for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system
 
1816
do
 
1817
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1818
echo "configure:1819: checking for $ac_func" >&5
 
1819
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1820
  echo $ac_n "(cached) $ac_c" 1>&6
 
1821
else
 
1822
  cat > conftest.$ac_ext <<EOF
 
1823
#line 1824 "configure"
 
1824
#include "confdefs.h"
 
1825
/* System header to define __stub macros and hopefully few prototypes,
 
1826
    which can conflict with char $ac_func(); below.  */
 
1827
#include <assert.h>
 
1828
/* Override any gcc2 internal prototype to avoid an error.  */
 
1829
/* We use char because int might match the return type of a gcc2
 
1830
    builtin and then its argument prototype would still apply.  */
 
1831
char $ac_func();
 
1832
 
 
1833
int main() {
 
1834
 
 
1835
/* The GNU C library defines this for functions which it implements
 
1836
    to always fail with ENOSYS.  Some functions are actually named
 
1837
    something starting with __ and the normal name is an alias.  */
 
1838
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1839
choke me
 
1840
#else
 
1841
$ac_func();
 
1842
#endif
 
1843
 
 
1844
; return 0; }
 
1845
EOF
 
1846
if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1847
  rm -rf conftest*
 
1848
  eval "ac_cv_func_$ac_func=yes"
 
1849
else
 
1850
  echo "configure: failed program was:" >&5
 
1851
  cat conftest.$ac_ext >&5
 
1852
  rm -rf conftest*
 
1853
  eval "ac_cv_func_$ac_func=no"
 
1854
fi
 
1855
rm -f conftest*
 
1856
fi
 
1857
 
 
1858
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1859
  echo "$ac_t""yes" 1>&6
 
1860
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1861
  cat >> confdefs.h <<EOF
 
1862
#define $ac_tr_func 1
 
1863
EOF
 
1864
 
 
1865
else
 
1866
  echo "$ac_t""no" 1>&6
 
1867
fi
 
1868
done
 
1869
 
 
1870
 
 
1871
echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
 
1872
echo "configure:1873: checking for tcgetattr" >&5
 
1873
if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
 
1874
  echo $ac_n "(cached) $ac_c" 1>&6
 
1875
else
 
1876
  cat > conftest.$ac_ext <<EOF
 
1877
#line 1878 "configure"
 
1878
#include "confdefs.h"
 
1879
/* System header to define __stub macros and hopefully few prototypes,
 
1880
    which can conflict with char tcgetattr(); below.  */
 
1881
#include <assert.h>
 
1882
/* Override any gcc2 internal prototype to avoid an error.  */
 
1883
/* We use char because int might match the return type of a gcc2
 
1884
    builtin and then its argument prototype would still apply.  */
 
1885
char tcgetattr();
 
1886
 
 
1887
int main() {
 
1888
 
 
1889
/* The GNU C library defines this for functions which it implements
 
1890
    to always fail with ENOSYS.  Some functions are actually named
 
1891
    something starting with __ and the normal name is an alias.  */
 
1892
#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
 
1893
choke me
 
1894
#else
 
1895
tcgetattr();
 
1896
#endif
 
1897
 
 
1898
; return 0; }
 
1899
EOF
 
1900
if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1901
  rm -rf conftest*
 
1902
  eval "ac_cv_func_tcgetattr=yes"
 
1903
else
 
1904
  echo "configure: failed program was:" >&5
 
1905
  cat conftest.$ac_ext >&5
 
1906
  rm -rf conftest*
 
1907
  eval "ac_cv_func_tcgetattr=no"
 
1908
fi
 
1909
rm -f conftest*
 
1910
fi
 
1911
 
 
1912
if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
 
1913
  echo "$ac_t""yes" 1>&6
 
1914
  cat >> confdefs.h <<\EOF
 
1915
#define HAVE_TERMIOS_FUNCS 1
 
1916
EOF
 
1917
 
 
1918
else
 
1919
  echo "$ac_t""no" 1>&6
 
1920
fi
 
1921
 
 
1922
 
 
1923
echo $ac_n "checking for fileno""... $ac_c" 1>&6
 
1924
echo "configure:1925: checking for fileno" >&5
 
1925
cat > conftest.$ac_ext <<EOF
 
1926
#line 1927 "configure"
 
1927
#include "confdefs.h"
 
1928
 
 
1929
#if HAVE_STDIO_H
 
1930
#include <stdio.h>
 
1931
#endif
 
1932
int main() {
 
1933
static int x; x = fileno(stdin);
 
1934
; return 0; }
 
1935
EOF
 
1936
if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1937
  rm -rf conftest*
 
1938
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1939
#define HAVE_FILENO 1
 
1940
EOF
 
1941
 
 
1942
else
 
1943
  echo "configure: failed program was:" >&5
 
1944
  cat conftest.$ac_ext >&5
 
1945
  rm -rf conftest*
 
1946
  echo "$ac_t""no" 1>&6
 
1947
fi
 
1948
rm -f conftest*
 
1949
 
 
1950
echo $ac_n "checking for strerror""... $ac_c" 1>&6
 
1951
echo "configure:1952: checking for strerror" >&5
 
1952
cat > conftest.$ac_ext <<EOF
 
1953
#line 1954 "configure"
 
1954
#include "confdefs.h"
 
1955
 
 
1956
#if HAVE_STDIO_H
 
1957
#include <stdio.h>
 
1958
#endif
 
1959
#if HAVE_STRING_H
 
1960
#include <string.h>
 
1961
#endif
 
1962
#if HAVE_ERRNO_H
 
1963
#include <errno.h>
 
1964
#endif
 
1965
int main() {
 
1966
static char *x; x = strerror(0);
 
1967
; return 0; }
 
1968
EOF
 
1969
if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1970
  rm -rf conftest*
 
1971
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1972
#define HAVE_STRERROR 1
 
1973
EOF
 
1974
 
 
1975
else
 
1976
  echo "configure: failed program was:" >&5
 
1977
  cat conftest.$ac_ext >&5
 
1978
  rm -rf conftest*
 
1979
  echo "$ac_t""no" 1>&6
 
1980
fi
 
1981
rm -f conftest*
 
1982
 
 
1983
echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
 
1984
echo "configure:1985: checking for sys_errlist" >&5
 
1985
cat > conftest.$ac_ext <<EOF
 
1986
#line 1987 "configure"
 
1987
#include "confdefs.h"
 
1988
 
 
1989
int main() {
 
1990
extern char *sys_errlist[]; static char **x; x = sys_errlist;
 
1991
; return 0; }
 
1992
EOF
 
1993
if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1994
  rm -rf conftest*
 
1995
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1996
#define HAVE_SYS_ERRLIST 1
 
1997
EOF
 
1998
 
 
1999
else
 
2000
  echo "configure: failed program was:" >&5
 
2001
  cat conftest.$ac_ext >&5
 
2002
  rm -rf conftest*
 
2003
  echo "$ac_t""no" 1>&6
 
2004
fi
 
2005
rm -f conftest*
 
2006
 
 
2007
echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
 
2008
echo "configure:2009: checking for sigset_t" >&5
 
2009
cat > conftest.$ac_ext <<EOF
 
2010
#line 2011 "configure"
 
2011
#include "confdefs.h"
 
2012
 
 
2013
#include <signal.h>
 
2014
 
 
2015
int main() {
 
2016
sigset_t s; s = 0;
 
2017
; return 0; }
 
2018
EOF
 
2019
if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2020
  rm -rf conftest*
 
2021
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
2022
#define HAVE_SIGSET_T 1
 
2023
EOF
 
2024
 
 
2025
else
 
2026
  echo "configure: failed program was:" >&5
 
2027
  cat conftest.$ac_ext >&5
 
2028
  rm -rf conftest*
 
2029
  echo "$ac_t""no" 1>&6
 
2030
fi
 
2031
rm -f conftest*
 
2032
 
 
2033
echo $ac_n "checking for sigemptyset""... $ac_c" 1>&6
 
2034
echo "configure:2035: checking for sigemptyset" >&5
 
2035
cat > conftest.$ac_ext <<EOF
 
2036
#line 2037 "configure"
 
2037
#include "confdefs.h"
 
2038
 
 
2039
#include <signal.h>
 
2040
 
 
2041
int main() {
 
2042
sigset_t s; sigemptyset(&s);
 
2043
; return 0; }
 
2044
EOF
 
2045
if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2046
  rm -rf conftest*
 
2047
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
2048
#define HAVE_SIGEMPTYSET 1
 
2049
EOF
 
2050
 
 
2051
else
 
2052
  echo "configure: failed program was:" >&5
 
2053
  cat conftest.$ac_ext >&5
 
2054
  rm -rf conftest*
 
2055
  echo "$ac_t""no" 1>&6
 
2056
fi
 
2057
rm -f conftest*
 
2058
 
 
2059
have_errno=no
 
2060
echo $ac_n "checking for errno""... $ac_c" 1>&6
 
2061
echo "configure:2062: checking for errno" >&5
 
2062
cat > conftest.$ac_ext <<EOF
 
2063
#line 2064 "configure"
 
2064
#include "confdefs.h"
 
2065
 
 
2066
#if HAVE_ERRNO_H
 
2067
#include <errno.h>
 
2068
#endif
 
2069
int main() {
 
2070
static int x; x = errno;
 
2071
; return 0; }
 
2072
EOF
 
2073
if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2074
  rm -rf conftest*
 
2075
  echo "$ac_t""yes - in errno.h" 1>&6; cat >> confdefs.h <<\EOF
 
2076
#define HAVE_ERRNO 1
 
2077
EOF
 
2078
 have_errno=yes
 
2079
else
 
2080
  echo "configure: failed program was:" >&5
 
2081
  cat conftest.$ac_ext >&5
 
2082
fi
 
2083
rm -f conftest*
 
2084
if test $have_errno = no; then
 
2085
cat > conftest.$ac_ext <<EOF
 
2086
#line 2087 "configure"
 
2087
#include "confdefs.h"
 
2088
 
 
2089
#if HAVE_ERRNO_H
 
2090
#include <errno.h>
 
2091
#endif
 
2092
int main() {
 
2093
extern int errno; static int x; x = errno;
 
2094
; return 0; }
 
2095
EOF
 
2096
if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2097
  rm -rf conftest*
 
2098
  echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
 
2099
#define HAVE_ERRNO 1
 
2100
EOF
 
2101
 cat >> confdefs.h <<\EOF
 
2102
#define MUST_DEFINE_ERRNO 1
 
2103
EOF
 
2104
 
 
2105
else
 
2106
  echo "configure: failed program was:" >&5
 
2107
  cat conftest.$ac_ext >&5
 
2108
  rm -rf conftest*
 
2109
  echo "$ac_t""no" 1>&6
 
2110
fi
 
2111
rm -f conftest*
 
2112
fi
 
2113
 
 
2114
echo $ac_n "checking for locale""... $ac_c" 1>&6
 
2115
echo "configure:2116: checking for locale" >&5
 
2116
cat > conftest.$ac_ext <<EOF
 
2117
#line 2118 "configure"
 
2118
#include "confdefs.h"
 
2119
#include <locale.h>
 
2120
#include <ctype.h>
 
2121
int main() {
 
2122
setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
 
2123
; return 0; }
 
2124
EOF
 
2125
if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2126
  rm -rf conftest*
 
2127
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
2128
#define HAVE_LOCALE 1
 
2129
EOF
 
2130
 
 
2131
else
 
2132
  echo "configure: failed program was:" >&5
 
2133
  cat conftest.$ac_ext >&5
 
2134
  rm -rf conftest*
 
2135
  echo "$ac_t""no" 1>&6
 
2136
fi
 
2137
rm -f conftest*
 
2138
echo $ac_n "checking for ctype functions""... $ac_c" 1>&6
 
2139
echo "configure:2140: checking for ctype functions" >&5
 
2140
cat > conftest.$ac_ext <<EOF
 
2141
#line 2142 "configure"
 
2142
#include "confdefs.h"
 
2143
 
 
2144
#if HAVE_CTYPE_H
 
2145
#include <ctype.h>
 
2146
#endif
 
2147
int main() {
 
2148
static int x; x = isupper(x); x = tolower(x); x = toupper(x);
 
2149
; return 0; }
 
2150
EOF
 
2151
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2152
  rm -rf conftest*
 
2153
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
2154
#define HAVE_UPPER_LOWER 1
 
2155
EOF
 
2156
 
 
2157
else
 
2158
  echo "configure: failed program was:" >&5
 
2159
  cat conftest.$ac_ext >&5
 
2160
  rm -rf conftest*
 
2161
  echo "$ac_t""no" 1>&6
 
2162
fi
 
2163
rm -f conftest*
 
2164
 
 
2165
have_ospeed=no
 
2166
echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6
 
2167
echo "configure:2168: checking termcap for ospeed" >&5
 
2168
cat > conftest.$ac_ext <<EOF
 
2169
#line 2170 "configure"
 
2170
#include "confdefs.h"
 
2171
 
 
2172
#include <sys/types.h>
 
2173
#if HAVE_TERMIOS_H
 
2174
#include <termios.h>
 
2175
#endif
 
2176
#if HAVE_TERMCAP_H
 
2177
#include <termcap.h>
 
2178
#endif
 
2179
int main() {
 
2180
ospeed = 0;
 
2181
; return 0; }
 
2182
EOF
 
2183
if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2184
  rm -rf conftest*
 
2185
  echo "$ac_t""yes - in termcap.h" 1>&6; cat >> confdefs.h <<\EOF
 
2186
#define HAVE_OSPEED 1
 
2187
EOF
 
2188
 have_ospeed=yes
 
2189
else
 
2190
  echo "configure: failed program was:" >&5
 
2191
  cat conftest.$ac_ext >&5
 
2192
fi
 
2193
rm -f conftest*
 
2194
if test $have_ospeed = no; then
 
2195
cat > conftest.$ac_ext <<EOF
 
2196
#line 2197 "configure"
 
2197
#include "confdefs.h"
 
2198
 
 
2199
int main() {
 
2200
extern short ospeed; ospeed = 0;
 
2201
; return 0; }
 
2202
EOF
 
2203
if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2204
  rm -rf conftest*
 
2205
  echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
 
2206
#define HAVE_OSPEED 1
 
2207
EOF
 
2208
 cat >> confdefs.h <<\EOF
 
2209
#define MUST_DEFINE_OSPEED 1
 
2210
EOF
 
2211
 
 
2212
else
 
2213
  echo "configure: failed program was:" >&5
 
2214
  cat conftest.$ac_ext >&5
 
2215
  rm -rf conftest*
 
2216
  echo "$ac_t""no" 1>&6
 
2217
fi
 
2218
rm -f conftest*
 
2219
fi
 
2220
 
 
2221
have_regex=no
 
2222
have_posix_regex=unknown
 
2223
echo $ac_n "checking for regcomp""... $ac_c" 1>&6
 
2224
echo "configure:2225: checking for regcomp" >&5
 
2225
 
 
2226
WANT_REGEX=auto
 
2227
# Check whether --with-regex or --without-regex was given.
 
2228
if test "${with_regex+set}" = set; then
 
2229
  withval="$with_regex"
 
2230
  WANT_REGEX="$withval"
 
2231
fi
 
2232
 
 
2233
 
 
2234
if test $have_regex = no; then
 
2235
if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
 
2236
if test "$cross_compiling" = yes; then
 
2237
  have_posix_regex=unknown
 
2238
else
 
2239
  cat > conftest.$ac_ext <<EOF
 
2240
#line 2241 "configure"
 
2241
#include "confdefs.h"
 
2242
 
 
2243
#include <sys/types.h>
 
2244
#include <regex.h>
 
2245
main() { regex_t r; regmatch_t rm; char *text = "xabcy";
 
2246
if (regcomp(&r, "abc", 0)) exit(1);
 
2247
if (regexec(&r, text, 1, &rm, 0)) exit(1);
 
2248
#ifndef __WATCOMC__
 
2249
if (rm.rm_so != 1) exit(1); /* check for correct offset */
 
2250
#else
 
2251
if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
 
2252
#endif
 
2253
exit(0); }
 
2254
EOF
 
2255
if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2256
then
 
2257
  have_posix_regex=yes
 
2258
else
 
2259
  echo "configure: failed program was:" >&5
 
2260
  cat conftest.$ac_ext >&5
 
2261
  rm -fr conftest*
 
2262
  have_posix_regex=no
 
2263
fi
 
2264
rm -fr conftest*
 
2265
fi
 
2266
 
 
2267
if test $have_posix_regex = yes; then
 
2268
  echo "$ac_t""using POSIX regcomp" 1>&6
 
2269
  cat >> confdefs.h <<\EOF
 
2270
#define HAVE_POSIX_REGCOMP 1
 
2271
EOF
 
2272
 
 
2273
  have_regex=yes
 
2274
elif test $have_posix_regex = unknown; then
 
2275
  cat > conftest.$ac_ext <<EOF
 
2276
#line 2277 "configure"
 
2277
#include "confdefs.h"
 
2278
 
 
2279
#include <sys/types.h>
 
2280
#include <regex.h>
 
2281
int main() {
 
2282
regex_t *r; regfree(r);
 
2283
; return 0; }
 
2284
EOF
 
2285
if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2286
  rm -rf conftest*
 
2287
  echo "$ac_t""using POSIX regcomp" 1>&6
 
2288
  cat >> confdefs.h <<\EOF
 
2289
#define HAVE_POSIX_REGCOMP 1
 
2290
EOF
 
2291
 have_regex=yes
 
2292
else
 
2293
  echo "configure: failed program was:" >&5
 
2294
  cat conftest.$ac_ext >&5
 
2295
fi
 
2296
rm -f conftest*
 
2297
else
 
2298
  echo "$ac_t""no" 1>&6
 
2299
fi
 
2300
fi
 
2301
fi
 
2302
 
 
2303
if test $have_regex = no; then
 
2304
if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
 
2305
echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
 
2306
echo "configure:2307: checking for pcre_compile in -lpcre" >&5
 
2307
ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
 
2308
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2309
  echo $ac_n "(cached) $ac_c" 1>&6
 
2310
else
 
2311
  ac_save_LIBS="$LIBS"
 
2312
LIBS="-lpcre  $LIBS"
 
2313
cat > conftest.$ac_ext <<EOF
 
2314
#line 2315 "configure"
 
2315
#include "confdefs.h"
 
2316
/* Override any gcc2 internal prototype to avoid an error.  */
 
2317
/* We use char because int might match the return type of a gcc2
 
2318
    builtin and then its argument prototype would still apply.  */
 
2319
char pcre_compile();
 
2320
 
 
2321
int main() {
 
2322
pcre_compile()
 
2323
; return 0; }
 
2324
EOF
 
2325
if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2326
  rm -rf conftest*
 
2327
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2328
else
 
2329
  echo "configure: failed program was:" >&5
 
2330
  cat conftest.$ac_ext >&5
 
2331
  rm -rf conftest*
 
2332
  eval "ac_cv_lib_$ac_lib_var=no"
 
2333
fi
 
2334
rm -f conftest*
 
2335
LIBS="$ac_save_LIBS"
 
2336
 
 
2337
fi
 
2338
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2339
  echo "$ac_t""yes" 1>&6
 
2340
  echo "$ac_t""using pcre" 1>&6; cat >> confdefs.h <<\EOF
 
2341
#define HAVE_PCRE 1
 
2342
EOF
 
2343
 LIBS="$LIBS -lpcre" have_regex=yes
 
2344
else
 
2345
  echo "$ac_t""no" 1>&6
 
2346
fi
 
2347
 
 
2348
fi
 
2349
fi
 
2350
 
 
2351
if test $have_regex = no; then
 
2352
if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
 
2353
echo $ac_n "checking for regcmp""... $ac_c" 1>&6
 
2354
echo "configure:2355: checking for regcmp" >&5
 
2355
if eval "test \"`echo '$''{'ac_cv_func_regcmp'+set}'`\" = set"; then
 
2356
  echo $ac_n "(cached) $ac_c" 1>&6
 
2357
else
 
2358
  cat > conftest.$ac_ext <<EOF
 
2359
#line 2360 "configure"
 
2360
#include "confdefs.h"
 
2361
/* System header to define __stub macros and hopefully few prototypes,
 
2362
    which can conflict with char regcmp(); below.  */
 
2363
#include <assert.h>
 
2364
/* Override any gcc2 internal prototype to avoid an error.  */
 
2365
/* We use char because int might match the return type of a gcc2
 
2366
    builtin and then its argument prototype would still apply.  */
 
2367
char regcmp();
 
2368
 
 
2369
int main() {
 
2370
 
 
2371
/* The GNU C library defines this for functions which it implements
 
2372
    to always fail with ENOSYS.  Some functions are actually named
 
2373
    something starting with __ and the normal name is an alias.  */
 
2374
#if defined (__stub_regcmp) || defined (__stub___regcmp)
 
2375
choke me
 
2376
#else
 
2377
regcmp();
 
2378
#endif
 
2379
 
 
2380
; return 0; }
 
2381
EOF
 
2382
if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2383
  rm -rf conftest*
 
2384
  eval "ac_cv_func_regcmp=yes"
 
2385
else
 
2386
  echo "configure: failed program was:" >&5
 
2387
  cat conftest.$ac_ext >&5
 
2388
  rm -rf conftest*
 
2389
  eval "ac_cv_func_regcmp=no"
 
2390
fi
 
2391
rm -f conftest*
 
2392
fi
 
2393
 
 
2394
if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then
 
2395
  echo "$ac_t""yes" 1>&6
 
2396
  echo "$ac_t""using regcmp" 1>&6; cat >> confdefs.h <<\EOF
 
2397
#define HAVE_REGCMP 1
 
2398
EOF
 
2399
 have_regex=yes
 
2400
else
 
2401
  echo "$ac_t""no" 1>&6
 
2402
fi
 
2403
 
 
2404
fi
 
2405
fi
 
2406
 
 
2407
if test $have_regex = no; then
 
2408
if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
 
2409
cat > conftest.$ac_ext <<EOF
 
2410
#line 2411 "configure"
 
2411
#include "confdefs.h"
 
2412
 
 
2413
#include "regexp.h"
 
2414
int main() {
 
2415
regcomp("");
 
2416
; return 0; }
 
2417
EOF
 
2418
if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2419
  rm -rf conftest*
 
2420
  echo "$ac_t""using V8 regcomp" 1>&6; cat >> confdefs.h <<\EOF
 
2421
#define HAVE_V8_REGCOMP 1
 
2422
EOF
 
2423
 have_regex=yes
 
2424
else
 
2425
  echo "configure: failed program was:" >&5
 
2426
  cat conftest.$ac_ext >&5
 
2427
fi
 
2428
rm -f conftest*
 
2429
fi
 
2430
fi
 
2431
 
 
2432
if test $have_regex = no && test -f ${srcdir}/regexp.c; then
 
2433
if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
 
2434
echo "$ac_t""using V8 regcomp -- local source" 1>&6; cat >> confdefs.h <<\EOF
 
2435
#define HAVE_V8_REGCOMP 1
 
2436
EOF
 
2437
 cat >> confdefs.h <<\EOF
 
2438
#define HAVE_REGEXEC2 1
 
2439
EOF
 
2440
 REGEX_O='regexp.$(O)'  have_regex=yes
 
2441
fi
 
2442
fi
 
2443
 
 
2444
if test $have_regex = no; then
 
2445
if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
 
2446
echo "$ac_t""using re_comp" 1>&6; echo $ac_n "checking for re_comp""... $ac_c" 1>&6
 
2447
echo "configure:2448: checking for re_comp" >&5
 
2448
if eval "test \"`echo '$''{'ac_cv_func_re_comp'+set}'`\" = set"; then
 
2449
  echo $ac_n "(cached) $ac_c" 1>&6
 
2450
else
 
2451
  cat > conftest.$ac_ext <<EOF
 
2452
#line 2453 "configure"
 
2453
#include "confdefs.h"
 
2454
/* System header to define __stub macros and hopefully few prototypes,
 
2455
    which can conflict with char re_comp(); below.  */
 
2456
#include <assert.h>
 
2457
/* Override any gcc2 internal prototype to avoid an error.  */
 
2458
/* We use char because int might match the return type of a gcc2
 
2459
    builtin and then its argument prototype would still apply.  */
 
2460
char re_comp();
 
2461
 
 
2462
int main() {
 
2463
 
 
2464
/* The GNU C library defines this for functions which it implements
 
2465
    to always fail with ENOSYS.  Some functions are actually named
 
2466
    something starting with __ and the normal name is an alias.  */
 
2467
#if defined (__stub_re_comp) || defined (__stub___re_comp)
 
2468
choke me
 
2469
#else
 
2470
re_comp();
 
2471
#endif
 
2472
 
 
2473
; return 0; }
 
2474
EOF
 
2475
if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2476
  rm -rf conftest*
 
2477
  eval "ac_cv_func_re_comp=yes"
 
2478
else
 
2479
  echo "configure: failed program was:" >&5
 
2480
  cat conftest.$ac_ext >&5
 
2481
  rm -rf conftest*
 
2482
  eval "ac_cv_func_re_comp=no"
 
2483
fi
 
2484
rm -f conftest*
 
2485
fi
 
2486
 
 
2487
if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then
 
2488
  echo "$ac_t""yes" 1>&6
 
2489
  cat >> confdefs.h <<\EOF
 
2490
#define HAVE_RE_COMP 1
 
2491
EOF
 
2492
 have_regex=yes
 
2493
else
 
2494
  echo "$ac_t""no" 1>&6
 
2495
fi
 
2496
 
 
2497
fi
 
2498
fi
 
2499
 
 
2500
if test $have_regex = no; then
 
2501
echo "$ac_t""cannot find regular expression library" 1>&6; cat >> confdefs.h <<\EOF
 
2502
#define NO_REGEX 1
 
2503
EOF
 
2504
 
 
2505
fi
 
2506
 
 
2507
# Check whether --with-editor or --without-editor was given.
 
2508
if test "${with_editor+set}" = set; then
 
2509
  withval="$with_editor"
 
2510
  cat >> confdefs.h <<EOF
 
2511
#define EDIT_PGM "$withval"
 
2512
EOF
 
2513
 
 
2514
fi
 
2515
 
 
2516
 
 
2517
trap '' 1 2 15
 
2518
cat > confcache <<\EOF
 
2519
# This file is a shell script that caches the results of configure
 
2520
# tests run on this system so they can be shared between configure
 
2521
# scripts and configure runs.  It is not useful on other systems.
 
2522
# If it contains results you don't want to keep, you may remove or edit it.
 
2523
#
 
2524
# By default, configure uses ./config.cache as the cache file,
 
2525
# creating it if it does not exist already.  You can give configure
 
2526
# the --cache-file=FILE option to use a different cache file; that is
 
2527
# what configure does when it calls configure scripts in
 
2528
# subdirectories, so they share the cache.
 
2529
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
2530
# config.status only pays attention to the cache file if you give it the
 
2531
# --recheck option to rerun configure.
 
2532
#
 
2533
EOF
 
2534
# The following way of writing the cache mishandles newlines in values,
 
2535
# but we know of no workaround that is simple, portable, and efficient.
 
2536
# So, don't put newlines in cache variables' values.
 
2537
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2538
# and sets the high bit in the cache file unless we assign to the vars.
 
2539
(set) 2>&1 |
 
2540
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2541
  *ac_space=\ *)
 
2542
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
2543
    # turns \\\\ into \\, and sed turns \\ into \).
 
2544
    sed -n \
 
2545
      -e "s/'/'\\\\''/g" \
 
2546
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
2547
    ;;
 
2548
  *)
 
2549
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2550
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
2551
    ;;
 
2552
  esac >> confcache
 
2553
if cmp -s $cache_file confcache; then
 
2554
  :
 
2555
else
 
2556
  if test -w $cache_file; then
 
2557
    echo "updating cache $cache_file"
 
2558
    cat confcache > $cache_file
 
2559
  else
 
2560
    echo "not updating unwritable cache $cache_file"
 
2561
  fi
 
2562
fi
 
2563
rm -f confcache
 
2564
 
 
2565
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
2566
 
 
2567
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2568
# Let make expand exec_prefix.
 
2569
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2570
 
 
2571
# Any assignment to VPATH causes Sun make to only execute
 
2572
# the first set of double-colon rules, so remove it if not needed.
 
2573
# If there is a colon in the path, we need to keep it.
 
2574
if test "x$srcdir" = x.; then
 
2575
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
2576
fi
 
2577
 
 
2578
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
2579
 
 
2580
DEFS=-DHAVE_CONFIG_H
 
2581
 
 
2582
# Without the "./", some shells look in PATH for config.status.
 
2583
: ${CONFIG_STATUS=./config.status}
 
2584
 
 
2585
echo creating $CONFIG_STATUS
 
2586
rm -f $CONFIG_STATUS
 
2587
cat > $CONFIG_STATUS <<EOF
 
2588
#! /bin/sh
 
2589
# Generated automatically by configure.
 
2590
# Run this file to recreate the current configuration.
 
2591
# This directory was configured as follows,
 
2592
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
2593
#
 
2594
# $0 $ac_configure_args
 
2595
#
 
2596
# Compiler output produced by configure, useful for debugging
 
2597
# configure, is in ./config.log if it exists.
 
2598
 
 
2599
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
2600
for ac_option
 
2601
do
 
2602
  case "\$ac_option" in
 
2603
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
2604
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
2605
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
2606
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
2607
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
2608
    exit 0 ;;
 
2609
  -help | --help | --hel | --he | --h)
 
2610
    echo "\$ac_cs_usage"; exit 0 ;;
 
2611
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
2612
  esac
 
2613
done
 
2614
 
 
2615
ac_given_srcdir=$srcdir
 
2616
ac_given_INSTALL="$INSTALL"
 
2617
 
 
2618
trap 'rm -fr `echo "Makefile defines.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
2619
EOF
 
2620
cat >> $CONFIG_STATUS <<EOF
 
2621
 
 
2622
# Protect against being on the right side of a sed subst in config.status.
 
2623
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
2624
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
2625
$ac_vpsub
 
2626
$extrasub
 
2627
s%@SHELL@%$SHELL%g
 
2628
s%@CFLAGS@%$CFLAGS%g
 
2629
s%@CPPFLAGS@%$CPPFLAGS%g
 
2630
s%@CXXFLAGS@%$CXXFLAGS%g
 
2631
s%@FFLAGS@%$FFLAGS%g
 
2632
s%@DEFS@%$DEFS%g
 
2633
s%@LDFLAGS@%$LDFLAGS%g
 
2634
s%@LIBS@%$LIBS%g
 
2635
s%@exec_prefix@%$exec_prefix%g
 
2636
s%@prefix@%$prefix%g
 
2637
s%@program_transform_name@%$program_transform_name%g
 
2638
s%@bindir@%$bindir%g
 
2639
s%@sbindir@%$sbindir%g
 
2640
s%@libexecdir@%$libexecdir%g
 
2641
s%@datadir@%$datadir%g
 
2642
s%@sysconfdir@%$sysconfdir%g
 
2643
s%@sharedstatedir@%$sharedstatedir%g
 
2644
s%@localstatedir@%$localstatedir%g
 
2645
s%@libdir@%$libdir%g
 
2646
s%@includedir@%$includedir%g
 
2647
s%@oldincludedir@%$oldincludedir%g
 
2648
s%@infodir@%$infodir%g
 
2649
s%@mandir@%$mandir%g
 
2650
s%@CC@%$CC%g
 
2651
s%@CPP@%$CPP%g
 
2652
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
2653
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
2654
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
2655
s%@REGEX_O@%$REGEX_O%g
 
2656
 
 
2657
CEOF
 
2658
EOF
 
2659
 
 
2660
cat >> $CONFIG_STATUS <<\EOF
 
2661
 
 
2662
# Split the substitutions into bite-sized pieces for seds with
 
2663
# small command number limits, like on Digital OSF/1 and HP-UX.
 
2664
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
2665
ac_file=1 # Number of current file.
 
2666
ac_beg=1 # First line for current file.
 
2667
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
2668
ac_more_lines=:
 
2669
ac_sed_cmds=""
 
2670
while $ac_more_lines; do
 
2671
  if test $ac_beg -gt 1; then
 
2672
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
2673
  else
 
2674
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
2675
  fi
 
2676
  if test ! -s conftest.s$ac_file; then
 
2677
    ac_more_lines=false
 
2678
    rm -f conftest.s$ac_file
 
2679
  else
 
2680
    if test -z "$ac_sed_cmds"; then
 
2681
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
2682
    else
 
2683
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
2684
    fi
 
2685
    ac_file=`expr $ac_file + 1`
 
2686
    ac_beg=$ac_end
 
2687
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
2688
  fi
 
2689
done
 
2690
if test -z "$ac_sed_cmds"; then
 
2691
  ac_sed_cmds=cat
 
2692
fi
 
2693
EOF
 
2694
 
 
2695
cat >> $CONFIG_STATUS <<EOF
 
2696
 
 
2697
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
 
2698
EOF
 
2699
cat >> $CONFIG_STATUS <<\EOF
 
2700
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
2701
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2702
  case "$ac_file" in
 
2703
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2704
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2705
  *) ac_file_in="${ac_file}.in" ;;
 
2706
  esac
 
2707
 
 
2708
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
2709
 
 
2710
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
2711
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
2712
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
2713
    # The file is in a subdirectory.
 
2714
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
2715
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
2716
    # A "../" for each directory in $ac_dir_suffix.
 
2717
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
2718
  else
 
2719
    ac_dir_suffix= ac_dots=
 
2720
  fi
 
2721
 
 
2722
  case "$ac_given_srcdir" in
 
2723
  .)  srcdir=.
 
2724
      if test -z "$ac_dots"; then top_srcdir=.
 
2725
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
2726
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
2727
  *) # Relative path.
 
2728
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
2729
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
2730
  esac
 
2731
 
 
2732
  case "$ac_given_INSTALL" in
 
2733
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
2734
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
2735
  esac
 
2736
 
 
2737
  echo creating "$ac_file"
 
2738
  rm -f "$ac_file"
 
2739
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
2740
  case "$ac_file" in
 
2741
  *Makefile*) ac_comsub="1i\\
 
2742
# $configure_input" ;;
 
2743
  *) ac_comsub= ;;
 
2744
  esac
 
2745
 
 
2746
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2747
  sed -e "$ac_comsub
 
2748
s%@configure_input@%$configure_input%g
 
2749
s%@srcdir@%$srcdir%g
 
2750
s%@top_srcdir@%$top_srcdir%g
 
2751
s%@INSTALL@%$INSTALL%g
 
2752
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
2753
fi; done
 
2754
rm -f conftest.s*
 
2755
 
 
2756
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
2757
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
2758
#
 
2759
# ac_d sets the value in "#define NAME VALUE" lines.
 
2760
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
2761
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
2762
ac_dC='\3'
 
2763
ac_dD='%g'
 
2764
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
2765
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
2766
ac_uB='\([      ]\)%\1#\2define\3'
 
2767
ac_uC=' '
 
2768
ac_uD='\4%g'
 
2769
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
2770
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
2771
ac_eB='$%\1#\2define\3'
 
2772
ac_eC=' '
 
2773
ac_eD='%g'
 
2774
 
 
2775
if test "${CONFIG_HEADERS+set}" != set; then
 
2776
EOF
 
2777
cat >> $CONFIG_STATUS <<EOF
 
2778
  CONFIG_HEADERS="defines.h"
 
2779
EOF
 
2780
cat >> $CONFIG_STATUS <<\EOF
 
2781
fi
 
2782
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
2783
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2784
  case "$ac_file" in
 
2785
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2786
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2787
  *) ac_file_in="${ac_file}.in" ;;
 
2788
  esac
 
2789
 
 
2790
  echo creating $ac_file
 
2791
 
 
2792
  rm -f conftest.frag conftest.in conftest.out
 
2793
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2794
  cat $ac_file_inputs > conftest.in
 
2795
 
 
2796
EOF
 
2797
 
 
2798
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
2799
# the proper values into config.h.in to produce config.h.  And first:
 
2800
# Protect against being on the right side of a sed subst in config.status.
 
2801
# Protect against being in an unquoted here document in config.status.
 
2802
rm -f conftest.vals
 
2803
cat > conftest.hdr <<\EOF
 
2804
s/[\\&%]/\\&/g
 
2805
s%[\\$`]%\\&%g
 
2806
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
2807
s%ac_d%ac_u%gp
 
2808
s%ac_u%ac_e%gp
 
2809
EOF
 
2810
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
2811
rm -f conftest.hdr
 
2812
 
 
2813
# This sed command replaces #undef with comments.  This is necessary, for
 
2814
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
2815
# on some systems where configure will not decide to define it.
 
2816
cat >> conftest.vals <<\EOF
 
2817
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
2818
EOF
 
2819
 
 
2820
# Break up conftest.vals because some shells have a limit on
 
2821
# the size of here documents, and old seds have small limits too.
 
2822
 
 
2823
rm -f conftest.tail
 
2824
while :
 
2825
do
 
2826
  ac_lines=`grep -c . conftest.vals`
 
2827
  # grep -c gives empty output for an empty file on some AIX systems.
 
2828
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
2829
  # Write a limited-size here document to conftest.frag.
 
2830
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
2831
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
2832
  echo 'CEOF
 
2833
  sed -f conftest.frag conftest.in > conftest.out
 
2834
  rm -f conftest.in
 
2835
  mv conftest.out conftest.in
 
2836
' >> $CONFIG_STATUS
 
2837
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
2838
  rm -f conftest.vals
 
2839
  mv conftest.tail conftest.vals
 
2840
done
 
2841
rm -f conftest.vals
 
2842
 
 
2843
cat >> $CONFIG_STATUS <<\EOF
 
2844
  rm -f conftest.frag conftest.h
 
2845
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
2846
  cat conftest.in >> conftest.h
 
2847
  rm -f conftest.in
 
2848
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
2849
    echo "$ac_file is unchanged"
 
2850
    rm -f conftest.h
 
2851
  else
 
2852
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
2853
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
2854
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
2855
      # The file is in a subdirectory.
 
2856
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
2857
    fi
 
2858
    rm -f $ac_file
 
2859
    mv conftest.h $ac_file
 
2860
  fi
 
2861
fi; done
 
2862
 
 
2863
EOF
 
2864
cat >> $CONFIG_STATUS <<EOF
 
2865
 
 
2866
EOF
 
2867
cat >> $CONFIG_STATUS <<\EOF
 
2868
 
 
2869
exit 0
 
2870
EOF
 
2871
chmod +x $CONFIG_STATUS
 
2872
rm -fr confdefs* $ac_clean_files
 
2873
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
2874