~ubuntu-branches/debian/stretch/debfoster/stretch

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ivo Timmermans
  • Date: 2002-01-17 23:08:39 UTC
  • Revision ID: james.westby@ubuntu.com-20020117230839-s22xl5hew1z4s3r5
Tags: upstream-2.5
ImportĀ upstreamĀ versionĀ 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
 
16
ac_help="$ac_help
 
17
  --disable-nls           do not use Native Language Support"
 
18
ac_help="$ac_help
 
19
  --with-included-gettext use the GNU gettext library included here"
 
20
 
 
21
# Initialize some variables set by options.
 
22
# The variables have the same names as the options, with
 
23
# dashes changed to underlines.
 
24
build=NONE
 
25
cache_file=./config.cache
 
26
exec_prefix=NONE
 
27
host=NONE
 
28
no_create=
 
29
nonopt=NONE
 
30
no_recursion=
 
31
prefix=NONE
 
32
program_prefix=NONE
 
33
program_suffix=NONE
 
34
program_transform_name=s,x,x,
 
35
silent=
 
36
site=
 
37
srcdir=
 
38
target=NONE
 
39
verbose=
 
40
x_includes=NONE
 
41
x_libraries=NONE
 
42
bindir='${exec_prefix}/bin'
 
43
sbindir='${exec_prefix}/sbin'
 
44
libexecdir='${exec_prefix}/libexec'
 
45
datadir='${prefix}/share'
 
46
sysconfdir='${prefix}/etc'
 
47
sharedstatedir='${prefix}/com'
 
48
localstatedir='${prefix}/var'
 
49
libdir='${exec_prefix}/lib'
 
50
includedir='${prefix}/include'
 
51
oldincludedir='/usr/include'
 
52
infodir='${prefix}/info'
 
53
mandir='${prefix}/man'
 
54
 
 
55
# Initialize some other variables.
 
56
subdirs=
 
57
MFLAGS= MAKEFLAGS=
 
58
SHELL=${CONFIG_SHELL-/bin/sh}
 
59
# Maximum number of lines to put in a shell here document.
 
60
ac_max_here_lines=12
 
61
 
 
62
ac_prev=
 
63
for ac_option
 
64
do
 
65
 
 
66
  # If the previous option needs an argument, assign it.
 
67
  if test -n "$ac_prev"; then
 
68
    eval "$ac_prev=\$ac_option"
 
69
    ac_prev=
 
70
    continue
 
71
  fi
 
72
 
 
73
  case "$ac_option" in
 
74
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
75
  *) ac_optarg= ;;
 
76
  esac
 
77
 
 
78
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
79
 
 
80
  case "$ac_option" in
 
81
 
 
82
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
83
    ac_prev=bindir ;;
 
84
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
85
    bindir="$ac_optarg" ;;
 
86
 
 
87
  -build | --build | --buil | --bui | --bu)
 
88
    ac_prev=build ;;
 
89
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
90
    build="$ac_optarg" ;;
 
91
 
 
92
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
93
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
94
    ac_prev=cache_file ;;
 
95
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
96
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
97
    cache_file="$ac_optarg" ;;
 
98
 
 
99
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
100
    ac_prev=datadir ;;
 
101
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
102
  | --da=*)
 
103
    datadir="$ac_optarg" ;;
 
104
 
 
105
  -disable-* | --disable-*)
 
106
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
107
    # Reject names that are not valid shell variable names.
 
108
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
109
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
110
    fi
 
111
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
112
    eval "enable_${ac_feature}=no" ;;
 
113
 
 
114
  -enable-* | --enable-*)
 
115
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
116
    # Reject names that are not valid shell variable names.
 
117
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
118
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
119
    fi
 
120
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
121
    case "$ac_option" in
 
122
      *=*) ;;
 
123
      *) ac_optarg=yes ;;
 
124
    esac
 
125
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
126
 
 
127
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
128
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
129
  | --exec | --exe | --ex)
 
130
    ac_prev=exec_prefix ;;
 
131
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
132
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
133
  | --exec=* | --exe=* | --ex=*)
 
134
    exec_prefix="$ac_optarg" ;;
 
135
 
 
136
  -gas | --gas | --ga | --g)
 
137
    # Obsolete; use --with-gas.
 
138
    with_gas=yes ;;
 
139
 
 
140
  -help | --help | --hel | --he)
 
141
    # Omit some internal or obsolete options to make the list less imposing.
 
142
    # This message is too long to be a string in the A/UX 3.1 sh.
 
143
    cat << EOF
 
144
Usage: configure [options] [host]
 
145
Options: [defaults in brackets after descriptions]
 
146
Configuration:
 
147
  --cache-file=FILE       cache test results in FILE
 
148
  --help                  print this message
 
149
  --no-create             do not create output files
 
150
  --quiet, --silent       do not print \`checking...' messages
 
151
  --version               print the version of autoconf that created configure
 
152
Directory and file names:
 
153
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
154
                          [$ac_default_prefix]
 
155
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
156
                          [same as prefix]
 
157
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
158
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
159
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
160
  --datadir=DIR           read-only architecture-independent data in DIR
 
161
                          [PREFIX/share]
 
162
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
163
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
164
                          [PREFIX/com]
 
165
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
166
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
167
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
168
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
169
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
170
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
171
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
172
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
173
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
174
  --program-transform-name=PROGRAM
 
175
                          run sed PROGRAM on installed program names
 
176
EOF
 
177
    cat << EOF
 
178
Host type:
 
179
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
180
  --host=HOST             configure for HOST [guessed]
 
181
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
182
Features and packages:
 
183
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
184
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
185
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
186
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
187
  --x-includes=DIR        X include files are in DIR
 
188
  --x-libraries=DIR       X library files are in DIR
 
189
EOF
 
190
    if test -n "$ac_help"; then
 
191
      echo "--enable and --with options recognized:$ac_help"
 
192
    fi
 
193
    exit 0 ;;
 
194
 
 
195
  -host | --host | --hos | --ho)
 
196
    ac_prev=host ;;
 
197
  -host=* | --host=* | --hos=* | --ho=*)
 
198
    host="$ac_optarg" ;;
 
199
 
 
200
  -includedir | --includedir | --includedi | --included | --include \
 
201
  | --includ | --inclu | --incl | --inc)
 
202
    ac_prev=includedir ;;
 
203
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
204
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
205
    includedir="$ac_optarg" ;;
 
206
 
 
207
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
208
    ac_prev=infodir ;;
 
209
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
210
    infodir="$ac_optarg" ;;
 
211
 
 
212
  -libdir | --libdir | --libdi | --libd)
 
213
    ac_prev=libdir ;;
 
214
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
215
    libdir="$ac_optarg" ;;
 
216
 
 
217
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
218
  | --libexe | --libex | --libe)
 
219
    ac_prev=libexecdir ;;
 
220
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
221
  | --libexe=* | --libex=* | --libe=*)
 
222
    libexecdir="$ac_optarg" ;;
 
223
 
 
224
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
225
  | --localstate | --localstat | --localsta | --localst \
 
226
  | --locals | --local | --loca | --loc | --lo)
 
227
    ac_prev=localstatedir ;;
 
228
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
229
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
230
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
231
    localstatedir="$ac_optarg" ;;
 
232
 
 
233
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
234
    ac_prev=mandir ;;
 
235
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
236
    mandir="$ac_optarg" ;;
 
237
 
 
238
  -nfp | --nfp | --nf)
 
239
    # Obsolete; use --without-fp.
 
240
    with_fp=no ;;
 
241
 
 
242
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
243
  | --no-cr | --no-c)
 
244
    no_create=yes ;;
 
245
 
 
246
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
247
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
248
    no_recursion=yes ;;
 
249
 
 
250
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
251
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
252
  | --oldin | --oldi | --old | --ol | --o)
 
253
    ac_prev=oldincludedir ;;
 
254
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
255
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
256
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
257
    oldincludedir="$ac_optarg" ;;
 
258
 
 
259
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
260
    ac_prev=prefix ;;
 
261
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
262
    prefix="$ac_optarg" ;;
 
263
 
 
264
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
265
  | --program-pre | --program-pr | --program-p)
 
266
    ac_prev=program_prefix ;;
 
267
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
268
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
269
    program_prefix="$ac_optarg" ;;
 
270
 
 
271
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
272
  | --program-suf | --program-su | --program-s)
 
273
    ac_prev=program_suffix ;;
 
274
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
275
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
276
    program_suffix="$ac_optarg" ;;
 
277
 
 
278
  -program-transform-name | --program-transform-name \
 
279
  | --program-transform-nam | --program-transform-na \
 
280
  | --program-transform-n | --program-transform- \
 
281
  | --program-transform | --program-transfor \
 
282
  | --program-transfo | --program-transf \
 
283
  | --program-trans | --program-tran \
 
284
  | --progr-tra | --program-tr | --program-t)
 
285
    ac_prev=program_transform_name ;;
 
286
  -program-transform-name=* | --program-transform-name=* \
 
287
  | --program-transform-nam=* | --program-transform-na=* \
 
288
  | --program-transform-n=* | --program-transform-=* \
 
289
  | --program-transform=* | --program-transfor=* \
 
290
  | --program-transfo=* | --program-transf=* \
 
291
  | --program-trans=* | --program-tran=* \
 
292
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
293
    program_transform_name="$ac_optarg" ;;
 
294
 
 
295
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
296
  | -silent | --silent | --silen | --sile | --sil)
 
297
    silent=yes ;;
 
298
 
 
299
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
300
    ac_prev=sbindir ;;
 
301
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
302
  | --sbi=* | --sb=*)
 
303
    sbindir="$ac_optarg" ;;
 
304
 
 
305
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
306
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
307
  | --sharedst | --shareds | --shared | --share | --shar \
 
308
  | --sha | --sh)
 
309
    ac_prev=sharedstatedir ;;
 
310
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
311
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
312
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
313
  | --sha=* | --sh=*)
 
314
    sharedstatedir="$ac_optarg" ;;
 
315
 
 
316
  -site | --site | --sit)
 
317
    ac_prev=site ;;
 
318
  -site=* | --site=* | --sit=*)
 
319
    site="$ac_optarg" ;;
 
320
 
 
321
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
322
    ac_prev=srcdir ;;
 
323
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
324
    srcdir="$ac_optarg" ;;
 
325
 
 
326
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
327
  | --syscon | --sysco | --sysc | --sys | --sy)
 
328
    ac_prev=sysconfdir ;;
 
329
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
330
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
331
    sysconfdir="$ac_optarg" ;;
 
332
 
 
333
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
334
    ac_prev=target ;;
 
335
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
336
    target="$ac_optarg" ;;
 
337
 
 
338
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
339
    verbose=yes ;;
 
340
 
 
341
  -version | --version | --versio | --versi | --vers)
 
342
    echo "configure generated by autoconf version 2.13"
 
343
    exit 0 ;;
 
344
 
 
345
  -with-* | --with-*)
 
346
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
347
    # Reject names that are not valid shell variable names.
 
348
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
349
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
350
    fi
 
351
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
352
    case "$ac_option" in
 
353
      *=*) ;;
 
354
      *) ac_optarg=yes ;;
 
355
    esac
 
356
    eval "with_${ac_package}='$ac_optarg'" ;;
 
357
 
 
358
  -without-* | --without-*)
 
359
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
360
    # Reject names that are not valid shell variable names.
 
361
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
362
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
363
    fi
 
364
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
365
    eval "with_${ac_package}=no" ;;
 
366
 
 
367
  --x)
 
368
    # Obsolete; use --with-x.
 
369
    with_x=yes ;;
 
370
 
 
371
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
372
  | --x-incl | --x-inc | --x-in | --x-i)
 
373
    ac_prev=x_includes ;;
 
374
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
375
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
376
    x_includes="$ac_optarg" ;;
 
377
 
 
378
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
379
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
380
    ac_prev=x_libraries ;;
 
381
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
382
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
383
    x_libraries="$ac_optarg" ;;
 
384
 
 
385
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
386
    ;;
 
387
 
 
388
  *)
 
389
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
390
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
391
    fi
 
392
    if test "x$nonopt" != xNONE; then
 
393
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
394
    fi
 
395
    nonopt="$ac_option"
 
396
    ;;
 
397
 
 
398
  esac
 
399
done
 
400
 
 
401
if test -n "$ac_prev"; then
 
402
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
403
fi
 
404
 
 
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
406
 
 
407
# File descriptor usage:
 
408
# 0 standard input
 
409
# 1 file creation
 
410
# 2 errors and warnings
 
411
# 3 some systems may open it to /dev/tty
 
412
# 4 used on the Kubota Titan
 
413
# 6 checking for... messages and results
 
414
# 5 compiler messages saved in config.log
 
415
if test "$silent" = yes; then
 
416
  exec 6>/dev/null
 
417
else
 
418
  exec 6>&1
 
419
fi
 
420
exec 5>./config.log
 
421
 
 
422
echo "\
 
423
This file contains any messages produced by compilers while
 
424
running configure, to aid debugging if configure makes a mistake.
 
425
" 1>&5
 
426
 
 
427
# Strip out --no-create and --no-recursion so they do not pile up.
 
428
# Also quote any args containing shell metacharacters.
 
429
ac_configure_args=
 
430
for ac_arg
 
431
do
 
432
  case "$ac_arg" in
 
433
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
434
  | --no-cr | --no-c) ;;
 
435
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
436
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
437
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
438
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
439
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
440
  esac
 
441
done
 
442
 
 
443
# NLS nuisances.
 
444
# Only set these to C if already set.  These must not be set unconditionally
 
445
# because not all systems understand e.g. LANG=C (notably SCO).
 
446
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
447
# Non-C LC_CTYPE values break the ctype check.
 
448
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
449
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
450
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
451
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
452
 
 
453
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
454
rm -rf conftest* confdefs.h
 
455
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
456
echo > confdefs.h
 
457
 
 
458
# A filename unique to this package, relative to the directory that
 
459
# configure is in, which we can look for to find out if srcdir is correct.
 
460
ac_unique_file=src/debfoster.c
 
461
 
 
462
# Find the source files, if location was not specified.
 
463
if test -z "$srcdir"; then
 
464
  ac_srcdir_defaulted=yes
 
465
  # Try the directory containing this script, then its parent.
 
466
  ac_prog=$0
 
467
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
468
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
469
  srcdir=$ac_confdir
 
470
  if test ! -r $srcdir/$ac_unique_file; then
 
471
    srcdir=..
 
472
  fi
 
473
else
 
474
  ac_srcdir_defaulted=no
 
475
fi
 
476
if test ! -r $srcdir/$ac_unique_file; then
 
477
  if test "$ac_srcdir_defaulted" = yes; then
 
478
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
479
  else
 
480
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
481
  fi
 
482
fi
 
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
484
 
 
485
# Prefer explicitly selected file to automatically selected ones.
 
486
if test -z "$CONFIG_SITE"; then
 
487
  if test "x$prefix" != xNONE; then
 
488
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
489
  else
 
490
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
491
  fi
 
492
fi
 
493
for ac_site_file in $CONFIG_SITE; do
 
494
  if test -r "$ac_site_file"; then
 
495
    echo "loading site script $ac_site_file"
 
496
    . "$ac_site_file"
 
497
  fi
 
498
done
 
499
 
 
500
if test -r "$cache_file"; then
 
501
  echo "loading cache $cache_file"
 
502
  . $cache_file
 
503
else
 
504
  echo "creating cache $cache_file"
 
505
  > $cache_file
 
506
fi
 
507
 
 
508
ac_ext=c
 
509
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
510
ac_cpp='$CPP $CPPFLAGS'
 
511
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
512
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
513
cross_compiling=$ac_cv_prog_cc_cross
 
514
 
 
515
ac_exeext=
 
516
ac_objext=o
 
517
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
518
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
519
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
520
    ac_n= ac_c='
 
521
' ac_t='        '
 
522
  else
 
523
    ac_n=-n ac_c= ac_t=
 
524
  fi
 
525
else
 
526
  ac_n= ac_c='\c' ac_t=
 
527
fi
 
528
 
 
529
 
 
530
 
 
531
 
 
532
 
 
533
ac_aux_dir=
 
534
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
535
  if test -f $ac_dir/install-sh; then
 
536
    ac_aux_dir=$ac_dir
 
537
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
538
    break
 
539
  elif test -f $ac_dir/install.sh; then
 
540
    ac_aux_dir=$ac_dir
 
541
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
542
    break
 
543
  fi
 
544
done
 
545
if test -z "$ac_aux_dir"; then
 
546
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
547
fi
 
548
ac_config_guess=$ac_aux_dir/config.guess
 
549
ac_config_sub=$ac_aux_dir/config.sub
 
550
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
551
 
 
552
# Find a good install program.  We prefer a C program (faster),
 
553
# so one script is as good as another.  But avoid the broken or
 
554
# incompatible versions:
 
555
# SysV /etc/install, /usr/sbin/install
 
556
# SunOS /usr/etc/install
 
557
# IRIX /sbin/install
 
558
# AIX /bin/install
 
559
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
560
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
561
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
562
# ./install, which can be erroneously created by make from ./install.sh.
 
563
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
564
echo "configure:565: checking for a BSD compatible install" >&5
 
565
if test -z "$INSTALL"; then
 
566
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
567
  echo $ac_n "(cached) $ac_c" 1>&6
 
568
else
 
569
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
570
  for ac_dir in $PATH; do
 
571
    # Account for people who put trailing slashes in PATH elements.
 
572
    case "$ac_dir/" in
 
573
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
574
    *)
 
575
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
576
      # Don't use installbsd from OSF since it installs stuff as root
 
577
      # by default.
 
578
      for ac_prog in ginstall scoinst install; do
 
579
        if test -f $ac_dir/$ac_prog; then
 
580
          if test $ac_prog = install &&
 
581
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
582
            # AIX install.  It has an incompatible calling convention.
 
583
            :
 
584
          else
 
585
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
586
            break 2
 
587
          fi
 
588
        fi
 
589
      done
 
590
      ;;
 
591
    esac
 
592
  done
 
593
  IFS="$ac_save_IFS"
 
594
 
 
595
fi
 
596
  if test "${ac_cv_path_install+set}" = set; then
 
597
    INSTALL="$ac_cv_path_install"
 
598
  else
 
599
    # As a last resort, use the slow shell script.  We don't cache a
 
600
    # path for INSTALL within a source directory, because that will
 
601
    # break other packages using the cache if that directory is
 
602
    # removed, or if the path is relative.
 
603
    INSTALL="$ac_install_sh"
 
604
  fi
 
605
fi
 
606
echo "$ac_t""$INSTALL" 1>&6
 
607
 
 
608
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
609
# It thinks the first close brace ends the variable substitution.
 
610
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
611
 
 
612
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
613
 
 
614
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
615
 
 
616
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
617
echo "configure:618: checking whether build environment is sane" >&5
 
618
# Just in case
 
619
sleep 1
 
620
echo timestamp > conftestfile
 
621
# Do `set' in a subshell so we don't clobber the current shell's
 
