~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qtcsh/configure

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by Autoconf 2.52.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Avoid depending upon Character Ranges.
 
11
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
12
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14
as_cr_digits='0123456789'
 
15
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16
 
 
17
# Sed expression to map a string onto a valid variable name.
 
18
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
19
 
 
20
# Sed expression to map a string onto a valid CPP name.
 
21
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
22
 
 
23
# Be Bourne compatible
 
24
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
25
  emulate sh
 
26
  NULLCMD=:
 
27
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
28
  set -o posix
 
29
fi
 
30
 
 
31
# Name of the executable.
 
32
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
33
 
 
34
if expr a : '\(a\)' >/dev/null 2>&1; then
 
35
  as_expr=expr
 
36
else
 
37
  as_expr=false
 
38
fi
 
39
 
 
40
rm -f conf$$ conf$$.exe conf$$.file
 
41
echo >conf$$.file
 
42
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
43
  # We could just check for DJGPP; but this test a) works b) is more generic
 
44
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
45
  if test -f conf$$.exe; then
 
46
    # Don't use ln at all; we don't have any links
 
47
    as_ln_s='cp -p'
 
48
  else
 
49
    as_ln_s='ln -s'
 
50
  fi
 
51
elif ln conf$$.file conf$$ 2>/dev/null; then
 
52
  as_ln_s=ln
 
53
else
 
54
  as_ln_s='cp -p'
 
55
fi
 
56
rm -f conf$$ conf$$.exe conf$$.file
 
57
 
 
58
as_executable_p="test -f"
 
59
 
 
60
# Support unset when possible.
 
61
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
62
  as_unset=unset
 
63
else
 
64
  as_unset=false
 
65
fi
 
66
 
 
67
# NLS nuisances.
 
68
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
69
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
70
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
71
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
72
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
73
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
74
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
75
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
76
 
 
77
# IFS
 
78
# We need space, tab and new line, in precisely that order.
 
79
as_nl='
 
80
'
 
81
IFS="   $as_nl"
 
82
 
 
83
# CDPATH.
 
84
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
85
 
 
86
# Name of the host.
 
87
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
88
# so uname gets run too.
 
89
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
90
 
 
91
exec 6>&1
 
92
 
 
93
#
 
94
# Initializations.
 
95
#
 
96
ac_default_prefix=/usr/local
 
97
cross_compiling=no
 
98
subdirs=
 
99
MFLAGS= MAKEFLAGS=
 
100
SHELL=${CONFIG_SHELL-/bin/sh}
 
101
 
 
102
# Maximum number of lines to put in a shell here document.
 
103
# This variable seems obsolete.  It should probably be removed, and
 
104
# only ac_max_sed_lines should be used.
 
105
: ${ac_max_here_lines=38}
 
106
 
 
107
ac_unique_file="tc.vers.c"
 
108
 
 
109
# Initialize some variables set by options.
 
110
ac_init_help=
 
111
ac_init_version=false
 
112
# The variables have the same names as the options, with
 
113
# dashes changed to underlines.
 
114
cache_file=/dev/null
 
115
exec_prefix=NONE
 
116
no_create=
 
117
no_recursion=
 
118
prefix=NONE
 
119
program_prefix=NONE
 
120
program_suffix=NONE
 
121
program_transform_name=s,x,x,
 
122
silent=
 
123
site=
 
124
srcdir=
 
125
verbose=
 
126
x_includes=NONE
 
127
x_libraries=NONE
 
128
 
 
129
# Installation directory options.
 
130
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
131
# and all the variables that are supposed to be based on exec_prefix
 
132
# by default will actually change.
 
133
# Use braces instead of parens because sh, perl, etc. also accept them.
 
134
bindir='${exec_prefix}/bin'
 
135
sbindir='${exec_prefix}/sbin'
 
136
libexecdir='${exec_prefix}/libexec'
 
137
datadir='${prefix}/share'
 
138
sysconfdir='${prefix}/etc'
 
139
sharedstatedir='${prefix}/com'
 
140
localstatedir='${prefix}/var'
 
141
libdir='${exec_prefix}/lib'
 
142
includedir='${prefix}/include'
 
143
oldincludedir='/usr/include'
 
144
infodir='${prefix}/info'
 
145
mandir='${prefix}/man'
 
146
 
 
147
# Identity of this package.
 
148
PACKAGE_NAME=
 
149
PACKAGE_TARNAME=
 
150
PACKAGE_VERSION=
 
151
PACKAGE_STRING=
 
152
PACKAGE_BUGREPORT=
 
153
 
 
154
ac_prev=
 
155
for ac_option
 
156
do
 
157
  # If the previous option needs an argument, assign it.
 
158
  if test -n "$ac_prev"; then
 
159
    eval "$ac_prev=\$ac_option"
 
160
    ac_prev=
 
161
    continue
 
162
  fi
 
163
 
 
164
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
165
 
 
166
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
167
 
 
168
  case $ac_option in
 
169
 
 
170
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
171
    ac_prev=bindir ;;
 
172
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
173
    bindir=$ac_optarg ;;
 
174
 
 
175
  -build | --build | --buil | --bui | --bu)
 
176
    ac_prev=build_alias ;;
 
177
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
178
    build_alias=$ac_optarg ;;
 
179
 
 
180
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
181
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
182
    ac_prev=cache_file ;;
 
183
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
184
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
185
    cache_file=$ac_optarg ;;
 
186
 
 
187
  --config-cache | -C)
 
188
    cache_file=config.cache ;;
 
189
 
 
190
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
191
    ac_prev=datadir ;;
 
192
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
193
  | --da=*)
 
194
    datadir=$ac_optarg ;;
 
195
 
 
196
  -disable-* | --disable-*)
 
197
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
198
    # Reject names that are not valid shell variable names.
 
199
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
200
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
201
   { (exit 1); exit 1; }; }
 
202
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
203
    eval "enable_$ac_feature=no" ;;
 
204
 
 
205
  -enable-* | --enable-*)
 
206
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
207
    # Reject names that are not valid shell variable names.
 
208
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
209
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
210
   { (exit 1); exit 1; }; }
 
211
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
212
    case $ac_option in
 
213
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
214
      *) ac_optarg=yes ;;
 
215
    esac
 
216
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
217
 
 
218
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
219
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
220
  | --exec | --exe | --ex)
 
221
    ac_prev=exec_prefix ;;
 
222
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
223
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
224
  | --exec=* | --exe=* | --ex=*)
 
225
    exec_prefix=$ac_optarg ;;
 
226
 
 
227
  -gas | --gas | --ga | --g)
 
228
    # Obsolete; use --with-gas.
 
229
    with_gas=yes ;;
 
230
 
 
231
  -help | --help | --hel | --he | -h)
 
232
    ac_init_help=long ;;
 
233
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
234
    ac_init_help=recursive ;;
 
235
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
236
    ac_init_help=short ;;
 
237
 
 
238
  -host | --host | --hos | --ho)
 
239
    ac_prev=host_alias ;;
 
240
  -host=* | --host=* | --hos=* | --ho=*)
 
241
    host_alias=$ac_optarg ;;
 
242
 
 
243
  -includedir | --includedir | --includedi | --included | --include \
 
244
  | --includ | --inclu | --incl | --inc)
 
245
    ac_prev=includedir ;;
 
246
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
247
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
248
    includedir=$ac_optarg ;;
 
249
 
 
250
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
251
    ac_prev=infodir ;;
 
252
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
253
    infodir=$ac_optarg ;;
 
254
 
 
255
  -libdir | --libdir | --libdi | --libd)
 
256
    ac_prev=libdir ;;
 
257
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
258
    libdir=$ac_optarg ;;
 
259
 
 
260
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
261
  | --libexe | --libex | --libe)
 
262
    ac_prev=libexecdir ;;
 
263
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
264
  | --libexe=* | --libex=* | --libe=*)
 
265
    libexecdir=$ac_optarg ;;
 
266
 
 
267
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
268
  | --localstate | --localstat | --localsta | --localst \
 
269
  | --locals | --local | --loca | --loc | --lo)
 
270
    ac_prev=localstatedir ;;
 
271
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
272
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
273
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
274
    localstatedir=$ac_optarg ;;
 
275
 
 
276
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
277
    ac_prev=mandir ;;
 
278
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
279
    mandir=$ac_optarg ;;
 
280
 
 
281
  -nfp | --nfp | --nf)
 
282
    # Obsolete; use --without-fp.
 
283
    with_fp=no ;;
 
284
 
 
285
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
286
  | --no-cr | --no-c)
 
287
    no_create=yes ;;
 
288
 
 
289
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
290
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
291
    no_recursion=yes ;;
 
292
 
 
293
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
294
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
295
  | --oldin | --oldi | --old | --ol | --o)
 
296
    ac_prev=oldincludedir ;;
 
297
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
298
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
299
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
300
    oldincludedir=$ac_optarg ;;
 
301
 
 
302
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
303
    ac_prev=prefix ;;
 
304
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
305
    prefix=$ac_optarg ;;
 
306
 
 
307
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
308
  | --program-pre | --program-pr | --program-p)
 
309
    ac_prev=program_prefix ;;
 
310
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
311
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
312
    program_prefix=$ac_optarg ;;
 
313
 
 
314
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
315
  | --program-suf | --program-su | --program-s)
 
316
    ac_prev=program_suffix ;;
 
317
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
318
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
319
    program_suffix=$ac_optarg ;;
 
320
 
 
321
  -program-transform-name | --program-transform-name \
 
322
  | --program-transform-nam | --program-transform-na \
 
323
  | --program-transform-n | --program-transform- \
 
324
  | --program-transform | --program-transfor \
 
325
  | --program-transfo | --program-transf \
 
326
  | --program-trans | --program-tran \
 
327
  | --progr-tra | --program-tr | --program-t)
 
328
    ac_prev=program_transform_name ;;
 
329
  -program-transform-name=* | --program-transform-name=* \
 
330
  | --program-transform-nam=* | --program-transform-na=* \
 
331
  | --program-transform-n=* | --program-transform-=* \
 
332
  | --program-transform=* | --program-transfor=* \
 
333
  | --program-transfo=* | --program-transf=* \
 
334
  | --program-trans=* | --program-tran=* \
 
335
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
336
    program_transform_name=$ac_optarg ;;
 
337
 
 
338
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
339
  | -silent | --silent | --silen | --sile | --sil)
 
340
    silent=yes ;;
 
341
 
 
342
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
343
    ac_prev=sbindir ;;
 
344
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
345
  | --sbi=* | --sb=*)
 
346
    sbindir=$ac_optarg ;;
 
347
 
 
348
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
349
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
350
  | --sharedst | --shareds | --shared | --share | --shar \
 
351
  | --sha | --sh)
 
352
    ac_prev=sharedstatedir ;;
 
353
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
354
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
355
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
356
  | --sha=* | --sh=*)
 
357
    sharedstatedir=$ac_optarg ;;
 
358
 
 
359
  -site | --site | --sit)
 
360
    ac_prev=site ;;
 
361
  -site=* | --site=* | --sit=*)
 
362
    site=$ac_optarg ;;
 
363
 
 
364
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
365
    ac_prev=srcdir ;;
 
366
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
367
    srcdir=$ac_optarg ;;
 
368
 
 
369
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
370
  | --syscon | --sysco | --sysc | --sys | --sy)
 
371
    ac_prev=sysconfdir ;;
 
372
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
373
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
374
    sysconfdir=$ac_optarg ;;
 
375
 
 
376
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
377
    ac_prev=target_alias ;;
 
378
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
379
    target_alias=$ac_optarg ;;
 
380
 
 
381
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
382
    verbose=yes ;;
 
383
 
 
384
  -version | --version | --versio | --versi | --vers | -V)
 
385
    ac_init_version=: ;;
 
386
 
 
387
  -with-* | --with-*)
 
388
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
389
    # Reject names that are not valid shell variable names.
 
390
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
391
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
392
   { (exit 1); exit 1; }; }
 
393
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
394
    case $ac_option in
 
395
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
396
      *) ac_optarg=yes ;;
 
397
    esac
 
398
    eval "with_$ac_package='$ac_optarg'" ;;
 
399
 
 
400
  -without-* | --without-*)
 
401
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
402
    # Reject names that are not valid shell variable names.
 
403
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
404
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
405
   { (exit 1); exit 1; }; }
 
406
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
407
    eval "with_$ac_package=no" ;;
 
408
 
 
409
  --x)
 
410
    # Obsolete; use --with-x.
 
411
    with_x=yes ;;
 
412
 
 
413
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
414
  | --x-incl | --x-inc | --x-in | --x-i)
 
415
    ac_prev=x_includes ;;
 
416
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
417
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
418
    x_includes=$ac_optarg ;;
 
419
 
 
420
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
421
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
422
    ac_prev=x_libraries ;;
 
423
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
424
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
425
    x_libraries=$ac_optarg ;;
 
426
 
 
427
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
428
Try \`$0 --help' for more information." >&2
 
429
   { (exit 1); exit 1; }; }
 
430
    ;;
 
431
 
 
432
  *=*)
 
433
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
434
    # Reject names that are not valid shell variable names.
 
435
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
436
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
437
   { (exit 1); exit 1; }; }
 
438
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
439
    eval "$ac_envvar='$ac_optarg'"
 
440
    export $ac_envvar ;;
 
441
 
 
442
  *)
 
443
    # FIXME: should be removed in autoconf 3.0.
 
444
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
445
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
446
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
447
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
448
    ;;
 
449
 
 
450
  esac
 
451
done
 
452
 
 
453
if test -n "$ac_prev"; then
 
454
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
455
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
456
   { (exit 1); exit 1; }; }
 
457
fi
 
458
 
 
459
# Be sure to have absolute paths.
 
460
for ac_var in exec_prefix prefix
 
461
do
 
462
  eval ac_val=$`echo $ac_var`
 
463
  case $ac_val in
 
464
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
465
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
466
   { (exit 1); exit 1; }; };;
 
467
  esac
 
468
done
 
469
 
 
470
# Be sure to have absolute paths.
 
471
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
472
              localstatedir libdir includedir oldincludedir infodir mandir
 
473
do
 
474
  eval ac_val=$`echo $ac_var`
 
475
  case $ac_val in
 
476
    [\\/$]* | ?:[\\/]* ) ;;
 
477
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
478
   { (exit 1); exit 1; }; };;
 
479
  esac
 
480
done
 
481
 
 
482
# There might be people who depend on the old broken behavior: `$host'
 
483
# used to hold the argument of --host etc.
 
484
build=$build_alias
 
485
host=$host_alias
 
486
target=$target_alias
 
487
 
 
488
# FIXME: should be removed in autoconf 3.0.
 
489
if test "x$host_alias" != x; then
 
490
  if test "x$build_alias" = x; then
 
491
    cross_compiling=maybe
 
492
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
493
    If a cross compiler is detected then cross compile mode will be used." >&2
 
494
  elif test "x$build_alias" != "x$host_alias"; then
 
495
    cross_compiling=yes
 
496
  fi
 
497
fi
 
498
 
 
499
ac_tool_prefix=
 
500
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
501
 
 
502
test "$silent" = yes && exec 6>/dev/null
 
503
 
 
504
# Find the source files, if location was not specified.
 
505
if test -z "$srcdir"; then
 
506
  ac_srcdir_defaulted=yes
 
507
  # Try the directory containing this script, then its parent.
 
508
  ac_prog=$0
 
509
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
 
510
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
511
  srcdir=$ac_confdir
 
512
  if test ! -r $srcdir/$ac_unique_file; then
 
513
    srcdir=..
 
514
  fi
 
515
else
 
516
  ac_srcdir_defaulted=no
 
517
fi
 
518
if test ! -r $srcdir/$ac_unique_file; then
 
519
  if test "$ac_srcdir_defaulted" = yes; then
 
520
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
521
   { (exit 1); exit 1; }; }
 
522
  else
 
523
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
524
   { (exit 1); exit 1; }; }
 
525
  fi
 
526
fi
 
527
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
528
ac_env_build_alias_set=${build_alias+set}
 
529
ac_env_build_alias_value=$build_alias
 
530
ac_cv_env_build_alias_set=${build_alias+set}
 
531
ac_cv_env_build_alias_value=$build_alias
 
