~ubuntu-branches/ubuntu/trusty/photopc/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2000-09-04 12:34:52 UTC
  • Revision ID: james.westby@ubuntu.com-20000904123452-8kkxsbtmm1opsnlw
Tags: upstream-3.04
ImportĀ upstreamĀ versionĀ 3.04

Show diffs side-by-side

added added

removed removed

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