622
# arguments.  Must try -L first in case configure is actually a
 
623
# symlink; some systems play weird games with the mod time of symlinks
 
624
# (eg FreeBSD returns the mod time of the symlink's containing
 
625
# directory).
 
626
if (
 
627
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
628
   if test "$*" = "X"; then
 
629
      # -L didn't work.
 
630
      set X `ls -t $srcdir/configure conftestfile`
 
631
   fi
 
632
   if test "$*" != "X $srcdir/configure conftestfile" \
 
633
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
634
 
 
635
      # If neither matched, then we have a broken ls.  This can happen
 
636
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
637
      # broken ls alias from the environment.  This has actually
 
638
      # happened.  Such a system could not be considered "sane".
 
639
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 
640
alias in your environment" 1>&2; exit 1; }
 
641
   fi
 
642
 
 
643
   test "$2" = conftestfile
 
644
   )
 
645
then
 
646
   # Ok.
 
647
   :
 
648
else
 
649
   { echo "configure: error: newly created file is older than distributed files!
 
650
Check your system clock" 1>&2; exit 1; }
 
651
fi
 
652
rm -f conftest*
 
653
echo "$ac_t""yes" 1>&6
 
654
if test "$program_transform_name" = s,x,x,; then
 
655
  program_transform_name=
 
656
else
 
657
  # Double any \ or $.  echo might interpret backslashes.
 
658
  cat <<\EOF_SED > conftestsed
 
659
s,\\,\\\\,g; s,\$,$$,g
 
660
EOF_SED
 
661
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
662
  rm -f conftestsed
 
663
fi
 
664
test "$program_prefix" != NONE &&
 
665
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
666
# Use a double $ so make ignores it.
 
667
test "$program_suffix" != NONE &&
 
668
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
669
 
 
670
# sed with no file args requires a program.
 
671
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
672
 
 
673
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
674
echo "configure:675: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
675
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
676
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
677
  echo $ac_n "(cached) $ac_c" 1>&6
 
678
else
 
679
  cat > conftestmake <<\EOF
 
680
all:
 
681
        @echo 'ac_maketemp="${MAKE}"'
 
682
EOF
 
683
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
684
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
685
if test -n "$ac_maketemp"; then
 
686
  eval ac_cv_prog_make_${ac_make}_set=yes
 
687
else
 
688
  eval ac_cv_prog_make_${ac_make}_set=no
 
689
fi
 
690
rm -f conftestmake
 
691
fi
 
692
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
693
  echo "$ac_t""yes" 1>&6
 
694
  SET_MAKE=
 
695
else
 
696
  echo "$ac_t""no" 1>&6
 
697
  SET_MAKE="MAKE=${MAKE-make}"
 
698
fi
 
699
 
 
700
 
 
701
PACKAGE=debfoster
 
702
 
 
703
VERSION=2.5
 
704
 
 
705
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
706
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
707
fi
 
708
cat >> confdefs.h <<EOF
 
709
#define PACKAGE "$PACKAGE"
 
710
EOF
 
711
 
 
712
cat >> confdefs.h <<EOF
 
713
#define VERSION "$VERSION"
 
714
EOF
 
715
 
 
716
 
 
717
 
 
718
missing_dir=`cd $ac_aux_dir && pwd`
 
719
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
720
echo "configure:721: checking for working aclocal" >&5
 
721
# Run test in a subshell; some versions of sh will print an error if
 
722
# an executable is not found, even if stderr is redirected.
 
723
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
724
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
725
   ACLOCAL=aclocal
 
726
   echo "$ac_t""found" 1>&6
 
727
else
 
728
   ACLOCAL="$missing_dir/missing aclocal"
 
729
   echo "$ac_t""missing" 1>&6
 
730
fi
 
731
 
 
732
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
733
echo "configure:734: checking for working autoconf" >&5
 
734
# Run test in a subshell; some versions of sh will print an error if
 
735
# an executable is not found, even if stderr is redirected.
 
736
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
737
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
738
   AUTOCONF=autoconf
 
739
   echo "$ac_t""found" 1>&6
 
740
else
 
741
   AUTOCONF="$missing_dir/missing autoconf"
 
742
   echo "$ac_t""missing" 1>&6
 
743
fi
 
744
 
 
745
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
746
echo "configure:747: checking for working automake" >&5
 
747
# Run test in a subshell; some versions of sh will print an error if
 
748
# an executable is not found, even if stderr is redirected.
 
749
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
750
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
751
   AUTOMAKE=automake
 
752
   echo "$ac_t""found" 1>&6
 
753
else
 
754
   AUTOMAKE="$missing_dir/missing automake"
 
755
   echo "$ac_t""missing" 1>&6
 
756
fi
 
757
 
 
758
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
759
echo "configure:760: checking for working autoheader" >&5
 
760
# Run test in a subshell; some versions of sh will print an error if
 
761
# an executable is not found, even if stderr is redirected.
 
762
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
763
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
764
   AUTOHEADER=autoheader
 
765
   echo "$ac_t""found" 1>&6
 
766
else
 
767
   AUTOHEADER="$missing_dir/missing autoheader"
 
768
   echo "$ac_t""missing" 1>&6
 
769
fi
 
770
 
 
771
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
772
echo "configure:773: checking for working makeinfo" >&5
 
773
# Run test in a subshell; some versions of sh will print an error if
 
774
# an executable is not found, even if stderr is redirected.
 
775
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
776
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
777
   MAKEINFO=makeinfo
 
778
   echo "$ac_t""found" 1>&6
 
779
else
 
780
   MAKEINFO="$missing_dir/missing makeinfo"
 
781
   echo "$ac_t""missing" 1>&6
 
782
fi
 
783
 
 
784
 
 
785
 
 
786
ALL_LINGUAS="nl"
 
787
 
 
788
ISODATE=`date +%Y-%m-%d`
 
789
 
 
790
 
 
791
 
 
792
# Make sure we can run config.sub.
 
793
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
794
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
795
fi
 
796
 
 
797
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
798
echo "configure:799: checking host system type" >&5
 
799
 
 
800
host_alias=$host
 
801
case "$host_alias" in
 
802
NONE)
 
803
  case $nonopt in
 
804
  NONE)
 
805
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
806
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
807
    fi ;;
 
808
  *) host_alias=$nonopt ;;
 
809
  esac ;;
 
810
esac
 
811
 
 
812
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
813
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
814
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
815
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
816
echo "$ac_t""$host" 1>&6
 
817
 
 
818
 
 
819
# Find a good install program.  We prefer a C program (faster),
 
820
# so one script is as good as another.  But avoid the broken or
 
821
# incompatible versions:
 
822
# SysV /etc/install, /usr/sbin/install
 
823
# SunOS /usr/etc/install
 
824
# IRIX /sbin/install
 
825
# AIX /bin/install
 
826
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
827
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
828
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
829
# ./install, which can be erroneously created by make from ./install.sh.
 
830
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
831
echo "configure:832: checking for a BSD compatible install" >&5
 
832
if test -z "$INSTALL"; then
 
833
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
834
  echo $ac_n "(cached) $ac_c" 1>&6
 
835
else
 
836
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
837
  for ac_dir in $PATH; do
 
838
    # Account for people who put trailing slashes in PATH elements.
 
839
    case "$ac_dir/" in
 
840
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
841
    *)
 
842
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
843
      # Don't use installbsd from OSF since it installs stuff as root
 
844
      # by default.
 
845
      for ac_prog in ginstall scoinst install; do
 
846
        if test -f $ac_dir/$ac_prog; then
 
847
          if test $ac_prog = install &&
 
848
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
849
            # AIX install.  It has an incompatible calling convention.
 
850
            :
 
851
          else
 
852
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
853
            break 2
 
854
          fi
 
855
        fi
 
856
      done
 
857
      ;;
 
858
    esac
 
859
  done
 
860
  IFS="$ac_save_IFS"
 
861
 
 
862
fi
 
863
  if test "${ac_cv_path_install+set}" = set; then
 
864
    INSTALL="$ac_cv_path_install"
 
865
  else
 
866
    # As a last resort, use the slow shell script.  We don't cache a
 
867
    # path for INSTALL within a source directory, because that will
 
868
    # break other packages using the cache if that directory is
 
869
    # removed, or if the path is relative.
 
870
    INSTALL="$ac_install_sh"
 
871
  fi
 
872
fi
 
873
echo "$ac_t""$INSTALL" 1>&6
 
874
 
 
875
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
876
# It thinks the first close brace ends the variable substitution.
 
877
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
878
 
 
879
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
880
 
 
881
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
882
 
 
883
# Extract the first word of "gcc", so it can be a program name with args.
 
884
set dummy gcc; ac_word=$2
 
885
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
886
echo "configure:887: checking for $ac_word" >&5
 
887
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
888
  echo $ac_n "(cached) $ac_c" 1>&6
 
889
else
 
890
  if test -n "$CC"; then
 
891
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
892
else
 
893
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
894
  ac_dummy="$PATH"
 
895
  for ac_dir in $ac_dummy; do
 
896
    test -z "$ac_dir" && ac_dir=.
 
897
    if test -f $ac_dir/$ac_word; then
 
898
      ac_cv_prog_CC="gcc"
 
899
      break
 
900
    fi
 
901
  done
 
902
  IFS="$ac_save_ifs"
 
903
fi
 
904
fi
 
905
CC="$ac_cv_prog_CC"
 
906
if test -n "$CC"; then
 
907
  echo "$ac_t""$CC" 1>&6
 
908
else
 
909
  echo "$ac_t""no" 1>&6
 
910
fi
 
911
 
 
912
if test -z "$CC"; then
 
913
  # Extract the first word of "cc", so it can be a program name with args.
 
914
set dummy cc; ac_word=$2
 
915
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
916
echo "configure:917: checking for $ac_word" >&5
 
917
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
918
  echo $ac_n "(cached) $ac_c" 1>&6
 
919
else
 
920
  if test -n "$CC"; then
 
921
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
922
else
 
923
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
924
  ac_prog_rejected=no
 
925
  ac_dummy="$PATH"
 
926
  for ac_dir in $ac_dummy; do
 
927
    test -z "$ac_dir" && ac_dir=.
 
928
    if test -f $ac_dir/$ac_word; then
 
929
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
930
        ac_prog_rejected=yes
 
931
        continue
 
932
      fi
 
933
      ac_cv_prog_CC="cc"
 
934
      break
 
935
    fi
 
936
  done
 
937
  IFS="$ac_save_ifs"
 
938
if test $ac_prog_rejected = yes; then
 
939
  # We found a bogon in the path, so make sure we never use it.
 
940
  set dummy $ac_cv_prog_CC
 
941
  shift
 
942
  if test $# -gt 0; then
 
943
    # We chose a different compiler from the bogus one.
 
944
    # However, it has the same basename, so the bogon will be chosen
 
945
    # first if we set CC to just the basename; use the full file name.
 
946
    shift
 
947
    set dummy "$ac_dir/$ac_word" "$@"
 
948
    shift
 
949
    ac_cv_prog_CC="$@"
 
950
  fi
 
951
fi
 
952
fi
 
953
fi
 
954
CC="$ac_cv_prog_CC"
 
955
if test -n "$CC"; then
 
956
  echo "$ac_t""$CC" 1>&6
 
957
else
 
958
  echo "$ac_t""no" 1>&6
 
959
fi
 
960
 
 
961
  if test -z "$CC"; then
 
962
    case "`uname -s`" in
 
963
    *win32* | *WIN32*)
 
964
      # Extract the first word of "cl", so it can be a program name with args.
 
965
set dummy cl; ac_word=$2
 
966
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
967
echo "configure:968: checking for $ac_word" >&5
 
968
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
969
  echo $ac_n "(cached) $ac_c" 1>&6
 
970
else
 
971
  if test -n "$CC"; then
 
972
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
973
else
 
974
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
975
  ac_dummy="$PATH"
 
976
  for ac_dir in $ac_dummy; do
 
977
    test -z "$ac_dir" && ac_dir=.
 
978
    if test -f $ac_dir/$ac_word; then
 
979
      ac_cv_prog_CC="cl"
 
980
      break
 
981
    fi
 
982
  done
 
983
  IFS="$ac_save_ifs"
 
984
fi
 
985
fi
 
986
CC="$ac_cv_prog_CC"
 
987
if test -n "$CC"; then
 
988
  echo "$ac_t""$CC" 1>&6
 
989
else
 
990
  echo "$ac_t""no" 1>&6
 
991
fi
 
992
 ;;
 
993
    esac
 
994
  fi
 
995
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
996
fi
 
997
 
 
998
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
999
echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1000
 
 
1001
ac_ext=c
 
1002
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1003
ac_cpp='$CPP $CPPFLAGS'
 
1004
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1005
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1006
cross_compiling=$ac_cv_prog_cc_cross
 
1007
 
 
1008
cat > conftest.$ac_ext << EOF
 
1009
 
 
1010
#line 1011 "configure"
 
1011
#include "confdefs.h"
 
1012
 
 
1013
main(){return(0);}
 
1014
EOF
 
1015
if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1016
  ac_cv_prog_cc_works=yes
 
1017
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1018
  if (./conftest; exit) 2>/dev/null; then
 
1019
    ac_cv_prog_cc_cross=no
 
1020
  else
 
1021
    ac_cv_prog_cc_cross=yes
 