532
ac_env_host_alias_set=${host_alias+set}
 
533
ac_env_host_alias_value=$host_alias
 
534
ac_cv_env_host_alias_set=${host_alias+set}
 
535
ac_cv_env_host_alias_value=$host_alias
 
536
ac_env_target_alias_set=${target_alias+set}
 
537
ac_env_target_alias_value=$target_alias
 
538
ac_cv_env_target_alias_set=${target_alias+set}
 
539
ac_cv_env_target_alias_value=$target_alias
 
540
ac_env_CC_set=${CC+set}
 
541
ac_env_CC_value=$CC
 
542
ac_cv_env_CC_set=${CC+set}
 
543
ac_cv_env_CC_value=$CC
 
544
ac_env_CFLAGS_set=${CFLAGS+set}
 
545
ac_env_CFLAGS_value=$CFLAGS
 
546
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
547
ac_cv_env_CFLAGS_value=$CFLAGS
 
548
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
549
ac_env_LDFLAGS_value=$LDFLAGS
 
550
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
551
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
552
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
553
ac_env_CPPFLAGS_value=$CPPFLAGS
 
554
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
555
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
556
ac_env_CPP_set=${CPP+set}
 
557
ac_env_CPP_value=$CPP
 
558
ac_cv_env_CPP_set=${CPP+set}
 
559
ac_cv_env_CPP_value=$CPP
 
560
 
 
561
#
 
562
# Report the --help message.
 
563
#
 
564
if test "$ac_init_help" = "long"; then
 
565
  # Omit some internal or obsolete options to make the list less imposing.
 
566
  # This message is too long to be a string in the A/UX 3.1 sh.
 
567
  cat <<EOF
 
568
\`configure' configures this package to adapt to many kinds of systems.
 
569
 
 
570
Usage: $0 [OPTION]... [VAR=VALUE]...
 
571
 
 
572
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
573
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
574
 
 
575
Defaults for the options are specified in brackets.
 
576
 
 
577
Configuration:
 
578
  -h, --help              display this help and exit
 
579
      --help=short        display options specific to this package
 
580
      --help=recursive    display the short help of all the included packages
 
581
  -V, --version           display version information and exit
 
582
  -q, --quiet, --silent   do not print \`checking...' messages
 
583
      --cache-file=FILE   cache test results in FILE [disabled]
 
584
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
585
  -n, --no-create         do not create output files
 
586
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
587
 
 
588
EOF
 
589
 
 
590
  cat <<EOF
 
591
Installation directories:
 
592
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
593
                          [$ac_default_prefix]
 
594
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
595
                          [PREFIX]
 
596
 
 
597
By default, \`make install' will install all the files in
 
598
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
599
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
600
for instance \`--prefix=\$HOME'.
 
601
 
 
602
For better control, use the options below.
 
603
 
 
604
Fine tuning of the installation directories:
 
605
  --bindir=DIR           user executables [EPREFIX/bin]
 
606
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
607
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
608
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
609
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
610
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
611
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
612
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
613
  --includedir=DIR       C header files [PREFIX/include]
 
614
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
615
  --infodir=DIR          info documentation [PREFIX/info]
 
616
  --mandir=DIR           man documentation [PREFIX/man]
 
617
EOF
 
618
 
 
619
  cat <<\EOF
 
620
 
 
621
System types:
 
622
  --build=BUILD     configure for building on BUILD [guessed]
 
623
  --host=HOST       build programs to run on HOST [BUILD]
 
624
EOF
 
625
fi
 
626
 
 
627
if test -n "$ac_init_help"; then
 
628
 
 
629
  cat <<\EOF
 
630
 
 
631
Optional Packages:
 
632
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
633
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
634
  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
 
635
  --with-sge=ARCH         SGE/SGEEE ARCH (LINUX5/LINUX6...)
 
636
 
 
637
Some influential environment variables:
 
638
  CC          C compiler command
 
639
  CFLAGS      C compiler flags
 
640
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
641
              nonstandard directory <lib dir>
 
642
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
643
              headers in a nonstandard directory <include dir>
 
644
  CPP         C preprocessor
 
645
 
 
646
Use these variables to override the choices made by `configure' or to help
 
647
it to find libraries and programs with nonstandard names/locations.
 
648
 
 
649
EOF
 
650
fi
 
651
 
 
652
if test "$ac_init_help" = "recursive"; then
 
653
  # If there are subdirs, report their specific --help.
 
654
  ac_popdir=`pwd`
 
655
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
 
656
    cd $ac_subdir
 
657
    # A "../" for each directory in /$ac_subdir.
 
658
    ac_dots=`echo $ac_subdir |
 
659
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
 
660
 
 
661
    case $srcdir in
 
662
    .) # No --srcdir option.  We are building in place.
 
663
      ac_sub_srcdir=$srcdir ;;
 
664
    [\\/]* | ?:[\\/]* ) # Absolute path.
 
665
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
 
666
    *) # Relative path.
 
667
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
 
668
    esac
 
669
 
 
670
    # Check for guested configure; otherwise get Cygnus style configure.
 
671
    if test -f $ac_sub_srcdir/configure.gnu; then
 
672
      echo
 
673
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
 
674
    elif test -f $ac_sub_srcdir/configure; then
 
675
      echo
 
676
      $SHELL $ac_sub_srcdir/configure  --help=recursive
 
677
    elif test -f $ac_sub_srcdir/configure.ac ||
 
678
           test -f $ac_sub_srcdir/configure.in; then
 
679
      echo
 
680
      $ac_configure --help
 
681
    else
 
682
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
683
    fi
 
684
    cd $ac_popdir
 
685
  done
 
686
fi
 
687
 
 
688
test -n "$ac_init_help" && exit 0
 
689
if $ac_init_version; then
 
690
  cat <<\EOF
 
691
 
 
692
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
693
Free Software Foundation, Inc.
 
694
This configure script is free software; the Free Software Foundation
 
695
gives unlimited permission to copy, distribute and modify it.
 
696
EOF
 
697
  exit 0
 
698
fi
 
699
exec 5>config.log
 
700
cat >&5 <<EOF
 
701
This file contains any messages produced by compilers while
 
702
running configure, to aid debugging if configure makes a mistake.
 
703
 
 
704
It was created by $as_me, which was
 
705
generated by GNU Autoconf 2.52.  Invocation command line was
 
706
 
 
707
  $ $0 $@
 
708
 
 
709
EOF
 
710
{
 
711
cat <<_ASUNAME
 
712
## ---------- ##
 
713
## Platform.  ##
 
714
## ---------- ##
 
715
 
 
716
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
717
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
718
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
719
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
720
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
721
 
 
722
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
723
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
724
 
 
725
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
726
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
727
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
728
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
729
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
730
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
731
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
732
 
 
733
PATH = $PATH
 
734
 
 
735
_ASUNAME
 
736
} >&5
 
737
 
 
738
cat >&5 <<EOF
 
739
## ------------ ##
 
740
## Core tests.  ##
 
741
## ------------ ##
 
742
 
 
743
EOF
 
744
 
 
745
# Keep a trace of the command line.
 
746
# Strip out --no-create and --no-recursion so they do not pile up.
 
747
# Also quote any args containing shell meta-characters.
 
748
ac_configure_args=
 
749
ac_sep=
 
750
for ac_arg
 
751
do
 
752
  case $ac_arg in
 
753
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
754
  | --no-cr | --no-c) ;;
 
755
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
756
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
757
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
758
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
759
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
760
    ac_sep=" " ;;
 
761
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
762
     ac_sep=" " ;;
 
763
  esac
 
764
  # Get rid of the leading space.
 
765
done
 
766
 
 
767
# When interrupted or exit'd, cleanup temporary files, and complete
 
768
# config.log.  We remove comments because anyway the quotes in there
 
769
# would cause problems or look ugly.
 
770
trap 'exit_status=$?
 
771
  # Save into config.log some information that might help in debugging.
 
772
  echo >&5
 
773
  echo "## ----------------- ##" >&5
 
774
  echo "## Cache variables.  ##" >&5
 
775
  echo "## ----------------- ##" >&5
 
776
  echo >&5
 
777
  # The following way of writing the cache mishandles newlines in values,
 
778
{
 
779
  (set) 2>&1 |
 
780
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
781
    *ac_space=\ *)
 
782
      sed -n \
 
783
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
784
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
785
      ;;
 
786
    *)
 
787
      sed -n \
 
788
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
789
      ;;
 
790
    esac;
 
791
} >&5
 
792
  sed "/^$/d" confdefs.h >conftest.log
 
793
  if test -s conftest.log; then
 
794
    echo >&5
 
795
    echo "## ------------ ##" >&5
 
796
    echo "## confdefs.h.  ##" >&5
 
797
    echo "## ------------ ##" >&5
 
798
    echo >&5
 
799
    cat conftest.log >&5
 
800
  fi
 
801
  (echo; echo) >&5
 
802
  test "$ac_signal" != 0 &&
 
803
    echo "$as_me: caught signal $ac_signal" >&5
 
804
  echo "$as_me: exit $exit_status" >&5
 
805
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
806
    exit $exit_status
 
807
     ' 0
 
808
for ac_signal in 1 2 13 15; do
 
809
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
810
done
 
811
ac_signal=0
 
812
 
 
813
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
814
rm -rf conftest* confdefs.h
 
815
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
816
echo >confdefs.h
 
817
 
 
818
# Let the site file select an alternate cache file if it wants to.
 
819
# Prefer explicitly selected file to automatically selected ones.
 
820
if test -z "$CONFIG_SITE"; then
 
821
  if test "x$prefix" != xNONE; then
 
822
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
823
  else
 
824
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
825
  fi
 
826
fi
 
827
for ac_site_file in $CONFIG_SITE; do
 
828
  if test -r "$ac_site_file"; then
 
829
    { echo "$as_me:829: loading site script $ac_site_file" >&5
 
830
echo "$as_me: loading site script $ac_site_file" >&6;}
 
831
    cat "$ac_site_file" >&5
 
832
    . "$ac_site_file"
 
833
  fi
 
834
done
 
835
 
 
836
if test -r "$cache_file"; then
 
837
  # Some versions of bash will fail to source /dev/null (special
 
838
  # files actually), so we avoid doing that.
 
839
  if test -f "$cache_file"; then
 
840
    { echo "$as_me:840: loading cache $cache_file" >&5
 
841
echo "$as_me: loading cache $cache_file" >&6;}
 
842
    case $cache_file in
 
843
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
844
      *)                      . ./$cache_file;;
 
845
    esac
 
846
  fi
 
847
else
 
848
  { echo "$as_me:848: creating cache $cache_file" >&5
 
849
echo "$as_me: creating cache $cache_file" >&6;}
 
850
  >$cache_file
 
851
fi
 
852
 
 
853
# Check that the precious variables saved in the cache have kept the same
 
854
# value.
 
855
ac_cache_corrupted=false
 
856
for ac_var in `(set) 2>&1 |
 
857
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
858
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
859
  eval ac_new_set=\$ac_env_${ac_var}_set
 
860
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
861
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
862
  case $ac_old_set,$ac_new_set in
 
863
    set,)
 
864
      { echo "$as_me:864: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
865
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
866
      ac_cache_corrupted=: ;;
 
867
    ,set)
 
868
      { echo "$as_me:868: error: \`$ac_var' was not set in the previous run" >&5
 
869
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
870
      ac_cache_corrupted=: ;;
 
871
    ,);;
 
872
    *)
 
873
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
874
        { echo "$as_me:874: error: \`$ac_var' has changed since the previous run:" >&5
 
875
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
876
        { echo "$as_me:876:   former value:  $ac_old_val" >&5
 
877
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
878
        { echo "$as_me:878:   current value: $ac_new_val" >&5
 
879
echo "$as_me:   current value: $ac_new_val" >&2;}
 
880
        ac_cache_corrupted=:
 
881
      fi;;
 
882
  esac
 
883
  # Pass precious variables to config.status.  It doesn't matter if
 
884
  # we pass some twice (in addition to the command line arguments).
 
885
  if test "$ac_new_set" = set; then
 
886
    case $ac_new_val in
 
887
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
888
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 
889
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
890
      ;;
 
891
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 
892
       ;;
 
893
    esac
 
894
  fi
 
895
done
 
896
if $ac_cache_corrupted; then
 
897
  { echo "$as_me:897: error: changes in the environment can compromise the build" >&5
 
898
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
899
  { { echo "$as_me:899: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
900
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
901
   { (exit 1); exit 1; }; }
 
902
fi
 
903
 
 
904
ac_ext=c
 
905
ac_cpp='$CPP $CPPFLAGS'
 
906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
909
 
 
910
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
911
  *c*,-n*) ECHO_N= ECHO_C='
 
912
' ECHO_T='      ' ;;
 
913
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
914
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
915
esac
 
916
echo "#! $SHELL" >conftest.sh
 
917
echo  "exit 0"   >>conftest.sh
 
918
chmod +x conftest.sh
 
919
if { (echo "$as_me:919: PATH=\".;.\"; conftest.sh") >&5
 
920
  (PATH=".;."; conftest.sh) 2>&5
 
921
  ac_status=$?
 
922
  echo "$as_me:922: \$? = $ac_status" >&5
 
923
  (exit $ac_status); }; then
 
924
  ac_path_separator=';'
 
925
else
 
926
  ac_path_separator=:
 
927
fi
 
928
PATH_SEPARATOR="$ac_path_separator"
 
929
rm -f conftest.sh
 
930
 
 
931
ac_aux_dir=
 
932
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
933
  if test -f $ac_dir/install-sh; then
 
934
    ac_aux_dir=$ac_dir
 
935
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
936
    break
 
937
  elif test -f $ac_dir/install.sh; then
 
938
    ac_aux_dir=$ac_dir
 
939
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
940
    break
 
941
  elif test -f $ac_dir/shtool; then
 
942
    ac_aux_dir=$ac_dir
 
943
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
944
    break
 
945
  fi
 
946
done
 
947
if test -z "$ac_aux_dir"; then
 
948
  { { echo "$as_me:948: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
949
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
950
   { (exit 1); exit 1; }; }
 
951
fi
 
952
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
953
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
954
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
955
 
 
956
# Make sure we can run config.sub.
 
957
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
958
  { { echo "$as_me:958: error: cannot run $ac_config_sub" >&5
 
959
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
960
   { (exit 1); exit 1; }; }
 
961
 
 
962
echo "$as_me:962: checking build system type" >&5
 
963
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
964
if test "${ac_cv_build+set}" = set; then
 
965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
966
else
 
967
  ac_cv_build_alias=$build_alias
 
968
test -z "$ac_cv_build_alias" &&
 
969
  ac_cv_build_alias=`$ac_config_guess`
 
970
test -z "$ac_cv_build_alias" &&
 
971
  { { echo "$as_me:971: error: cannot guess build type; you must specify one" >&5
 
972
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
973
   { (exit 1); exit 1; }; }
 
974
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
975
  { { echo "$as_me:975: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 
976
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
977
   { (exit 1); exit 1; }; }
 
978
 
 
979
fi
 
980
echo "$as_me:980: result: $ac_cv_build" >&5
 
981
echo "${ECHO_T}$ac_cv_build" >&6
 
982
build=$ac_cv_build
 
983
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
984
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
985
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
986
 
 
987
echo "$as_me:987: checking host system type" >&5
 
988
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
989
if test "${ac_cv_host+set}" = set; then
 
990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
991
else
 
992
  ac_cv_host_alias=$host_alias
 
993
test -z "$ac_cv_host_alias" &&
 
994
  ac_cv_host_alias=$ac_cv_build_alias
 
995
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
996
  { { echo "$as_me:996: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
997
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
998
   { (exit 1); exit 1; }; }
 
999
 
 
1000
fi
 
1001
echo "$as_me:1001: result: $ac_cv_host" >&5
 
1002
echo "${ECHO_T}$ac_cv_host" >&6
 
1003
host=$ac_cv_host
 
1004
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1005
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1006
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1007
 
 
1008
echo "$as_me:1008: checking cached host tuple" >&5
 
1009
echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6
 
1010
if { test x"${ac_cv_host_system_type+set}" = x"set" &&
 
1011
     test x"$ac_cv_host_system_type" != x"$host"; }; then
 
1012
  echo "$as_me:1012: result: different" >&5
 
1013
echo "${ECHO_T}different" >&6
 
1014
  { { echo "$as_me:1014: error: remove config.cache and re-run configure" >&5
 
1015
echo "$as_me: error: remove config.cache and re-run configure" >&2;}
 
1016
   { (exit 1); exit 1; }; }
 
1017
else
 
1018
  echo "$as_me:1018: result: ok" >&5
 
1019
echo "${ECHO_T}ok" >&6
 
1020
fi
 
1021
ac_cv_host_system_type="$host"
 
1022
 
 
1023
case "${host}" in
 
1024
 
 
1025
  ## Alpha (DEC) machines.
 
1026
  alpha*-dec-osf* )
 
1027
    tcsh_config_file=decosf1
 
1028
  ;;
 
1029
 
 
1030
  ## Ultrix
 
1031
  *-dec-ultrix* )
 
1032
    tcsh_config_file=ultrix
 
1033
  ;;
 
1034
 
 
1035
  ## DGUX
 
1036
  *-dg-dguxR4* )
 
1037
    tcsh_config_file=dgux5.4
 
1038
  ;;
 
1039
  m88k-dg-dgux5.4R* )
 
1040
    tcsh_config_file=dgux5.4
 
1041
  ;;
 
1042
 
 
1043
  ## HP/UX
 
1044
  *-hp-hpux7* )
 
1045
    tcsh_config_file=hpux7
 
1046
  ;;
 
1047
  *-hp-hpux[89]* )
 
1048
    tcsh_config_file=hpux8
 
1049
  ;;
 
1050
  *-hp-hpux1[0-9]* )
 
1051
    tcsh_config_file=hpux8
 
1052
  ;;
 
1053
 
 
1054
  ## IBM AIX systems
 
1055
  *-ibm-aix*)
 