1022
  fi
 
1023
else
 
1024
  echo "configure: failed program was:" >&5
 
1025
  cat conftest.$ac_ext >&5
 
1026
  ac_cv_prog_cc_works=no
 
1027
fi
 
1028
rm -fr conftest*
 
1029
ac_ext=c
 
1030
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1031
ac_cpp='$CPP $CPPFLAGS'
 
1032
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1033
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1034
cross_compiling=$ac_cv_prog_cc_cross
 
1035
 
 
1036
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1037
if test $ac_cv_prog_cc_works = no; then
 
1038
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1039
fi
 
1040
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1041
echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1042
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1043
cross_compiling=$ac_cv_prog_cc_cross
 
1044
 
 
1045
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1046
echo "configure:1047: checking whether we are using GNU C" >&5
 
1047
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1048
  echo $ac_n "(cached) $ac_c" 1>&6
 
1049
else
 
1050
  cat > conftest.c <<EOF
 
1051
#ifdef __GNUC__
 
1052
  yes;
 
1053
#endif
 
1054
EOF
 
1055
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1056
  ac_cv_prog_gcc=yes
 
1057
else
 
1058
  ac_cv_prog_gcc=no
 
1059
fi
 
1060
fi
 
1061
 
 
1062
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1063
 
 
1064
if test $ac_cv_prog_gcc = yes; then
 
1065
  GCC=yes
 
1066
else
 
1067
  GCC=
 
1068
fi
 
1069
 
 
1070
ac_test_CFLAGS="${CFLAGS+set}"
 
1071
ac_save_CFLAGS="$CFLAGS"
 
1072
CFLAGS=
 
1073
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1074
echo "configure:1075: checking whether ${CC-cc} accepts -g" >&5
 
1075
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1076
  echo $ac_n "(cached) $ac_c" 1>&6
 
1077
else
 
1078
  echo 'void f(){}' > conftest.c
 
1079
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1080
  ac_cv_prog_cc_g=yes
 
1081
else
 
1082
  ac_cv_prog_cc_g=no
 
1083
fi
 
1084
rm -f conftest*
 
1085
 
 
1086
fi
 
1087
 
 
1088
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1089
if test "$ac_test_CFLAGS" = set; then
 
1090
  CFLAGS="$ac_save_CFLAGS"
 
1091
elif test $ac_cv_prog_cc_g = yes; then
 
1092
  if test "$GCC" = yes; then
 
1093
    CFLAGS="-g -O2"
 
1094
  else
 
1095
    CFLAGS="-g"
 
1096
  fi
 
1097
else
 
1098
  if test "$GCC" = yes; then
 
1099
    CFLAGS="-O2"
 
1100
  else
 
1101
    CFLAGS=
 
1102
  fi
 
1103
fi
 
1104
 
 
1105
 
 
1106
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1107
echo "configure:1108: checking how to run the C preprocessor" >&5
 
1108
# On Suns, sometimes $CPP names a directory.
 
1109
if test -n "$CPP" && test -d "$CPP"; then
 
1110
  CPP=
 
1111
fi
 
1112
if test -z "$CPP"; then
 
1113
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1114
  echo $ac_n "(cached) $ac_c" 1>&6
 
1115
else
 
1116
    # This must be in double quotes, not single quotes, because CPP may get
 
1117
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1118
  CPP="${CC-cc} -E"
 
1119
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1120
  # not just through cpp.
 
1121
  cat > conftest.$ac_ext <<EOF
 
1122
#line 1123 "configure"
 
1123
#include "confdefs.h"
 
1124
#include <assert.h>
 
1125
Syntax Error
 
1126
EOF
 
1127
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1128
{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1129
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1130
if test -z "$ac_err"; then
 
1131
  :
 
1132
else
 
1133
  echo "$ac_err" >&5
 
1134
  echo "configure: failed program was:" >&5
 
1135
  cat conftest.$ac_ext >&5
 
1136
  rm -rf conftest*
 
1137
  CPP="${CC-cc} -E -traditional-cpp"
 
1138
  cat > conftest.$ac_ext <<EOF
 
1139
#line 1140 "configure"
 
1140
#include "confdefs.h"
 
1141
#include <assert.h>
 
1142
Syntax Error
 
1143
EOF
 
1144
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1145
{ (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1146
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1147
if test -z "$ac_err"; then
 
1148
  :
 
1149
else
 
1150
  echo "$ac_err" >&5
 
1151
  echo "configure: failed program was:" >&5
 
1152
  cat conftest.$ac_ext >&5
 
1153
  rm -rf conftest*
 
1154
  CPP="${CC-cc} -nologo -E"
 
1155
  cat > conftest.$ac_ext <<EOF
 
1156
#line 1157 "configure"
 
1157
#include "confdefs.h"
 
1158
#include <assert.h>
 
1159
Syntax Error
 
1160
EOF
 
1161
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1162
{ (eval echo configure:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1163
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1164
if test -z "$ac_err"; then
 
1165
  :
 
1166
else
 
1167
  echo "$ac_err" >&5
 
1168
  echo "configure: failed program was:" >&5
 
1169
  cat conftest.$ac_ext >&5
 
1170
  rm -rf conftest*
 
1171
  CPP=/lib/cpp
 
1172
fi
 
1173
rm -f conftest*
 
1174
fi
 
1175
rm -f conftest*
 
1176
fi
 
1177
rm -f conftest*
 
1178
  ac_cv_prog_CPP="$CPP"
 
1179
fi
 
1180
  CPP="$ac_cv_prog_CPP"
 
1181
else
 
1182
  ac_cv_prog_CPP="$CPP"
 
1183
fi
 
1184
echo "$ac_t""$CPP" 1>&6
 
1185
 
 
1186
# Extract the first word of "ranlib", so it can be a program name with args.
 
1187
set dummy ranlib; ac_word=$2
 
1188
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1189
echo "configure:1190: checking for $ac_word" >&5
 
1190
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
1191
  echo $ac_n "(cached) $ac_c" 1>&6
 
1192
else
 
1193
  if test -n "$RANLIB"; then
 
1194
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
1195
else
 
1196
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1197
  ac_dummy="$PATH"
 
1198
  for ac_dir in $ac_dummy; do
 
1199
    test -z "$ac_dir" && ac_dir=.
 
1200
    if test -f $ac_dir/$ac_word; then
 
1201
      ac_cv_prog_RANLIB="ranlib"
 
1202
      break
 
1203
    fi
 
1204
  done
 
1205
  IFS="$ac_save_ifs"
 
1206
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
1207
fi
 
1208
fi
 
1209
RANLIB="$ac_cv_prog_RANLIB"
 
1210
if test -n "$RANLIB"; then
 
1211
  echo "$ac_t""$RANLIB" 1>&6
 
1212
else
 
1213
  echo "$ac_t""no" 1>&6
 
1214
fi
 
1215
 
 
1216
 
 
1217
        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
 
1218
echo "configure:1219: checking for strerror in -lcposix" >&5
 
1219
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
 
1220
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1221
  echo $ac_n "(cached) $ac_c" 1>&6
 
1222
else
 
1223
  ac_save_LIBS="$LIBS"
 
1224
LIBS="-lcposix  $LIBS"
 
1225
cat > conftest.$ac_ext <<EOF
 
1226
#line 1227 "configure"
 
1227
#include "confdefs.h"
 
1228
/* Override any gcc2 internal prototype to avoid an error.  */
 
1229
/* We use char because int might match the return type of a gcc2
 
1230
    builtin and then its argument prototype would still apply.  */
 
1231
char strerror();
 
1232
 
 
1233
int main() {
 
1234
strerror()
 
1235
; return 0; }
 
1236
EOF
 
1237
if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1238
  rm -rf conftest*
 
1239
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1240
else
 
1241
  echo "configure: failed program was:" >&5
 
1242
  cat conftest.$ac_ext >&5
 
1243
  rm -rf conftest*
 
1244
  eval "ac_cv_lib_$ac_lib_var=no"
 
1245
fi
 
1246
rm -f conftest*
 
1247
LIBS="$ac_save_LIBS"
 
1248
 
 
1249
fi
 
1250
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1251
  echo "$ac_t""yes" 1>&6
 
1252
  LIBS="$LIBS -lcposix"
 
1253
else
 
1254
  echo "$ac_t""no" 1>&6
 
1255
fi
 
1256
 
 
1257
  
 
1258
 
 
1259
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1260
echo "configure:1261: checking for ANSI C header files" >&5
 
1261
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1262
  echo $ac_n "(cached) $ac_c" 1>&6
 
1263
else
 
1264
  cat > conftest.$ac_ext <<EOF
 
1265
#line 1266 "configure"
 
1266
#include "confdefs.h"
 
1267
#include <stdlib.h>
 
1268
#include <stdarg.h>
 
1269
#include <string.h>
 
1270
#include <float.h>
 
1271
EOF
 
1272
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1273
{ (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1274
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1275
if test -z "$ac_err"; then
 
1276
  rm -rf conftest*
 
1277
  ac_cv_header_stdc=yes
 
1278
else
 
1279
  echo "$ac_err" >&5
 
1280
  echo "configure: failed program was:" >&5
 
1281
  cat conftest.$ac_ext >&5
 
1282
  rm -rf conftest*
 
1283
  ac_cv_header_stdc=no
 
1284
fi
 
1285
rm -f conftest*
 
1286
 
 
1287
if test $ac_cv_header_stdc = yes; then
 
1288
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1289
cat > conftest.$ac_ext <<EOF
 
1290
#line 1291 "configure"
 
1291
#include "confdefs.h"
 
1292
#include <string.h>
 
1293
EOF
 
1294
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1295
  egrep "memchr" >/dev/null 2>&1; then
 
1296
  :
 
1297
else
 
1298
  rm -rf conftest*
 
1299
  ac_cv_header_stdc=no
 
1300
fi
 
1301
rm -f conftest*
 
1302
 
 
1303
fi
 
1304
 
 
1305
if test $ac_cv_header_stdc = yes; then
 
1306
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1307
cat > conftest.$ac_ext <<EOF
 
1308
#line 1309 "configure"
 
1309
#include "confdefs.h"
 
1310
#include <stdlib.h>
 
1311
EOF
 
1312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1313
  egrep "free" >/dev/null 2>&1; then
 
1314
  :
 
1315
else
 
1316
  rm -rf conftest*
 
1317
  ac_cv_header_stdc=no
 
1318
fi
 
1319
rm -f conftest*
 
1320
 
 
1321
fi
 
1322
 
 
1323
if test $ac_cv_header_stdc = yes; then
 
1324
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1325
if test "$cross_compiling" = yes; then
 
1326
  :
 
1327
else
 
1328
  cat > conftest.$ac_ext <<EOF
 
1329
#line 1330 "configure"
 
1330
#include "confdefs.h"
 
1331
#include <ctype.h>
 
1332
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1333
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1334
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1335
int main () { int i; for (i = 0; i < 256; i++)
 
1336
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1337
exit (0); }
 
1338
 
 
1339
EOF
 
1340
if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1341
then
 
1342
  :
 
1343
else
 
1344
  echo "configure: failed program was:" >&5
 
1345
  cat conftest.$ac_ext >&5
 
1346
  rm -fr conftest*
 
1347
  ac_cv_header_stdc=no
 
1348
fi
 
1349
rm -fr conftest*
 
1350
fi
 
1351
 
 
1352
fi
 
1353
fi
 
1354
 
 
1355
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1356
if test $ac_cv_header_stdc = yes; then
 
1357
  cat >> confdefs.h <<\EOF
 
1358
#define STDC_HEADERS 1
 
1359
EOF
 
1360
 
 
1361
fi
 
1362
 
 
1363
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1364
echo "configure:1365: checking for working const" >&5
 
1365
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1366
  echo $ac_n "(cached) $ac_c" 1>&6
 
1367
else
 
1368
  cat > conftest.$ac_ext <<EOF
 
1369
#line 1370 "configure"
 
1370
#include "confdefs.h"
 
1371
 
 
1372
int main() {
 
1373
 
 
1374
/* Ultrix mips cc rejects this.  */
 
1375
typedef int charset[2]; const charset x;
 
1376
/* SunOS 4.1.1 cc rejects this.  */
 
1377
char const *const *ccp;
 
1378
char **p;
 
1379
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1380
struct point {int x, y;};
 
1381
static struct point const zero = {0,0};
 
1382
/* AIX XL C 1.02.0.0 rejects this.
 
1383
   It does not let you subtract one const X* pointer from another in an arm
 
1384
   of an if-expression whose if-part is not a constant expression */
 
1385
const char *g = "string";
 
1386
ccp = &g + (g ? g-g : 0);
 
1387
/* HPUX 7.0 cc rejects these. */
 
1388
++ccp;
 
1389
p = (char**) ccp;
 
1390
ccp = (char const *const *) p;
 
1391
{ /* SCO 3.2v4 cc rejects this.  */
 
1392
  char *t;
 
1393
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1394
 
 
1395
  *t++ = 0;
 
1396
}
 
1397
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1398
  int x[] = {25, 17};
 
1399
  const int *foo = &x[0];
 
1400
  ++foo;
 
1401
}
 
1402
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1403
  typedef const int *iptr;
 
1404
  iptr p = 0;
 
1405
  ++p;
 
1406
}
 
1407
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1408
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1409
  struct s { int j; const int *ap[3]; };
 
1410
  struct s *b; b->j = 5;
 
1411
}
 
1412
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1413
  const int foo = 10;
 
1414
}
 
1415
 
 
1416
; return 0; }
 
1417
EOF
 
1418
if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1419
  rm -rf conftest*
 
1420
  ac_cv_c_const=yes
 
1421
else
 
1422
  echo "configure: failed program was:" >&5
 
1423
  cat conftest.$ac_ext >&5
 
1424
  rm -rf conftest*
 
1425
  ac_cv_c_const=no
 
1426
fi
 
1427
rm -f conftest*
 
1428
fi
 
1429
 
 
1430
echo "$ac_t""$ac_cv_c_const" 1>&6
 
1431
if test $ac_cv_c_const = no; then
 
1432
  cat >> confdefs.h <<\EOF
 
1433
#define const 
 
1434
EOF
 
1435
 
 
1436
fi
 
1437
 
 
1438
echo $ac_n "checking for inline""... $ac_c" 1>&6
 
1439
echo "configure:1440: checking for inline" >&5
 
1440
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 
1441
  echo $ac_n "(cached) $ac_c" 1>&6
 
1442
else
 
1443
  ac_cv_c_inline=no
 
1444
for ac_kw in inline __inline__ __inline; do
 
1445
  cat > conftest.$ac_ext <<EOF
 
1446
#line 1447 "configure"
 
1447
#include "confdefs.h"
 
1448
 
 
1449
int main() {
 
1450
} $ac_kw foo() {
 
1451
; return 0; }
 
1452
EOF
 
1453
if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1454
  rm -rf conftest*
 
1455
  ac_cv_c_inline=$ac_kw; break
 
1456
else
 
1457
  echo "configure: failed program was:" >&5
 
1458
  cat conftest.$ac_ext >&5
 
1459
fi
 
1460
rm -f conftest*
 
1461
done
 
1462
 
 
1463
fi
 
1464
 
 
1465
echo "$ac_t""$ac_cv_c_inline" 1>&6
 
1466
case "$ac_cv_c_inline" in
 
1467
  inline | yes) ;;
 
1468
  no) cat >> confdefs.h <<\EOF
 
1469
#define inline 
 
1470
EOF
 
1471
 ;;
 
1472
  *)  cat >> confdefs.h <<EOF
 
1473
#define inline $ac_cv_c_inline
 
1474
EOF
 
1475
 ;;
 
1476
esac
 
1477
 
 
1478
echo $ac_n "checking for off_t""... $ac_c" 1>&6
 
1479
echo "configure:1480: checking for off_t" >&5
 
1480
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 
1481
  echo $ac_n "(cached) $ac_c" 1>&6
 
1482
else
 
1483
  cat > conftest.$ac_ext <<EOF
 
1484
#line 1485 "configure"
 
1485
#include "confdefs.h"
 
1486
#include <sys/types.h>
 
1487
#if STDC_HEADERS
 
1488
#include <stdlib.h>
 
1489
#include <stddef.h>
 
1490
#endif
 
1491
EOF
 
1492
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1493
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1494
  rm -rf conftest*
 
1495
  ac_cv_type_off_t=yes
 
1496
else
 
1497
  rm -rf conftest*
 
1498
  ac_cv_type_off_t=no
 
1499
fi
 
1500
rm -f conftest*
 
1501
 
 
1502
fi
 
1503
echo "$ac_t""$ac_cv_type_off_t" 1>&6
 
1504
if test $ac_cv_type_off_t = no; then
 
1505
  cat >> confdefs.h <<\EOF
 
1506
#define off_t long
 
1507
EOF
 
1508
 
 
1509
fi
 
1510
 
 
1511
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1512
echo "configure:1513: checking for size_t" >&5
 
1513
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1514
  echo $ac_n "(cached) $ac_c" 1>&6
 
1515
else
 
1516
  cat > conftest.$ac_ext <<EOF
 
1517
#line 1518 "configure"
 
1518
#include "confdefs.h"
 
1519
#include <sys/types.h>
 
1520
#if STDC_HEADERS
 
1521
#include <stdlib.h>
 
1522
#include <stddef.h>
 
1523
#endif
 
1524
EOF
 
1525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1526
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1527
  rm -rf conftest*
 
1528
  ac_cv_type_size_t=yes
 
1529
else
 
1530
  rm -rf conftest*
 
1531
  ac_cv_type_size_t=no
 
1532
fi
 
1533
rm -f conftest*
 
1534
 
 
1535
fi
 
1536
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1537
if test $ac_cv_type_size_t = no; then
 
1538
  cat >> confdefs.h <<\EOF
 
1539
#define size_t unsigned
 
1540
EOF
 
1541
 
 
1542
fi
 
1543
 
 
1544
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
1545
# for constant arguments.  Useless!
 
1546
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
1547
echo "configure:1548: checking for working alloca.h" >&5
 
1548
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
1549
  echo $ac_n "(cached) $ac_c" 1>&6
 
1550
else
 
1551
  cat > conftest.$ac_ext <<EOF
 
1552
#line 1553 "configure"
 
1553
#include "confdefs.h"
 
1554
#include <alloca.h>
 
1555
int main() {
 
1556
char *p = alloca(2 * sizeof(int));
 
1557
; return 0; }
 
1558
EOF
 
1559
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1560
  rm -rf conftest*
 
1561
  ac_cv_header_alloca_h=yes
 
1562
else
 
1563
  echo "configure: failed program was:" >&5
 
1564
  cat conftest.$ac_ext >&5
 
1565
  rm -rf conftest*
 
1566
  ac_cv_header_alloca_h=no
 
1567
fi
 
1568
rm -f conftest*
 
1569
fi
 
1570
 
 
1571
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
1572
if test $ac_cv_header_alloca_h = yes; then
 
1573
  cat >> confdefs.h <<\EOF
 
1574
#define HAVE_ALLOCA_H 1
 
1575
EOF
 
1576
 
 
1577
fi
 
1578
 
 
1579
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
1580
echo "configure:1581: checking for alloca" >&5
 
1581
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
1582
  echo $ac_n "(cached) $ac_c" 1>&6
 
1583
else
 
1584
  cat > conftest.$ac_ext <<EOF
 
1585
#line 1586 "configure"
 
1586
#include "confdefs.h"
 
1587
 
 
1588
#ifdef __GNUC__
 
1589
# define alloca __builtin_alloca
 
1590
#else
 
1591
# ifdef _MSC_VER
 
1592
#  include <malloc.h>
 
1593
#  define alloca _alloca
 
1594
# else
 
1595
#  if HAVE_ALLOCA_H
 
1596
#   include <alloca.h>
 
1597
#  else
 
1598
#   ifdef _AIX
 
1599
 #pragma alloca
 
1600
#   else
 
1601
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
1602
char *alloca ();
 
1603
#    endif
 
1604
#   endif
 
1605
#  endif
 
1606
# endif
 
1607
#endif
 
1608
 
 
1609
int main() {
 
1610
char *p = (char *) alloca(1);
 
1611
; return 0; }
 
1612
EOF
 
1613
if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1614
  rm -rf conftest*
 
1615
  ac_cv_func_alloca_works=yes
 
1616
else
 
1617
  echo "configure: failed program was:" >&5
 
1618
  cat conftest.$ac_ext >&5
 
1619
  rm -rf conftest*
 
1620
  ac_cv_func_alloca_works=no
 
1621
fi
 
1622
rm -f conftest*
 
1623
fi
 
1624
 
 
1625
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
1626
if test $ac_cv_func_alloca_works = yes; then
 
1627
  cat >> confdefs.h <<\EOF
 
1628
#define HAVE_ALLOCA 1
 
1629
EOF
 
1630
 
 
1631
fi
 
1632
 
 
1633
if test $ac_cv_func_alloca_works = no; then
 
1634
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
1635
  # that cause trouble.  Some versions do not even contain alloca or
 
1636
  # contain a buggy version.  If you still want to use their alloca,
 
1637
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
1638
  ALLOCA=alloca.${ac_objext}
 
1639
  cat >> confdefs.h <<\EOF
 
1640
#define C_ALLOCA 1
 
1641
EOF
 
1642
 
 
1643
 
 
1644
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
1645
echo "configure:1646: checking whether alloca needs Cray hooks" >&5
 
1646
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
1647
  echo $ac_n "(cached) $ac_c" 1>&6
 
1648
else
 
1649
  cat > conftest.$ac_ext <<EOF
 
1650
#line 1651 "configure"
 
1651
#include "confdefs.h"
 
1652
#if defined(CRAY) && ! defined(CRAY2)
 
1653
webecray
 
1654
#else
 
1655
wenotbecray
 
1656
#endif
 
1657
 
 
1658
EOF
 
1659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1660
  egrep "webecray" >/dev/null 2>&1; then
 
1661
  rm -rf conftest*
 
1662
  ac_cv_os_cray=yes
 
1663
else
 
1664
  rm -rf conftest*
 
1665
  ac_cv_os_cray=no
 
1666
fi
 
1667
rm -f conftest*
 
1668
 
 
1669
fi
 
1670
 
 
1671
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
1672
if test $ac_cv_os_cray = yes; then
 
1673
for ac_func in _getb67 GETB67 getb67; do
 
1674
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1675
echo "configure:1676: checking for $ac_func" >&5
 
1676
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1677
  echo $ac_n "(cached) $ac_c" 1>&6
 
1678
else
 
1679
  cat > conftest.$ac_ext <<EOF
 
1680
#line 1681 "configure"
 
1681
#include "confdefs.h"
 
1682
/* System header to define __stub macros and hopefully few prototypes,
 
1683
    which can conflict with char $ac_func(); below.  */
 
1684
#include <assert.h>
 
1685
/* Override any gcc2 internal prototype to avoid an error.  */
 
1686
/* We use char because int might match the return type of a gcc2
 
1687
    builtin and then its argument prototype would still apply.  */
 
1688
char $ac_func();
 
1689
 
 
1690
int main() {
 
1691
 
 
1692
/* The GNU C library defines this for functions which it implements
 
1693
    to always fail with ENOSYS.  Some functions are actually named
 
1694
    something starting with __ and the normal name is an alias.  */
 
1695
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1696
choke me
 
1697
#else
 
1698
$ac_func();
 
1699
#endif
 
1700
 
 
1701
; return 0; }
 
1702
EOF
 
1703
if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1704
  rm -rf conftest*
 
1705
  eval "ac_cv_func_$ac_func=yes"
 
1706
else
 
1707
  echo "configure: failed program was:" >&5
 
1708
  cat conftest.$ac_ext >&5
 
1709
  rm -rf conftest*
 
1710
  eval "ac_cv_func_$ac_func=no"
 
1711
fi
 
1712
rm -f conftest*
 
1713
fi
 
1714
 
 
1715
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1716
  echo "$ac_t""yes" 1>&6
 
1717
  cat >> confdefs.h <<EOF
 
1718
#define CRAY_STACKSEG_END $ac_func
 
1719
EOF
 
1720
 
 
1721
  break
 
1722
else
 
1723
  echo "$ac_t""no" 1>&6
 
1724
fi
 
1725
 
 
1726
done
 
1727
fi
 
1728
 
 
1729
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
1730
echo "configure:1731: checking stack direction for C alloca" >&5
 
1731
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
1732
  echo $ac_n "(cached) $ac_c" 1>&6
 
1733
else
 
1734
  if test "$cross_compiling" = yes; then
 
1735
  ac_cv_c_stack_direction=0
 
1736
else
 
1737
  cat > conftest.$ac_ext <<EOF
 
1738
#line 1739 "configure"
 
1739
#include "confdefs.h"
 
1740
find_stack_direction ()
 
1741
{
 
1742
  static char *addr = 0;
 
1743
  auto char dummy;
 
1744
  if (addr == 0)
 
1745
    {
 
1746
      addr = &dummy;
 
1747
      return find_stack_direction ();
 
1748
    }
 
1749
  else
 
1750
    return (&dummy > addr) ? 1 : -1;
 
1751
}
 
1752
main ()
 
1753
{
 
1754
  exit (find_stack_direction() < 0);
 
1755
}
 
1756
EOF
 
1757
if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1758
then
 
1759
  ac_cv_c_stack_direction=1
 
1760
else
 
1761
  echo "configure: failed program was:" >&5
 
1762
  cat conftest.$ac_ext >&5
 
1763
  rm -fr conftest*
 
1764
  ac_cv_c_stack_direction=-1
 
1765
fi
 
1766
rm -fr conftest*
 
1767
fi
 
1768
 
 
1769
fi
 
1770
 
 
1771
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
1772
cat >> confdefs.h <<EOF
 
1773
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
1774
EOF
 
1775
 
 
1776
fi
 
1777
 
 
1778
for ac_hdr in unistd.h
 
1779
do
 
1780
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1781
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1782
echo "configure:1783: checking for $ac_hdr" >&5
 
1783
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1784
  echo $ac_n "(cached) $ac_c" 1>&6
 
1785
else
 
1786
  cat > conftest.$ac_ext <<EOF
 
1787
#line 1788 "configure"
 
1788
#include "confdefs.h"
 
1789
#include <$ac_hdr>
 
1790
EOF
 