1056
    tcsh_config_file=aix
 
1057
  ;;
 
1058
 
 
1059
  ## SX-4
 
1060
  sx4-nec-*)
 
1061
    CC='cc -h0,ansi,novector,float0'
 
1062
    LDFLAGS='-Gsmall'
 
1063
    tcsh_config_file=superux8
 
1064
  ;;
 
1065
 
 
1066
  ## Linux
 
1067
  *-*-linux* )
 
1068
    tcsh_config_file=linux
 
1069
  ;;
 
1070
 
 
1071
  ## Motorola systems
 
1072
  m68k-motorola-sysv* )
 
1073
    tcsh_config_file=sysV68
 
1074
  ;;
 
1075
  m88k-motorola-sysv3* )
 
1076
    tcsh_config_file=sysV88
 
1077
  ;;
 
1078
 
 
1079
  ## NetBSD systems
 
1080
  *-*-netbsd*)
 
1081
    tcsh_config_file=bsd4.4
 
1082
  ;;
 
1083
 
 
1084
  ## FreeBSD systems
 
1085
  *-*-freebsd*)
 
1086
    tcsh_config_file=bsd4.4
 
1087
  ;;
 
1088
 
 
1089
  ## OpenBSD systems
 
1090
  *-*-openbsd*)
 
1091
    tcsh_config_file=bsd4.4
 
1092
  ;;
 
1093
 
 
1094
  ## BSDI systems
 
1095
  *-*-bsdi*)
 
1096
    tcsh_config_file=bsd4.4
 
1097
  ;;
 
1098
 
 
1099
  ## Mac OS X Server
 
1100
  *-*-rhapsody* )
 
1101
    tcsh_config_file=bsd4.4
 
1102
  ;;
 
1103
 
 
1104
  ## Mac OS X Server
 
1105
  *darwin* )
 
1106
    tcsh_config_file=bsd4.4
 
1107
  ;;
 
1108
 
 
1109
  ## Silicon Graphics machines
 
1110
  *-sgi-iri* )
 
1111
    tcsh_config_file=irix
 
1112
    case "${host_os}" in
 
1113
      irix[34]*) # Irix-3.x - Irix 4.x
 
1114
        NON_GNU_DFLAGS='-D__STDC__'
 
1115
        LIBS='-lsun -lbsd -lc_s'
 
1116
      ;;
 
1117
      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
 
1118
        LIBS='-lbsd'
 
1119
      ;;
 
1120
      irix6.[2-9]*) # Irix 6.2 and later
 
1121
        tcsh_config_file=irix62
 
1122
      ;;
 
1123
    esac
 
1124
  ;;
 
1125
 
 
1126
  ## Suns
 
1127
  *-sun-sunos3* )
 
1128
    tcsh_config_file=sunos35
 
1129
  ;;
 
1130
  *-sun-sunos4.0* )
 
1131
    tcsh_config_file=sunos40
 
1132
  ;;
 
1133
  *-sun-sunos4.1.[12]* )
 
1134
    tcsh_config_file=sunos41
 
1135
  ;;
 
1136
  *-sun-sunos4.1.[3456]* )
 
1137
    tcsh_config_file=sunos413
 
1138
  ;;
 
1139
  *-*-solaris2.[01]* ) # Should handle sparc or x86
 
1140
    tcsh_config_file=sol2
 
1141
  ;;
 
1142
  *-sun-solaris2.2* ) # Sparc only release
 
1143
    tcsh_config_file=sol22
 
1144
  ;;
 
1145
  *-sun-solaris2.3* ) # Sparc only release
 
1146
    tcsh_config_file=sol23
 
1147
  ;;
 
1148
  *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc
 
1149
    tcsh_config_file=sol24
 
1150
  ;;
 
1151
  *-*-solaris2.7 ) # Should handle sparc, x86 and powerpc
 
1152
    tcsh_config_file=sol26
 
1153
    CFLAGS=-xarch=v9
 
1154
  ;;
 
1155
  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
 
1156
    tcsh_config_file=sol26
 
1157
  ;;
 
1158
  ## Dell SVR4
 
1159
  *-dell-sysv4* )
 
1160
    tcsh_config_file=sysv4
 
1161
    DFLAGS="$DFLAGS -DDELL"
 
1162
  ;;
 
1163
 
 
1164
  ## SVR4 (Generic and otherwise)
 
1165
  *-*-sysv4* )
 
1166
    tcsh_config_file=sysv4
 
1167
  ;;
 
1168
 
 
1169
  ## Tektronix systems
 
1170
  m68k-tektronix-bsd* )
 
1171
    tcsh_config_file=bsd
 
1172
    NON_GNU_DFLAGS='-DBSD -DUTek'
 
1173
  ;;
 
1174
  m88k-tektronix-sysv3* )
 
1175
    tcsh_config_file=tekXD88
 
1176
  ;;
 
1177
 
 
1178
  ## SCO
 
1179
  *-sco3.2v5*)
 
1180
    tcsh_config_file=sco32v5
 
1181
  ;;
 
1182
  *-sco3.2v4*)
 
1183
    tcsh_config_file=sco32v4
 
1184
  ;;
 
1185
  *-sco3.2v2*)
 
1186
    tcsh_config_file=sco32v2
 
1187
  ;;
 
1188
 
 
1189
  ## Siemens BS2000 Mainframe
 
1190
  bs2000-siemens-posix)
 
1191
    tcsh_config_file=bs2000
 
1192
  ;;
 
1193
 
 
1194
  ## Convex
 
1195
  *-convex*)
 
1196
    tcsh_config_file=convex
 
1197
  ;;
 
1198
 
 
1199
  ## Cray
 
1200
  *-cray-unicos*)
 
1201
    tcsh_config_file=cray
 
1202
  ;;
 
1203
 
 
1204
  ## Cygnus GNU Win32
 
1205
  *-cygwin)
 
1206
    tcsh_config_file=cygwin32
 
1207
  ;;
 
1208
 
 
1209
  * )
 
1210
    { { echo "$as_me:1210: error: Tcsh can't guess the configuration file name
 
1211
for \`${host}' systems.
 
1212
Check tcsh's \`Ported' file for manual configuration instructions." >&5
 
1213
echo "$as_me: error: Tcsh can't guess the configuration file name
 
1214
for \`${host}' systems.
 
1215
Check tcsh's \`Ported' file for manual configuration instructions." >&2;}
 
1216
   { (exit 1); exit 1; }; }
 
1217
    ;;
 
1218
 
 
1219
esac
 
1220
 
 
1221
echo "Tcsh will use configuration file \`$tcsh_config_file'."
 
1222
 
 
1223
ac_config_headers="$ac_config_headers config.h:config/${tcsh_config_file}:config.h.in"
 
1224
 
 
1225
ac_ext=c
 
1226
ac_cpp='$CPP $CPPFLAGS'
 
1227
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1228
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1229
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1230
if test -n "$ac_tool_prefix"; then
 
1231
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1232
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1233
echo "$as_me:1233: checking for $ac_word" >&5
 
1234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1235
if test "${ac_cv_prog_CC+set}" = set; then
 
1236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1237
else
 
1238
  if test -n "$CC"; then
 
1239
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1240
else
 
1241
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1242
ac_dummy="$PATH"
 
1243
for ac_dir in $ac_dummy; do
 
1244
  IFS=$ac_save_IFS
 
1245
  test -z "$ac_dir" && ac_dir=.
 
1246
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1247
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1248
echo "$as_me:1248: found $ac_dir/$ac_word" >&5
 
1249
break
 
1250
done
 
1251
 
 
1252
fi
 
1253
fi
 
1254
CC=$ac_cv_prog_CC
 
1255
if test -n "$CC"; then
 
1256
  echo "$as_me:1256: result: $CC" >&5
 
1257
echo "${ECHO_T}$CC" >&6
 
1258
else
 
1259
  echo "$as_me:1259: result: no" >&5
 
1260
echo "${ECHO_T}no" >&6
 
1261
fi
 
1262
 
 
1263
fi
 
1264
if test -z "$ac_cv_prog_CC"; then
 
1265
  ac_ct_CC=$CC
 
1266
  # Extract the first word of "gcc", so it can be a program name with args.
 
1267
set dummy gcc; ac_word=$2
 
1268
echo "$as_me:1268: checking for $ac_word" >&5
 
1269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1270
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1272
else
 
1273
  if test -n "$ac_ct_CC"; then
 
1274
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1275
else
 
1276
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1277
ac_dummy="$PATH"
 
1278
for ac_dir in $ac_dummy; do
 
1279
  IFS=$ac_save_IFS
 
1280
  test -z "$ac_dir" && ac_dir=.
 
1281
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1282
ac_cv_prog_ac_ct_CC="gcc"
 
1283
echo "$as_me:1283: found $ac_dir/$ac_word" >&5
 
1284
break
 
1285
done
 
1286
 
 
1287
fi
 
1288
fi
 
1289
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1290
if test -n "$ac_ct_CC"; then
 
1291
  echo "$as_me:1291: result: $ac_ct_CC" >&5
 
1292
echo "${ECHO_T}$ac_ct_CC" >&6
 
1293
else
 
1294
  echo "$as_me:1294: result: no" >&5
 
1295
echo "${ECHO_T}no" >&6
 
1296
fi
 
1297
 
 
1298
  CC=$ac_ct_CC
 
1299
else
 
1300
  CC="$ac_cv_prog_CC"
 
1301
fi
 
1302
 
 
1303
if test -z "$CC"; then
 
1304
  if test -n "$ac_tool_prefix"; then
 
1305
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1306
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1307
echo "$as_me:1307: checking for $ac_word" >&5
 
1308
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1309
if test "${ac_cv_prog_CC+set}" = set; then
 
1310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1311
else
 
1312
  if test -n "$CC"; then
 
1313
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1314
else
 
1315
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1316
ac_dummy="$PATH"
 
1317
for ac_dir in $ac_dummy; do
 
1318
  IFS=$ac_save_IFS
 
1319
  test -z "$ac_dir" && ac_dir=.
 
1320
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1321
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1322
echo "$as_me:1322: found $ac_dir/$ac_word" >&5
 
1323
break
 
1324
done
 
1325
 
 
1326
fi
 
1327
fi
 
1328
CC=$ac_cv_prog_CC
 
1329
if test -n "$CC"; then
 
1330
  echo "$as_me:1330: result: $CC" >&5
 
1331
echo "${ECHO_T}$CC" >&6
 
1332
else
 
1333
  echo "$as_me:1333: result: no" >&5
 
1334
echo "${ECHO_T}no" >&6
 
1335
fi
 
1336
 
 
1337
fi
 
1338
if test -z "$ac_cv_prog_CC"; then
 
1339
  ac_ct_CC=$CC
 
1340
  # Extract the first word of "cc", so it can be a program name with args.
 
1341
set dummy cc; ac_word=$2
 
1342
echo "$as_me:1342: checking for $ac_word" >&5
 
1343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1344
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1346
else
 
1347
  if test -n "$ac_ct_CC"; then
 
1348
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1349
else
 
1350
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1351
ac_dummy="$PATH"
 
1352
for ac_dir in $ac_dummy; do
 
1353
  IFS=$ac_save_IFS
 
1354
  test -z "$ac_dir" && ac_dir=.
 
1355
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1356
ac_cv_prog_ac_ct_CC="cc"
 
1357
echo "$as_me:1357: found $ac_dir/$ac_word" >&5
 
1358
break
 
1359
done
 
1360
 
 
1361
fi
 
1362
fi
 
1363
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1364
if test -n "$ac_ct_CC"; then
 
1365
  echo "$as_me:1365: result: $ac_ct_CC" >&5
 
1366
echo "${ECHO_T}$ac_ct_CC" >&6
 
1367
else
 
1368
  echo "$as_me:1368: result: no" >&5
 
1369
echo "${ECHO_T}no" >&6
 
1370
fi
 
1371
 
 
1372
  CC=$ac_ct_CC
 
1373
else
 
1374
  CC="$ac_cv_prog_CC"
 
1375
fi
 
1376
 
 
1377
fi
 
1378
if test -z "$CC"; then
 
1379
  # Extract the first word of "cc", so it can be a program name with args.
 
1380
set dummy cc; ac_word=$2
 
1381
echo "$as_me:1381: checking for $ac_word" >&5
 
1382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1383
if test "${ac_cv_prog_CC+set}" = set; then
 
1384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1385
else
 
1386
  if test -n "$CC"; then
 
1387
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1388
else
 
1389
  ac_prog_rejected=no
 
1390
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1391
ac_dummy="$PATH"
 
1392
for ac_dir in $ac_dummy; do
 
1393
  IFS=$ac_save_IFS
 
1394
  test -z "$ac_dir" && ac_dir=.
 
1395
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1396
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1397
  ac_prog_rejected=yes
 
1398
  continue
 
1399
fi
 
1400
ac_cv_prog_CC="cc"
 
1401
echo "$as_me:1401: found $ac_dir/$ac_word" >&5
 
1402
break
 
1403
done
 
1404
 
 
1405
if test $ac_prog_rejected = yes; then
 
1406
  # We found a bogon in the path, so make sure we never use it.
 
1407
  set dummy $ac_cv_prog_CC
 
1408
  shift
 
1409
  if test $# != 0; then
 
1410
    # We chose a different compiler from the bogus one.
 
1411
    # However, it has the same basename, so the bogon will be chosen
 
1412
    # first if we set CC to just the basename; use the full file name.
 
1413
    shift
 
1414
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
 
1415
    shift
 
1416
    ac_cv_prog_CC="$@"
 
1417
  fi
 
1418
fi
 
1419
fi
 
1420
fi
 
1421
CC=$ac_cv_prog_CC
 
1422
if test -n "$CC"; then
 
1423
  echo "$as_me:1423: result: $CC" >&5
 
1424
echo "${ECHO_T}$CC" >&6
 
1425
else
 
1426
  echo "$as_me:1426: result: no" >&5
 
1427
echo "${ECHO_T}no" >&6
 
1428
fi
 
1429
 
 
1430
fi
 
1431
if test -z "$CC"; then
 
1432
  if test -n "$ac_tool_prefix"; then
 
1433
  for ac_prog in cl
 
1434
  do
 
1435
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1436
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1437
echo "$as_me:1437: checking for $ac_word" >&5
 
1438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1439
if test "${ac_cv_prog_CC+set}" = set; then
 
1440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1441
else
 
1442
  if test -n "$CC"; then
 
1443
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1444
else
 
1445
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1446
ac_dummy="$PATH"
 
1447
for ac_dir in $ac_dummy; do
 
1448
  IFS=$ac_save_IFS
 
1449
  test -z "$ac_dir" && ac_dir=.
 
1450
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1451
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1452
echo "$as_me:1452: found $ac_dir/$ac_word" >&5
 
1453
break
 
1454
done
 
1455
 
 
1456
fi
 
1457
fi
 
1458
CC=$ac_cv_prog_CC
 
1459
if test -n "$CC"; then
 
1460
  echo "$as_me:1460: result: $CC" >&5
 
1461
echo "${ECHO_T}$CC" >&6
 
1462
else
 
1463
  echo "$as_me:1463: result: no" >&5
 
1464
echo "${ECHO_T}no" >&6
 
1465
fi
 
1466
 
 
1467
    test -n "$CC" && break
 
1468
  done
 
1469
fi
 
1470
if test -z "$CC"; then
 
1471
  ac_ct_CC=$CC
 
1472
  for ac_prog in cl
 
1473
do
 
1474
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1475
set dummy $ac_prog; ac_word=$2
 
1476
echo "$as_me:1476: checking for $ac_word" >&5
 
1477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1478
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1480
else
 
1481
  if test -n "$ac_ct_CC"; then
 
1482
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1483
else
 
1484
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1485
ac_dummy="$PATH"
 
1486
for ac_dir in $ac_dummy; do
 
1487
  IFS=$ac_save_IFS
 
1488
  test -z "$ac_dir" && ac_dir=.
 
1489
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1490
ac_cv_prog_ac_ct_CC="$ac_prog"
 
1491
echo "$as_me:1491: found $ac_dir/$ac_word" >&5
 
1492
break
 
1493
done
 
1494
 
 
1495
fi
 
1496
fi
 
1497
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1498
if test -n "$ac_ct_CC"; then
 
1499
  echo "$as_me:1499: result: $ac_ct_CC" >&5
 
1500
echo "${ECHO_T}$ac_ct_CC" >&6
 
1501
else
 
1502
  echo "$as_me:1502: result: no" >&5
 
1503
echo "${ECHO_T}no" >&6
 
1504
fi
 
1505
 
 
1506
  test -n "$ac_ct_CC" && break
 
1507
done
 
1508
 
 
1509
  CC=$ac_ct_CC
 
1510
fi
 
1511
 
 
1512
fi
 
1513
 
 
1514
test -z "$CC" && { { echo "$as_me:1514: error: no acceptable cc found in \$PATH" >&5
 
1515
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
1516
   { (exit 1); exit 1; }; }
 
1517
 
 
1518
# Provide some information about the compiler.
 
1519
echo "$as_me:1519:" \
 
1520
     "checking for C compiler version" >&5
 
1521
ac_compiler=`set X $ac_compile; echo $2`
 
1522
{ (eval echo "$as_me:1522: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1523
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1524
  ac_status=$?
 
1525
  echo "$as_me:1525: \$? = $ac_status" >&5
 
1526
  (exit $ac_status); }
 
1527
{ (eval echo "$as_me:1527: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1528
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1529
  ac_status=$?
 
1530
  echo "$as_me:1530: \$? = $ac_status" >&5
 
1531
  (exit $ac_status); }
 
1532
{ (eval echo "$as_me:1532: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1533
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1534
  ac_status=$?
 
1535
  echo "$as_me:1535: \$? = $ac_status" >&5
 
1536
  (exit $ac_status); }
 
1537
 
 
1538
cat >conftest.$ac_ext <<_ACEOF
 
1539
#line 1539 "configure"
 
1540
#include "confdefs.h"
 
1541
 
 
1542
int
 
1543
main ()
 
1544
{
 
1545
 
 
1546
  ;
 
1547
  return 0;
 
1548
}
 
1549
_ACEOF
 
1550
ac_clean_files_save=$ac_clean_files
 
1551
ac_clean_files="$ac_clean_files a.out a.exe"
 
1552
# Try to create an executable without -o first, disregard a.out.
 
1553
# It will help us diagnose broken compilers, and finding out an intuition
 
1554
# of exeext.
 
1555
echo "$as_me:1555: checking for C compiler default output" >&5
 
1556
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1557
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1558
if { (eval echo "$as_me:1558: \"$ac_link_default\"") >&5
 
1559
  (eval $ac_link_default) 2>&5
 
1560
  ac_status=$?
 
1561
  echo "$as_me:1561: \$? = $ac_status" >&5
 
1562
  (exit $ac_status); }; then
 
1563
  # Find the output, starting from the most likely.  This scheme is
 
1564
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1565
# resort.
 
1566
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 
1567
                ls a.out conftest 2>/dev/null;
 
1568
                ls a.* conftest.* 2>/dev/null`; do
 
1569
  case $ac_file in
 
1570
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1571
    a.out ) # We found the default executable, but exeext='' is most
 
1572
            # certainly right.
 
1573
            break;;
 
1574
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1575
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
1576
          export ac_cv_exeext
 
1577
          break;;
 
1578
    * ) break;;
 
1579
  esac
 
1580
done
 
1581
else
 
1582
  echo "$as_me: failed program was:" >&5
 
1583
cat conftest.$ac_ext >&5
 
1584
{ { echo "$as_me:1584: error: C compiler cannot create executables" >&5
 
1585
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
1586
   { (exit 77); exit 77; }; }
 
1587
fi
 
1588
 
 
1589
ac_exeext=$ac_cv_exeext
 
1590
echo "$as_me:1590: result: $ac_file" >&5
 
1591
echo "${ECHO_T}$ac_file" >&6
 
1592
 
 
1593
# Check the compiler produces executables we can run.  If not, either
 
1594
# the compiler is broken, or we cross compile.
 
1595
echo "$as_me:1595: checking whether the C compiler works" >&5
 
1596
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1597
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1598
# If not cross compiling, check that we can run a simple program.
 
1599
if test "$cross_compiling" != yes; then
 
1600
  if { ac_try='./$ac_file'
 
1601
  { (eval echo "$as_me:1601: \"$ac_try\"") >&5
 
1602
  (eval $ac_try) 2>&5
 
1603
  ac_status=$?
 
1604
  echo "$as_me:1604: \$? = $ac_status" >&5
 
1605
  (exit $ac_status); }; }; then
 
1606
    cross_compiling=no
 
1607
  else
 
1608
    if test "$cross_compiling" = maybe; then
 
1609
        cross_compiling=yes
 
1610
    else
 
1611
        { { echo "$as_me:1611: error: cannot run C compiled programs.
 
1612
If you meant to cross compile, use \`--host'." >&5
 
1613
echo "$as_me: error: cannot run C compiled programs.
 
1614
If you meant to cross compile, use \`--host'." >&2;}
 
1615
   { (exit 1); exit 1; }; }
 
1616
    fi
 
1617
  fi
 
1618
fi
 
1619
echo "$as_me:1619: result: yes" >&5
 
1620
echo "${ECHO_T}yes" >&6
 
1621
 
 
1622
rm -f a.out a.exe conftest$ac_cv_exeext
 
1623
ac_clean_files=$ac_clean_files_save
 
1624
# Check the compiler produces executables we can run.  If not, either
 
1625
# the compiler is broken, or we cross compile.
 
1626
echo "$as_me:1626: checking whether we are cross compiling" >&5
 
1627
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1628
echo "$as_me:1628: result: $cross_compiling" >&5
 
1629
echo "${ECHO_T}$cross_compiling" >&6
 
1630
 
 
1631
echo "$as_me:1631: checking for executable suffix" >&5
 
1632
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
1633
if { (eval echo "$as_me:1633: \"$ac_link\"") >&5
 
1634
  (eval $ac_link) 2>&5
 
1635
  ac_status=$?
 
1636
  echo "$as_me:1636: \$? = $ac_status" >&5
 
1637
  (exit $ac_status); }; then
 
1638
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1639
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1640
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1641
# `rm'.
 
1642
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
1643
  case $ac_file in
 
1644
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1645
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1646
          export ac_cv_exeext
 
1647
          break;;
 
1648
    * ) break;;
 
1649
  esac
 
1650
done
 
1651
else
 
1652
  { { echo "$as_me:1652: error: cannot compute EXEEXT: cannot compile and link" >&5
 
1653
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
1654
   { (exit 1); exit 1; }; }
 
1655
fi
 
1656
 
 
1657
rm -f conftest$ac_cv_exeext
 
1658
echo "$as_me:1658: result: $ac_cv_exeext" >&5
 
1659
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1660
 
 
1661
rm -f conftest.$ac_ext
 
1662
EXEEXT=$ac_cv_exeext
 
1663
ac_exeext=$EXEEXT
 
1664
echo "$as_me:1664: checking for object suffix" >&5
 
1665
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
1666
if test "${ac_cv_objext+set}" = set; then
 
1667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1668
else
 
1669
  cat >conftest.$ac_ext <<_ACEOF
 
1670
#line 1670 "configure"
 
1671
#include "confdefs.h"
 
1672
 
 
1673
int
 
1674
main ()
 
1675
{
 
1676
 
 
1677
  ;
 
1678
  return 0;
 
1679
}
 
1680
_ACEOF
 
1681
rm -f conftest.o conftest.obj
 
1682
if { (eval echo "$as_me:1682: \"$ac_compile\"") >&5
 
1683
  (eval $ac_compile) 2>&5
 
1684
  ac_status=$?
 
1685
  echo "$as_me:1685: \$? = $ac_status" >&5
 
1686
  (exit $ac_status); }; then
 
1687
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1688
  case $ac_file in
 
1689
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1690
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1691
       break;;
 
1692
  esac
 
1693
done
 
1694
else
 
1695
  echo "$as_me: failed program was:" >&5
 
1696
cat conftest.$ac_ext >&5
 
1697
{ { echo "$as_me:1697: error: cannot compute OBJEXT: cannot compile" >&5
 
1698
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
1699
   { (exit 1); exit 1; }; }
 
1700
fi
 
1701
 
 
1702
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1703
fi
 
1704
echo "$as_me:1704: result: $ac_cv_objext" >&5
 
1705
echo "${ECHO_T}$ac_cv_objext" >&6
 
1706
OBJEXT=$ac_cv_objext
 
1707
ac_objext=$OBJEXT
 
1708
echo "$as_me:1708: checking whether we are using the GNU C compiler" >&5
 
1709
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1710
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1712
else
 
1713
  cat >conftest.$ac_ext <<_ACEOF
 
1714
#line 1714 "configure"
 
1715
#include "confdefs.h"
 
1716
 
 
1717
int
 
1718
main ()
 
1719
{
 
1720
#ifndef __GNUC__
 
1721
       choke me
 
1722
#endif
 
1723
 
 
1724
  ;
 
1725
  return 0;
 
1726
}
 
1727
_ACEOF
 
1728
rm -f conftest.$ac_objext
 
1729
if { (eval echo "$as_me:1729: \"$ac_compile\"") >&5
 
1730
  (eval $ac_compile) 2>&5
 
1731
  ac_status=$?
 
1732
  echo "$as_me:1732: \$? = $ac_status" >&5
 
1733
  (exit $ac_status); } &&
 
1734
         { ac_try='test -s conftest.$ac_objext'
 
1735
  { (eval echo "$as_me:1735: \"$ac_try\"") >&5
 
1736
  (eval $ac_try) 2>&5
 
1737
  ac_status=$?
 
1738
  echo "$as_me:1738: \$? = $ac_status" >&5
 
1739
  (exit $ac_status); }; }; then
 
1740
  ac_compiler_gnu=yes
 
1741
else
 
1742
  echo "$as_me: failed program was:" >&5
 
1743
cat conftest.$ac_ext >&5
 
1744
ac_compiler_gnu=no
 
1745
fi
 
1746
rm -f conftest.$ac_objext conftest.$ac_ext
 
1747
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1748
 
 
1749
fi
 
1750
echo "$as_me:1750: result: $ac_cv_c_compiler_gnu" >&5
 
1751
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
1752
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
1753
ac_test_CFLAGS=${CFLAGS+set}
 
1754
ac_save_CFLAGS=$CFLAGS
 
1755
CFLAGS="-g"
 
1756
echo "$as_me:1756: checking whether $CC accepts -g" >&5
 
1757
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
1758
if test "${ac_cv_prog_cc_g+set}" = set; then
 
1759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1760
else
 
1761
  cat >conftest.$ac_ext <<_ACEOF
 
1762
#line 1762 "configure"
 
1763
#include "confdefs.h"
 
1764
 
 
1765
int
 
1766
main ()
 
1767
{
 
1768
 
 
1769
  ;
 
1770
  return 0;
 
1771
}
 
1772
_ACEOF
 
1773
rm -f conftest.$ac_objext
 
1774
if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
 
1775
  (eval $ac_compile) 2>&5
 
1776
  ac_status=$?
 
1777
  echo "$as_me:1777: \$? = $ac_status" >&5
 
1778
  (exit $ac_status); } &&
 
1779
         { ac_try='test -s conftest.$ac_objext'
 
1780
  { (eval echo "$as_me:1780: \"$ac_try\"") >&5
 
1781
  (eval $ac_try) 2>&5
 
1782
  ac_status=$?
 
1783
  echo "$as_me:1783: \$? = $ac_status" >&5
 
1784
  (exit $ac_status); }; }; then
 
1785
  ac_cv_prog_cc_g=yes
 
1786
else
 
1787
  echo "$as_me: failed program was:" >&5
 
1788
cat conftest.$ac_ext >&5
 
1789
ac_cv_prog_cc_g=no
 
1790
fi
 
1791
rm -f conftest.$ac_objext conftest.$ac_ext
 
1792
fi
 
1793
echo "$as_me:1793: result: $ac_cv_prog_cc_g" >&5
 
1794
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
1795
if test "$ac_test_CFLAGS" = set; then
 
1796
  CFLAGS=$ac_save_CFLAGS
 
1797
elif test $ac_cv_prog_cc_g = yes; then
 
1798
  if test "$GCC" = yes; then
 
1799
    CFLAGS="-g -O2"
 
1800
  else
 
1801
    CFLAGS="-g"
 
1802
  fi
 
1803
else
 
1804
  if test "$GCC" = yes; then
 
1805
    CFLAGS="-O2"
 
1806
  else
 
1807
    CFLAGS=
 
1808
  fi
 
1809
fi
 
1810
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
1811
# in C++ we need to declare it.  In case someone uses the same compiler
 
1812
# for both compiling C and C++ we need to have the C++ compiler decide
 
1813
# the declaration of exit, since it's the most demanding environment.
 
1814
cat >conftest.$ac_ext <<_ACEOF
 
1815
#ifndef __cplusplus
 
1816
  choke me
 
1817
#endif
 
1818
_ACEOF
 
1819
rm -f conftest.$ac_objext
 
1820
if { (eval echo "$as_me:1820: \"$ac_compile\"") >&5
 
1821
  (eval $ac_compile) 2>&5
 
1822
  ac_status=$?
 
1823
  echo "$as_me:1823: \$? = $ac_status" >&5
 
1824
  (exit $ac_status); } &&
 
1825
         { ac_try='test -s conftest.$ac_objext'
 
1826
  { (eval echo "$as_me:1826: \"$ac_try\"") >&5
 
1827
  (eval $ac_try) 2>&5
 
1828
  ac_status=$?
 
1829
  echo "$as_me:1829: \$? = $ac_status" >&5
 
1830
  (exit $ac_status); }; }; then
 
1831
  for ac_declaration in \
 
1832
   ''\
 
1833
   '#include <stdlib.h>' \
 
1834
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
1835
   'extern "C" void std::exit (int); using std::exit;' \
 
1836
   'extern "C" void exit (int) throw ();' \
 
1837
   'extern "C" void exit (int);' \
 
1838
   'void exit (int);'
 
1839
do
 
1840
  cat >conftest.$ac_ext <<_ACEOF
 
1841
#line 1841 "configure"
 
1842
#include "confdefs.h"
 
1843
#include <stdlib.h>
 
1844
$ac_declaration
 
1845
int
 
1846
main ()
 
1847
{
 
1848
exit (42);
 
1849
  ;
 
1850
  return 0;
 
1851
}
 
1852
_ACEOF
 
1853
rm -f conftest.$ac_objext
 
1854
if { (eval echo "$as_me:1854: \"$ac_compile\"") >&5
 
1855
  (eval $ac_compile) 2>&5
 
1856
  ac_status=$?
 
1857
  echo "$as_me:1857: \$? = $ac_status" >&5
 
1858
  (exit $ac_status); } &&
 
1859
         { ac_try='test -s conftest.$ac_objext'
 
1860
  { (eval echo "$as_me:1860: \"$ac_try\"") >&5
 
1861
  (eval $ac_try) 2>&5
 
1862
  ac_status=$?
 
1863
  echo "$as_me:1863: \$? = $ac_status" >&5
 
1864
  (exit $ac_status); }; }; then
 
1865
  :
 
1866
else
 
1867
  echo "$as_me: failed program was:" >&5
 
1868
cat conftest.$ac_ext >&5
 
1869
continue
 
1870
fi
 
1871
rm -f conftest.$ac_objext conftest.$ac_ext
 
1872
  cat >conftest.$ac_ext <<_ACEOF
 
1873
#line 1873 "configure"
 
1874
#include "confdefs.h"
 
1875
$ac_declaration
 
1876
int
 
1877
main ()
 
1878
{
 
1879
exit (42);
 
1880
  ;
 
1881
  return 0;
 
1882
}
 
1883
_ACEOF
 
1884
rm -f conftest.$ac_objext
 
1885
if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
 
1886
  (eval $ac_compile) 2>&5
 
1887
  ac_status=$?
 
1888
  echo "$as_me:1888: \$? = $ac_status" >&5
 
1889
  (exit $ac_status); } &&
 
1890
         { ac_try='test -s conftest.$ac_objext'
 
1891
  { (eval echo "$as_me:1891: \"$ac_try\"") >&5
 
1892
  (eval $ac_try) 2>&5
 
1893
  ac_status=$?
 
1894
  echo "$as_me:1894: \$? = $ac_status" >&5
 
1895
  (exit $ac_status); }; }; then
 
1896
  break
 
1897
else
 
1898
  echo "$as_me: failed program was:" >&5
 
1899
cat conftest.$ac_ext >&5
 
1900
fi
 
1901
rm -f conftest.$ac_objext conftest.$ac_ext
 
1902
done
 
1903
rm -f conftest*
 
1904
if test -n "$ac_declaration"; then
 
1905
  echo '#ifdef __cplusplus' >>confdefs.h
 
1906
  echo $ac_declaration      >>confdefs.h
 
1907
  echo '#endif'             >>confdefs.h
 
1908
fi
 
1909
 
 
1910
else
 
1911
  echo "$as_me: failed program was:" >&5
 
1912
cat conftest.$ac_ext >&5
 
1913
fi
 
1914
rm -f conftest.$ac_objext conftest.$ac_ext
 
1915
ac_ext=c
 
1916
ac_cpp='$CPP $CPPFLAGS'
 
1917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1920
 
 
1921
ac_ext=c
 
1922
ac_cpp='$CPP $CPPFLAGS'
 
1923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1926
echo "$as_me:1926: checking how to run the C preprocessor" >&5
 
1927
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
1928
# On Suns, sometimes $CPP names a directory.
 
1929
if test -n "$CPP" && test -d "$CPP"; then
 
1930
  CPP=
 
1931
fi
 
1932
if test -z "$CPP"; then
 
1933
  if test "${ac_cv_prog_CPP+set}" = set; then
 
1934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1935
else
 
1936
      # Double quotes because CPP needs to be expanded
 
1937
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
1938
    do
 
1939
      ac_preproc_ok=false
 
1940
for ac_c_preproc_warn_flag in '' yes
 
1941
do
 
1942
  # Use a header file that comes with gcc, so configuring glibc
 
1943
  # with a fresh cross-compiler works.
 
1944
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1945
  # not just through cpp. "Syntax error" is here to catch this case.
 
1946
  cat >conftest.$ac_ext <<_ACEOF
 
1947
#line 1947 "configure"
 
1948
#include "confdefs.h"
 
1949
#include <assert.h>
 
1950
                     Syntax error
 
1951
_ACEOF
 
1952
if { (eval echo "$as_me:1952: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1953
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1954
  ac_status=$?
 
1955
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1956
  rm -f conftest.er1
 
1957
  cat conftest.err >&5
 
1958
  echo "$as_me:1958: \$? = $ac_status" >&5
 
1959
  (exit $ac_status); } >/dev/null; then
 
1960
  if test -s conftest.err; then
 
1961
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1962
  else
 
1963
    ac_cpp_err=
 
1964
  fi
 
1965
else
 
1966
  ac_cpp_err=yes
 
1967
fi
 
1968
if test -z "$ac_cpp_err"; then
 
1969
  :
 
1970
else
 
1971
  echo "$as_me: failed program was:" >&5
 
1972
  cat conftest.$ac_ext >&5
 
1973
  # Broken: fails on valid input.
 
1974
continue
 
1975
fi
 
1976
rm -f conftest.err conftest.$ac_ext
 
1977
 
 
1978
  # OK, works on sane cases.  Now check whether non-existent headers
 
1979
  # can be detected and how.
 
1980
  cat >conftest.$ac_ext <<_ACEOF
 
1981
#line 1981 "configure"
 
1982
#include "confdefs.h"
 
1983
#include <ac_nonexistent.h>
 
1984
_ACEOF
 
1985
if { (eval echo "$as_me:1985: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1986
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1987
  ac_status=$?
 
1988
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1989
  rm -f conftest.er1
 
1990
  cat conftest.err >&5
 
1991
  echo "$as_me:1991: \$? = $ac_status" >&5
 
1992
  (exit $ac_status); } >/dev/null; then
 
1993
  if test -s conftest.err; then
 
1994
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1995
  else
 
1996
    ac_cpp_err=
 
1997
  fi
 
1998
else
 
1999
  ac_cpp_err=yes
 
2000
fi
 
2001
if test -z "$ac_cpp_err"; then
 
2002
  # Broken: success on invalid input.
 
2003
continue
 
2004
else
 
2005
  echo "$as_me: failed program was:" >&5
 
2006
  cat conftest.$ac_ext >&5
 
2007
  # Passes both tests.
 
2008
ac_preproc_ok=:
 
2009
break
 
2010
fi
 
2011
rm -f conftest.err conftest.$ac_ext
 
2012
 
 
2013
done
 
2014
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2015
rm -f conftest.err conftest.$ac_ext
 
2016
if $ac_preproc_ok; then
 
2017
  break
 
2018
fi
 
2019
 
 
2020
    done
 
2021
    ac_cv_prog_CPP=$CPP
 
2022
 
 
2023
fi
 
2024
  CPP=$ac_cv_prog_CPP
 
2025
else
 
2026
  ac_cv_prog_CPP=$CPP
 
2027
fi
 
2028
echo "$as_me:2028: result: $CPP" >&5
 
2029
echo "${ECHO_T}$CPP" >&6
 
2030
ac_preproc_ok=false
 
2031
for ac_c_preproc_warn_flag in '' yes
 
2032
do
 
2033
  # Use a header file that comes with gcc, so configuring glibc
 
2034
  # with a fresh cross-compiler works.
 
2035
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2036
  # not just through cpp. "Syntax error" is here to catch this case.
 
2037
  cat >conftest.$ac_ext <<_ACEOF
 
2038
#line 2038 "configure"
 
2039
#include "confdefs.h"
 
2040
#include <assert.h>
 
2041
                     Syntax error
 
2042
_ACEOF
 
2043
if { (eval echo "$as_me:2043: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2044
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2045
  ac_status=$?
 
2046
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2047
  rm -f conftest.er1
 
2048
  cat conftest.err >&5
 
2049
  echo "$as_me:2049: \$? = $ac_status" >&5
 
2050
  (exit $ac_status); } >/dev/null; then
 
2051
  if test -s conftest.err; then
 
2052
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2053
  else
 
2054
    ac_cpp_err=
 
2055
  fi
 
2056
else
 
2057
  ac_cpp_err=yes
 
2058
fi
 
2059
if test -z "$ac_cpp_err"; then
 
2060
  :
 
2061
else
 
2062
  echo "$as_me: failed program was:" >&5
 
2063
  cat conftest.$ac_ext >&5
 
2064
  # Broken: fails on valid input.
 
2065
continue
 
2066
fi
 
2067
rm -f conftest.err conftest.$ac_ext
 
2068
 
 
2069
  # OK, works on sane cases.  Now check whether non-existent headers
 
2070
  # can be detected and how.
 
2071
  cat >conftest.$ac_ext <<_ACEOF
 
2072
#line 2072 "configure"
 
2073
#include "confdefs.h"
 
2074
#include <ac_nonexistent.h>
 
2075
_ACEOF
 
2076
if { (eval echo "$as_me:2076: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2077
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2078
  ac_status=$?
 
2079
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2080
  rm -f conftest.er1
 
2081
  cat conftest.err >&5
 
2082
  echo "$as_me:2082: \$? = $ac_status" >&5
 
2083
  (exit $ac_status); } >/dev/null; then
 
2084
  if test -s conftest.err; then
 
2085
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2086
  else
 
2087
    ac_cpp_err=
 
2088
  fi
 
2089
else
 
2090
  ac_cpp_err=yes
 
2091
fi
 
2092
if test -z "$ac_cpp_err"; then
 
2093
  # Broken: success on invalid input.
 
2094
continue
 
2095
else
 
2096
  echo "$as_me: failed program was:" >&5
 
2097
  cat conftest.$ac_ext >&5
 
2098
  # Passes both tests.
 
2099
ac_preproc_ok=:
 
2100
break
 
2101
fi
 
2102
rm -f conftest.err conftest.$ac_ext
 
2103
 
 
2104
done
 
2105
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2106
rm -f conftest.err conftest.$ac_ext
 
2107
if $ac_preproc_ok; then
 
2108
  :
 
2109
else
 
2110
  { { echo "$as_me:2110: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
2111
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
2112
   { (exit 1); exit 1; }; }
 
2113
fi
 
2114
 
 
2115
ac_ext=c
 
2116
ac_cpp='$CPP $CPPFLAGS'
 
2117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2120
 
 
2121
if test $ac_cv_c_compiler_gnu = yes; then
 
2122
    echo "$as_me:2122: checking whether $CC needs -traditional" >&5
 
2123
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
2124
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
2125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2126
else
 
2127
    ac_pattern="Autoconf.*'x'"
 
2128
  cat >conftest.$ac_ext <<_ACEOF
 
2129
#line 2129 "configure"
 
2130
#include "confdefs.h"
 
2131
#include <sgtty.h>
 
2132
Autoconf TIOCGETP
 
2133
_ACEOF
 
2134
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2135
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
2136
  ac_cv_prog_gcc_traditional=yes
 
2137
else
 
2138
  ac_cv_prog_gcc_traditional=no
 
2139
fi
 
2140
rm -f conftest*
 
2141
 
 
2142
  if test $ac_cv_prog_gcc_traditional = no; then
 
2143
    cat >conftest.$ac_ext <<_ACEOF
 
2144
#line 2144 "configure"
 
2145
#include "confdefs.h"
 
2146
#include <termio.h>
 
2147
Autoconf TCGETA
 
2148
_ACEOF
 
2149
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2150
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
2151
  ac_cv_prog_gcc_traditional=yes
 
2152
fi
 
2153
rm -f conftest*
 
2154
 
 
2155
  fi
 
2156
fi
 
2157
echo "$as_me:2157: result: $ac_cv_prog_gcc_traditional" >&5
 
2158
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
2159
  if test $ac_cv_prog_gcc_traditional = yes; then
 
2160
    CC="$CC -traditional"
 
2161
  fi
 
2162
fi
 
2163
 
 
2164
if test $ac_cv_c_compiler_gnu = no ; then
 
2165
  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
 
2166
  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
 
2167
fi
 
2168
 
 
2169
echo "$as_me:2169: checking for library containing crypt" >&5
 
2170
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
 
2171
if test "${ac_cv_search_crypt+set}" = set; then
 
2172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2173
else
 
2174
  ac_func_search_save_LIBS=$LIBS
 
2175
ac_cv_search_crypt=no
 
2176
cat >conftest.$ac_ext <<_ACEOF
 
2177
#line 2177 "configure"
 
2178
#include "confdefs.h"
 
2179
 
 
2180
/* Override any gcc2 internal prototype to avoid an error.  */
 
2181
#ifdef __cplusplus
 
2182
extern "C"
 
2183
#endif
 
2184
/* We use char because int might match the return type of a gcc2
 
2185
   builtin and then its argument prototype would still apply.  */
 
2186
char crypt ();
 
2187
int
 
2188
main ()
 
2189
{
 
2190
crypt ();
 
2191
  ;
 
2192
  return 0;
 
2193
}
 
2194
_ACEOF
 
2195
rm -f conftest.$ac_objext conftest$ac_exeext
 
2196
if { (eval echo "$as_me:2196: \"$ac_link\"") >&5
 
2197
  (eval $ac_link) 2>&5
 
2198
  ac_status=$?
 
2199
  echo "$as_me:2199: \$? = $ac_status" >&5
 
2200
  (exit $ac_status); } &&
 
2201
         { ac_try='test -s conftest$ac_exeext'
 
2202
  { (eval echo "$as_me:2202: \"$ac_try\"") >&5
 
2203
  (eval $ac_try) 2>&5
 
2204
  ac_status=$?
 
2205
  echo "$as_me:2205: \$? = $ac_status" >&5
 
2206
  (exit $ac_status); }; }; then
 
2207
  ac_cv_search_crypt="none required"
 
2208
else
 
2209
  echo "$as_me: failed program was:" >&5
 
2210
cat conftest.$ac_ext >&5
 
2211
fi
 
2212
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2213
if test "$ac_cv_search_crypt" = no; then
 
2214
  for ac_lib in crypt; do
 
2215
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
2216
    cat >conftest.$ac_ext <<_ACEOF
 
2217
#line 2217 "configure"
 
2218
#include "confdefs.h"
 
2219
 
 
2220
/* Override any gcc2 internal prototype to avoid an error.  */
 
2221
#ifdef __cplusplus
 
2222
extern "C"
 
2223
#endif
 
2224
/* We use char because int might match the return type of a gcc2
 
2225
   builtin and then its argument prototype would still apply.  */
 
2226
char crypt ();
 
2227
int
 
2228
main ()
 
2229
{
 
2230
crypt ();
 
2231
  ;
 
2232
  return 0;
 
2233
}
 
2234
_ACEOF
 
2235
rm -f conftest.$ac_objext conftest$ac_exeext
 
2236
if { (eval echo "$as_me:2236: \"$ac_link\"") >&5
 
2237
  (eval $ac_link) 2>&5
 
2238
  ac_status=$?
 
2239
  echo "$as_me:2239: \$? = $ac_status" >&5
 
2240
  (exit $ac_status); } &&
 
2241
         { ac_try='test -s conftest$ac_exeext'
 
2242
  { (eval echo "$as_me:2242: \"$ac_try\"") >&5
 
2243
  (eval $ac_try) 2>&5
 
2244
  ac_status=$?
 
2245
  echo "$as_me:2245: \$? = $ac_status" >&5
 
2246
  (exit $ac_status); }; }; then
 
2247
  ac_cv_search_crypt="-l$ac_lib"
 
2248
break
 
2249
else
 
2250
  echo "$as_me: failed program was:" >&5
 
2251
cat conftest.$ac_ext >&5
 
2252
fi
 
2253
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2254
  done
 
2255
fi
 
2256
LIBS=$ac_func_search_save_LIBS
 
2257
fi
 
2258
echo "$as_me:2258: result: $ac_cv_search_crypt" >&5
 
2259
echo "${ECHO_T}$ac_cv_search_crypt" >&6
 
2260
if test "$ac_cv_search_crypt" != no; then
 
2261
  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
 
2262
 
 
2263
fi
 
2264
 
 
2265
echo "$as_me:2265: checking for library containing tgetent" >&5
 
2266
echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
 
2267
if test "${ac_cv_search_tgetent+set}" = set; then
 
2268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2269
else
 
2270
  ac_func_search_save_LIBS=$LIBS
 
2271
ac_cv_search_tgetent=no
 
2272
cat >conftest.$ac_ext <<_ACEOF
 
2273
#line 2273 "configure"
 
2274
#include "confdefs.h"
 
2275
 
 
2276
/* Override any gcc2 internal prototype to avoid an error.  */
 
2277
#ifdef __cplusplus
 
2278
extern "C"
 
2279
#endif
 
2280
/* We use char because int might match the return type of a gcc2
 
2281
   builtin and then its argument prototype would still apply.  */
 
2282
char tgetent ();
 
2283
int
 
2284
main ()
 
2285
{
 
2286
tgetent ();
 
2287
  ;
 
2288
  return 0;
 
2289
}
 
2290
_ACEOF
 
2291
rm -f conftest.$ac_objext conftest$ac_exeext
 
2292
if { (eval echo "$as_me:2292: \"$ac_link\"") >&5
 
2293
  (eval $ac_link) 2>&5
 
2294
  ac_status=$?
 
2295
  echo "$as_me:2295: \$? = $ac_status" >&5
 
2296
  (exit $ac_status); } &&
 
2297
         { ac_try='test -s conftest$ac_exeext'
 
2298
  { (eval echo "$as_me:2298: \"$ac_try\"") >&5
 
2299
  (eval $ac_try) 2>&5
 
2300
  ac_status=$?
 
2301
  echo "$as_me:2301: \$? = $ac_status" >&5
 
2302
  (exit $ac_status); }; }; then
 
2303
  ac_cv_search_tgetent="none required"
 
2304
else
 
2305
  echo "$as_me: failed program was:" >&5
 
2306
cat conftest.$ac_ext >&5
 
2307
fi
 
2308
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2309
if test "$ac_cv_search_tgetent" = no; then
 
2310
  for ac_lib in termlib ncurses curses termcap; do
 
2311
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
2312
    cat >conftest.$ac_ext <<_ACEOF
 
2313
#line 2313 "configure"
 
2314
#include "confdefs.h"
 
2315
 
 
2316
/* Override any gcc2 internal prototype to avoid an error.  */
 
2317
#ifdef __cplusplus
 
2318
extern "C"
 
2319
#endif
 
2320
/* We use char because int might match the return type of a gcc2
 
2321
   builtin and then its argument prototype would still apply.  */
 
2322
char tgetent ();
 
2323
int
 
2324
main ()
 
2325
{
 
2326
tgetent ();
 
2327
  ;
 
2328
  return 0;
 
2329
}
 
2330
_ACEOF
 
2331
rm -f conftest.$ac_objext conftest$ac_exeext
 
2332
if { (eval echo "$as_me:2332: \"$ac_link\"") >&5
 
2333
  (eval $ac_link) 2>&5
 
2334
  ac_status=$?
 
2335
  echo "$as_me:2335: \$? = $ac_status" >&5
 
2336
  (exit $ac_status); } &&
 
2337
         { ac_try='test -s conftest$ac_exeext'
 
2338
  { (eval echo "$as_me:2338: \"$ac_try\"") >&5
 
2339
  (eval $ac_try) 2>&5
 
2340
  ac_status=$?
 
2341
  echo "$as_me:2341: \$? = $ac_status" >&5
 
2342
  (exit $ac_status); }; }; then
 
2343
  ac_cv_search_tgetent="-l$ac_lib"
 
2344
break
 
2345
else
 
2346
  echo "$as_me: failed program was:" >&5
 
2347
cat conftest.$ac_ext >&5
 
2348
fi
 
2349
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2350
  done
 
2351
fi
 
2352
LIBS=$ac_func_search_save_LIBS
 
2353
fi
 
2354
echo "$as_me:2354: result: $ac_cv_search_tgetent" >&5
 
2355
echo "${ECHO_T}$ac_cv_search_tgetent" >&6
 
2356
if test "$ac_cv_search_tgetent" != no; then
 
2357
  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
 
2358
 
 
2359
fi
 
2360
 
 
2361
echo "$as_me:2361: checking for library containing gethostbyname" >&5
 
2362
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
2363
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
2364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2365
else
 
2366
  ac_func_search_save_LIBS=$LIBS
 
2367
ac_cv_search_gethostbyname=no
 
2368
cat >conftest.$ac_ext <<_ACEOF
 
2369
#line 2369 "configure"
 
2370
#include "confdefs.h"
 
2371
 
 
2372
/* Override any gcc2 internal prototype to avoid an error.  */
 
2373
#ifdef __cplusplus
 
2374
extern "C"
 
2375
#endif
 
2376
/* We use char because int might match the return type of a gcc2
 
2377
   builtin and then its argument prototype would still apply.  */
 
2378
char gethostbyname ();
 
2379
int
 
2380
main ()
 
2381
{
 
2382
gethostbyname ();
 
2383
  ;
 
2384
  return 0;
 
2385
}
 
2386
_ACEOF
 
2387
rm -f conftest.$ac_objext conftest$ac_exeext
 
2388
if { (eval echo "$as_me:2388: \"$ac_link\"") >&5
 
2389
  (eval $ac_link) 2>&5
 
2390
  ac_status=$?
 
2391
  echo "$as_me:2391: \$? = $ac_status" >&5
 
2392
  (exit $ac_status); } &&
 
2393
         { ac_try='test -s conftest$ac_exeext'
 
2394
  { (eval echo "$as_me:2394: \"$ac_try\"") >&5
 
2395
  (eval $ac_try) 2>&5
 
2396
  ac_status=$?
 
2397
  echo "$as_me:2397: \$? = $ac_status" >&5
 
2398
  (exit $ac_status); }; }; then
 
2399
  ac_cv_search_gethostbyname="none required"
 
2400
else
 
2401
  echo "$as_me: failed program was:" >&5
 
2402
cat conftest.$ac_ext >&5
 
2403
fi
 
2404
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2405
if test "$ac_cv_search_gethostbyname" = no; then
 
2406
  for ac_lib in nsl; do
 
2407
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
2408
    cat >conftest.$ac_ext <<_ACEOF
 
2409
#line 2409 "configure"
 
2410
#include "confdefs.h"
 
2411
 
 
2412
/* Override any gcc2 internal prototype to avoid an error.  */
 
2413
#ifdef __cplusplus
 
2414
extern "C"
 
2415
#endif
 
2416
/* We use char because int might match the return type of a gcc2
 
2417
   builtin and then its argument prototype would still apply.  */
 
2418
char gethostbyname ();
 
2419
int
 
2420
main ()
 
2421
{
 
2422
gethostbyname ();
 
2423
  ;
 
2424
  return 0;
 
2425
}
 
2426
_ACEOF
 
2427
rm -f conftest.$ac_objext conftest$ac_exeext
 
2428
if { (eval echo "$as_me:2428: \"$ac_link\"") >&5
 
2429
  (eval $ac_link) 2>&5
 
2430
  ac_status=$?
 
2431
  echo "$as_me:2431: \$? = $ac_status" >&5
 
2432
  (exit $ac_status); } &&
 
2433
         { ac_try='test -s conftest$ac_exeext'
 
2434
  { (eval echo "$as_me:2434: \"$ac_try\"") >&5
 
2435
  (eval $ac_try) 2>&5
 
2436
  ac_status=$?
 
2437
  echo "$as_me:2437: \$? = $ac_status" >&5
 
2438
  (exit $ac_status); }; }; then
 
2439
  ac_cv_search_gethostbyname="-l$ac_lib"
 
2440
break
 
2441
else
 
2442
  echo "$as_me: failed program was:" >&5
 
2443
cat conftest.$ac_ext >&5
 
2444
fi
 
2445
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2446
  done
 
2447
fi
 
2448
LIBS=$ac_func_search_save_LIBS
 
2449
fi
 
2450
echo "$as_me:2450: result: $ac_cv_search_gethostbyname" >&5
 
2451
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
2452
if test "$ac_cv_search_gethostbyname" != no; then
 
2453
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
2454
 
 
2455
fi
 
2456
 
 
2457
echo "$as_me:2457: checking for library containing connect" >&5
 
2458
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
 
2459
if test "${ac_cv_search_connect+set}" = set; then
 
2460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2461
else
 
2462
  ac_func_search_save_LIBS=$LIBS
 
2463
ac_cv_search_connect=no
 
2464
cat >conftest.$ac_ext <<_ACEOF
 
2465
#line 2465 "configure"
 
2466
#include "confdefs.h"
 
2467
 
 
2468
/* Override any gcc2 internal prototype to avoid an error.  */
 
2469
#ifdef __cplusplus
 
2470
extern "C"
 
2471
#endif
 
2472
/* We use char because int might match the return type of a gcc2
 
2473
   builtin and then its argument prototype would still apply.  */
 
2474
char connect ();
 
2475
int
 
2476
main ()
 
2477
{
 
2478
connect ();
 
2479
  ;
 
2480
  return 0;
 
2481
}
 
2482
_ACEOF
 
2483
rm -f conftest.$ac_objext conftest$ac_exeext
 
2484
if { (eval echo "$as_me:2484: \"$ac_link\"") >&5
 
2485
  (eval $ac_link) 2>&5
 
2486
  ac_status=$?
 
2487
  echo "$as_me:2487: \$? = $ac_status" >&5
 
2488
  (exit $ac_status); } &&
 
2489
         { ac_try='test -s conftest$ac_exeext'
 
2490
  { (eval echo "$as_me:2490: \"$ac_try\"") >&5
 
2491
  (eval $ac_try) 2>&5
 
2492
  ac_status=$?
 
2493
  echo "$as_me:2493: \$? = $ac_status" >&5
 
2494
  (exit $ac_status); }; }; then
 
2495
  ac_cv_search_connect="none required"
 
2496
else
 
2497
  echo "$as_me: failed program was:" >&5
 
2498
cat conftest.$ac_ext >&5
 
2499
fi
 
2500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2501
if test "$ac_cv_search_connect" = no; then
 
2502
  for ac_lib in socket; do
 
2503
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
2504
    cat >conftest.$ac_ext <<_ACEOF
 
2505
#line 2505 "configure"
 
2506
#include "confdefs.h"
 
2507
 
 
2508
/* Override any gcc2 internal prototype to avoid an error.  */
 
2509
#ifdef __cplusplus
 
2510
extern "C"
 
2511
#endif
 
2512
/* We use char because int might match the return type of a gcc2
 
2513
   builtin and then its argument prototype would still apply.  */
 
2514
char connect ();
 
2515
int
 
2516
main ()
 
2517
{
 
2518
connect ();
 
2519
  ;
 
2520
  return 0;
 
2521
}
 
2522
_ACEOF
 
2523
rm -f conftest.$ac_objext conftest$ac_exeext
 
2524
if { (eval echo "$as_me:2524: \"$ac_link\"") >&5
 
2525
  (eval $ac_link) 2>&5
 
2526
  ac_status=$?
 
2527
  echo "$as_me:2527: \$? = $ac_status" >&5
 
2528
  (exit $ac_status); } &&
 
2529
         { ac_try='test -s conftest$ac_exeext'
 
2530
  { (eval echo "$as_me:2530: \"$ac_try\"") >&5
 
2531
  (eval $ac_try) 2>&5
 
2532
  ac_status=$?
 
2533
  echo "$as_me:2533: \$? = $ac_status" >&5
 
2534
  (exit $ac_status); }; }; then
 
2535
  ac_cv_search_connect="-l$ac_lib"
 
2536
break
 
2537
else
 
2538
  echo "$as_me: failed program was:" >&5
 
2539
cat conftest.$ac_ext >&5
 
2540
fi
 
2541
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2542
  done
 
2543
fi
 
2544
LIBS=$ac_func_search_save_LIBS
 
2545
fi
 
2546
echo "$as_me:2546: result: $ac_cv_search_connect" >&5
 
2547
echo "${ECHO_T}$ac_cv_search_connect" >&6
 
2548
if test "$ac_cv_search_connect" != no; then
 
2549
  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
 
2550
 
 
2551
fi
 
2552
 
 
2553
# Check whether --with-hesiod or --without-hesiod was given.
 
2554
if test "${with_hesiod+set}" = set; then
 
2555
  withval="$with_hesiod"
 
2556
  hesiod="$withval"
 
2557
else
 
2558
  hesiod=no
 
2559
fi;
 
2560
if test "$hesiod" != no; then
 
2561
  HESLIB="-lhesiod"
 
2562
  echo "$as_me:2562: checking for res_send" >&5
 
2563
echo $ECHO_N "checking for res_send... $ECHO_C" >&6
 
2564
if test "${ac_cv_func_res_send+set}" = set; then
 
2565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2566
else
 
2567
  cat >conftest.$ac_ext <<_ACEOF
 
2568
#line 2568 "configure"
 
2569
#include "confdefs.h"
 
2570
/* System header to define __stub macros and hopefully few prototypes,
 
2571
    which can conflict with char res_send (); below.  */
 
2572
#include <assert.h>
 
2573
/* Override any gcc2 internal prototype to avoid an error.  */
 
2574
#ifdef __cplusplus
 
2575
extern "C"
 
2576
#endif
 
2577
/* We use char because int might match the return type of a gcc2
 
2578
   builtin and then its argument prototype would still apply.  */
 
2579
char res_send ();
 
2580
char (*f) ();
 
2581
 
 
2582
int
 
2583
main ()
 
2584
{
 
2585
/* The GNU C library defines this for functions which it implements
 
2586
    to always fail with ENOSYS.  Some functions are actually named
 
2587
    something starting with __ and the normal name is an alias.  */
 
2588
#if defined (__stub_res_send) || defined (__stub___res_send)
 
2589
choke me
 
2590
#else
 
2591
f = res_send;
 
2592
#endif
 
2593
 
 
2594
  ;
 
2595
  return 0;
 
2596
}
 
2597
_ACEOF
 
2598
rm -f conftest.$ac_objext conftest$ac_exeext
 
2599
if { (eval echo "$as_me:2599: \"$ac_link\"") >&5
 
2600
  (eval $ac_link) 2>&5
 
2601
  ac_status=$?
 
2602
  echo "$as_me:2602: \$? = $ac_status" >&5
 
2603
  (exit $ac_status); } &&
 
2604
         { ac_try='test -s conftest$ac_exeext'
 
2605
  { (eval echo "$as_me:2605: \"$ac_try\"") >&5
 
2606
  (eval $ac_try) 2>&5
 
2607
  ac_status=$?
 
2608
  echo "$as_me:2608: \$? = $ac_status" >&5
 
2609
  (exit $ac_status); }; }; then
 
2610
  ac_cv_func_res_send=yes
 
2611
else
 
2612
  echo "$as_me: failed program was:" >&5
 
2613
cat conftest.$ac_ext >&5
 
2614
ac_cv_func_res_send=no
 
2615
fi
 
2616
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2617
fi
 
2618
echo "$as_me:2618: result: $ac_cv_func_res_send" >&5
 
2619
echo "${ECHO_T}$ac_cv_func_res_send" >&6
 
2620
if test $ac_cv_func_res_send = yes; then
 
2621
  :
 
2622
else
 
2623
  echo "$as_me:2623: checking for res_send in -lresolv" >&5
 
2624
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
 
2625
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
 
2626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2627
else
 
2628
  ac_check_lib_save_LIBS=$LIBS
 
2629
LIBS="-lresolv  $LIBS"
 
2630
cat >conftest.$ac_ext <<_ACEOF
 
2631
#line 2631 "configure"
 
2632
#include "confdefs.h"
 
2633
 
 
2634
/* Override any gcc2 internal prototype to avoid an error.  */
 
2635
#ifdef __cplusplus
 
2636
extern "C"
 
2637
#endif
 
2638
/* We use char because int might match the return type of a gcc2
 
2639
   builtin and then its argument prototype would still apply.  */
 
2640
char res_send ();
 
2641
int
 
2642
main ()
 
2643
{
 
2644
res_send ();
 
2645
  ;
 
2646
  return 0;
 
2647
}
 
2648
_ACEOF
 
2649
rm -f conftest.$ac_objext conftest$ac_exeext
 
2650
if { (eval echo "$as_me:2650: \"$ac_link\"") >&5
 
2651
  (eval $ac_link) 2>&5
 
2652
  ac_status=$?
 
2653
  echo "$as_me:2653: \$? = $ac_status" >&5
 
2654
  (exit $ac_status); } &&
 
2655
         { ac_try='test -s conftest$ac_exeext'
 
2656
  { (eval echo "$as_me:2656: \"$ac_try\"") >&5
 
2657
  (eval $ac_try) 2>&5
 
2658
  ac_status=$?
 
2659
  echo "$as_me:2659: \$? = $ac_status" >&5
 
2660
  (exit $ac_status); }; }; then
 
2661
  ac_cv_lib_resolv_res_send=yes
 
2662
else
 
2663
  echo "$as_me: failed program was:" >&5
 
2664
cat conftest.$ac_ext >&5
 
2665
ac_cv_lib_resolv_res_send=no
 
2666
fi
 
2667
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2668
LIBS=$ac_check_lib_save_LIBS
 
2669
fi
 
2670
echo "$as_me:2670: result: $ac_cv_lib_resolv_res_send" >&5
 
2671
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
 
2672
if test $ac_cv_lib_resolv_res_send = yes; then
 
2673
  HESLIB="$HESLIB -lresolv"
 
2674
fi
 
2675
 
 
2676
fi
 
2677
 
 
2678
  HESDEF=-DHESIOD
 
2679
  if test "$hesiod" != yes; then
 
2680
    HESDEF="$HESDEF -I$hesiod/include"
 
2681
    HESLIB="-L$hesiod/lib $HESLIB"
 
2682
  fi
 
2683
fi
 
2684
 
 
2685
# Check whether --with-sge or --without-sge was given.
 
2686
if test "${with_sge+set}" = set; then
 
2687
  withval="$with_sge"
 
2688
  sge="$withval"
 
2689
else
 
2690
  sge=no
 
2691
fi;
 
2692
if test "$sge" != no; then
 
2693
   GRDDEF="-I../../../libs/gdi"
 
2694
   GRDLIB="-L../../../$sge -R${SGE_ROOT}/lib/${SGE_ARCH} \$(SGE_LIBS) ${LDFLAGS}"
 
2695
   CFLAGS="$CFLAGS -DPROG_NAME='\"qtcsh\"' -D$sge"
 
2696
fi
 
2697
 
 
2698
ac_config_files="$ac_config_files Makefile"
 
2699
cat >confcache <<\_ACEOF
 
2700
# This file is a shell script that caches the results of configure
 
2701
# tests run on this system so they can be shared between configure
 
2702
# scripts and configure runs, see configure's option --config-cache.
 
2703
# It is not useful on other systems.  If it contains results you don't
 
2704
# want to keep, you may remove or edit it.
 
2705
#
 
2706
# config.status only pays attention to the cache file if you give it
 
2707
# the --recheck option to rerun configure.
 
2708
#
 
2709
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
2710
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
2711
# following values.
 
2712
 
 
2713
_ACEOF
 
2714
 
 
2715
# The following way of writing the cache mishandles newlines in values,
 
2716
# but we know of no workaround that is simple, portable, and efficient.
 
2717
# So, don't put newlines in cache variables' values.
 
2718
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2719
# and sets the high bit in the cache file unless we assign to the vars.
 
2720
{
 
2721
  (set) 2>&1 |
 
2722
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2723
    *ac_space=\ *)
 
2724
      # `set' does not quote correctly, so add quotes (double-quote
 
2725
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
2726
      sed -n \
 
2727
        "s/'/'\\\\''/g;
 
2728
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2729
      ;;
 
2730
    *)
 
2731
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2732
      sed -n \
 
2733
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2734
      ;;
 
2735
    esac;
 
2736
} |
 
2737
  sed '
 
2738
     t clear
 
2739
     : clear
 
2740
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
2741
     t end
 
2742
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
2743
     : end' >>confcache
 
2744
if cmp -s $cache_file confcache; then :; else
 
2745
  if test -w $cache_file; then
 
2746
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
2747
    cat confcache >$cache_file
 
2748
  else
 
2749
    echo "not updating unwritable cache $cache_file"
 
2750
  fi
 
2751
fi
 
2752
rm -f confcache
 
2753
 
 
2754
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2755
# Let make expand exec_prefix.
 
2756
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2757
 
 
2758
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
2759
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
2760
# trailing colons and then remove the whole line if VPATH becomes empty
 
2761
# (actually we leave an empty line to preserve line numbers).
 
2762
if test "x$srcdir" = x.; then
 
2763
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
2764
s/:*\$(srcdir):*/:/;
 
2765
s/:*\${srcdir}:*/:/;
 
2766
s/:*@srcdir@:*/:/;
 
2767
s/^\([^=]*=[    ]*\):*/\1/;
 
2768
s/:*$//;
 
2769
s/^[^=]*=[      ]*$//;
 
2770
}'
 
2771
fi
 
2772
 
 
2773
DEFS=-DHAVE_CONFIG_H
 
2774
 
 
2775
: ${CONFIG_STATUS=./config.status}
 
2776
ac_clean_files_save=$ac_clean_files
 
2777
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
2778
{ echo "$as_me:2778: creating $CONFIG_STATUS" >&5
 
2779
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
2780
cat >$CONFIG_STATUS <<_ACEOF
 
2781
#! $SHELL
 
2782
# Generated automatically by configure.
 
2783
# Run this file to recreate the current configuration.
 
2784
# Compiler output produced by configure, useful for debugging
 
2785
# configure, is in config.log if it exists.
 
2786
 
 
2787
debug=false
 
2788
SHELL=\${CONFIG_SHELL-$SHELL}
 
2789
ac_cs_invocation="\$0 \$@"
 
2790
 
 
2791
_ACEOF
 
2792
 
 
2793
cat >>$CONFIG_STATUS <<\_ACEOF
 
2794
# Be Bourne compatible
 
2795
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
2796
  emulate sh
 
2797
  NULLCMD=:
 
2798
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
2799
  set -o posix
 
2800
fi
 
2801
 
 
2802
# Name of the executable.
 
2803
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
2804
 
 
2805
if expr a : '\(a\)' >/dev/null 2>&1; then
 
2806
  as_expr=expr
 
2807
else
 
2808
  as_expr=false
 
2809
fi
 
2810
 
 
2811
rm -f conf$$ conf$$.exe conf$$.file
 
2812
echo >conf$$.file
 
2813
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
2814
  # We could just check for DJGPP; but this test a) works b) is more generic
 
2815
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
2816
  if test -f conf$$.exe; then
 
2817
    # Don't use ln at all; we don't have any links
 
2818
    as_ln_s='cp -p'
 
2819
  else
 
2820
    as_ln_s='ln -s'
 
2821
  fi
 
2822
elif ln conf$$.file conf$$ 2>/dev/null; then
 
2823
  as_ln_s=ln
 
2824
else
 
2825
  as_ln_s='cp -p'
 
2826
fi
 
2827
rm -f conf$$ conf$$.exe conf$$.file
 
2828
 
 
2829
as_executable_p="test -f"
 
2830
 
 
2831
# Support unset when possible.
 
2832
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
2833
  as_unset=unset
 
2834
else
 
2835
  as_unset=false
 
2836
fi
 
2837
 
 
2838
# NLS nuisances.
 
2839
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
2840
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
2841
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
2842
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
2843
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
2844
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
2845
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
2846
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
2847
 
 
2848
# IFS
 
2849
# We need space, tab and new line, in precisely that order.
 
2850
as_nl='
 
2851
'
 
2852
IFS="   $as_nl"
 
2853
 
 
2854
# CDPATH.
 
2855
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
2856
 
 
2857
exec 6>&1
 
2858
 
 
2859
_ACEOF
 
2860
 
 
2861
# Files that config.status was made for.
 
2862
if test -n "$ac_config_files"; then
 
2863
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
2864
fi
 
2865
 
 
2866
if test -n "$ac_config_headers"; then
 
2867
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
2868
fi
 
2869
 
 
2870
if test -n "$ac_config_links"; then
 
2871
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
2872
fi
 
2873
 
 
2874
if test -n "$ac_config_commands"; then
 
2875
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
2876
fi
 
2877
 
 
2878
cat >>$CONFIG_STATUS <<\EOF
 
2879
 
 
2880
ac_cs_usage="\
 
2881
\`$as_me' instantiates files from templates according to the
 
2882
current configuration.
 
2883
 
 
2884
Usage: $0 [OPTIONS] [FILE]...
 
2885
 
 
2886
  -h, --help       print this help, then exit
 
2887
  -V, --version    print version number, then exit
 
2888
  -d, --debug      don't remove temporary files
 
2889
      --recheck    update $as_me by reconfiguring in the same conditions
 
2890
  --file=FILE[:TEMPLATE]
 
2891
                   instantiate the configuration file FILE
 
2892
  --header=FILE[:TEMPLATE]
 
2893
                   instantiate the configuration header FILE
 
2894
 
 
2895
Configuration files:
 
2896
$config_files
 
2897
 
 
2898
Configuration headers:
 
2899
$config_headers
 
2900
 
 
2901
Report bugs to <bug-autoconf@gnu.org>."
 
2902
EOF
 
2903
 
 
2904
cat >>$CONFIG_STATUS <<EOF
 
2905
ac_cs_version="\\
 
2906
config.status
 
2907
configured by $0, generated by GNU Autoconf 2.52,
 
2908
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
2909
 
 
2910
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
2911
Free Software Foundation, Inc.
 
2912
This config.status script is free software; the Free Software Foundation
 
2913
gives unlimited permission to copy, distribute and modify it."
 
2914
srcdir=$srcdir
 
2915
EOF
 
2916
 
 
2917
cat >>$CONFIG_STATUS <<\EOF
 
2918
# If no file are specified by the user, then we need to provide default
 
2919
# value.  By we need to know if files were specified by the user.
 
2920
ac_need_defaults=:
 
2921
while test $# != 0
 
2922
do
 
2923
  case $1 in
 
2924
  --*=*)
 
2925
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
2926
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
2927
    shift
 
2928
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
2929
    shift
 
2930
    ;;
 
2931
  -*);;
 
2932
  *) # This is not an option, so the user has probably given explicit
 
2933
     # arguments.
 
2934
     ac_need_defaults=false;;
 
2935
  esac
 
2936
 
 
2937
  case $1 in
 
2938
  # Handling of the options.
 
2939
EOF
 
2940
cat >>$CONFIG_STATUS <<EOF
 
2941
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
2942
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
2943
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
2944
EOF
 
2945
cat >>$CONFIG_STATUS <<\EOF
 
2946
  --version | --vers* | -V )
 
2947
    echo "$ac_cs_version"; exit 0 ;;
 
2948
  --he | --h)
 
2949
    # Conflict between --help and --header
 
2950
    { { echo "$as_me:2950: error: ambiguous option: $1
 
2951
Try \`$0 --help' for more information." >&5
 
2952
echo "$as_me: error: ambiguous option: $1
 
2953
Try \`$0 --help' for more information." >&2;}
 
2954
   { (exit 1); exit 1; }; };;
 
2955
  --help | --hel | -h )
 
2956
    echo "$ac_cs_usage"; exit 0 ;;
 
2957
  --debug | --d* | -d )
 
2958
    debug=: ;;
 
2959
  --file | --fil | --fi | --f )
 
2960
    shift
 
2961
    CONFIG_FILES="$CONFIG_FILES $1"
 
2962
    ac_need_defaults=false;;
 
2963
  --header | --heade | --head | --hea )
 
2964
    shift
 
2965
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
2966
    ac_need_defaults=false;;
 
2967
 
 
2968
  # This is an error.
 
2969
  -*) { { echo "$as_me:2969: error: unrecognized option: $1
 
2970
Try \`$0 --help' for more information." >&5
 
2971
echo "$as_me: error: unrecognized option: $1
 
2972
Try \`$0 --help' for more information." >&2;}
 
2973
   { (exit 1); exit 1; }; } ;;
 
2974
 
 
2975
  *) ac_config_targets="$ac_config_targets $1" ;;
 
2976
 
 
2977
  esac
 
2978
  shift
 
2979
done
 
2980
 
 
2981
exec 5>>config.log
 
2982
cat >&5 << _ACEOF
 
2983
 
 
2984
## ----------------------- ##
 
2985
## Running config.status.  ##
 
2986
## ----------------------- ##
 
2987
 
 
2988
This file was extended by $as_me 2.52, executed with
 
2989
  CONFIG_FILES    = $CONFIG_FILES
 
2990
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
2991
  CONFIG_LINKS    = $CONFIG_LINKS
 
2992
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
2993
  > $ac_cs_invocation
 
2994
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2995
 
 
2996
_ACEOF
 
2997
EOF
 
2998
 
 
2999
cat >>$CONFIG_STATUS <<\EOF
 
3000
for ac_config_target in $ac_config_targets
 
3001
do
 
3002
  case "$ac_config_target" in
 
3003
  # Handling of arguments.
 
3004
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
3005
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config/${tcsh_config_file}:config.h.in" ;;
 
3006
  *) { { echo "$as_me:3006: error: invalid argument: $ac_config_target" >&5
 
3007
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
3008
   { (exit 1); exit 1; }; };;
 
3009
  esac
 
3010
done
 
3011
 
 
3012
# If the user did not use the arguments to specify the items to instantiate,
 
3013
# then the envvar interface is used.  Set only those that are not.
 
3014
# We use the long form for the default assignment because of an extremely
 
3015
# bizarre bug on SunOS 4.1.3.
 
3016
if $ac_need_defaults; then
 
3017
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
3018
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
3019
fi
 
3020
 
 
3021
# Create a temporary directory, and hook for its removal unless debugging.
 
3022
$debug ||
 
3023
{
 
3024
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3025
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3026
}
 
3027
 
 
3028
# Create a (secure) tmp directory for tmp files.
 
3029
: ${TMPDIR=/tmp}
 
3030
{
 
3031
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
3032
  test -n "$tmp" && test -d "$tmp"
 
3033
}  ||
 
3034
{
 
3035
  tmp=$TMPDIR/cs$$-$RANDOM
 
3036
  (umask 077 && mkdir $tmp)
 
3037
} ||
 
3038
{
 
3039
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
3040
   { (exit 1); exit 1; }
 
3041
}
 
3042
 
 
3043
EOF
 
3044
 
 
3045
cat >>$CONFIG_STATUS <<EOF
 
3046
 
 
3047
#
 
3048
# CONFIG_FILES section.
 
3049
#
 
3050
 
 
3051
# No need to generate the scripts if there are no CONFIG_FILES.
 
3052
# This happens for instance when ./config.status config.h
 
3053
if test -n "\$CONFIG_FILES"; then
 
3054
  # Protect against being on the right side of a sed subst in config.status.
 
3055
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
3056
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
3057
s,@SHELL@,$SHELL,;t t
 
3058
s,@exec_prefix@,$exec_prefix,;t t
 
3059
s,@prefix@,$prefix,;t t
 
3060
s,@program_transform_name@,$program_transform_name,;t t
 
3061
s,@bindir@,$bindir,;t t
 
3062
s,@sbindir@,$sbindir,;t t
 
3063
s,@libexecdir@,$libexecdir,;t t
 
3064
s,@datadir@,$datadir,;t t
 
3065
s,@sysconfdir@,$sysconfdir,;t t
 
3066
s,@sharedstatedir@,$sharedstatedir,;t t
 
3067
s,@localstatedir@,$localstatedir,;t t
 
3068
s,@libdir@,$libdir,;t t
 
3069
s,@includedir@,$includedir,;t t
 
3070
s,@oldincludedir@,$oldincludedir,;t t
 
3071
s,@infodir@,$infodir,;t t
 
3072
s,@mandir@,$mandir,;t t
 
3073
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
3074
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
3075
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
3076
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
3077
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
3078
s,@build_alias@,$build_alias,;t t
 
3079
s,@host_alias@,$host_alias,;t t
 
3080
s,@target_alias@,$target_alias,;t t
 
3081
s,@ECHO_C@,$ECHO_C,;t t
 
3082
s,@ECHO_N@,$ECHO_N,;t t
 
3083
s,@ECHO_T@,$ECHO_T,;t t
 
3084
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
3085
s,@DEFS@,$DEFS,;t t
 
3086
s,@LIBS@,$LIBS,;t t
 
3087
s,@build@,$build,;t t
 
3088
s,@build_cpu@,$build_cpu,;t t
 
3089
s,@build_vendor@,$build_vendor,;t t
 
3090
s,@build_os@,$build_os,;t t
 
3091
s,@host@,$host,;t t
 
3092
s,@host_cpu@,$host_cpu,;t t
 
3093
s,@host_vendor@,$host_vendor,;t t
 
3094
s,@host_os@,$host_os,;t t
 
3095
s,@CC@,$CC,;t t
 
3096
s,@CFLAGS@,$CFLAGS,;t t
 
3097
s,@LDFLAGS@,$LDFLAGS,;t t
 
3098
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
3099
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
3100
s,@EXEEXT@,$EXEEXT,;t t
 
3101
s,@OBJEXT@,$OBJEXT,;t t
 
3102
s,@CPP@,$CPP,;t t
 
3103
s,@DFLAGS@,$DFLAGS,;t t
 
3104
s,@HESDEF@,$HESDEF,;t t
 
3105
s,@HESLIB@,$HESLIB,;t t
 
3106
s,@GRDDEF@,$GRDDEF,;t t
 
3107
s,@GRDLIB@,$GRDLIB,;t t
 
3108
s,@PROG_NAME@,$PROG_NAME,;t t
 
3109
CEOF
 
3110
 
 
3111
EOF
 
3112
 
 
3113
  cat >>$CONFIG_STATUS <<\EOF
 
3114
  # Split the substitutions into bite-sized pieces for seds with
 
3115
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
3116
  ac_max_sed_lines=48
 
3117
  ac_sed_frag=1 # Number of current file.
 
3118
  ac_beg=1 # First line for current file.
 
3119
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
3120
  ac_more_lines=:
 
3121
  ac_sed_cmds=
 
3122
  while $ac_more_lines; do
 
3123
    if test $ac_beg -gt 1; then
 
3124
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
3125
    else
 
3126
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
3127
    fi
 
3128
    if test ! -s $tmp/subs.frag; then
 
3129
      ac_more_lines=false
 
3130
    else
 
3131
      # The purpose of the label and of the branching condition is to
 
3132
      # speed up the sed processing (if there are no `@' at all, there
 
3133
      # is no need to browse any of the substitutions).
 
3134
      # These are the two extra sed commands mentioned above.
 
3135
      (echo ':t
 
3136
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
3137
      if test -z "$ac_sed_cmds"; then
 
3138
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
3139
      else
 
3140
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
3141
      fi
 
3142
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
3143
      ac_beg=$ac_end
 
3144
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
3145
    fi
 
3146
  done
 
3147
  if test -z "$ac_sed_cmds"; then
 
3148
    ac_sed_cmds=cat
 
3149
  fi
 
3150
fi # test -n "$CONFIG_FILES"
 
3151
 
 
3152
EOF
 
3153
cat >>$CONFIG_STATUS <<\EOF
 
3154
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
3155
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3156
  case $ac_file in
 
3157
  - | *:- | *:-:* ) # input from stdin
 
3158
        cat >$tmp/stdin
 
3159
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3160
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3161
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3162
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3163
  * )   ac_file_in=$ac_file.in ;;
 
3164
  esac
 
3165
 
 
3166
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
3167
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
3168
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
3169
         X"$ac_file" : 'X\(//\)$' \| \
 
3170
         X"$ac_file" : 'X\(/\)' \| \
 
3171
         .     : '\(.\)' 2>/dev/null ||
 
3172
echo X"$ac_file" |
 
3173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3174
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3175
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3176
          /^X\(\/\).*/{ s//\1/; q; }
 
3177
          s/.*/./; q'`
 
3178
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
3179
    { case "$ac_dir" in
 
3180
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
3181
  *)                      as_incr_dir=.;;
 
3182
esac
 
3183
as_dummy="$ac_dir"
 
3184
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
3185
  case $as_mkdir_dir in
 
3186
    # Skip DOS drivespec
 
3187
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
3188
    *)
 
3189
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
3190
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
3191
    ;;
 
3192
  esac
 
3193
done; }
 
3194
 
 
3195
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
 
3196
    # A "../" for each directory in $ac_dir_suffix.
 
3197
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
3198
  else
 
3199
    ac_dir_suffix= ac_dots=
 
3200
  fi
 
3201
 
 
3202
  case $srcdir in
 
3203
  .)  ac_srcdir=.
 
3204
      if test -z "$ac_dots"; then
 
3205
         ac_top_srcdir=.
 
3206
      else
 
3207
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
 
3208
      fi ;;
 
3209
  [\\/]* | ?:[\\/]* )
 
3210
      ac_srcdir=$srcdir$ac_dir_suffix;
 
3211
      ac_top_srcdir=$srcdir ;;
 
3212
  *) # Relative path.
 