1791
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1792
{ (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1793
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1794
if test -z "$ac_err"; then
 
1795
  rm -rf conftest*
 
1796
  eval "ac_cv_header_$ac_safe=yes"
 
1797
else
 
1798
  echo "$ac_err" >&5
 
1799
  echo "configure: failed program was:" >&5
 
1800
  cat conftest.$ac_ext >&5
 
1801
  rm -rf conftest*
 
1802
  eval "ac_cv_header_$ac_safe=no"
 
1803
fi
 
1804
rm -f conftest*
 
1805
fi
 
1806
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1807
  echo "$ac_t""yes" 1>&6
 
1808
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1809
  cat >> confdefs.h <<EOF
 
1810
#define $ac_tr_hdr 1
 
1811
EOF
 
1812
 
 
1813
else
 
1814
  echo "$ac_t""no" 1>&6
 
1815
fi
 
1816
done
 
1817
 
 
1818
for ac_func in getpagesize
 
1819
do
 
1820
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1821
echo "configure:1822: checking for $ac_func" >&5
 
1822
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1823
  echo $ac_n "(cached) $ac_c" 1>&6
 
1824
else
 
1825
  cat > conftest.$ac_ext <<EOF
 
1826
#line 1827 "configure"
 
1827
#include "confdefs.h"
 
1828
/* System header to define __stub macros and hopefully few prototypes,
 
1829
    which can conflict with char $ac_func(); below.  */
 
1830
#include <assert.h>
 
1831
/* Override any gcc2 internal prototype to avoid an error.  */
 
1832
/* We use char because int might match the return type of a gcc2
 
1833
    builtin and then its argument prototype would still apply.  */
 
1834
char $ac_func();
 
1835
 
 
1836
int main() {
 
1837
 
 
1838
/* The GNU C library defines this for functions which it implements
 
1839
    to always fail with ENOSYS.  Some functions are actually named
 
1840
    something starting with __ and the normal name is an alias.  */
 
1841
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1842
choke me
 
1843
#else
 
1844
$ac_func();
 
1845
#endif
 
1846
 
 
1847
; return 0; }
 
1848
EOF
 
1849
if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1850
  rm -rf conftest*
 
1851
  eval "ac_cv_func_$ac_func=yes"
 
1852
else
 
1853
  echo "configure: failed program was:" >&5
 
1854
  cat conftest.$ac_ext >&5
 
1855
  rm -rf conftest*
 
1856
  eval "ac_cv_func_$ac_func=no"
 
1857
fi
 
1858
rm -f conftest*
 
1859
fi
 
1860
 
 
1861
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1862
  echo "$ac_t""yes" 1>&6
 
1863
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1864
  cat >> confdefs.h <<EOF
 
1865
#define $ac_tr_func 1
 
1866
EOF
 
1867
 
 
1868
else
 
1869
  echo "$ac_t""no" 1>&6
 
1870
fi
 
1871
done
 
1872
 
 
1873
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
 
1874
echo "configure:1875: checking for working mmap" >&5
 
1875
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
 
1876
  echo $ac_n "(cached) $ac_c" 1>&6
 
1877
else
 
1878
  if test "$cross_compiling" = yes; then
 
1879
  ac_cv_func_mmap_fixed_mapped=no
 
1880
else
 
1881
  cat > conftest.$ac_ext <<EOF
 
1882
#line 1883 "configure"
 
1883
#include "confdefs.h"
 
1884
 
 
1885
/* Thanks to Mike Haertel and Jim Avera for this test.
 
1886
   Here is a matrix of mmap possibilities:
 
1887
        mmap private not fixed
 
1888
        mmap private fixed at somewhere currently unmapped
 
1889
        mmap private fixed at somewhere already mapped
 
1890
        mmap shared not fixed
 
1891
        mmap shared fixed at somewhere currently unmapped
 
1892
        mmap shared fixed at somewhere already mapped
 
1893
   For private mappings, we should verify that changes cannot be read()
 
1894
   back from the file, nor mmap's back from the file at a different
 
1895
   address.  (There have been systems where private was not correctly
 
1896
   implemented like the infamous i386 svr4.0, and systems where the
 
1897
   VM page cache was not coherent with the filesystem buffer cache
 
1898
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
1899
   For shared mappings, we should conversely verify that changes get
 
1900
   propogated back to all the places they're supposed to be.
 
1901
 
 
1902
   Grep wants private fixed already mapped.
 
1903
   The main things grep needs to know about mmap are:
 
1904
   * does it exist and is it safe to write into the mmap'd area
 
1905
   * how to use it (BSD variants)  */
 
1906
#include <sys/types.h>
 
1907
#include <fcntl.h>
 
1908
#include <sys/mman.h>
 
1909
 
 
1910
/* This mess was copied from the GNU getpagesize.h.  */
 
1911
#ifndef HAVE_GETPAGESIZE
 
1912
# ifdef HAVE_UNISTD_H
 
1913
#  include <unistd.h>
 
1914
# endif
 
1915
 
 
1916
/* Assume that all systems that can run configure have sys/param.h.  */
 
1917
# ifndef HAVE_SYS_PARAM_H
 
1918
#  define HAVE_SYS_PARAM_H 1
 
1919
# endif
 
1920
 
 
1921
# ifdef _SC_PAGESIZE
 
1922
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
1923
# else /* no _SC_PAGESIZE */
 
1924
#  ifdef HAVE_SYS_PARAM_H
 
1925
#   include <sys/param.h>
 
1926
#   ifdef EXEC_PAGESIZE
 
1927
#    define getpagesize() EXEC_PAGESIZE
 
1928
#   else /* no EXEC_PAGESIZE */
 
1929
#    ifdef NBPG
 
1930
#     define getpagesize() NBPG * CLSIZE
 
1931
#     ifndef CLSIZE
 
1932
#      define CLSIZE 1
 
1933
#     endif /* no CLSIZE */
 
1934
#    else /* no NBPG */
 
1935
#     ifdef NBPC
 
1936
#      define getpagesize() NBPC
 
1937
#     else /* no NBPC */
 
1938
#      ifdef PAGESIZE
 
1939
#       define getpagesize() PAGESIZE
 
1940
#      endif /* PAGESIZE */
 
1941
#     endif /* no NBPC */
 
1942
#    endif /* no NBPG */
 
1943
#   endif /* no EXEC_PAGESIZE */
 
1944
#  else /* no HAVE_SYS_PARAM_H */
 
1945
#   define getpagesize() 8192   /* punt totally */
 
1946
#  endif /* no HAVE_SYS_PARAM_H */
 
1947
# endif /* no _SC_PAGESIZE */
 
1948
 
 
1949
#endif /* no HAVE_GETPAGESIZE */
 
1950
 
 
1951
#ifdef __cplusplus
 
1952
extern "C" { void *malloc(unsigned); }
 
1953
#else
 
1954
char *malloc();
 
1955
#endif
 
1956
 
 
1957
int
 
1958
main()
 
1959
{
 
1960
        char *data, *data2, *data3;
 
1961
        int i, pagesize;
 
1962
        int fd;
 
1963
 
 
1964
        pagesize = getpagesize();
 
1965
 
 
1966
        /*
 
1967
         * First, make a file with some known garbage in it.
 
1968
         */
 
1969
        data = malloc(pagesize);
 
1970
        if (!data)
 
1971
                exit(1);
 
1972
        for (i = 0; i < pagesize; ++i)
 
1973
                *(data + i) = rand();
 
1974
        umask(0);
 
1975
        fd = creat("conftestmmap", 0600);
 
1976
        if (fd < 0)
 
1977
                exit(1);
 
1978
        if (write(fd, data, pagesize) != pagesize)
 
1979
                exit(1);
 
1980
        close(fd);
 
1981
 
 
1982
        /*
 
1983
         * Next, try to mmap the file at a fixed address which
 
1984
         * already has something else allocated at it.  If we can,
 
1985
         * also make sure that we see the same garbage.
 
1986
         */
 
1987
        fd = open("conftestmmap", O_RDWR);
 
1988
        if (fd < 0)
 
1989
                exit(1);
 
1990
        data2 = malloc(2 * pagesize);
 
1991
        if (!data2)
 
1992
                exit(1);
 
1993
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
1994
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
 
1995
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
1996
                exit(1);
 
1997
        for (i = 0; i < pagesize; ++i)
 
1998
                if (*(data + i) != *(data2 + i))
 
1999
                        exit(1);
 
2000
 
 
2001
        /*
 
2002
         * Finally, make sure that changes to the mapped area
 
2003
         * do not percolate back to the file as seen by read().
 
2004
         * (This is a bug on some variants of i386 svr4.0.)
 
2005
         */
 
2006
        for (i = 0; i < pagesize; ++i)
 
2007
                *(data2 + i) = *(data2 + i) + 1;
 
2008
        data3 = malloc(pagesize);
 
2009
        if (!data3)
 
2010
                exit(1);
 
2011
        if (read(fd, data3, pagesize) != pagesize)
 
2012
                exit(1);
 
2013
        for (i = 0; i < pagesize; ++i)
 
2014
                if (*(data + i) != *(data3 + i))
 
2015
                        exit(1);
 
2016
        close(fd);
 
2017
        unlink("conftestmmap");
 
2018
        exit(0);
 
2019
}
 
2020
 
 
2021
EOF
 
2022
if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2023
then
 
2024
  ac_cv_func_mmap_fixed_mapped=yes
 
2025
else
 
2026
  echo "configure: failed program was:" >&5
 
2027
  cat conftest.$ac_ext >&5
 
2028
  rm -fr conftest*
 
2029
  ac_cv_func_mmap_fixed_mapped=no
 
2030
fi
 
2031
rm -fr conftest*
 
2032
fi
 
2033
 
 
2034
fi
 
2035
 
 
2036
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 
2037
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
2038
  cat >> confdefs.h <<\EOF
 
2039
#define HAVE_MMAP 1
 
2040
EOF
 
2041
 
 
2042
fi
 
2043
 
 
2044
 
 
2045
    echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
 
2046
echo "configure:2047: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
2047
if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
 
2048
  echo $ac_n "(cached) $ac_c" 1>&6
 
2049
else
 
2050
  cat > conftest.$ac_ext <<EOF
 
2051
#line 2052 "configure"
 
2052
#include "confdefs.h"
 
2053
 
 
2054
#include <features.h>
 
2055
#ifdef __GNU_LIBRARY__
 
2056
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
2057
  Lucky GNU user
 
2058
 #endif
 
2059
#endif
 
2060
        
 
2061
EOF
 
2062
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2063
  egrep "Lucky GNU user" >/dev/null 2>&1; then
 
2064
  rm -rf conftest*
 
2065
  ac_cv_gnu_library_2_1=yes
 
2066
else
 
2067
  rm -rf conftest*
 
2068
  ac_cv_gnu_library_2_1=no
 
2069
fi
 
2070
rm -f conftest*
 
2071
 
 
2072
      
 
2073
    
 
2074
fi
 
2075
 
 
2076
echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
 
2077
    
 
2078
    GLIBC21="$ac_cv_gnu_library_2_1"
 
2079
  
 
2080
 
 
2081
                                    
 
2082
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
2083
stdlib.h string.h unistd.h sys/param.h
 
2084
do
 
2085
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
2086
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
2087
echo "configure:2088: checking for $ac_hdr" >&5
 
2088
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2089
  echo $ac_n "(cached) $ac_c" 1>&6
 
2090
else
 
2091
  cat > conftest.$ac_ext <<EOF
 
2092
#line 2093 "configure"
 
2093
#include "confdefs.h"
 
2094
#include <$ac_hdr>
 
2095
EOF
 
2096
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2097
{ (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2098
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2099
if test -z "$ac_err"; then
 
2100
  rm -rf conftest*
 
2101
  eval "ac_cv_header_$ac_safe=yes"
 
2102
else
 
2103
  echo "$ac_err" >&5
 
2104
  echo "configure: failed program was:" >&5
 
2105
  cat conftest.$ac_ext >&5
 
2106
  rm -rf conftest*
 
2107
  eval "ac_cv_header_$ac_safe=no"
 
2108
fi
 
2109
rm -f conftest*
 
2110
fi
 
2111
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2112
  echo "$ac_t""yes" 1>&6
 
2113
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
2114
  cat >> confdefs.h <<EOF
 
2115
#define $ac_tr_hdr 1
 
2116
EOF
 
2117
 
 
2118
else
 
2119
  echo "$ac_t""no" 1>&6
 
2120
fi
 
2121
done
 
2122
 
 
2123
   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
 
2124
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
 
2125
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
 
2126
do
 
2127
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2128
echo "configure:2129: checking for $ac_func" >&5
 
2129
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2130
  echo $ac_n "(cached) $ac_c" 1>&6
 
2131
else
 
2132
  cat > conftest.$ac_ext <<EOF
 
2133
#line 2134 "configure"
 
2134
#include "confdefs.h"
 
2135
/* System header to define __stub macros and hopefully few prototypes,
 
2136
    which can conflict with char $ac_func(); below.  */
 
2137
#include <assert.h>
 
2138
/* Override any gcc2 internal prototype to avoid an error.  */
 
2139
/* We use char because int might match the return type of a gcc2
 
2140
    builtin and then its argument prototype would still apply.  */
 
2141
char $ac_func();
 
2142
 
 
2143
int main() {
 
2144
 
 
2145
/* The GNU C library defines this for functions which it implements
 
2146
    to always fail with ENOSYS.  Some functions are actually named
 
2147
    something starting with __ and the normal name is an alias.  */
 
2148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2149
choke me
 
2150
#else
 
2151
$ac_func();
 
2152
#endif
 
2153
 
 
2154
; return 0; }
 
2155
EOF
 
2156
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2157
  rm -rf conftest*
 
2158
  eval "ac_cv_func_$ac_func=yes"
 
2159
else
 
2160
  echo "configure: failed program was:" >&5
 
2161
  cat conftest.$ac_ext >&5
 
2162
  rm -rf conftest*
 
2163
  eval "ac_cv_func_$ac_func=no"
 
2164
fi
 
2165
rm -f conftest*
 
2166
fi
 
2167
 
 
2168
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2169
  echo "$ac_t""yes" 1>&6
 
2170
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2171
  cat >> confdefs.h <<EOF
 
2172
#define $ac_tr_func 1
 
2173
EOF
 
2174
 
 
2175
else
 
2176
  echo "$ac_t""no" 1>&6
 
2177
fi
 
2178
done
 
2179
 
 
2180
 
 
2181
   
 
2182
    
 
2183
  # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
2184
if test "${with_libiconv_prefix+set}" = set; then
 
2185
  withval="$with_libiconv_prefix"
 
2186
  
 
2187
    for dir in `echo "$withval" | tr : ' '`; do
 
2188
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
 
2189
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
 
2190
    done
 
2191
   
 
2192
fi
 
2193
 
 
2194
 
 
2195
  echo $ac_n "checking for iconv""... $ac_c" 1>&6
 
2196
echo "configure:2197: checking for iconv" >&5
 
2197
if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
 
2198
  echo $ac_n "(cached) $ac_c" 1>&6
 
2199
else
 
2200
  
 
2201
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
2202
    am_cv_lib_iconv=no
 
2203
    cat > conftest.$ac_ext <<EOF
 
2204
#line 2205 "configure"
 
2205
#include "confdefs.h"
 
2206
#include <stdlib.h>
 
2207
#include <iconv.h>
 
2208
int main() {
 
2209
iconv_t cd = iconv_open("","");
 
2210
       iconv(cd,NULL,NULL,NULL,NULL);
 
2211
       iconv_close(cd);
 
2212
; return 0; }
 
2213
EOF
 
2214
if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2215
  rm -rf conftest*
 
2216
  am_cv_func_iconv=yes
 
2217
else
 
2218
  echo "configure: failed program was:" >&5
 
2219
  cat conftest.$ac_ext >&5
 
2220
fi
 
2221
rm -f conftest*
 
2222
    if test "$am_cv_func_iconv" != yes; then
 
2223
      am_save_LIBS="$LIBS"
 
2224
      LIBS="$LIBS -liconv"
 
2225
      cat > conftest.$ac_ext <<EOF
 
2226
#line 2227 "configure"
 
2227
#include "confdefs.h"
 
2228
#include <stdlib.h>
 
2229
#include <iconv.h>
 
2230
int main() {
 
2231
iconv_t cd = iconv_open("","");
 
2232
         iconv(cd,NULL,NULL,NULL,NULL);
 
2233
         iconv_close(cd);
 
2234
; return 0; }
 
2235
EOF
 
2236
if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2237
  rm -rf conftest*
 
2238
  am_cv_lib_iconv=yes
 
2239
        am_cv_func_iconv=yes
 
2240
else
 
2241
  echo "configure: failed program was:" >&5
 
2242
  cat conftest.$ac_ext >&5
 
2243
fi
 
2244
rm -f conftest*
 
2245
      LIBS="$am_save_LIBS"
 
2246
    fi
 
2247
  
 
2248
fi
 
2249
 
 
2250
echo "$ac_t""$am_cv_func_iconv" 1>&6
 
2251
  if test "$am_cv_func_iconv" = yes; then
 
2252
    cat >> confdefs.h <<\EOF
 
2253
#define HAVE_ICONV 1
 
2254
EOF
 
2255
 
 
2256
    echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
 
2257
echo "configure:2258: checking for iconv declaration" >&5
 
2258
    if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
 
2259
  echo $ac_n "(cached) $ac_c" 1>&6
 
2260
else
 
2261
  
 
2262
      cat > conftest.$ac_ext <<EOF
 
2263
#line 2264 "configure"
 
2264
#include "confdefs.h"
 
2265
 
 
2266
#include <stdlib.h>
 
2267
#include <iconv.h>
 
2268
extern
 
2269
#ifdef __cplusplus
 
2270
"C"
 
2271
#endif
 
2272
#if defined(__STDC__) || defined(__cplusplus)
 
2273
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
2274
#else
 
2275
size_t iconv();
 
2276
#endif
 
2277
 
 
2278
int main() {
 
2279
 
 
2280
; return 0; }
 
2281
EOF
 
2282
if { (eval echo configure:2283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2283
  rm -rf conftest*
 
2284
  am_cv_proto_iconv_arg1=""
 
2285
else
 
2286
  echo "configure: failed program was:" >&5
 
2287
  cat conftest.$ac_ext >&5
 
2288
  rm -rf conftest*
 
2289
  am_cv_proto_iconv_arg1="const"
 
2290
fi
 
2291
rm -f conftest*
 
2292
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
2293
fi
 
2294
 
 
2295
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
2296
    echo "$ac_t""${ac_t:-
 
2297
         }$am_cv_proto_iconv" 1>&6
 
2298
    cat >> confdefs.h <<EOF
 
2299
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
2300
EOF
 
2301
 
 
2302
  fi
 
2303
  LIBICONV=
 
2304
  if test "$am_cv_lib_iconv" = yes; then
 
2305
    LIBICONV="-liconv"
 
2306
  fi
 
2307
  
 
2308
 
 
2309
   
 
2310
  echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
 
2311
echo "configure:2312: checking for nl_langinfo and CODESET" >&5
 
2312
if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
 
2313
  echo $ac_n "(cached) $ac_c" 1>&6
 
2314
else
 
2315
  cat > conftest.$ac_ext <<EOF
 
2316
#line 2317 "configure"
 
2317
#include "confdefs.h"
 
2318
#include <langinfo.h>
 
2319
int main() {
 
2320
char* cs = nl_langinfo(CODESET);
 
2321
; return 0; }
 
2322
EOF
 
2323
if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2324
  rm -rf conftest*
 
2325
  am_cv_langinfo_codeset=yes
 
2326
else
 
2327
  echo "configure: failed program was:" >&5
 
2328
  cat conftest.$ac_ext >&5
 
2329
  rm -rf conftest*
 
2330
  am_cv_langinfo_codeset=no
 
2331
fi
 
2332
rm -f conftest*
 
2333
    
 
2334
fi
 
2335
 
 
2336
echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
 
2337
  if test $am_cv_langinfo_codeset = yes; then
 
2338
    cat >> confdefs.h <<\EOF
 
2339
#define HAVE_LANGINFO_CODESET 1
 
2340
EOF
 
2341
 
 
2342
  fi
 
2343
 
 
2344
   if test $ac_cv_header_locale_h = yes; then
 
2345
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
 
2346
echo "configure:2347: checking for LC_MESSAGES" >&5
 
2347
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
 
2348
  echo $ac_n "(cached) $ac_c" 1>&6
 
2349
else
 
2350
  cat > conftest.$ac_ext <<EOF
 
2351
#line 2352 "configure"
 
2352
#include "confdefs.h"
 
2353
#include <locale.h>
 
2354
int main() {
 
2355
return LC_MESSAGES
 
2356
; return 0; }
 
2357
EOF
 
2358
if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2359
  rm -rf conftest*
 
2360
  am_cv_val_LC_MESSAGES=yes
 
2361
else
 
2362
  echo "configure: failed program was:" >&5
 
2363
  cat conftest.$ac_ext >&5
 
2364
  rm -rf conftest*
 
2365
  am_cv_val_LC_MESSAGES=no
 
2366
fi
 
2367
rm -f conftest*
 
2368
fi
 
2369
 
 
2370
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 
2371
    if test $am_cv_val_LC_MESSAGES = yes; then
 
2372
      cat >> confdefs.h <<\EOF
 
2373
#define HAVE_LC_MESSAGES 1
 
2374
EOF
 
2375
 
 
2376
    fi
 
2377
  fi
 
2378
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
 
2379
echo "configure:2380: checking whether NLS is requested" >&5
 
2380
        # Check whether --enable-nls or --disable-nls was given.
 
2381
if test "${enable_nls+set}" = set; then
 
2382
  enableval="$enable_nls"
 
2383
  USE_NLS=$enableval
 
2384
else
 
2385
  USE_NLS=yes
 
2386
fi
 
2387
 
 
2388
    echo "$ac_t""$USE_NLS" 1>&6
 
2389
    
 
2390
 
 
2391
    BUILD_INCLUDED_LIBINTL=no
 
2392
    USE_INCLUDED_LIBINTL=no
 
2393
    INTLLIBS=
 
2394
 
 
2395
        if test "$USE_NLS" = "yes"; then
 
2396
      cat >> confdefs.h <<\EOF
 
2397
#define ENABLE_NLS 1
 
2398
EOF
 
2399
 
 
2400
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
 
2401
echo "configure:2402: checking whether included gettext is requested" >&5
 
2402
      # Check whether --with-included-gettext or --without-included-gettext was given.
 
2403
if test "${with_included_gettext+set}" = set; then
 
2404
  withval="$with_included_gettext"
 
2405
  nls_cv_force_use_gnu_gettext=$withval
 
2406
else
 
2407
  nls_cv_force_use_gnu_gettext=no
 
2408
fi
 
2409
 
 
2410
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
 
2411
 
 
2412
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
2413
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
2414
                                CATOBJEXT=NONE
 
2415
 
 
2416
                
 
2417
        
 
2418
 
 
2419
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
 
2420
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
 
2421
echo "configure:2422: checking for libintl.h" >&5
 
2422
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2423
  echo $ac_n "(cached) $ac_c" 1>&6
 
2424
else
 
2425
  cat > conftest.$ac_ext <<EOF
 
2426
#line 2427 "configure"
 
2427
#include "confdefs.h"
 
2428
#include <libintl.h>
 
2429
EOF
 
2430
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2431
{ (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2432
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2433
if test -z "$ac_err"; then
 
2434
  rm -rf conftest*
 
2435
  eval "ac_cv_header_$ac_safe=yes"
 
2436
else
 
2437
  echo "$ac_err" >&5
 
2438
  echo "configure: failed program was:" >&5
 
2439
  cat conftest.$ac_ext >&5
 
2440
  rm -rf conftest*
 
2441
  eval "ac_cv_header_$ac_safe=no"
 
2442
fi
 
2443
rm -f conftest*
 
2444
fi
 
2445
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2446
  echo "$ac_t""yes" 1>&6
 
2447
  echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
 
2448
echo "configure:2449: checking for GNU gettext in libc" >&5
 
2449
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
 
2450
  echo $ac_n "(cached) $ac_c" 1>&6
 
2451
else
 
2452
  cat > conftest.$ac_ext <<EOF
 
2453
#line 2454 "configure"
 
2454
#include "confdefs.h"
 
2455
#include <libintl.h>
 
2456
extern int _nl_msg_cat_cntr;
 
2457
int main() {
 
2458
bindtextdomain ("", "");
 
2459
return (int) gettext ("") + _nl_msg_cat_cntr
 
2460
; return 0; }
 
2461
EOF
 
2462
if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2463
  rm -rf conftest*
 
2464
  gt_cv_func_gnugettext1_libc=yes
 
2465
else
 
2466
  echo "configure: failed program was:" >&5
 
2467
  cat conftest.$ac_ext >&5
 
2468
  rm -rf conftest*
 
2469
  gt_cv_func_gnugettext1_libc=no
 
2470
fi
 
2471
rm -f conftest*
 
2472
fi
 
2473
 
 
2474
echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
 
2475
 
 
2476
           if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
2477
             echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
 
2478
echo "configure:2479: checking for GNU gettext in libintl" >&5
 
2479
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
 
2480
  echo $ac_n "(cached) $ac_c" 1>&6
 
2481
else
 
2482
  gt_save_LIBS="$LIBS"
 
2483
                LIBS="$LIBS -lintl $LIBICONV"
 
2484
                cat > conftest.$ac_ext <<EOF
 
2485
#line 2486 "configure"
 
2486
#include "confdefs.h"
 
2487
#include <libintl.h>
 
2488
extern int _nl_msg_cat_cntr;
 
2489
int main() {
 
2490
bindtextdomain ("", "");
 
2491
return (int) gettext ("") + _nl_msg_cat_cntr
 
2492
; return 0; }
 
2493
EOF
 
2494
if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2495
  rm -rf conftest*
 
2496
  gt_cv_func_gnugettext1_libintl=yes
 
2497
else
 
2498
  echo "configure: failed program was:" >&5
 
2499
  cat conftest.$ac_ext >&5
 
2500
  rm -rf conftest*
 
2501
  gt_cv_func_gnugettext1_libintl=no
 
2502
fi
 
2503
rm -f conftest*
 
2504
                LIBS="$gt_save_LIBS"
 
2505
fi
 
2506
 
 
2507
echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
 
2508
           fi
 
2509
 
 
2510
                                           if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
2511
              || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
2512
                   && test "$PACKAGE" != gettext; }; then
 
2513
             cat >> confdefs.h <<\EOF
 
2514
#define HAVE_GETTEXT 1
 
2515
EOF
 
2516
 
 
2517
 
 
2518
             if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
2519
                                       INTLLIBS="-lintl $LIBICONV"
 
2520
             fi
 
2521
 
 
2522
             gt_save_LIBS="$LIBS"
 
2523
             LIBS="$LIBS $INTLLIBS"
 
2524
             for ac_func in dcgettext
 
2525
do
 
2526
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2527
echo "configure:2528: checking for $ac_func" >&5
 
2528
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2529
  echo $ac_n "(cached) $ac_c" 1>&6
 
2530
else
 
2531
  cat > conftest.$ac_ext <<EOF
 
2532
#line 2533 "configure"
 
2533
#include "confdefs.h"
 
2534
/* System header to define __stub macros and hopefully few prototypes,
 
2535
    which can conflict with char $ac_func(); below.  */
 
2536
#include <assert.h>
 
2537
/* Override any gcc2 internal prototype to avoid an error.  */
 
2538
/* We use char because int might match the return type of a gcc2
 
2539
    builtin and then its argument prototype would still apply.  */
 
2540
char $ac_func();
 
2541
 
 
2542
int main() {
 
2543
 
 
2544
/* The GNU C library defines this for functions which it implements
 
2545
    to always fail with ENOSYS.  Some functions are actually named
 
2546
    something starting with __ and the normal name is an alias.  */
 
2547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2548
choke me
 
2549
#else
 
2550
$ac_func();
 
2551
#endif
 
2552
 
 
2553
; return 0; }
 
2554
EOF
 
2555
if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2556
  rm -rf conftest*
 
2557
  eval "ac_cv_func_$ac_func=yes"
 
2558
else
 
2559
  echo "configure: failed program was:" >&5
 
2560
  cat conftest.$ac_ext >&5
 
2561
  rm -rf conftest*
 
2562
  eval "ac_cv_func_$ac_func=no"
 
2563
fi
 
2564
rm -f conftest*
 
2565
fi
 
2566
 
 
2567
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2568
  echo "$ac_t""yes" 1>&6
 
2569
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2570
  cat >> confdefs.h <<EOF
 
2571
#define $ac_tr_func 1
 
2572
EOF
 
2573
 
 
2574
else
 
2575
  echo "$ac_t""no" 1>&6
 
2576
fi
 
2577
done
 
2578
 
 
2579
             LIBS="$gt_save_LIBS"
 
2580
 
 
2581
                     # Extract the first word of "msgfmt", so it can be a program name with args.
 
2582
set dummy msgfmt; ac_word=$2
 
2583
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2584
echo "configure:2585: checking for $ac_word" >&5
 
2585
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
2586
  echo $ac_n "(cached) $ac_c" 1>&6
 
2587
else
 
2588
  case "$MSGFMT" in
 
2589
  /*)
 
2590
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2591
  ;;
 
2592
  *)
 
2593
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2594
  for ac_dir in $PATH; do
 
2595
    test -z "$ac_dir" && ac_dir=.
 
2596
    if test -f $ac_dir/$ac_word; then
 
2597
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
 
2598
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2599
        break
 
2600
      fi
 
2601
    fi
 
2602
  done
 
2603
  IFS="$ac_save_ifs"
 
2604
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
2605
  ;;
 
2606
esac
 
2607
fi
 
2608
MSGFMT="$ac_cv_path_MSGFMT"
 
2609
if test "$MSGFMT" != ":"; then
 
2610
  echo "$ac_t""$MSGFMT" 1>&6
 
2611
else
 
2612
  echo "$ac_t""no" 1>&6
 
2613
fi
 
2614
 
 
2615
             # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2616
set dummy gmsgfmt; ac_word=$2
 
2617
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2618
echo "configure:2619: checking for $ac_word" >&5
 
2619
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2620
  echo $ac_n "(cached) $ac_c" 1>&6
 
2621
else
 
2622
  case "$GMSGFMT" in
 
2623
  /*)
 
2624
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2625
  ;;
 
2626
  ?:/*)                  
 
2627
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
2628
  ;;
 
2629
  *)
 
2630
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2631
  ac_dummy="$PATH"
 
2632
  for ac_dir in $ac_dummy; do 
 
2633
    test -z "$ac_dir" && ac_dir=.
 
2634
    if test -f $ac_dir/$ac_word; then
 
2635
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2636
      break
 
2637
    fi
 
2638
  done
 
2639
  IFS="$ac_save_ifs"
 
2640
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2641
  ;;
 
2642
esac
 
2643
fi
 
2644
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2645
if test -n "$GMSGFMT"; then
 
2646
  echo "$ac_t""$GMSGFMT" 1>&6
 
2647
else
 
2648
  echo "$ac_t""no" 1>&6
 
2649
fi
 
2650
 
 
2651
 
 
2652
                     # Extract the first word of "xgettext", so it can be a program name with args.
 
2653
set dummy xgettext; ac_word=$2
 
2654
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2655
echo "configure:2656: checking for $ac_word" >&5
 
2656
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2657
  echo $ac_n "(cached) $ac_c" 1>&6
 
2658
else
 
2659
  case "$XGETTEXT" in
 
2660
  /*)
 
2661
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2662
  ;;
 
2663
  *)
 
2664
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2665
  for ac_dir in $PATH; do
 
2666
    test -z "$ac_dir" && ac_dir=.
 
2667
    if test -f $ac_dir/$ac_word; then
 
2668
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
 
2669
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2670
        break
 
2671
      fi
 
2672
    fi
 
2673
  done
 
2674
  IFS="$ac_save_ifs"
 
2675
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2676
  ;;
 
2677
esac
 
2678
fi
 
2679
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2680
if test "$XGETTEXT" != ":"; then
 
2681
  echo "$ac_t""$XGETTEXT" 1>&6
 
2682
else
 
2683
  echo "$ac_t""no" 1>&6
 
2684
fi
 
2685
 
 
2686
 
 
2687
             CATOBJEXT=.gmo
 
2688
           fi
 
2689
        
 
2690
else
 
2691
  echo "$ac_t""no" 1>&6
 
2692
fi
 
2693
 
 
2694
 
 
2695
        if test "$CATOBJEXT" = "NONE"; then
 
2696
                          nls_cv_use_gnu_gettext=yes
 
2697
        fi
 
2698
      fi
 
2699
 
 
2700
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
2701
                INTLOBJS="\$(GETTOBJS)"
 
2702
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
2703
set dummy msgfmt; ac_word=$2
 
2704
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2705
echo "configure:2706: checking for $ac_word" >&5
 
2706
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
2707
  echo $ac_n "(cached) $ac_c" 1>&6
 
2708
else
 
2709
  case "$MSGFMT" in
 
2710
  /*)
 
2711
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2712
  ;;
 
2713
  *)
 
2714
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2715
  for ac_dir in $PATH; do
 
2716
    test -z "$ac_dir" && ac_dir=.
 
2717
    if test -f $ac_dir/$ac_word; then
 
2718
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
 
2719
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2720
        break
 
2721
      fi
 
2722
    fi
 
2723
  done
 
2724
  IFS="$ac_save_ifs"
 
2725
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
2726
  ;;
 
2727
esac
 
2728
fi
 
2729
MSGFMT="$ac_cv_path_MSGFMT"
 
2730
if test "$MSGFMT" != ":"; then
 
2731
  echo "$ac_t""$MSGFMT" 1>&6
 
2732
else
 
2733
  echo "$ac_t""no" 1>&6
 
2734
fi
 
2735
 
 
2736
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2737
set dummy gmsgfmt; ac_word=$2
 
2738
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2739
echo "configure:2740: checking for $ac_word" >&5
 
2740
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2741
  echo $ac_n "(cached) $ac_c" 1>&6
 
2742
else
 
2743
  case "$GMSGFMT" in
 
2744
  /*)
 
2745
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2746
  ;;
 
2747
  ?:/*)                  
 
2748
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
2749
  ;;
 
2750
  *)
 
2751
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2752
  ac_dummy="$PATH"
 
2753
  for ac_dir in $ac_dummy; do 
 
2754
    test -z "$ac_dir" && ac_dir=.
 
2755
    if test -f $ac_dir/$ac_word; then
 
2756
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2757
      break
 
2758
    fi
 
2759
  done
 
2760
  IFS="$ac_save_ifs"
 
2761
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2762
  ;;
 
2763
esac
 
2764
fi
 
2765
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2766
if test -n "$GMSGFMT"; then
 
2767
  echo "$ac_t""$GMSGFMT" 1>&6
 
2768
else
 
2769
  echo "$ac_t""no" 1>&6
 
2770
fi
 
2771
 
 
2772
        # Extract the first word of "xgettext", so it can be a program name with args.
 
2773
set dummy xgettext; ac_word=$2
 
2774
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2775
echo "configure:2776: checking for $ac_word" >&5
 
2776
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2777
  echo $ac_n "(cached) $ac_c" 1>&6
 
2778
else
 
2779
  case "$XGETTEXT" in
 
2780
  /*)
 
2781
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2782
  ;;
 
2783
  *)
 
2784
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2785
  for ac_dir in $PATH; do
 
2786
    test -z "$ac_dir" && ac_dir=.
 
2787
    if test -f $ac_dir/$ac_word; then
 
2788
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
 
2789
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2790
        break
 
2791
      fi
 
2792
    fi
 
2793
  done
 
2794
  IFS="$ac_save_ifs"
 
2795
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2796
  ;;
 
2797
esac
 
2798
fi
 
2799
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2800
if test "$XGETTEXT" != ":"; then
 
2801
  echo "$ac_t""$XGETTEXT" 1>&6
 
2802
else
 
2803
  echo "$ac_t""no" 1>&6
 
2804
fi
 
2805
 
 
2806
        
 
2807
        BUILD_INCLUDED_LIBINTL=yes
 
2808
        USE_INCLUDED_LIBINTL=yes
 
2809
        CATOBJEXT=.gmo
 
2810
        INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
 
2811
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
2812
      fi
 
2813
 
 
2814
                  if test "$GMSGFMT" != ":"; then
 
2815
                        if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
 
2816
          : ;
 
2817
        else
 
2818
          echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
 
2819
          GMSGFMT=":"
 
2820
        fi
 
2821
      fi
 
2822
 
 
2823
                  if test "$XGETTEXT" != ":"; then
 
2824
                        if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
 
2825
          : ;
 
2826
        else
 
2827
          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
 
2828
          XGETTEXT=":"
 
2829
        fi
 
2830
      fi
 
2831
 
 
2832
            POSUB=po
 
2833
    fi
 
2834
    
 
2835
 
 
2836
 
 
2837
            if test "$PACKAGE" = gettext; then
 
2838
      BUILD_INCLUDED_LIBINTL=yes
 
2839
    fi
 
2840
 
 
2841
                                            for ac_prog in bison
 
2842
do
 
2843
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
2844
set dummy $ac_prog; ac_word=$2
 
2845
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2846
echo "configure:2847: checking for $ac_word" >&5
 
2847
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
 
2848
  echo $ac_n "(cached) $ac_c" 1>&6
 
2849
else
 
2850
  if test -n "$INTLBISON"; then
 
2851
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
2852
else
 
2853
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2854
  ac_dummy="$PATH"
 
2855
  for ac_dir in $ac_dummy; do
 
2856
    test -z "$ac_dir" && ac_dir=.
 
2857
    if test -f $ac_dir/$ac_word; then
 
2858
      ac_cv_prog_INTLBISON="$ac_prog"
 
2859
      break
 
2860
    fi
 
2861
  done
 
2862
  IFS="$ac_save_ifs"
 
2863
fi
 
2864
fi
 
2865
INTLBISON="$ac_cv_prog_INTLBISON"
 
2866
if test -n "$INTLBISON"; then
 
2867
  echo "$ac_t""$INTLBISON" 1>&6
 
2868
else
 
2869
  echo "$ac_t""no" 1>&6
 
2870
fi
 
2871
 
 
2872
test -n "$INTLBISON" && break
 
2873
done
 
2874
 
 
2875
    if test -z "$INTLBISON"; then
 
2876
      ac_verc_fail=yes
 
2877
    else
 
2878
            echo $ac_n "checking version of bison""... $ac_c" 1>&6
 
2879
echo "configure:2880: checking version of bison" >&5
 
2880
      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
2881
      case $ac_prog_version in
 
2882
        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
2883
        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
2884
           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
2885
        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
2886
      esac
 
2887
      echo "$ac_t""$ac_prog_version" 1>&6
 
2888
    fi
 
2889
    if test $ac_verc_fail = yes; then
 
2890
      INTLBISON=:
 
2891
    fi
 
2892
 
 
2893
                for lang in $ALL_LINGUAS; do
 
2894
      GMOFILES="$GMOFILES $lang.gmo"
 
2895
      POFILES="$POFILES $lang.po"
 
2896
    done
 
2897
 
 
2898
        
 
2899
    
 
2900
    
 
2901
    
 
2902
    
 
2903
    
 
2904
    
 
2905
    
 
2906
    
 
2907
 
 
2908
        nls_cv_header_intl=
 
2909
    nls_cv_header_libgt=
 
2910
 
 
2911
        DATADIRNAME=share
 
2912
    
 
2913
 
 
2914
        INSTOBJEXT=.mo
 
2915
    
 
2916
 
 
2917
        GENCAT=gencat
 
2918
    
 
2919
  
 
2920
 
 
2921
   if test "x$CATOBJEXT" != "x"; then
 
2922
     if test "x$ALL_LINGUAS" = "x"; then
 
2923
       LINGUAS=
 
2924
     else
 
2925
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
 
2926
echo "configure:2927: checking for catalogs to be installed" >&5
 
2927
       NEW_LINGUAS=
 
2928
       for presentlang in $ALL_LINGUAS; do
 
2929
         useit=no
 
2930
         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
 
2931
           # Use the presentlang catalog if desiredlang is
 
2932
           #   a. equal to presentlang, or
 
2933
           #   b. a variant of presentlang (because in this case,
 
2934
           #      presentlang can be used as a fallback for messages
 
2935
           #      which are not translated in the desiredlang catalog).
 
2936
           case "$desiredlang" in
 
2937
             "$presentlang"*) useit=yes;;
 
2938
           esac
 
2939
         done
 
2940
         if test $useit = yes; then
 
2941
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
2942
         fi
 
2943
       done
 
2944
       LINGUAS=$NEW_LINGUAS
 
2945
       echo "$ac_t""$LINGUAS" 1>&6
 
2946
     fi
 
2947
 
 
2948
          if test -n "$LINGUAS"; then
 
2949
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
2950
     fi
 
2951
   fi
 
2952
 
 
2953
            MKINSTALLDIRS=
 
2954
   if test -n "$ac_aux_dir"; then
 
2955
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
2956
   fi
 
2957
   if test -z "$MKINSTALLDIRS"; then
 
2958
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
2959
   fi
 
2960
   
 
2961
 
 
2962
      INTL_LIBTOOL_SUFFIX_PREFIX=
 
2963
   
 
2964
  
 
2965
 
 
2966
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
2967
echo "configure:2968: checking for ANSI C header files" >&5
 
2968
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
2969
  echo $ac_n "(cached) $ac_c" 1>&6
 
2970
else
 
2971
  cat > conftest.$ac_ext <<EOF
 
2972
#line 2973 "configure"
 
2973
#include "confdefs.h"
 
2974
#include <stdlib.h>
 
2975
#include <stdarg.h>
 
2976
#include <string.h>
 
2977
#include <float.h>
 
2978
EOF
 
2979
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2980
{ (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2981
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2982
if test -z "$ac_err"; then
 
2983
  rm -rf conftest*
 
2984
  ac_cv_header_stdc=yes
 
2985
else
 
2986
  echo "$ac_err" >&5
 
2987
  echo "configure: failed program was:" >&5
 
2988
  cat conftest.$ac_ext >&5
 
2989
  rm -rf conftest*
 
2990
  ac_cv_header_stdc=no
 
2991
fi
 
2992
rm -f conftest*
 
2993
 
 
2994
if test $ac_cv_header_stdc = yes; then
 
2995
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
2996
cat > conftest.$ac_ext <<EOF
 
2997
#line 2998 "configure"
 
2998
#include "confdefs.h"
 
2999
#include <string.h>
 
3000
EOF
 
3001
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3002
  egrep "memchr" >/dev/null 2>&1; then
 
3003
  :
 
3004
else
 
3005
  rm -rf conftest*
 
3006
  ac_cv_header_stdc=no
 
3007
fi
 
3008
rm -f conftest*
 
3009
 
 
3010
fi
 
3011
 
 
3012
if test $ac_cv_header_stdc = yes; then
 
3013
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3014
cat > conftest.$ac_ext <<EOF
 
3015
#line 3016 "configure"
 
3016
#include "confdefs.h"
 
3017
#include <stdlib.h>
 
3018
EOF
 
3019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3020
  egrep "free" >/dev/null 2>&1; then
 
3021
  :
 
3022
else
 
3023
  rm -rf conftest*
 
3024
  ac_cv_header_stdc=no
 
3025
fi
 
3026
rm -f conftest*
 
3027
 
 
3028
fi
 
3029
 
 
3030
if test $ac_cv_header_stdc = yes; then
 
3031
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3032
if test "$cross_compiling" = yes; then
 
3033
  :
 
3034
else
 
3035
  cat > conftest.$ac_ext <<EOF
 
3036
#line 3037 "configure"
 
3037
#include "confdefs.h"
 
3038
#include <ctype.h>
 
3039
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3040
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3041
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3042
int main () { int i; for (i = 0; i < 256; i++)
 
3043
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
3044
exit (0); }
 
3045
 
 
3046
EOF
 
3047
if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3048
then
 
3049
  :
 
3050
else
 
3051
  echo "configure: failed program was:" >&5
 
3052
  cat conftest.$ac_ext >&5
 
3053
  rm -fr conftest*
 
3054
  ac_cv_header_stdc=no
 
3055
fi
 
3056
rm -fr conftest*
 
3057
fi
 
3058
 
 
3059
fi
 
3060
fi
 
3061
 
 
3062
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
3063
if test $ac_cv_header_stdc = yes; then
 
3064
  cat >> confdefs.h <<\EOF
 
3065
#define STDC_HEADERS 1
 
3066
EOF
 
3067
 
 
3068
fi
 
3069
 
 
3070
for ac_hdr in unistd.h
 
3071
do
 
3072
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
3073
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
3074
echo "configure:3075: checking for $ac_hdr" >&5
 
3075
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
3076
  echo $ac_n "(cached) $ac_c" 1>&6
 
3077
else
 
3078
  cat > conftest.$ac_ext <<EOF
 
3079
#line 3080 "configure"
 
3080
#include "confdefs.h"
 
3081
#include <$ac_hdr>
 
3082
EOF
 
3083
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3084
{ (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3085
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3086
if test -z "$ac_err"; then
 
3087
  rm -rf conftest*
 
3088
  eval "ac_cv_header_$ac_safe=yes"
 
3089
else
 
3090
  echo "$ac_err" >&5
 
3091
  echo "configure: failed program was:" >&5
 
3092
  cat conftest.$ac_ext >&5
 
3093
  rm -rf conftest*
 
3094
  eval "ac_cv_header_$ac_safe=no"
 
3095
fi
 
3096
rm -f conftest*
 
3097
fi
 
3098
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
3099
  echo "$ac_t""yes" 1>&6
 
3100
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
3101
  cat >> confdefs.h <<EOF
 
3102
#define $ac_tr_hdr 1
 
3103
EOF
 
3104
 
 
3105
else
 
3106
  echo "$ac_t""no" 1>&6
 
3107
fi
 
3108
done
 
3109
 
 
3110
 
 
3111
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
3112
# for constant arguments.  Useless!
 
3113
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
3114
echo "configure:3115: checking for working alloca.h" >&5
 
3115
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
3116
  echo $ac_n "(cached) $ac_c" 1>&6
 
3117
else
 
3118
  cat > conftest.$ac_ext <<EOF
 
3119
#line 3120 "configure"
 
3120
#include "confdefs.h"
 
3121
#include <alloca.h>
 
3122
int main() {
 
3123
char *p = alloca(2 * sizeof(int));
 
3124
; return 0; }
 
3125
EOF
 
3126
if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3127
  rm -rf conftest*
 
3128
  ac_cv_header_alloca_h=yes
 
3129
else
 
3130
  echo "configure: failed program was:" >&5
 
3131
  cat conftest.$ac_ext >&5
 
3132
  rm -rf conftest*
 
3133
  ac_cv_header_alloca_h=no
 
3134
fi
 
3135
rm -f conftest*
 
3136
fi
 
3137
 
 
3138
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
3139
if test $ac_cv_header_alloca_h = yes; then
 
3140
  cat >> confdefs.h <<\EOF
 
3141
#define HAVE_ALLOCA_H 1
 
3142
EOF
 
3143
 
 
3144
fi
 
3145
 
 
3146
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
3147
echo "configure:3148: checking for alloca" >&5
 
3148
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
3149
  echo $ac_n "(cached) $ac_c" 1>&6
 
3150
else
 
3151
  cat > conftest.$ac_ext <<EOF
 
3152
#line 3153 "configure"
 
3153
#include "confdefs.h"
 
3154
 
 
3155
#ifdef __GNUC__
 
3156
# define alloca __builtin_alloca
 
3157
#else
 
3158
# ifdef _MSC_VER
 
3159
#  include <malloc.h>
 
3160
#  define alloca _alloca
 
3161
# else
 
3162
#  if HAVE_ALLOCA_H
 
3163
#   include <alloca.h>
 
3164
#  else
 
3165
#   ifdef _AIX
 
3166
 #pragma alloca
 
3167
#   else
 
3168
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
3169
char *alloca ();
 
3170
#    endif
 
3171
#   endif
 
3172
#  endif
 
3173
# endif
 
3174
#endif
 
3175
 
 
3176
int main() {
 
3177
char *p = (char *) alloca(1);
 
3178
; return 0; }
 
3179
EOF
 
3180
if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3181
  rm -rf conftest*
 
3182
  ac_cv_func_alloca_works=yes
 
3183
else
 
3184
  echo "configure: failed program was:" >&5
 
3185
  cat conftest.$ac_ext >&5
 
3186
  rm -rf conftest*
 
3187
  ac_cv_func_alloca_works=no
 
3188
fi
 
3189
rm -f conftest*
 
3190
fi
 
3191
 
 
3192
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
3193
if test $ac_cv_func_alloca_works = yes; then
 
3194
  cat >> confdefs.h <<\EOF
 
3195
#define HAVE_ALLOCA 1
 
3196
EOF
 
3197
 
 
3198
fi
 
3199
 
 
3200
if test $ac_cv_func_alloca_works = no; then
 
3201
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
3202
  # that cause trouble.  Some versions do not even contain alloca or
 
3203
  # contain a buggy version.  If you still want to use their alloca,
 
3204
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
3205
  ALLOCA=alloca.${ac_objext}
 
3206
  cat >> confdefs.h <<\EOF
 
3207
#define C_ALLOCA 1
 
3208
EOF
 
3209
 
 
3210
 
 
3211
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
3212
echo "configure:3213: checking whether alloca needs Cray hooks" >&5
 
3213
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
3214
  echo $ac_n "(cached) $ac_c" 1>&6
 
3215
else
 
3216
  cat > conftest.$ac_ext <<EOF
 
3217
#line 3218 "configure"
 
3218
#include "confdefs.h"
 
3219
#if defined(CRAY) && ! defined(CRAY2)
 
3220
webecray
 
3221
#else
 
3222
wenotbecray
 
3223
#endif
 
3224
 
 
3225
EOF
 
3226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3227
  egrep "webecray" >/dev/null 2>&1; then
 
3228
  rm -rf conftest*
 
3229
  ac_cv_os_cray=yes
 
3230
else
 
3231
  rm -rf conftest*
 
3232
  ac_cv_os_cray=no
 
3233
fi
 
3234
rm -f conftest*
 
3235
 
 
3236
fi
 
3237
 
 
3238
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
3239
if test $ac_cv_os_cray = yes; then
 
3240
for ac_func in _getb67 GETB67 getb67; do
 
3241
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
3242
echo "configure:3243: checking for $ac_func" >&5
 
3243
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
3244
  echo $ac_n "(cached) $ac_c" 1>&6
 
3245
else
 
3246
  cat > conftest.$ac_ext <<EOF
 
3247
#line 3248 "configure"
 
3248
#include "confdefs.h"
 
3249
/* System header to define __stub macros and hopefully few prototypes,
 
3250
    which can conflict with char $ac_func(); below.  */
 
3251
#include <assert.h>
 
3252
/* Override any gcc2 internal prototype to avoid an error.  */
 
3253
/* We use char because int might match the return type of a gcc2
 
3254
    builtin and then its argument prototype would still apply.  */
 
3255
char $ac_func();
 
3256
 
 
3257
int main() {
 
3258
 
 
3259
/* The GNU C library defines this for functions which it implements
 
3260
    to always fail with ENOSYS.  Some functions are actually named
 
3261
    something starting with __ and the normal name is an alias.  */
 
3262
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3263
choke me
 
3264
#else
 
3265
$ac_func();
 
3266
#endif
 
3267
 
 
3268
; return 0; }
 
3269
EOF
 
3270
if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3271
  rm -rf conftest*
 
3272
  eval "ac_cv_func_$ac_func=yes"
 
3273
else
 
3274
  echo "configure: failed program was:" >&5
 
3275
  cat conftest.$ac_ext >&5
 
3276
  rm -rf conftest*
 
3277
  eval "ac_cv_func_$ac_func=no"
 
3278
fi
 
3279
rm -f conftest*
 
3280
fi
 
3281
 
 
3282
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
3283
  echo "$ac_t""yes" 1>&6
 
3284
  cat >> confdefs.h <<EOF
 
3285
#define CRAY_STACKSEG_END $ac_func
 
3286
EOF
 
3287
 
 
3288
  break
 
3289
else
 
3290
  echo "$ac_t""no" 1>&6
 
3291
fi
 
3292
 
 
3293
done
 
3294
fi
 
3295
 
 
3296
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
3297
echo "configure:3298: checking stack direction for C alloca" >&5
 
3298
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
3299
  echo $ac_n "(cached) $ac_c" 1>&6
 
3300
else
 
3301
  if test "$cross_compiling" = yes; then
 
3302
  ac_cv_c_stack_direction=0
 
3303
else
 
3304
  cat > conftest.$ac_ext <<EOF
 
3305
#line 3306 "configure"
 
3306
#include "confdefs.h"
 
3307
find_stack_direction ()
 
3308
{
 
3309
  static char *addr = 0;
 
3310
  auto char dummy;
 
3311
  if (addr == 0)
 
3312
    {
 
3313
      addr = &dummy;
 
3314
      return find_stack_direction ();
 
3315
    }
 
3316
  else
 
3317
    return (&dummy > addr) ? 1 : -1;
 
3318
}
 
3319
main ()
 
3320
{
 
3321
  exit (find_stack_direction() < 0);
 
3322
}
 
3323
EOF
 
3324
if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3325
then
 
3326
  ac_cv_c_stack_direction=1
 
3327
else
 
3328
  echo "configure: failed program was:" >&5
 
3329
  cat conftest.$ac_ext >&5
 
3330
  rm -fr conftest*
 
3331
  ac_cv_c_stack_direction=-1
 
3332
fi
 
3333
rm -fr conftest*
 
3334
fi
 
3335
 
 
3336
fi
 
3337
 
 
3338
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
3339
cat >> confdefs.h <<EOF
 
3340
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
3341
EOF
 
3342
 
 
3343
fi
 
3344
 
 
3345
 
 
3346
 
 
3347
trap '' 1 2 15
 
3348
cat > confcache <<\EOF
 
3349
# This file is a shell script that caches the results of configure
 
3350
# tests run on this system so they can be shared between configure
 
3351
# scripts and configure runs.  It is not useful on other systems.
 
3352
# If it contains results you don't want to keep, you may remove or edit it.
 
3353
#
 
3354
# By default, configure uses ./config.cache as the cache file,
 
3355
# creating it if it does not exist already.  You can give configure
 
3356
# the --cache-file=FILE option to use a different cache file; that is
 
3357
# what configure does when it calls configure scripts in
 
3358
# subdirectories, so they share the cache.
 
3359
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
3360
# config.status only pays attention to the cache file if you give it the
 
3361
# --recheck option to rerun configure.
 
3362
#
 
3363
EOF
 
3364
# The following way of writing the cache mishandles newlines in values,
 
3365
# but we know of no workaround that is simple, portable, and efficient.
 
3366
# So, don't put newlines in cache variables' values.
 
3367
# Ultrix sh set writes to stderr and can't be redirected directly,
 
3368
# and sets the high bit in the cache file unless we assign to the vars.
 
3369
(set) 2>&1 |
 
3370
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3371
  *ac_space=\ *)
 
3372
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
3373
    # turns \\\\ into \\, and sed turns \\ into \).
 
3374
    sed -n \
 
3375
      -e "s/'/'\\\\''/g" \
 
3376
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
3377
    ;;
 
3378
  *)
 
3379
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3380
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
3381
    ;;
 
3382
  esac >> confcache
 
3383
if cmp -s $cache_file confcache; then
 
3384
  :
 
3385
else
 
3386
  if test -w $cache_file; then
 
3387
    echo "updating cache $cache_file"
 
3388
    cat confcache > $cache_file
 
3389
  else
 
3390
    echo "not updating unwritable cache $cache_file"
 
3391
  fi
 
3392
fi
 
3393
rm -f confcache
 
3394
 
 
3395
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
3396
 
 
3397
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
3398
# Let make expand exec_prefix.
 
3399
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
3400
 
 
3401
# Any assignment to VPATH causes Sun make to only execute
 
3402
# the first set of double-colon rules, so remove it if not needed.
 
3403
# If there is a colon in the path, we need to keep it.
 
3404
if test "x$srcdir" = x.; then
 
3405
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
3406
fi
 
3407
 
 
3408
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
3409
 
 
3410
DEFS=-DHAVE_CONFIG_H
 
3411
 
 
3412
# Without the "./", some shells look in PATH for config.status.
 
3413
: ${CONFIG_STATUS=./config.status}
 
3414
 
 
3415
echo creating $CONFIG_STATUS
 
3416
rm -f $CONFIG_STATUS
 
3417
cat > $CONFIG_STATUS <<EOF
 
3418
#! /bin/sh
 
3419
# Generated automatically by configure.
 
3420
# Run this file to recreate the current configuration.
 
3421
# This directory was configured as follows,
 
3422
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
3423
#
 
3424
# $0 $ac_configure_args
 
3425
#
 
3426
# Compiler output produced by configure, useful for debugging
 
3427
# configure, is in ./config.log if it exists.
 
3428
 
 
3429
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
3430
for ac_option
 
3431
do
 
3432
  case "\$ac_option" in
 
3433
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
3434
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
3435
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
3436
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
3437
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
3438
    exit 0 ;;
 
3439
  -help | --help | --hel | --he | --h)
 
3440
    echo "\$ac_cs_usage"; exit 0 ;;
 
3441
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
3442
  esac
 
3443
done
 
3444
 
 
3445
ac_given_srcdir=$srcdir
 
3446
ac_given_INSTALL="$INSTALL"
 
3447
 
 
3448
trap 'rm -fr `echo "Makefile src/Makefile etc/Makefile doc/Makefile intl/Makefile po/Makefile.in src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
3449
EOF
 
3450
cat >> $CONFIG_STATUS <<EOF
 
3451
 
 
3452
# Protect against being on the right side of a sed subst in config.status.
 
3453
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
3454
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
3455
$ac_vpsub
 
3456
$extrasub
 
3457
s%@SHELL@%$SHELL%g
 
3458
s%@CFLAGS@%$CFLAGS%g
 
3459
s%@CPPFLAGS@%$CPPFLAGS%g
 
3460
s%@CXXFLAGS@%$CXXFLAGS%g
 
3461
s%@FFLAGS@%$FFLAGS%g
 
3462
s%@DEFS@%$DEFS%g
 
3463
s%@LDFLAGS@%$LDFLAGS%g
 
3464
s%@LIBS@%$LIBS%g
 
3465
s%@exec_prefix@%$exec_prefix%g
 
3466
s%@prefix@%$prefix%g
 
3467
s%@program_transform_name@%$program_transform_name%g
 
3468
s%@bindir@%$bindir%g
 
3469
s%@sbindir@%$sbindir%g
 
3470
s%@libexecdir@%$libexecdir%g
 
3471
s%@datadir@%$datadir%g
 
3472
s%@sysconfdir@%$sysconfdir%g
 
3473
s%@sharedstatedir@%$sharedstatedir%g
 
3474
s%@localstatedir@%$localstatedir%g
 
3475
s%@libdir@%$libdir%g
 
3476
s%@includedir@%$includedir%g
 
3477
s%@oldincludedir@%$oldincludedir%g
 
3478
s%@infodir@%$infodir%g
 
3479
s%@mandir@%$mandir%g
 
3480
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
3481
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
3482
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
3483
s%@PACKAGE@%$PACKAGE%g
 
3484
s%@VERSION@%$VERSION%g
 
3485
s%@ACLOCAL@%$ACLOCAL%g
 
3486
s%@AUTOCONF@%$AUTOCONF%g
 
3487
s%@AUTOMAKE@%$AUTOMAKE%g
 
3488
s%@AUTOHEADER@%$AUTOHEADER%g
 
3489
s%@MAKEINFO@%$MAKEINFO%g
 
3490
s%@SET_MAKE@%$SET_MAKE%g
 
3491
s%@ISODATE@%$ISODATE%g
 
3492
s%@host@%$host%g
 
3493
s%@host_alias@%$host_alias%g
 
3494
s%@host_cpu@%$host_cpu%g
 
3495
s%@host_vendor@%$host_vendor%g
 
3496
s%@host_os@%$host_os%g
 
3497
s%@CC@%$CC%g
 
3498
s%@RANLIB@%$RANLIB%g
 
3499
s%@CPP@%$CPP%g
 
3500
s%@ALLOCA@%$ALLOCA%g
 
3501
s%@GLIBC21@%$GLIBC21%g
 
3502
s%@LIBICONV@%$LIBICONV%g
 
3503
s%@USE_NLS@%$USE_NLS%g
 
3504
s%@MSGFMT@%$MSGFMT%g
 
3505
s%@GMSGFMT@%$GMSGFMT%g
 
3506
s%@XGETTEXT@%$XGETTEXT%g
 
3507
s%@INTLBISON@%$INTLBISON%g
 
3508
s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
 
3509
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
 
3510
s%@CATALOGS@%$CATALOGS%g
 
3511
s%@CATOBJEXT@%$CATOBJEXT%g
 
3512
s%@GMOFILES@%$GMOFILES%g
 
3513
s%@INTLLIBS@%$INTLLIBS%g
 
3514
s%@INTLOBJS@%$INTLOBJS%g
 
3515
s%@POFILES@%$POFILES%g
 
3516
s%@POSUB@%$POSUB%g
 
3517
s%@DATADIRNAME@%$DATADIRNAME%g
 
3518
s%@INSTOBJEXT@%$INSTOBJEXT%g
 
3519
s%@GENCAT@%$GENCAT%g
 
3520
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
 
3521
s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
 
3522
 
 
3523
CEOF
 
3524
EOF
 
3525
 
 
3526
cat >> $CONFIG_STATUS <<\EOF
 
3527
 
 
3528
# Split the substitutions into bite-sized pieces for seds with
 
3529
# small command number limits, like on Digital OSF/1 and HP-UX.
 
3530
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
3531
ac_file=1 # Number of current file.
 
3532
ac_beg=1 # First line for current file.
 
3533
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
3534
ac_more_lines=:
 
3535
ac_sed_cmds=""
 
3536
while $ac_more_lines; do
 
3537
  if test $ac_beg -gt 1; then
 
3538
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
3539
  else
 
3540
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
3541
  fi
 
3542
  if test ! -s conftest.s$ac_file; then
 
3543
    ac_more_lines=false
 
3544
    rm -f conftest.s$ac_file
 
3545
  else
 
3546
    if test -z "$ac_sed_cmds"; then
 
3547
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
3548
    else
 
3549
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
3550
    fi
 
3551
    ac_file=`expr $ac_file + 1`
 
3552
    ac_beg=$ac_end
 
3553
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
3554
  fi
 
3555
done
 
3556
if test -z "$ac_sed_cmds"; then
 
3557
  ac_sed_cmds=cat
 
3558
fi
 
3559
EOF
 
3560
 
 
3561
cat >> $CONFIG_STATUS <<EOF
 
3562
 
 
3563
CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile etc/Makefile doc/Makefile intl/Makefile po/Makefile.in"}
 
3564
EOF
 
3565
cat >> $CONFIG_STATUS <<\EOF
 
3566
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
3567
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3568
  case "$ac_file" in
 
3569
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
3570
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
3571
  *) ac_file_in="${ac_file}.in" ;;
 
3572
  esac
 
3573
 
 
3574
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
3575
 
 
3576
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
3577
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
3578
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
3579
    # The file is in a subdirectory.
 
3580
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
3581
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
3582
    # A "../" for each directory in $ac_dir_suffix.
 
3583
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
3584
  else
 
3585
    ac_dir_suffix= ac_dots=
 
3586
  fi
 
3587
 
 
3588
  case "$ac_given_srcdir" in
 
3589
  .)  srcdir=.
 
3590
      if test -z "$ac_dots"; then top_srcdir=.
 
3591
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
3592
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
3593
  *) # Relative path.
 
3594
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
3595
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
3596
  esac
 
3597
 
 
3598
  case "$ac_given_INSTALL" in
 
3599
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
3600
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
3601
  esac
 
3602
 
 
3603
  echo creating "$ac_file"
 
3604
  rm -f "$ac_file"
 
3605
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
3606
  case "$ac_file" in
 
3607
  *Makefile*) ac_comsub="1i\\
 
3608
# $configure_input" ;;
 
3609
  *) ac_comsub= ;;
 
3610
  esac
 
3611
 
 
3612
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
3613
  sed -e "$ac_comsub
 
3614
s%@configure_input@%$configure_input%g
 
3615
s%@srcdir@%$srcdir%g
 
3616
s%@top_srcdir@%$top_srcdir%g
 
3617
s%@INSTALL@%$INSTALL%g
 
3618
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
3619
fi; done
 
3620
rm -f conftest.s*
 
3621
 
 
3622
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
3623
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
3624
#
 
3625
# ac_d sets the value in "#define NAME VALUE" lines.
 
3626
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
3627
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
3628
ac_dC='\3'
 
3629
ac_dD='%g'
 
3630
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
3631
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
3632
ac_uB='\([      ]\)%\1#\2define\3'
 
3633
ac_uC=' '
 
3634
ac_uD='\4%g'
 