3213
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
 
3214
    ac_top_srcdir=$ac_dots$srcdir ;;
 
3215
  esac
 
3216
 
 
3217
  if test x"$ac_file" != x-; then
 
3218
    { echo "$as_me:3218: creating $ac_file" >&5
 
3219
echo "$as_me: creating $ac_file" >&6;}
 
3220
    rm -f "$ac_file"
 
3221
  fi
 
3222
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
3223
  # use $as_me), people would be surprised to read:
 
3224
  #    /* config.h.  Generated automatically by config.status.  */
 
3225
  configure_input="Generated automatically from `echo $ac_file_in |
 
3226
                                                 sed 's,.*/,,'` by configure."
 
3227
 
 
3228
  # First look for the input files in the build tree, otherwise in the
 
3229
  # src tree.
 
3230
  ac_file_inputs=`IFS=:
 
3231
    for f in $ac_file_in; do
 
3232
      case $f in
 
3233
      -) echo $tmp/stdin ;;
 
3234
      [\\/$]*)
 
3235
         # Absolute (can't be DOS-style, as IFS=:)
 
3236
         test -f "$f" || { { echo "$as_me:3236: error: cannot find input file: $f" >&5
 
3237
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3238
   { (exit 1); exit 1; }; }
 
3239
         echo $f;;
 
3240
      *) # Relative
 