3635
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
3636
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
3637
ac_eB='$%\1#\2define\3'
 
3638
ac_eC=' '
 
3639
ac_eD='%g'
 
3640
 
 
3641
if test "${CONFIG_HEADERS+set}" != set; then
 
3642
EOF
 
3643
cat >> $CONFIG_STATUS <<EOF
 
3644
  CONFIG_HEADERS="src/config.h"
 
3645
EOF
 
3646
cat >> $CONFIG_STATUS <<\EOF
 
3647
fi
 
3648
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
3649
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3650
  case "$ac_file" in
 
3651
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
3652
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
3653
  *) ac_file_in="${ac_file}.in" ;;
 
3654
  esac
 
3655
 
 
3656
  echo creating $ac_file
 
3657
 
 
3658
  rm -f conftest.frag conftest.in conftest.out
 
3659
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
3660
  cat $ac_file_inputs > conftest.in
 
3661
 
 
3662
EOF
 
3663
 
 
3664
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
3665
# the proper values into config.h.in to produce config.h.  And first:
 
3666
# Protect against being on the right side of a sed subst in config.status.
 
3667
# Protect against being in an unquoted here document in config.status.
 
3668
rm -f conftest.vals
 
3669
cat > conftest.hdr <<\EOF
 
3670
s/[\\&%]/\\&/g
 
3671
s%[\\$`]%\\&%g
 
3672
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
3673
s%ac_d%ac_u%gp
 
3674
s%ac_u%ac_e%gp
 
3675
EOF
 
3676
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
3677
rm -f conftest.hdr
 
3678
 
 
3679
# This sed command replaces #undef with comments.  This is necessary, for
 
3680
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
3681
# on some systems where configure will not decide to define it.
 
3682
cat >> conftest.vals <<\EOF
 
3683
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
3684
EOF
 
3685
 
 
3686
# Break up conftest.vals because some shells have a limit on
 
3687
# the size of here documents, and old seds have small limits too.
 
3688
 
 
3689
rm -f conftest.tail
 
3690
while :
 
3691
do
 
3692
  ac_lines=`grep -c . conftest.vals`
 
3693
  # grep -c gives empty output for an empty file on some AIX systems.
 
3694
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
3695
  # Write a limited-size here document to conftest.frag.
 
3696
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
3697
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
3698
  echo 'CEOF
 
3699
  sed -f conftest.frag conftest.in > conftest.out
 
3700
  rm -f conftest.in
 
3701
  mv conftest.out conftest.in
 
3702
' >> $CONFIG_STATUS
 
3703
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
3704
  rm -f conftest.vals
 
3705
  mv conftest.tail conftest.vals
 
3706
done
 
3707
rm -f conftest.vals
 
3708
 
 
3709
cat >> $CONFIG_STATUS <<\EOF
 
3710
  rm -f conftest.frag conftest.h
 
3711
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
3712
  cat conftest.in >> conftest.h
 
3713
  rm -f conftest.in
 
3714
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
3715
    echo "$ac_file is unchanged"
 
3716
    rm -f conftest.h
 
3717
  else
 
3718
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
3719
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
3720
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
3721
      # The file is in a subdirectory.
 
3722
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
3723
    fi
 
3724
    rm -f $ac_file
 
3725
    mv conftest.h $ac_file
 
3726
  fi
 
3727
fi; done
 
3728
 
 
3729
EOF
 
3730
cat >> $CONFIG_STATUS <<EOF
 
3731
 
 
3732
 
 
3733
 
 
3734
EOF
 
3735
cat >> $CONFIG_STATUS <<\EOF
 
3736
test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
 
3737
for ac_file in $CONFIG_FILES; do
 
3738
        # Support "outfile[:infile[:infile...]]"
 
3739
        case "$ac_file" in
 
3740
          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
3741
        esac
 
3742
        # PO directories have a Makefile.in generated from Makefile.in.in.
 
3743
        case "$ac_file" in */Makefile.in)
 
3744
          # Adjust a relative srcdir.
 
3745
          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
3746
          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
3747
          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
3748
          # In autoconf-2.13 it is called $ac_given_srcdir.
 
3749
          # In autoconf-2.50 it is called $srcdir.
 
3750
          test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
3751
          case "$ac_given_srcdir" in
 
3752
            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
3753
            /*) top_srcdir="$ac_given_srcdir" ;;
 
3754
            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
3755
          esac
 
3756
          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
3757
            rm -f "$ac_dir/POTFILES"
 
3758
            test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
3759
            sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
 
3760
            test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
3761
            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
3762
          fi
 
3763
          ;;
 
3764
        esac
 
3765
      done
 
3766
 
 
3767
exit 0
 
3768
EOF
 
3769
chmod +x $CONFIG_STATUS
 
3770
rm -fr confdefs* $ac_clean_files
 
3771
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
3772