3241
         if test -f "$f"; then
 
3242
           # Build tree
 
3243
           echo $f
 
3244
         elif test -f "$srcdir/$f"; then
 
3245
           # Source tree
 
3246
           echo $srcdir/$f
 
3247
         else
 
3248
           # /dev/null tree
 
3249
           { { echo "$as_me:3249: error: cannot find input file: $f" >&5
 
3250
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3251
   { (exit 1); exit 1; }; }
 
3252
         fi;;
 
3253
      esac
 
3254
    done` || { (exit 1); exit 1; }
 
3255
EOF
 
3256
cat >>$CONFIG_STATUS <<EOF
 
3257
  sed "$ac_vpsub
 
3258
$extrasub
 
3259
EOF
 
3260
cat >>$CONFIG_STATUS <<\EOF
 
3261
:t
 
3262
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
3263
s,@configure_input@,$configure_input,;t t
 
3264
s,@srcdir@,$ac_srcdir,;t t
 
3265
s,@top_srcdir@,$ac_top_srcdir,;t t
 
3266
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
3267
  rm -f $tmp/stdin
 
3268
  if test x"$ac_file" != x-; then
 
3269
    mv $tmp/out $ac_file
 
3270
  else
 
3271
    cat $tmp/out
 
3272
    rm -f $tmp/out
 
3273
  fi
 
3274
 
 
3275
done
 
3276
EOF
 
3277
cat >>$CONFIG_STATUS <<\EOF
 
3278
 
 
3279
#
 
3280
# CONFIG_HEADER section.
 
3281
#
 
3282
 
 
3283
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
3284
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
3285
#
 
3286
# ac_d sets the value in "#define NAME VALUE" lines.
 
3287
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
3288
ac_dB='[        ].*$,\1#\2'
 
3289
ac_dC=' '
 
3290
ac_dD=',;t'
 
3291
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
3292
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
3293
ac_uB='$,\1#\2define\3'
 
3294
ac_uC=' '
 
3295
ac_uD=',;t'
 
3296
 
 
3297
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
3298
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3299
  case $ac_file in
 
3300
  - | *:- | *:-:* ) # input from stdin
 
3301
        cat >$tmp/stdin
 
3302
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3303
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3304
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3305
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3306
  * )   ac_file_in=$ac_file.in ;;
 
3307
  esac
 
3308
 
 
3309
  test x"$ac_file" != x- && { echo "$as_me:3309: creating $ac_file" >&5
 
3310
echo "$as_me: creating $ac_file" >&6;}
 
3311
 
 
3312
  # First look for the input files in the build tree, otherwise in the
 
3313
  # src tree.
 
3314
  ac_file_inputs=`IFS=:
 
3315
    for f in $ac_file_in; do
 
3316
      case $f in
 
3317
      -) echo $tmp/stdin ;;
 
3318
      [\\/$]*)
 
3319
         # Absolute (can't be DOS-style, as IFS=:)
 
3320
         test -f "$f" || { { echo "$as_me:3320: error: cannot find input file: $f" >&5
 
3321
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3322
   { (exit 1); exit 1; }; }
 
3323
         echo $f;;
 
3324
      *) # Relative
 
3325
         if test -f "$f"; then
 
3326
           # Build tree
 
3327
           echo $f
 
3328
         elif test -f "$srcdir/$f"; then
 
3329
           # Source tree
 
3330
           echo $srcdir/$f
 
3331
         else
 
3332
           # /dev/null tree
 
3333
           { { echo "$as_me:3333: error: cannot find input file: $f" >&5
 
3334
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3335
   { (exit 1); exit 1; }; }
 
3336
         fi;;
 
3337
      esac
 
3338
    done` || { (exit 1); exit 1; }
 
3339
  # Remove the trailing spaces.
 
3340
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
3341
 
 
3342
EOF
 
3343
 
 
3344
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
3345
# `conftest.undefs', that substitutes the proper values into
 
3346
# config.h.in to produce config.h.  The first handles `#define'
 
3347
# templates, and the second `#undef' templates.
 
3348
# And first: Protect against being on the right side of a sed subst in
 
3349
# config.status.  Protect against being in an unquoted here document
 
3350
# in config.status.
 
3351
rm -f conftest.defines conftest.undefs
 
3352
# Using a here document instead of a string reduces the quoting nightmare.
 
3353
# Putting comments in sed scripts is not portable.
 
3354
#
 
3355
# `end' is used to avoid that the second main sed command (meant for
 
3356
# 0-ary CPP macros) applies to n-ary macro definitions.
 
3357
# See the Autoconf documentation for `clear'.
 
3358
cat >confdef2sed.sed <<\EOF
 
3359
s/[\\&,]/\\&/g
 
3360
s,[\\$`],\\&,g
 
3361
t clear
 
3362
: clear
 
3363
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
3364
t end
 
3365
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
3366
: end
 
3367
EOF
 
3368
# If some macros were called several times there might be several times
 
3369
# the same #defines, which is useless.  Nevertheless, we may not want to
 
3370
# sort them, since we want the *last* AC-DEFINE to be honored.
 
3371
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
3372
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
3373
rm -f confdef2sed.sed
 
3374
 
 
3375
# This sed command replaces #undef with comments.  This is necessary, for
 
3376
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
3377
# on some systems where configure will not decide to define it.
 
3378
cat >>conftest.undefs <<\EOF
 
3379
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
3380
EOF
 
3381
 
 
3382
# Break up conftest.defines because some shells have a limit on the size
 
3383
# of here documents, and old seds have small limits too (100 cmds).
 
3384
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
3385
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
3386
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
3387
echo '  :' >>$CONFIG_STATUS
 
3388
rm -f conftest.tail
 
3389
while grep . conftest.defines >/dev/null
 
3390
do
 
3391
  # Write a limited-size here document to $tmp/defines.sed.
 
3392
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
3393
  # Speed up: don't consider the non `#define' lines.
 
3394
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
3395
  # Work around the forget-to-reset-the-flag bug.
 
3396
  echo 't clr' >>$CONFIG_STATUS
 
3397
  echo ': clr' >>$CONFIG_STATUS
 
3398
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
3399
  echo 'CEOF
 
3400
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
3401
  rm -f $tmp/in
 
3402
  mv $tmp/out $tmp/in
 
3403
' >>$CONFIG_STATUS
 
3404
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
3405
  rm -f conftest.defines
 
3406
  mv conftest.tail conftest.defines
 
3407
done
 
3408
rm -f conftest.defines
 
3409
echo '  fi # egrep' >>$CONFIG_STATUS
 
3410
echo >>$CONFIG_STATUS
 
3411
 
 
3412
# Break up conftest.undefs because some shells have a limit on the size
 
3413
# of here documents, and old seds have small limits too (100 cmds).
 
3414
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
3415
rm -f conftest.tail
 
3416
while grep . conftest.undefs >/dev/null
 
3417
do
 
3418
  # Write a limited-size here document to $tmp/undefs.sed.
 
3419
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
3420
  # Speed up: don't consider the non `#undef'
 
3421
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
3422
  # Work around the forget-to-reset-the-flag bug.
 
3423
  echo 't clr' >>$CONFIG_STATUS
 
3424
  echo ': clr' >>$CONFIG_STATUS
 
3425
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
3426
  echo 'CEOF
 
3427
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
3428
  rm -f $tmp/in
 
3429
  mv $tmp/out $tmp/in
 
3430
' >>$CONFIG_STATUS
 
3431
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
3432
  rm -f conftest.undefs
 
3433
  mv conftest.tail conftest.undefs
 
3434
done
 
3435
rm -f conftest.undefs
 
3436
 
 
3437
cat >>$CONFIG_STATUS <<\EOF
 
3438
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
3439
  # use $as_me), people would be surprised to read:
 
3440
  #    /* config.h.  Generated automatically by config.status.  */
 
3441
  if test x"$ac_file" = x-; then
 
3442
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
3443
  else
 
3444
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
3445
  fi
 
3446
  cat $tmp/in >>$tmp/config.h
 
3447
  rm -f $tmp/in
 
3448
  if test x"$ac_file" != x-; then
 
3449
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
3450
      { echo "$as_me:3450: $ac_file is unchanged" >&5
 
3451
echo "$as_me: $ac_file is unchanged" >&6;}
 
3452
    else
 
3453
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
3454
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
3455
         X"$ac_file" : 'X\(//\)$' \| \
 
3456
         X"$ac_file" : 'X\(/\)' \| \
 
3457
         .     : '\(.\)' 2>/dev/null ||
 
3458
echo X"$ac_file" |
 
3459
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3460
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3461
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3462
          /^X\(\/\).*/{ s//\1/; q; }
 
3463
          s/.*/./; q'`
 
3464
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
3465
        { case "$ac_dir" in
 
3466
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
3467
  *)                      as_incr_dir=.;;
 
3468
esac
 
3469
as_dummy="$ac_dir"
 
3470
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
3471
  case $as_mkdir_dir in
 
3472
    # Skip DOS drivespec
 
3473
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
3474
    *)
 
3475
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
3476
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
3477
    ;;
 
3478
  esac
 
3479
done; }
 
3480
 
 
3481
      fi
 
3482
      rm -f $ac_file
 
3483
      mv $tmp/config.h $ac_file
 
3484
    fi
 
3485
  else
 
3486
    cat $tmp/config.h
 
3487
    rm -f $tmp/config.h
 
3488
  fi
 
3489
done
 
3490
EOF
 
3491
 
 
3492
cat >>$CONFIG_STATUS <<\EOF
 
3493
 
 
3494
{ (exit 0); exit 0; }
 
3495
EOF
 
3496
chmod +x $CONFIG_STATUS
 
3497
ac_clean_files=$ac_clean_files_save
 
3498
 
 
3499
# configure is writing to config.log, and then calls config.status.
 
3500
# config.status does its own redirection, appending to config.log.
 
3501
# Unfortunately, on DOS this fails, as config.log is still kept open
 
3502
# by configure, so config.status won't be able to write to it; its
 
3503
# output is simply discarded.  So we exec the FD to /dev/null,
 
3504
# effectively closing config.log, so it can be properly (re)opened and
 
3505
# appended to by config.status.  When coming back to configure, we
 
3506
# need to make the FD available again.
 
3507
if test "$no_create" != yes; then
 
3508
  ac_cs_success=:
 
3509
  exec 5>/dev/null
 
3510
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
3511
  exec 5>>config.log
 
3512
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
3513
  # would make configure fail if this is the last instruction.
 
3514
  $ac_cs_success || { (exit 1); exit 1; }
 
3515
fi
 
3516